.mebof-shell {
    margin: 26px 0;
    padding: 18px;
    border: 1px solid #d8e4df;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(35, 55, 48, 0.08);
    text-align: left;
}

.mebof-top-slot {
    max-width: 1120px;
    margin: 18px auto 4px;
    padding: 0 12px;
    text-align: left;
}

.mebof-top-slot .mebof-shell {
    margin: 0;
}

.mebof-copy {
    display: grid;
    gap: 5px;
    margin-bottom: 14px;
}

.mebof-copy h2 {
    margin: 0;
    color: #183b2d;
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.14;
    letter-spacing: 0;
}

.mebof-copy p {
    max-width: 760px;
    margin: 0;
    color: #51615c;
    font-size: 15px;
    line-height: 1.5;
}

.mebof-form {
    display: grid;
    gap: 14px;
}

.mebof-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) minmax(220px, 1.3fr) minmax(190px, 1fr);
    gap: 10px;
    align-items: end;
}

.mebof-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.mebof-field label {
    color: #2f463e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.mebof-field input {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    border: 1px solid #bacac3;
    border-radius: 6px;
    background: #f9fbfa;
    color: #173429;
    font-size: 15px;
    line-height: 1.2;
    padding: 10px 12px;
}

.mebof-field input:focus {
    outline: 2px solid #8eb8ff;
    outline-offset: 2px;
    border-color: #2f6f9f;
    background: #ffffff;
}

.mebof-combobox {
    position: relative;
}

.mebof-field-destination .mebof-destination-clear {
    position: absolute;
    top: 50%;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #51615c;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.mebof-field-destination .mebof-destination-clear[hidden] {
    display: none;
}

.mebof-field-destination .mebof-destination-clear:hover {
    background: #edf2ef;
    color: #173429;
}

.mebof-field-destination .mebof-destination-clear:focus-visible {
    outline: 2px solid #2f6f9f;
    outline-offset: -2px;
}

.mebof-field-destination .mebof-combobox input[data-mebof-field="destination"] {
    padding-right: 46px;
}

.mebof-date-range-field {
    position: relative;
}

.mebof-date-trigger {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    border: 1px solid #bacac3;
    border-radius: 6px;
    background: #f9fbfa;
    color: #173429;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    padding: 10px 12px;
    text-align: left;
}

.mebof-date-trigger:focus {
    outline: 2px solid #8eb8ff;
    outline-offset: 2px;
}

.mebof-date-trigger[aria-invalid="true"] {
    outline: 2px solid #c44536;
    outline-offset: 2px;
}

.mebof-date-picker {
    position: absolute;
    z-index: 35;
    top: calc(100% + 8px);
    left: 50%;
    width: min(560px, calc(100vw - 24px));
    max-width: 560px;
    box-sizing: border-box;
    border: 1px solid #b8cbc2;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(21, 47, 38, 0.16);
    padding: 10px 14px 9px;
    transform: translateX(-50%);
}

.mebof-date-picker[hidden] {
    display: none;
}

.mebof-date-picker-head {
    height: 0;
    margin: 0;
    text-align: center;
}

.mebof-date-picker-head strong {
    display: none;
}

.mebof-date-nav,
.mebof-date-picker-actions button {
    border: 1px solid #cbd8d2;
    border-radius: 4px;
    background: #ffffff;
    color: #173429;
    cursor: pointer;
    font-weight: 800;
}

.mebof-date-nav {
    position: absolute;
    top: 10px;
    z-index: 2;
    width: 30px;
    height: 30px;
    font-size: 21px;
    line-height: 1;
}

.mebof-date-nav[data-mebof-date-prev] {
    left: 14px;
}

.mebof-date-nav[data-mebof-date-next] {
    right: 14px;
}

.mebof-date-calendars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mebof-calendar {
    min-width: 0;
}

.mebof-calendar-title {
    margin: 4px 0 9px;
    color: #173429;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.mebof-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
}

.mebof-calendar-weekday,
.mebof-calendar-day {
    min-height: 30px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1;
}

.mebof-calendar-weekday {
    display: grid;
    align-items: center;
    color: #66766f;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.mebof-calendar-day {
    border: 0;
    background: #f4f7f5;
    color: #173429;
    cursor: pointer;
    font-weight: 800;
}

.mebof-calendar-day:hover,
.mebof-calendar-day:focus {
    background: #e4f0de;
    outline: 2px solid #8eb8ff;
    outline-offset: 1px;
}

.mebof-calendar-day[disabled] {
    background: #f1f1f1;
    color: #a0a8a4;
    cursor: not-allowed;
}

