/*
 * First Cradle Quick Booking Modal v1
 */

.fc-quick-book-btn {
    width: 100%;
    cursor: pointer;
}

.fc-request-mode-card
.add_to_cart_button:not(.fc-quick-book-btn),
.fc-request-mode-card
.fc-add-to-cart {
    display: none !important;
}

.fc-qb-modal[hidden] {
    display: none !important;
}

.fc-qb-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.fc-qb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 31, 48, .58);
    backdrop-filter: blur(2px);
}

.fc-qb-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(920px, 100%);
    height: min(90vh, 900px);
    max-height: 90vh;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(9, 30, 66, .3);
}

.fc-qb-dialog-head {
    display: flex;
    min-height: 66px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px 12px 20px;
    border-bottom: 1px solid #e5ebf1;
    background: #ffffff;
}

.fc-qb-dialog-title-wrap {
    min-width: 0;
}

.fc-qb-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: #6b778c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
}

.fc-qb-dialog-title {
    display: block;
    overflow: hidden;
    color: #172b4d;
    font-size: 17px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-qb-close {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f4f8;
    color: #24364b;
    font-size: 29px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.fc-qb-close:hover,
.fc-qb-close:focus {
    background: #e7edf4;
    color: #14263b;
}

.fc-qb-loading {
    display: flex;
    min-height: 100px;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #667085;
    font-size: 14px;
}

.fc-qb-frame {
    display: none;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    border: 0;
    background: #f7f9fc;
}

.fc-qb-modal.is-loaded
.fc-qb-loading {
    display: none;
}

.fc-qb-modal.is-loaded
.fc-qb-frame {
    display: block;
}

body.fc-qb-open {
    overflow: hidden !important;
}

.woocommerce ul.products li.product
.fc-quick-book-btn,
.woocommerce-page ul.products li.product
.fc-quick-book-btn {
    margin-top: 10px;
    border-radius: 8px;
    font-weight: 700;
}

@media (max-width: 700px) {

    .fc-qb-modal {
        align-items: flex-end;
        padding: 0;
    }

    .fc-qb-dialog {
        width: 100%;
        height: 94dvh;
        max-height: 94dvh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 18px 18px 0 0;
    }

    .fc-qb-dialog-head {
        min-height: 60px;
        padding: 10px 12px 10px 16px;
    }

    .fc-qb-dialog-title {
        font-size: 15px;
    }

    .fc-qb-close {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
}

/*
 * v1.1 fallback:
 * hide any older loop CTA that is still injected by another
 * theme/plugin layer inside a Request Mode product card.
 * The authoritative button remains .fc-quick-book-btn.
 */
.fc-request-mode-card
a.fc-br-loop-button,
.fc-request-mode-card
a.add_to_cart_button,
.fc-request-mode-card
a.product_type_simple,
.fc-request-mode-card
a.product_type_variable,
.fc-request-mode-card
button.add_to_cart_button {
    display: none !important;
}

.fc-request-mode-card
.fc-quick-book-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

