﻿/* ---------- Helpers ---------- */
.muted-hint {
    color: #6c757d;
    font-size: 0.95rem;
}

/* ---------- Time Cards ---------- */
.time-section {
    margin-top: 0.75rem;
}

.time-section-title {
    font-weight: 700;
    margin: 0.5rem 0;
    color: #1f2a37;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 992px) {
    .time-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .time-grid {
        grid-template-columns: 1fr;
    }
}

.time-card {
    width: 100%;
    text-align: left;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    padding: 14px;
    cursor: pointer;
    transition: transform 0.06s ease, border-color 0.06s ease, box-shadow 0.06s ease;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.time-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
}

.time-card.selected {
    border-color: #7EACED;
    background: #7EACED;
}

.time-card.selected .time-card-sub {
    color: rgba(0, 0, 0, 0.85);
}

.time-card.selected .time-card-line {
    color: rgba(0, 0, 0, 0.95);
}

.time-card:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #f8fafc;
}

.time-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.time-card-time {
    font-weight: 800;
    font-size: 1.2rem;
}

.time-card-meta {
    margin-top: 10px;
}

.time-card-line {
    font-weight: 600;
    color: #1f2a37;
}

.time-card-sub {
    margin-top: 4px;
    color: #6b7280;
    font-size: 0.9rem;
}

.time-card-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.time-card-badge.soldout {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #e5e7eb;
}