.mebof-calendar-day.is-range {
    background: #dcefd4;
}

.mebof-calendar-day.is-start,
.mebof-calendar-day.is-end {
    background: #4b9e1f;
    color: #ffffff;
}

.mebof-date-picker-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 9px;
}

.mebof-date-picker-actions button {
    min-height: 30px;
    padding: 5px 10px;
}

.mebof-suggestions {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 236px;
    overflow: auto;
    border: 1px solid #b8cbc2;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(21, 47, 38, 0.16);
}

.mebof-suggestion {
    display: grid;
    gap: 2px;
    width: 100%;
    min-height: 38px;
    border: 0;
    border-bottom: 1px solid #eef3f0;
    background: #ffffff;
    color: #16362a;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    padding: 9px 12px;
}

.mebof-suggestion:hover,
.mebof-suggestion:focus,
.mebof-suggestion.is-active {
    outline: none;
    background: #eaf4f0;
}

.mebof-suggestion small {
    color: #66766f;
    font-size: 12px;
    line-height: 1.25;
}

.mebof-travellers-field {
    position: relative;
}

.mebof-travellers-trigger {
    display: flex;
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid #bacac3;
    border-radius: 6px;
    background: #f9fbfa;
    color: #173429;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    padding: 10px 12px;
    text-align: left;
}

.mebof-travellers-trigger:focus {
    outline: 2px solid #8eb8ff;
    outline-offset: 2px;
}

.mebof-travellers-trigger[aria-invalid="true"] {
    outline: 2px solid #c44536;
    outline-offset: 2px;
}

.mebof-travellers-chevron {
    flex: 0 0 auto;
    font-size: 20px;
    line-height: 1;
}

.mebof-travellers-panel {
    position: absolute;
    z-index: 45;
    top: calc(100% + 8px);
    right: 0;
    width: min(370px, calc(100vw - 24px));
    box-sizing: border-box;
    border: 1px solid #b8cbc2;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(21, 47, 38, 0.2);
    padding: 16px;
}

.mebof-travellers-panel[hidden],
.mebof-travellers-backdrop[hidden] {
    display: none;
}

.mebof-travellers-head,
.mebof-travellers-row,
.mebof-travellers-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.mebof-travellers-head {
    margin-bottom: 7px;
    color: #173429;
    font-size: 17px;
}

.mebof-travellers-head button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #173429;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.mebof-travellers-row {
    min-height: 58px;
    border-top: 1px solid #edf2ef;
}

.mebof-travellers-row > span:first-child {
    display: grid;
    gap: 2px;
}

.mebof-travellers-row small,
.mebof-travellers-actions small {
    color: #66766f;
    font-size: 12px;
    line-height: 1.3;
}

.mebof-stepper {
    display: grid;
    grid-template-columns: 44px 32px 44px;
    align-items: center;
    gap: 6px;
}

.mebof-stepper button {
    width: 44px;
    min-height: 44px;
    border: 1px solid #2f6f9f;
    border-radius: 7px;
    background: #ffffff;
    color: #1769aa;
    cursor: pointer;
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
}

.mebof-stepper button:focus,
.mebof-travellers-head button:focus,
.mebof-travellers-actions button:focus {
    outline: 2px solid #8eb8ff;
    outline-offset: 2px;
}

.mebof-stepper button[disabled] {
    border-color: #c9d3ce;
    color: #9aa7a1;
    cursor: not-allowed;
}

.mebof-stepper output {
    color: #173429;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
}

.mebof-child-ages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    border-top: 1px solid #edf2ef;
    padding: 12px 0 4px;
}

.mebof-child-ages[hidden] {
    display: none;
}

.mebof-child-age {
    display: grid;
    gap: 5px;
    color: #2f463e;
    font-size: 12px;
    font-weight: 700;
}

.mebof-child-age select {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    border: 1px solid #bacac3;
    border-radius: 6px;
    background: #ffffff;
    color: #173429;
    font-size: 14px;
    padding: 8px 9px;
}

.mebof-child-age select:focus {
    outline: 2px solid #8eb8ff;
    outline-offset: 2px;
}

.mebof-travellers-error {
    margin: 8px 0 0;
    color: #a52f24;
    font-size: 13px;
    font-weight: 700;
}

.mebof-travellers-actions {
    align-items: flex-end;
    border-top: 1px solid #edf2ef;
    margin-top: 12px;
    padding-top: 12px;
}

.mebof-travellers-actions button {
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    background: #197451;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    padding: 10px 16px;
}

.mebof-travellers-backdrop {
    display: none;
}

