:root {
    --pl-font-small: 12px; /* old 8px / 9px */
    --pl-font-base: 14px;  /* old 10px / 11px */
}

.tb-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.tb-modal.is-open {
    display: flex
}

.tb-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(25, 27, 28, .58)
}

.tb-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .25)
}

.tb-modal-header {
    display: flex;
    align-items: center;
    gap: 12px
}

.tb-modal-back {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f5f3f1
}

.tb-modal-header h2 {
    font-size: 27px;
    margin: 0
}

.tb-modal-header>span {
    margin-left: auto;
    font-size: var(--pl-font-base);
    color: var(--ink-500)
}

.tb-date-strip {
    display: grid;
    grid-template-columns: repeat(7, 1fr) 66px;
    gap: 6px;
    margin-top: 24px;
    overflow: auto
}

.tb-date-card {
    border: 1px solid #ddd7d2;
    background: #fff;
    border-radius: 10px;
    padding: 10px 6px;
    min-height: 74px;
    font-size: var(--pl-font-base);
}

.tb-date-card strong,
.tb-date-card span,
.tb-date-card small {
    display: block
}

.tb-date-card small {
    font-size: var(--pl-font-small);
    color: var(--ink-400)
}

.tb-date-card.is-selected {
    border-color: var(--orange-500);
    background: #fff4eb
}

.tb-time-options {
    display: grid;
    gap: 8px;
    margin-top: 22px
}

.tb-time-option {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #eee7e2;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer
}

.tb-time-option input {
    display: none
}

.tb-time-option i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #322034
}

.tb-time-option.is-selected i {
    box-shadow: inset 0 0 0 2px #fff;
    background: #322034
}

.tb-time-option small {
    margin-left: auto;
    color: var(--ink-500)
}

.tb-modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 26px
}

.tb-modal-footer .btn {
    min-width: 180px
}

.booking-flow-page,
.booking-auth-page,
.static-checkout-page {
    min-height: calc(100vh - var(--header-h));
    background: #fff
}

.booking-flow-container,
.checkout-container {
    width: min(1120px, calc(100% - 40px));
    margin: auto;
    padding: 48px 0 130px
}

.booking-flow-header {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 12px
}

.booking-flow-header h1 {
    font-size: 26px;
    margin: 0 0 4px
}

.booking-flow-header p {
    font-size: var(--pl-font-base);
    color: var(--ink-500);
    margin: 0
}

.booking-discount,
.booking-date-summary {
    border: 1px solid #ddd7d2;
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px
}

.booking-date-summary {
    margin: 20px 0 16px
}

.ticket-options {
    display: grid;
    gap: 14px
}

.ticket-option {
    border: 1px solid #ddd7d2;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.ticket-kicker {
    font-size: var(--pl-font-small);
    font-weight: 900;
    color: var(--orange-600)
}

.ticket-option h2 {
    font-size: 17px;
    margin: 6px 0
}

.ticket-option p {
    font-size: var(--pl-font-base);
    color: var(--ink-500)
}

.ticket-qty {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f2f1f5;
    border-radius: 14px;
    padding: 6px 10px
}

.ticket-qty button {
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    font-size: 20px
}

.booking-bottom-bar,
.checkout-bottom-bar,
.booking-auth-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: #fff;
    border-top: 1px solid #e1dcd7;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px max(24px, calc((100vw - 1120px)/2))
}

.booking-order-details {
    border: 1px solid #ddd7d2;
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px
}

.booking-bottom-total {
    display: flex;
    align-items: center;
    gap: 18px
}

.booking-auth-page {
    display: grid;
    place-items: center;
    padding: 50px 20px 120px;
    background: linear-gradient(180deg, #fff, #fffaf7)
}

.auth-card {
    width: min(430px, 100%);
    background: #fff;
    border: 1px solid #eee7e2;
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow-md)
}

.auth-card-top {
    display: flex;
    justify-content: space-between
}

.auth-mia {
    height: 86px;
    margin: 10px auto 0
}

.auth-card h1 {
    font-size: 30px;
    margin: 6px 0
}

.auth-card>p {
    font-size: var(--pl-font-small);
    color: var(--ink-500)
}