/* ---------- Upgrade Panel ---------- */
.upgrade-panel {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.upgrade-header {
    background: #f3f4f6;
    font-weight: 800;
    padding: 12px 16px;
}

.upgrade-body {
    padding: 16px;
}

.upgrade-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.upgrade-title {
    font-size: 1.15rem;
    font-weight: 800;
}

.upgrade-subtitle {
    font-weight: 500;
    color: #6b7280;
}

.upgrade-price {
    font-weight: 900;
    font-size: 1.15rem;
}

.upgrade-notes {
    margin-top: 10px;
    color: #374151;
    font-size: 0.95rem;
}

.upgrade-actions {
    margin-top: 14px;
}

.upgrade-checkbox {
    margin-top: 14px;
}

.upgrade-panel.pulse {
    animation: upgradePulse 1.2s ease-in-out;
}

@keyframes upgradePulse {
    0% {
        box-shadow: 0 0 0 rgba(13,110,253,0);
    }

    30% {
        box-shadow: 0 0 0 6px rgba(13,110,253,0.15);
    }

    60% {
        box-shadow: 0 0 0 10px rgba(13,110,253,0.10);
    }

    100% {
        box-shadow: 0 0 0 rgba(13,110,253,0);
    }
}

/* ---------- Buttons ---------- */
.btn-outline-primary {
    color: #03306d;
    border-color: #03306d;
}

    .btn-outline-primary:hover {
        color: #FFF;
        background-color: #03306d;
        border-color: #03306d;
    }

/* ---------- Sticky Summary (single source of truth) ---------- */
/* Desktop/base */
.sticky-summary {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 12px 0;
}

.sticky-summary-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sticky-summary-left {
    min-width: 0;
}

.sticky-summary-line {
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-strong {
    font-weight: 800;
}

.sticky-dot {
    margin: 0 8px;
    color: #9ca3af;
}

.sticky-summary-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sticky-total {
    font-size: 1.05rem;
}

.sticky-summary-lines {
    display: inline;
}

.sticky-summary-lines .sticky-summary-line {
    display: inline;
    white-space: nowrap;
}

.sticky-summary-lines .sticky-summary-line + .sticky-summary-line::before {
    content: " • ";
    margin: 0 8px;
    color: #9ca3af; /* matches sticky-dot */
}


/* Mobile/tablet: true bottom bar */
@media (max-width: 992px) {
    .sticky-summary {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        padding: 10px 12px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }

    .sticky-summary-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        max-width: 960px;
        margin: 0 auto;
    }

    .sticky-summary-line {
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
    }

    .sticky-summary-right {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .sticky-summary-right .btn {
        min-height: 48px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .sticky-summary-lines {
        display: block;
    }

    .sticky-summary-lines .sticky-summary-line {
        display: block;
        white-space: normal;
    }

    .sticky-summary-lines .sticky-summary-line + .sticky-summary-line::before {
        content: "";
        margin: 0;
    }

}

/* Reserve space so fixed bar doesn't cover content */
#checkoutWizard {
    padding-bottom: 96px;
}

@media (max-width: 992px) {
    #checkoutWizard {
        padding-bottom: 170px;
    }
}

/* ---------- Mobile touch improvements for Syncfusion inputs ---------- */
@media (max-width: 992px) {
    /* Make wrappers taller */
    #checkoutWizard .e-control-wrapper,
    #checkoutWizard .e-input-group,
    #checkoutWizard .e-float-input,
    #checkoutWizard .e-float-input.e-control-wrapper {
        min-height: 56px;
    }
    /* Input text sizing + padding (18px prevents iOS zoom) */
    #checkoutWizard .e-input-group input.e-input,
    #checkoutWizard .e-float-input input,
    #checkoutWizard .e-dropdownlist input.e-input,
    #checkoutWizard .e-date-wrapper input.e-input {
        font-size: 18px;
        padding-top: 16px;
        padding-bottom: 16px;
    }
    /* Icon/caret/calendar tap targets */
    #checkoutWizard .e-input-group-icon,
    #checkoutWizard .e-icons.e-input-group-icon,
    #checkoutWizard .e-ddl-icon,
    #checkoutWizard .e-date-icon {
        min-width: 56px;
        font-size: 20px;
    }
    /* Custom class you’re already applying to dropdowns */
    /* Keep height large and align text vertically without fighting font-size */
    #checkoutWizard .touch-control.e-control-wrapper,
    #checkoutWizard .touch-control .e-control-wrapper,
    #checkoutWizard .touch-control.e-input-group,
    #checkoutWizard .touch-control .e-input-group {
        min-height: 60px;
    }

    #checkoutWizard .touch-control input.e-input,
    #checkoutWizard .touch-control .e-input-group input.e-input {
        height: 60px;
        line-height: 60px; /* vertical centering */
        padding: 0 16px;
        font-size: 18px; /* single source of truth */
    }

    #checkoutWizard .touch-control .e-input-group-icon,
    #checkoutWizard .touch-control .e-ddl-icon,
    #checkoutWizard .touch-control .e-date-icon {
        min-width: 60px;
        height: 60px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
    }

    #checkoutWizard .touch-control.e-date-wrapper .e-input-group,
    #checkoutWizard .touch-control .e-date-wrapper .e-input-group {
        display: flex;
        align-items: center;
        min-height: 60px;
    }

    #checkoutWizard .touch-control.e-date-wrapper input.e-input,
    #checkoutWizard .touch-control .e-date-wrapper input.e-input {
        height: 60px;
        line-height: normal; /* important: don't force text to the top */
        padding: 0 16px; /* matches dropdown feel */
        display: flex;
        align-items: center;
        font-size: 18px; /* prevents iOS zoom */
    }

    #checkoutWizard .touch-control.e-date-wrapper .e-date-icon,
    #checkoutWizard .touch-control .e-date-wrapper .e-date-icon {
        height: 60px;
        min-width: 60px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Dropdown popup: use most of the screen width (helps long labels) */
    .e-popup.e-ddl.e-popup-open {
        /* DO NOT force fixed */
        left: 12px !important;
        width: calc(100vw - 24px) !important;
        max-width: none !important;
        box-sizing: border-box;
    }
    /* List items: allow wrapping + larger tap targets */
    .e-popup.e-ddl.e-popup-open .e-list-item {
        white-space: normal !important;
        line-height: 1.2;
        padding: 14px 14px;
        min-height: 54px;
        display: flex;
        align-items: center;
        font-size: 18px;
    }

    .e-popup.e-ddl.e-popup-open .e-list-item .e-list-text {
        white-space: normal !important;
    }
}