.mebof-actions {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.mebof-preferences {
    display: grid;
    gap: 12px;
}

.mebof-offers {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    color: #183b2d;
}

.mebof-offers input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 2px;
    accent-color: #197451;
}

.mebof-offers span {
    display: grid;
    gap: 2px;
}

.mebof-offers strong {
    font-size: 15px;
    line-height: 1.25;
}

.mebof-offers small {
    color: #66766f;
    font-size: 12px;
    line-height: 1.35;
}

.mebof-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    max-width: 360px;
    color: #202625;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.mebof-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mebof-switch i {
    position: relative;
    width: 54px;
    height: 30px;
    flex: 0 0 54px;
    border-radius: 999px;
    background: #858585;
    cursor: pointer;
    transition: background-color 160ms ease;
}

.mebof-switch i::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
    transition: transform 160ms ease;
}

.mebof-switch input:checked + i {
    background: #197451;
}

.mebof-switch input:checked + i::before {
    transform: translateX(24px);
}

.mebof-switch input:focus + i {
    outline: 2px solid #8eb8ff;
    outline-offset: 2px;
}

.mebof-submit {
    min-height: 48px;
    border: 0;
    border-radius: 6px;
    background: #febb02;
    color: #1f2c27;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
    padding: 13px 18px;
    box-shadow: 0 10px 18px rgba(166, 103, 10, 0.18);
}

.mebof-submit:hover,
.mebof-submit:focus {
    background: #f2a900;
    outline: 2px solid #8eb8ff;
    outline-offset: 2px;
}

.mebof-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.mebof-top-slot {
    max-width: 980px;
    margin: 12px auto 0;
}

.mebof-top-slot .mebof-shell {
    padding: 4px;
    border-radius: 6px;
    border: 4px solid #4b9e1f;
    background: #4b9e1f;
    box-shadow: 0 8px 18px rgba(35, 55, 48, 0.06);
}

.mebof-top-slot .mebof-copy {
    display: flex;
    align-items: center;
    min-height: 24px;
    margin: 0;
    padding: 1px 8px 5px;
}

.mebof-top-slot .mebof-copy h2 {
    flex: 0 0 auto;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.15;
}

.mebof-top-slot .mebof-copy p {
    display: none;
}

.mebof-top-slot .mebof-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(132px, 0.22fr);
    gap: 4px;
}

.mebof-top-slot .mebof-grid {
    grid-template-columns: minmax(180px, 1.45fr) minmax(230px, 1.25fr) minmax(185px, 0.85fr);
    gap: 4px;
}

.mebof-top-slot .mebof-field {
    min-height: 56px;
    box-sizing: border-box;
    gap: 2px;
    border-radius: 4px;
    background: #ffffff;
    padding: 7px 10px;
}

.mebof-top-slot .mebof-field label {
    color: #5d675f;
    font-size: 10px;
    line-height: 1;
}

.mebof-top-slot .mebof-field input {
    min-height: 30px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #1f2c27;
    font-size: 15px;
    font-weight: 700;
    padding: 0;
}

.mebof-top-slot .mebof-date-trigger,
.mebof-top-slot .mebof-travellers-trigger {
    min-height: 30px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #1f2c27;
    font-size: 15px;
    font-weight: 800;
    padding: 0;
}

.mebof-top-slot .mebof-date-picker {
    width: min(560px, calc(100vw - 24px));
    max-width: 560px;
}

.mebof-top-slot .mebof-actions {
    display: contents;
}

.mebof-top-slot .mebof-preferences {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    border-radius: 4px;
    background: #ffffff;
    padding: 7px 10px;
}

.mebof-top-slot .mebof-offers {
    align-items: center;
    gap: 7px;
}

.mebof-top-slot .mebof-offers input {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    margin-top: 0;
}

.mebof-top-slot .mebof-offers span {
    display: block;
}

.mebof-top-slot .mebof-offers strong {
    font-size: 14px;
}

.mebof-top-slot .mebof-offers small {
    display: none;
}

.mebof-top-slot .mebof-switch {
    gap: 8px;
    max-width: none;
    font-size: 14px;
}

.mebof-top-slot .mebof-switch i {
    width: 44px;
    height: 24px;
    flex-basis: 44px;
}

.mebof-top-slot .mebof-switch i::before {
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
}

.mebof-top-slot .mebof-switch input:checked + i::before {
    transform: translateX(20px);
}

.mebof-top-slot .mebof-submit {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-height: 56px;
    border-radius: 4px;
    background: #febb02;
    color: #1f2c27;
    font-size: 18px;
    padding: 10px 16px;
    box-shadow: none;
}

