/* Bootstrap 3 drawer, scoped to the customer event and checkout panel. */
#sidebar-right {
    --tk-text: #191c1e;
    --tk-muted: #606b70;
    --tk-border: #dfe4e5;
    --tk-hover: #f5f7f7;
    --tk-accent: #16627f;
    --tk-accent-dark: #104b62;
    color: var(--tk-text);
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
}
#sidebar-right > .modal-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(860px, calc(100vw - 40px)); height: 100%; max-width: none; }
#sidebar-right > .modal-dialog > .modal-content { display: flex; flex-direction: column; height: 100%; min-height: 0; border: 0; border-radius: 18px 0 0 18px; background: #fff; color: var(--tk-text); box-shadow: -16px 0 60px #0003; overflow: hidden; }
#sidebar-right.fade > .modal-dialog { transform: translateX(100%); transition: transform .3s ease-out; }
#sidebar-right.fade.in > .modal-dialog { transform: translateX(0); }
#sidebar-right > .modal-dialog > .modal-content > .modal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 32px; background: #fff; border-bottom: 1px solid var(--tk-border); flex-shrink: 0; }
#sidebar-right .modal-header::before, #sidebar-right .modal-header::after { display: none; }
#sidebar-right .drawer-eyebrow { display: block; color: #68777d; font-size: 10px; font-weight: 750; letter-spacing: 2px; margin-bottom: 5px; }
#sidebar-right .modal-title { color: #191c1e; font-size: 22px; font-weight: 750; letter-spacing: -.5px; margin: 0; }
#sidebar-right .close { float: none; display: grid; place-items: center; width: 40px; height: 40px; margin: 0; border-radius: 50%; background: #f0f3f3; color: #273337; font-size: 28px; font-weight: 400; text-shadow: none; opacity: 1; flex-shrink: 0; }
#sidebar-right .close:hover { background: #e2e8e9; }
#sidebar-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 28px 32px 36px; }
#sidebar-right :is(h1,h2,h3,h4,h5,h6) { color: #191c1e; line-height: 1.3; }
#sidebar-right h4 { font-size: 24px; }
#sidebar-right h5 { font-size: 18px; }
#sidebar-right h6 { font-size: 17px; }
#sidebar-right p { overflow-wrap: anywhere; }
#sidebar-right a { color: #16627f; text-decoration: underline; }
#sidebar-right :is(button,input,a,[tabindex]):focus-visible { outline: 3px solid #25b3fa; outline-offset: 3px; }
#sidebar-right .drawer-event-art { margin-bottom: 26px; border-radius: 12px; overflow: hidden; background: #f1f4f4; }
#sidebar-right .drawer-event-image { display: block; width: 100%; height: auto; max-height: 380px; object-fit: contain; }
#sidebar-right .drawer-details-content, #sidebar-right .drawer-checkout-content { padding: 0; }
#sidebar-right .drawer-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#sidebar-right .drawer-info-grid > .col-sm-6 { width: auto; float: none; padding: 0; }
#sidebar-right .drawer-info-grid > .col-sm-6 > div { height: 100%; }
#sidebar-right a.location-directions-link { display: block; height: 100%; padding: 14px; border: 1px solid var(--tk-border); border-radius: 6px; background: var(--tk-hover); color: inherit; text-decoration: none; }
#sidebar-right a.location-directions-link:hover { border-color: #16627f; }
#sidebar-right .location-directions-hint { display: inline-block; margin-top: 8px; color: #16627f; font-size: 13px; font-weight: 700; }
#sidebar-right .price-highlight { background: #eef5f3; color: #23634e; border-color: #cfe3da; font-size: 16px; }
#sidebar-right .table { font-size: 14px; margin-bottom: 0; }
#sidebar-right .table > thead > tr > th { text-transform: none; letter-spacing: 0; color: #526168; font-size: 12px; border-bottom-width: 1px; }
#sidebar-right .table > tbody > tr > td, #sidebar-right .table > thead > tr > th { padding: 14px 12px; vertical-align: middle; }
#sidebar-right .table-responsive { border: 1px solid var(--tk-border); border-radius: 10px; margin-bottom: 20px; }
#sidebar-right .badge-tk { font-size: 11px; line-height: 1.4; letter-spacing: .2px; background: #edf0f1; color: #46565e; border-color: #dfe4e5; }
#sidebar-right .badge-tk.open { background: #e9f5ef; color: #23634e; border-color: #cfe3da; }
#sidebar-right .badge-tk.sold-out { background: #fceeee; color: #9c3030; border-color: #f0d3d3; }
#sidebar-right .badge-tk.limited { background: #fff5dc; color: #7d5810; border-color: #eedba8; }
#sidebar-right .event-tag { font-size: 11px; border-radius: 20px; text-transform: none; }
#sidebar-right .tk-card, #sidebar-right .order-summary-card { border-radius: 12px; border: 1px solid var(--tk-border); background: #fff; box-shadow: none; }
#sidebar-right .tk-card .card-body, #sidebar-right .order-summary-card { padding: 24px; }
#sidebar-right .tk-card .card-title, #sidebar-right .order-summary-card h4 { font-size: 18px; font-weight: 750; color: #191c1e; }
#sidebar-right .drawer-checkout-event { display: flex; align-items: center; gap: 20px; }
#sidebar-right .drawer-checkout-event > img, #sidebar-right .drawer-checkout-event > .event-image { margin-bottom: 0 !important; }
#sidebar-right .drawer-checkout-event > div:last-child { min-width: 0; }
#sidebar-right .form-label { display: block; color: #36444a; font-size: 13px; font-weight: 650; margin-bottom: 8px; }
#sidebar-right .form-control { height: 46px; padding: 11px 13px; font-size: 16px; border-radius: 7px; background: #fff !important; color: #191c1e !important; box-shadow: none; }
#sidebar-right .ticket-type-row { background: #fff; padding: 16px; border-radius: 9px; margin-bottom: 10px; }
#sidebar-right .ticket-type-row.active { border-color: #16627f; background: #f0f7fa; box-shadow: inset 3px 0 #16627f; }
#sidebar-right .ticket-type-row .price { color: #191c1e; white-space: nowrap; }
#sidebar-right .opacity-50 { opacity: .55; cursor: default; }
#sidebar-right .order-summary-card { position: static; background: #f7f9f9; }
#sidebar-right .summary-row { gap: 20px; font-size: 14px; }
#sidebar-right .summary-row > :last-child { text-align: right; }
#sidebar-right .summary-row.total, #sidebar-right .summary-row.total .total-amount { font-size: 21px; color: #191c1e; }
#sidebar-right .btn-tk-primary { background: #191c1e; color: #fff; border-radius: 7px; padding: 13px 20px; font-size: 15px; }
#sidebar-right .btn-tk-primary:hover { background: #34434a; transform: none; }
#sidebar-right .btn-tk-primary:disabled { opacity: .5; cursor: not-allowed; }
#sidebar-right .btn-tk-outline { color: #34434a; background: #fff; border-radius: 7px; padding: 12px 20px; font-size: 14px; }
#sidebar-right .alert-info { background: #eff6f9; color: #365566; border-color: #d7e5eb; border-radius: 9px; font-size: 13px; }
#sidebar-right .alert-info .alert-link { color: #164e69; }
/* The existing partials use these utilities, which Bootstrap 3 does not supply. */
#sidebar-right .d-flex { display: flex; }
#sidebar-right .flex-wrap { flex-wrap: wrap; }
#sidebar-right .justify-content-between { justify-content: space-between; }
#sidebar-right .align-items-center { align-items: center; }
#sidebar-right .gap-1 { gap: 5px; }
#sidebar-right .gap-2 { gap: 10px; }
#sidebar-right .gap-3 { gap: 16px; }
#sidebar-right .modal:not(.right) .modal-dialog { width: min(600px, calc(100% - 32px)); margin: 30px auto; }
#sidebar-right .modal:not(.right) .modal-content { border-radius: 12px; max-height: calc(100dvh - 60px); overflow-y: auto; }
#sidebar-right .modal:not(.right) .modal-header { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; }
#sidebar-right .modal:not(.right) .modal-body { padding: 24px; font-size: 15px; }
@media (max-width: 600px) {
    #sidebar-right > .modal-dialog { width: 100%; }
    #sidebar-right > .modal-dialog > .modal-content { border-radius: 0; }
    #sidebar-right > .modal-dialog > .modal-content > .modal-header { padding: 16px 20px; }
    #sidebar-body { padding: 20px 16px 28px; }
    #sidebar-right .drawer-info-grid { grid-template-columns: 1fr; }
    #sidebar-right .tk-card .card-body, #sidebar-right .order-summary-card { padding: 18px; }
    #sidebar-right .drawer-checkout-event { align-items: flex-start; gap: 14px; }
    #sidebar-right .drawer-checkout-event > img, #sidebar-right .drawer-checkout-event > .event-image { width: 80px !important; height: 80px !important; }
    #sidebar-right .ticket-type-row > .d-flex { flex-wrap: wrap; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { #sidebar-right.fade > .modal-dialog { transition: none; } }

#sidebar-right .drawer-recurring-date { background: #eff6f9; border: 1px solid #d7e5eb; padding: 18px; border-radius: 10px; margin-bottom: 24px; }
#sidebar-right .drawer-recurring-date p { color: var(--tk-muted); font-size: 12px; margin: 10px 0 0; }
/* Native quantity picker on small/touch screens; keep both controls synchronized. */
.checkout-quantity-mobile { display: none; }
@media (max-width: 991px), (any-pointer: coarse) {
    .checkout-quantity-desktop { display: none; }
    .checkout-quantity-mobile { display: block; }
    #sidebar-right .checkout-quantity-mobile select { appearance: auto; -webkit-appearance: menulist; min-height: 46px; padding-right: 28px; }
}
