/* Checkout-only presentation. Business logic and accessibility state remain in PHP/JS. */

.vtemnotu-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.vtemnotu-checkout-consents {
    margin-bottom: 20px;
    padding: 15px;
    color: #fff;
    background: #222;
    border: 1px solid #ffde00;
    border-radius: 10px;
}

.vtemnotu-checkout-consents legend {
    padding: 0 6px;
    font-weight: 700;
}

.vtemnotu-checkout-consents__hint {
    margin: 0 0 12px;
}

.vtemnotu-consent-row {
    margin: 0 0 12px !important;
}

.vtemnotu-consent-row:last-child {
    margin-bottom: 0 !important;
}

.vtemnotu-checkout-consents .checkbox {
    display: flex !important;
    align-items: flex-start !important;
    min-height: 44px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.45;
}

.vtemnotu-checkout-consents input[type="checkbox"] {
    flex: 0 0 auto;
    width: 22px !important;
    height: 22px !important;
    margin: 0 12px 0 0 !important;
    cursor: pointer !important;
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
}

.vtemnotu-checkout-consents .vtemnotu-legal-link {
    color: #ffde00;
    text-decoration: underline;
}

.vtemnotu-checkout-consents input[type="checkbox"]:focus-visible,
.vtemnotu-checkout-consents .vtemnotu-legal-link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

#vtemnotu_custom_checkout_field {
    margin-bottom: 25px;
}

.custom-qty-checkout {
    margin-bottom: 20px;
}

.custom-qty-checkout > label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.custom-qty-checkout input.qty {
    display: block !important;
    width: 80px !important;
    height: 45px !important;
    margin-top: 5px !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    font-size: 18px !important;
    text-align: center !important;
}

.woocommerce-billing-fields h3 {
    display: none !important;
}

#vtemnotu_custom_checkout_field h3 {
    display: block !important;
}

#visit_date,
#visit_date_display {
    cursor: pointer !important;
    background-color: #fff !important;
}

#place_order {
    width: 100% !important;
    padding: 15px 30px !important;
    color: #000 !important;
    background-color: #ffde00 !important;
    border: 0 !important;
    border-radius: 50px !important;
    cursor: pointer;
    font-size: 20px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

.flatpickr-calendar.hasTime {
    display: flex !important;
    flex-direction: row !important;
    width: 415px !important;
    max-width: 98vw !important;
}

.flatpickr-innerContainer {
    flex: 1;
}

.flatpickr-time {
    display: none !important;
}

.custom-time-picker {
    display: flex !important;
    flex-direction: column !important;
    width: 100px !important;
    min-width: 100px !important;
    max-height: 280px;
    padding: 5px;
    overflow-y: auto;
    background: #f9f9f9;
    border-left: 1px solid #eee;
}

.time-slot {
    width: 100%;
    padding: 8px 0;
    margin: 2px 0;
    appearance: none;
    color: #333;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    text-align: center;
}

.time-slot:hover {
    background: #eee;
}

.time-slot.selected {
    background: #ffde00 !important;
    border-color: #e6c900;
    font-weight: 700;
}

.time-slot.slot-disabled {
    cursor: not-allowed;
    opacity: .3;
    text-decoration: line-through;
}

.remaining-info {
    padding: 10px;
    background: #fff;
    border-top: 1px solid #eee;
    font-size: 13px;
    text-align: center;
}

.time-slot:focus-visible {
    outline: 2px solid #000;
    outline-offset: -2px;
}

.flatpickr-day[role="button"]:focus-visible {
    outline: 3px solid #000;
    outline-offset: -3px;
}

.flatpickr-calendar.open {
    z-index: 9999999999 !important;
}

.flatpickr-calendar:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px #ffde00;
}

.promo-wrapper {
    margin-bottom: 20px;
    padding: 15px;
    color: #fff;
    background: #222;
    border-radius: 10px;
}

.show-promo-input {
    min-height: 44px;
    padding: 8px 12px;
    color: #ffde00;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 5px;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.show-promo-input:focus-visible,
#ajax_coupon_code:focus-visible,
#apply_ajax_coupon:focus-visible {
    outline: 3px solid #ffde00;
    outline-offset: 2px;
}

.promo-input-group {
    margin-top: 10px;
}

.promo-input-group[hidden] {
    display: none;
}

.promo-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.promo-input-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#ajax_coupon_code {
    box-sizing: border-box;
    min-width: 0;
    min-height: 44px;
    padding: 8px;
    border: 2px solid #ffde00;
    border-radius: 5px;
    font: inherit;
}

#ajax_coupon_code[aria-invalid="true"] {
    border-color: #ff6b6b;
}

#apply_ajax_coupon {
    min-height: 44px;
    padding: 8px 15px;
    color: #111;
    background: #ffde00;
    border: 2px solid #ffde00;
    border-radius: 5px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

#apply_ajax_coupon:disabled {
    cursor: wait;
    opacity: .7;
}

.promo-code-status {
    min-height: 1.5em;
    margin-top: 8px;
}

.promo-code-status.is-error {
    color: #ffb3b3;
}

.promo-code-status.is-success {
    color: #fff;
    font-weight: 700;
}

@media screen and (max-width: 450px) {
    .flatpickr-calendar.hasTime {
        width: 320px !important;
    }

    .flatpickr-innerContainer,
    .flatpickr-days,
    .dayContainer {
        width: 240px !important;
        min-width: 240px !important;
    }

    .flatpickr-day {
        max-width: 32px !important;
        height: 32px !important;
        line-height: 32px !important;
    }

    .custom-time-picker {
        width: 80px !important;
        min-width: 80px !important;
    }
}
