/* === CARD + LAYOUT ===================================== */

#sdtb-booking-app.sdtb-booking-card {
    border-radius: 18px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
    background: #ffffff;
}

/* Sticky on desktop only */
#sdtb-booking-app.sdtb-sticky {
    position: sticky;
    top: 120px;
}

@media (max-width: 1024px) {
    #sdtb-booking-app.sdtb-sticky {
        position: static;
        top: auto;
    }
}

.sdtb-booking-title {
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.35rem;
}

.sdtb-intro-text {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 0.9rem;
}

.sdtb-resident-note {
    font-size: 0.78rem;
    background: #fef9c3;
    color: #854d0e;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.9rem;
}

/* === FIELDS ============================================= */

/* === QUANTITY CONTROLS ================================= */

.sdtb-qty-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 0.1rem;
}

.sdtb-qty-control .sdtb-qty-input {
    border: none;
    border-radius: 0;
    text-align: center;
    flex: 1 1 auto;
    padding: 0.4rem 0;
    box-shadow: none !important;
}

.sdtb-qty-control .sdtb-qty-input:focus {
    outline: none;
    box-shadow: none;
}

/* Minus / plus buttons */
.sdtb-qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    color: #0f172a;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.sdtb-qty-btn:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

/* Hide browser default spinner for number inputs */
.sdtb-qty-input::-webkit-outer-spin-button,
.sdtb-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.sdtb-qty-input[type=number] {
    -moz-appearance: textfield;
}


.sdtb-field {
    margin-bottom: 0.95rem;
}

.sdtb-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
    color: #0f172a;
}

.sdtb-label-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #fff7ed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #fb923c;
}

#sdtb-booking-app .sdtb-input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    line-height: 1.2;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    background-color: #ffffff;
}

#sdtb-booking-app .sdtb-input--readonly {
    background-color: #f8fafc;
    cursor: default;
}

#sdtb-booking-app .sdtb-input:focus {
    outline: none;
    border-color: #fb923c;
    box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.4);
}

.sdtb-helper-text {
    font-size: 0.74rem;
    color: #6b7280;
    margin-top: 0.3rem;
}

/* Error highlight */
.sdtb-field--error .sdtb-input {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35);
}

/* Validation chip */
.sdtb-validation-message {
    display: none;
    font-size: 0.75rem;
    color: #b91c1c;
    background: #fee2e2;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    text-align: center;
    margin-bottom: 0.6rem;
}

/* === PRICE SUMMARY ====================================== */

.sdtb-price-breakdown {
    border-radius: 14px;
    background: #f8fafc;
    padding: 0.75rem 0.9rem;
    border: 1px solid #e5e7eb;
}

.sdtb-price-title {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.sdtb-price-lines p {
    font-size: 0.8rem;
    margin: 0.1rem 0;
}

.sdtb-price-total {
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* === BUTTON ============================================= */

.sdtb-book-button {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(90deg, #f97316, #fb923c);
    color: #ffffff;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.sdtb-book-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(249, 115, 22, 0.4);
}

.sdtb-book-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Footer note */
.sdtb-footer-note {
    font-size: 0.74rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.4rem;
}

/* Mobile tweaks */
@media (max-width: 767px) {
    #sdtb-booking-app.sdtb-booking-card {
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
        border-radius: 14px;
    }
}


/* =========================
   CART ADD-ONS SECTION
   ========================= */

.sdtb-add-ons-wrapper {
    margin-top: 2.5rem;
    margin-bottom: 3rem;
    padding: 1.75rem 1.75rem 2rem;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 45px rgba(0,0,0,0.06);
}

.sdtb-add-ons-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: #111827;
}

.sdtb-add-ons-subtitle {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.sdtb-add-ons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.sdtb-add-on-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    background: #f9fafb;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sdtb-add-on-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(15,23,42,0.12);
    border-color: #f97316; /* Poko orange vibe */
}

.sdtb-add-on-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.sdtb-add-on-body {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sdtb-add-on-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #111827;
}

.sdtb-add-on-desc {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #4b5563;
}

.sdtb-add-on-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.4rem;
    margin-bottom: 0.6rem;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.sdtb-add-on-price {
    font-weight: 700;
    color: #f97316;
}

.sdtb-add-on-qty-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.sdtb-add-on-qty-input {
    width: 3.2rem;
    padding: 0.25rem 0.35rem;
    font-size: 0.8rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    text-align: center;
}

.sdtb-add-on-qty-input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 1px rgba(249,115,22,0.4);
}