.auth-primary,
.auth-option {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    font-weight: 850
}

.auth-primary {
    border: 0;
    background: linear-gradient(135deg, #fb9332, #e65a1f);
    color: #fff
}

.auth-option {
    border: 1px solid #ddd7d2;
    background: #f8f7f8
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    color: #aaa
}

.auth-divider:before,
.auth-divider:after {
    content: "";
    height: 1px;
    background: #eee;
    flex: 1
}

.demo-email-panel {
    margin-top: 14px
}

.demo-email-panel input {
    width: 100%;
    height: 46px;
    border: 1px solid #ddd7d2;
    border-radius: 10px;
    padding: 0 12px;
    margin: 6px 0 10px
}

.auth-card>small {
    display: block;
    margin-top: 16px;
    text-align: center;
    font-size: var(--pl-font-small);
    color: var(--ink-400)
}

.checkout-heading {
    display: flex;
    align-items: center;
    gap: 12px
}

.checkout-heading h1 {
    font-size: 27px
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    margin-top: 32px
}

.checkout-event-card {
    border: 1px solid #ddd7d2;
    border-radius: 16px;
    overflow: hidden
}

.checkout-event-card>img {
    width: 100%;
    height: 260px;
    object-fit: cover
}

.checkout-event-body {
    padding: 18px
}

.checkout-event-body h3 {
    font-size: 20px;
    margin: 0 0 5px
}

.checkout-event-body p,
.checkout-event-body>span {
    font-size: var(--pl-font-base);
    color: var(--ink-500)
}

.checkout-ticket-line {
    display: flex;
    gap: 12px;
    border-top: 1px solid #eee8e4;
    padding-top: 16px;
    margin-top: 16px
}

.checkout-ticket-line strong,
.checkout-ticket-line span {
    display: block
}

.checkout-ticket-line span {
    font-size: var(--pl-font-small);
    color: var(--ink-500)
}

.checkout-delivery {
    background: #f7f5f4;
    border-radius: 12px;
    padding: 15px;
    margin-top: 16px
}

.payment-method {
    display: block;
    border: 1px solid #ddd7d2;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 12px
}

.payment-method.is-selected {
    border-color: #342035
}

.payment-method>span {
    float: right;
    margin-top: -20px
}

.fake-card-fields {
    clear: both;
    padding-top: 20px
}

.fake-card-fields input {
    width: 100%;
    height: 38px;
    border: 0;
    border-bottom: 1px solid #ddd7d2
}

.fake-card-fields>div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px
}

.checkout-addon {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    border: 1px solid #ddd7d2;
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px
}

.checkout-summary {
    margin-top: 24px
}

.checkout-summary>div {
    display: flex;
    justify-content: space-between;
    padding: 8px 0
}

.checkout-summary-total {
    border-top: 1px solid #ddd7d2;
    margin-top: 6px;
    font-size: 15px
}

.checkout-bottom-bar>div {
    display: flex;
    gap: 18px;
    align-items: center
}

.demo-success-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(20, 20, 20, .5);
    display: grid;
    place-items: center;
    padding: 20px
}

.demo-success-dialog {
    width: min(430px, 100%);
    background: #fff;
    border-radius: 22px;
    padding: 32px;
    text-align: center
}

@media(max-width:760px) {
    .tb-date-strip {
        grid-template-columns: repeat(8, 84px)
    }

    .booking-flow-container,
    .checkout-container {
        width: min(100% - 24px, 1120px);
        padding-top: 28px
    }

    .ticket-option {
        align-items: flex-end
    }

    .checkout-grid {
        grid-template-columns: 1fr
    }

    .checkout-event-card>img {
        height: 210px
    }

    .booking-bottom-bar,
    .checkout-bottom-bar,
    .booking-auth-bottom {
        padding: 10px 12px
    }

    .booking-timer {
        display: none
    }
}

@media(max-width:480px) {
    .ticket-option {
        display: block
    }

    .ticket-qty {
        width: max-content;
        margin-top: 14px
    }

    .fake-card-fields>div {
        grid-template-columns: 1fr
    }

    .booking-order-details {
        display: none
    }

    .booking-bottom-bar {
        justify-content: flex-end
    }
}