/* Long translated labels must stay inside their own control. Do not clip popups. */
.rz-form-group,
.rz-field,
.rz-grid > .rz-mod,
.woocommerce form .form-row {
    min-width: 0;
}

.rz-guests > .rz--label,
.rz-flyout > .rz--label {
    max-width: 100%;
    box-sizing: border-box;
}

.rz-guests > .rz--label > span,
.rz-flyout > .rz--label > span {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rz-field input:not([type=checkbox]):not([type=radio]),
.rz-field select,
.rz-field textarea,
.rz-select2 .select2-container,
.woocommerce form .select2-container {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.select2-container .select2-selection__rendered {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.woocommerce .variation dt,
.woocommerce .variation dd {
    overflow-wrap: anywhere;
}

.sak-map-message {
    margin: 6px 0;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
}

/* Header currency menu: short codes, a readable popup and no inner scrollbar. */
.brk-header #wcc-switcher-style-02 {
    position: relative;
    width: 72px;
    margin: 0;
    flex: 0 0 auto;
}
.brk-header #wcc-switcher-style-02 .wcc-crnt-currency {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 38px;
    padding: 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    line-height: 22px;
}
.brk-header #wcc-switcher-style-02 .wcc-crnt-currency::before {
    content: none;
}
.brk-header #wcc-switcher-style-02 .wcc-crnt-currency::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}
.brk-header #wcc-switcher-style-02 .wcc-name {
    white-space: nowrap;
    line-height: 22px;
}
.brk-header #wcc-switcher-style-02 .wcc-list {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    width: 88px;
    max-height: none;
    overflow: visible;
    margin: 0;
    padding: 4px 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #17212b;
    box-shadow: 0 6px 18px #0002;
    z-index: 100;
}
.brk-header #wcc-switcher-style-02 .wcc-list > li {
    display: flex;
    align-items: center;
    width: 100%;
    height: 38px;
    padding: 8px 14px;
    margin: 0;
    border: 0;
    border-radius: 4px;
    line-height: 22px;
    white-space: nowrap;
}
.brk-header #wcc-switcher-style-02 .wcc-list > li:hover {
    background: #f1f7fa;
    color: #005a86;
    box-shadow: none;
}

/* Both header selectors use a single clipped popup surface. */
.brk-header .wpml-ls-legacy-dropdown-click .wpml-ls-sub-menu {
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    min-width: 118px;
    margin: 0;
    padding: 4px 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 18px #0002;
}
.brk-header .wpml-ls-legacy-dropdown-click .wpml-ls-sub-menu > li {
    margin: 0;
    border: 0;
    background: transparent;
}
.brk-header .wpml-ls-legacy-dropdown-click .wpml-ls-sub-menu a {
    padding: 10px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    line-height: 20px;
    white-space: nowrap;
}
.brk-header .wpml-ls-legacy-dropdown-click .wpml-ls-sub-menu a:hover,
.brk-header .wpml-ls-legacy-dropdown-click .wpml-ls-sub-menu a:focus-visible {
    background: #f1f7fa;
}
.brk-header .wpml-ls-legacy-dropdown-click .wpml-ls-flag {
    display: none;
}
.brk-header .wpml-ls-legacy-dropdown-click .wpml-ls-native {
    margin-left: 0;
}
.brk-header #wcc-switcher-style-02 .wcc-list {
    overflow: hidden;
}

/* Active Explore links must remain visible on the header's white surface. */
.brk-header .brk-nav-main > ul > li.current-menu-ancestor > a,
.brk-header .brk-nav-main > ul > li.current-menu-item > a {
    color: #005a86;
}
.brk-header .brk-nav-main .sub-menu {
    overflow: hidden;
}
.brk-header .brk-nav-main .sub-menu > li > a {
    color: #17212b;
}
.brk-header .brk-nav-main .sub-menu > li > a:hover,
.brk-header .brk-nav-main .sub-menu > li > a:focus-visible,
.brk-header .brk-nav-main .sub-menu > li.current-menu-item > a,
.brk-header .brk-nav-main .sub-menu > li > a[aria-current="page"] {
    color: #005a86;
    background: #f1f7fa;
}
.brk-header .brk-nav-main li.mayan-menu-open > .sub-menu,
.brk-header .brk-nav-user li.mayan-menu-open > .sub-menu {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    transition: none;
}
.brk-header .brk-nav-main li.mayan-menu-closed > .sub-menu,
.brk-header .brk-nav-user li.mayan-menu-closed > .sub-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
}

/* Search days have no prices. Override the site's global 55px price-cell rule. */
.rz-calendar.mayan-calendar-search .rz-calendar-month .rz-days,
.rz-calendar.mayan-calendar-search .rz-calendar-month .rz-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    padding: 0;
    margin-left: 0;
    margin-right: 0;
}
.rz-calendar.mayan-calendar-search .rz-calendar-month .rz-days > li {
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
}
.rz-calendar.mayan-calendar-search .rz-calendar-month .rz-days > li > span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0;
    gap: 0;
    line-height: 36px;
}
.rz-calendar.mayan-calendar-search .rz-calendar-month .rz-days > li > span > i {
    position: static;
    transform: none;
    line-height: inherit;
}
.rz-calendar.mayan-calendar-search .rz-calendar-month .rz-weekdays > li {
    min-width: 0;
    padding: 6px 0;
}
.rz-tab-flyout:has(.mayan-calendar-search) > .rz-tab-content {
    max-height: none;
    overflow: visible;
}
@media (max-width: 767px) {
    .rz-calendar.mayan-calendar-search .rz-calendar-month .rz-days > li > span {
        height: 40px;
        line-height: 40px;
    }
}

/* Booking calendars retain the nightly amount and currency below each day. */
.rz-calendar-booking .rz-calendar .rz-calendar-month .rz-days,
.rz-calendar-booking .rz-calendar .rz-calendar-month .rz-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    padding: 0;
    margin-left: 0;
    margin-right: 0;
}
.rz-calendar-booking .rz-calendar .rz-calendar-month .rz-days > li {
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
}
.rz-calendar-booking .rz-calendar .rz-calendar-month .rz-days > li > span {
    height: 26px;
    padding: 0;
    gap: 0;
    align-items: center;
    justify-content: center;
    line-height: 26px;
}
.rz-calendar-booking .rz-calendar .rz-calendar-month .rz-days > li > span > i {
    position: static;
    transform: none;
    line-height: inherit;
}
.rz-calendar-booking .rz-calendar .rz-calendar-month .rz-days > li > .cal-price {
    /* Keep price text above Routiz's selected-range background (z-index: 1). */
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0 0 4px;
    /* Brikk marks its 10px price rule important too. */
    font-size: 9px !important;
    letter-spacing: -0.15px;
    line-height: 12px;
}
.rz-calendar-booking .rz-calendar .cal-price > .rz--amount,
.rz-calendar-booking .rz-calendar .cal-price > .rz--currency {
    /* Brikk forces every price span inline with !important. */
    display: block !important;
    position: static;
    height: auto;
    padding: 0;
    border-radius: 0;
    white-space: nowrap;
    line-height: 12px;
}

/* Continue the selected-day background through the price's bottom padding. */
.rz-calendar-booking .rz-calendar .rz-calendar-month .rz-days > li.rz--from-day > .cal-price,
.rz-calendar-booking .rz-calendar .rz-calendar-month .rz-days > li.rz--to-day > .cal-price {
    background: linear-gradient(90deg, var(--main), var(--main-shade));
}