.sdtb-add-on-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: #16a34a;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.sdtb-add-on-btn:hover {
    background: #15803d;
    box-shadow: 0 10px 25px rgba(22,163,74,0.4);
    transform: translateY(-1px);
}

.sdtb-add-on-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Mobile tightening */
@media (max-width: 640px) {
    .sdtb-add-ons-wrapper {
        padding: 1.25rem 1.1rem 1.5rem;
        border-radius: 14px;
    }
}



/* ================================
   Cart Add-on Promo Note
   ================================ */
.sdtb-addons-promo-note {
    margin: 1.5rem 0 0;
    padding: 0.75rem 1rem;
    background: #ffdcff;
    border: 1px solid #ffb3b3;
    border-radius: 999px;
    font-size: 0.9rem;
    text-align: center;
    color: #a11f1f;
}

.sdtb-addons-badge {
    display: inline-block;
    margin-right: 0.5rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: #e3262f;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sdtb-addons-promo-note i {
    margin-left: 0.35rem;
}

/* ================================
   Cart Add-on Cards Layout
   ================================ */
.sdtb-add-ons {
    margin: 2rem auto 0 auto;
    max-width: 1080px;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f3f3;
}

.sdtb-addons-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.sdtb-addons-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.25rem;
}

.sdtb-add-ons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Each card */
.sdtb-add-on-card {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #ffe0c2;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    padding: 1rem 1.25rem;
    flex: 1 1 320px;
    max-width: 360px;
}

.sdtb-add-on-media {
    flex: 0 0 80px;
}

.sdtb-add-on-image {
    border-radius: 12px;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.sdtb-add-on-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sdtb-add-on-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.sdtb-add-on-price {
    font-weight: 600;
    color: #e96624;
    margin: 0;
}

.sdtb-add-on-desc {
    font-size: 0.85rem;
    color: #555;
    margin: 0.1rem 0 0.4rem;
}

/* Qty + button row */
.sdtb-add-on-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.sdtb-add-on-qty-label {
    font-size: 0.8rem;
    color: #666;
    margin-right: 0.25rem;
}

.sdtb-add-on-qty {
    width: 60px;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 0.85rem;
}

.sdtb-add-on-btn {
    border: none;
    border-radius: 999px;
    padding: 0.4rem 1.2rem;
    background: #ff7a00;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.sdtb-add-on-btn:hover {
    background: #ff6500;
    transform: translateY(-1px);
}

.sdtb-add-on-btn:active {
    transform: translateY(0);
}

/* Mobile stacking */
@media (max-width: 768px) {
    .sdtb-add-ons {
        padding-inline: 1rem;
    }

    .sdtb-add-ons-grid {
        flex-direction: column;
    }

    .sdtb-add-on-card {
        max-width: 100%;
    }

    .sdtb-addons-promo-note {
        border-radius: 12px;
    }
}





/* ==============================
   CHECKOUT – TWO COLUMN LAYOUT
   ============================== */

.sdtb-checkout-shell {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.sdtb-checkout-main {
    flex: 1 1 55%;
    min-width: 0;
}

.sdtb-checkout-summary {
    flex: 1 1 35%;
    min-width: 280px;
}

/* Make WC "Your order" box match the app vibe */
.sdtb-checkout-summary #order_review {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 16px 45px rgba(0,0,0,0.06);
    padding: 1.75rem 1.75rem 2rem;
}

.sdtb-checkout-summary #order_review_heading {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* MOBILE – stack columns */
@media (max-width: 900px) {
    .sdtb-checkout-shell {
        flex-direction: column;
    }
    .sdtb-checkout-main,
    .sdtb-checkout-summary {
        flex: 1 1 100%;
    }
}

/* ==============================
   WAIVER UI
   ============================== */

.sdtb-waiver-info {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: #fff7e8;
    border: 1px solid #ffd59f;
}

.sdtb-waiver-heading {
    margin: 0 0 .35rem;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sdtb-waiver-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #ff7b00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .8rem;
}

.sdtb-waiver-copy {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.sdtb-waiver-open {
    margin-left: .5rem;
    border: none;
    background: none;
    color: #ff7b00;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    gap: .35rem;
    align-items: center;
}

.sdtb-waiver-open i {
    font-size: .9rem;
}

/* Make the waiver checkbox line more visible */
.woocommerce-billing-fields .sdtb-waiver-checkbox-wrap {
    margin-top: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: #fff9f3;
    border: 1px dashed #ffb68a;
}

/* ==============================
   WAIVER MODAL
   ============================== */
.sdtb-waiver-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none; /* hidden by default */
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.55);
}