.mebof-top-slot .mebof-submit:hover,
.mebof-top-slot .mebof-submit:focus {
    background: #f2a900;
}

.mebof-date-field.mebof-date-ready,
.mebof-date-field.mebof-date-started {
    box-shadow: inset 0 -2px 0 rgba(75, 158, 31, 0.72);
}

@media (max-width: 980px) {
    .mebof-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mebof-field-destination {
        grid-column: 1 / -1;
    }

    .mebof-top-slot .mebof-form {
        grid-template-columns: 1fr;
    }

    .mebof-top-slot .mebof-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }

    .mebof-top-slot .mebof-field {
        min-height: 52px;
        padding: 6px 9px;
    }

    .mebof-top-slot .mebof-field-destination {
        grid-column: 1 / -1;
    }

    .mebof-top-slot .mebof-date-range-field {
        grid-column: 1;
    }

    .mebof-top-slot .mebof-travellers-field {
        grid-column: 2;
    }

    .mebof-top-slot .mebof-field input {
        min-height: 32px;
        font-size: 14px;
    }

    .mebof-top-slot .mebof-date-trigger,
    .mebof-top-slot .mebof-travellers-trigger {
        min-height: 32px;
        font-size: 14px;
    }

    .mebof-date-picker {
        left: 0;
        width: min(560px, calc(100vw - 24px));
        max-width: 560px;
        transform: none;
    }

    .mebof-top-slot .mebof-preferences {
        grid-column: 1;
        min-height: 36px;
        padding: 6px 9px;
    }

    .mebof-top-slot .mebof-submit {
        grid-column: 1;
        grid-row: auto;
        min-height: 48px;
        font-size: 17px;
    }
}

@media (max-width: 640px) {
    .mebof-shell {
        padding: 14px;
    }

    .mebof-top-slot {
        margin-top: 8px;
        padding: 0 8px;
    }

    .mebof-top-slot .mebof-shell {
        padding: 4px;
    }

    .mebof-top-slot .mebof-copy {
        display: flex;
    }

    .mebof-top-slot .mebof-copy h2 {
        font-size: 18px;
    }

    .mebof-top-slot .mebof-copy p {
        display: none;
    }

    .mebof-grid,
    .mebof-actions {
        grid-template-columns: 1fr;
    }

    .mebof-top-slot .mebof-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }

    .mebof-top-slot .mebof-field-destination {
        grid-column: 1 / -1;
    }

    .mebof-top-slot .mebof-date-range-field {
        grid-column: 1 / -1;
    }

    .mebof-top-slot .mebof-travellers-field {
        grid-column: 1 / -1;
    }

    .mebof-top-slot .mebof-preferences {
        grid-column: 1;
        min-height: 36px;
        padding: 6px 9px;
    }

    .mebof-top-slot .mebof-field input {
        min-height: 32px;
    }

    .mebof-top-slot .mebof-date-trigger,
    .mebof-top-slot .mebof-travellers-trigger {
        min-height: 32px;
    }

    .mebof-travellers-backdrop {
        position: fixed;
        z-index: 44;
        inset: 0;
        display: block;
        background: rgba(12, 28, 22, 0.42);
    }

    .mebof-travellers-panel {
        position: fixed;
        z-index: 45;
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
        border-radius: 16px 16px 0 0;
        padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    }

    .mebof-child-ages {
        grid-template-columns: 1fr;
    }

    html.mebof-modal-open {
        overflow: hidden;
    }

    .mebof-date-picker {
        left: 50%;
        width: min(326px, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
        padding: 10px 12px 9px;
        transform: translateX(-50%);
    }

    .mebof-date-calendars {
        grid-template-columns: 1fr;
    }

    .mebof-calendar-weekday,
    .mebof-calendar-day {
        min-height: 32px;
    }

    .mebof-top-slot .mebof-preferences {
        gap: 6px 10px;
    }

    .mebof-top-slot .mebof-switch {
        width: auto;
        flex: 1 1 150px;
        justify-content: flex-start;
        font-size: 13px;
    }

    .mebof-top-slot .mebof-offers strong {
        font-size: 13px;
    }

    .mebof-top-slot .mebof-switch i {
        width: 40px;
        height: 22px;
        flex-basis: 40px;
    }

    .mebof-top-slot .mebof-switch i::before {
        width: 16px;
        height: 16px;
    }

    .mebof-top-slot .mebof-switch input:checked + i::before {
        transform: translateX(18px);
    }

    .mebof-submit {
        width: 100%;
    }

    .mebof-top-slot .mebof-submit {
        grid-column: 1;
        grid-row: auto;
        min-height: 46px;
        font-size: 16px;
    }
}