.sdtb-waiver-modal--open {
    display: flex;
}

.sdtb-waiver-dialog {
    background: #fff;
    border-radius: 18px;
    max-width: 960px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.sdtb-waiver-backdrop {
    position: absolute;
    inset: 0;
    /* transparent overlay layer */
}

.sdtb-waiver-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: none;
    background: transparent;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.sdtb-waiver-title {
    margin: 0;
    padding: 1.25rem 1.75rem 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.sdtb-waiver-body {
    flex: 1;
    padding: 0 1.75rem 1rem;
}

#sdtb-waiver-frame {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 1px solid #eee;
    border-radius: 10px;
}

.sdtb-waiver-footer {
    padding: 0.75rem 1.75rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    justify-content: space-between;
    border-top: 1px solid #f3f3f3;
}

.sdtb-waiver-note-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: #ffe5e5;
    color: #b32020;
    font-size: 0.85rem;
    font-weight: 600;
}

.sdtb-waiver-actions {
    display: inline-flex;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .sdtb-waiver-dialog {
        max-height: 95vh;
    }

    .sdtb-waiver-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .sdtb-waiver-actions {
        justify-content: flex-end;
    }
}










/* === Waiver modal layout tweaks === */

/* .sdtb-waiver-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
} */

/* .sdtb-waiver-dialog {
    background: #fff;
    border-radius: 18px;
    max-width: 960px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
} */

/* .sdtb-waiver-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: none;
    background: transparent;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
} */

/* .sdtb-waiver-title {
    margin: 0;
    padding: 1.25rem 1.75rem 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
} */

/* PDF area fills most of the dialog */
/* .sdtb-waiver-body {
    flex: 1;
    padding: 0 1.75rem 1rem;
}

#sdtb-waiver-frame {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 1px solid #eee;
    border-radius: 10px;
} */

/* Footer with red pill + buttons aligned */
/* .sdtb-waiver-footer {
    padding: 0.75rem 1.75rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    justify-content: space-between;
    border-top: 1px solid #f3f3f3;
}

.sdtb-waiver-note-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: #ffe5e5;
    color: #b32020;
    font-size: 0.85rem;
    font-weight: 600;
} */

/* .sdtb-waiver-actions {
    display: inline-flex;
    gap: 0.5rem;
} */

/* Mobile: stack content a bit tighter */
/* @media (max-width: 768px) {
    .sdtb-waiver-dialog {
        max-height: 95vh;
    }

    .sdtb-waiver-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .sdtb-waiver-actions {
        justify-content: flex-end;
    }
} */
