/* ============================================================
   VKA Pretix Express Checkout — Clean Checkout Styles
   Targets variables and real Bootstrap panel classes.
   ============================================================ */

:root {
    /* ----------------------------------------------------------
       1. Redefine all Pretix brand variables to VKA theme colors
          This instantly shifts the theme from purple to slate/orange
       ---------------------------------------------------------- */
    --pretix-brand-primary: #ff9c21 !important; /* VKA brand accent orange */
    --pretix-brand-primary-lighten-5: #ffa83b !important;
    --pretix-brand-primary-lighten-20: #ffc270 !important;
    --pretix-brand-primary-lighten-30: #ffd394 !important;
    --pretix-brand-primary-lighten-40: #ffe5bd !important;
    --pretix-brand-primary-lighten-48: #fff8f0 !important;
    --pretix-brand-primary-lighten-50: #fffbfa !important;
    --pretix-brand-primary-darken-5: #e68512 !important;
    --pretix-brand-primary-darken-10: #cc720a !important;
    --pretix-brand-primary-darken-15: #b35f00 !important;
    --pretix-brand-primary-darken-17: #9c5000 !important;
    --pretix-brand-primary-darken-20: #854200 !important;
    --pretix-brand-primary-darken-30: #542500 !important;
    --pretix-brand-primary-tint-90: #fff6eb !important;
    --pretix-brand-primary-shade-25: #a85800 !important;
    --pretix-brand-primary-shade-42: #804000 !important;
    --pretix-brand-primary-lighten-28-saturate-20: #ffd18a !important;
    --pretix-brand-primary-lighten-23-saturate-2: #ffca7d !important;

    --pretix-link-contrast-color: #ea580c !important;
    --pretix-link-hover-contrast-color: #9a3412 !important;
    --pretix-brand-success: #4d8b31 !important; /* VKA green */
    --pretix-brand-success-darken-5: #3c7025 !important;
    --pretix-brand-success-darken-10: #30581d !important;
    --pretix-brand-success-tint-85: #eef5eb !important;

    --pretix-font-family-sans-serif: "Inter", "PingFang TC", "Helvetica Neue", sans-serif !important;
    --pretix-border-radius-base: 8px !important;
    --pretix-border-radius-large: 12px !important;
    --pretix-border-radius-small: 6px !important;
    --pretix-body-bg: #ffffff !important;
}

/* Base Body settings */
body {
    font-family: var(--pretix-font-family-sans-serif) !important;
    color: #334155 !important;
    background-color: #ffffff !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

/* Force container to occupy the full width of the viewport/iframe */
.container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

/* ----------------------------------------------------------
   2. Hide the multi-step bubble navigation bar & redundant page titles
   ---------------------------------------------------------- */
.steps {
    display: none !important;
}

/* Hide redundant page headings in checkout steps (since the stepper already acts as the heading) */
body:has(.steps) main#content > h2:first-of-type,
body:has(.steps-progressbar) main#content > h2:first-of-type,
body:has(.steps) #vka-spa-content-wrapper > h2:first-of-type,
body:has(.steps-progressbar) #vka-spa-content-wrapper > h2:first-of-type,
body:has(nav[aria-label="Checkout steps"]) main#content > h2:first-of-type,
body:has(nav[aria-label="Checkout steps"]) #vka-spa-content-wrapper > h2:first-of-type {
    display: none !important;
}

/* Remove bottom padding of checkout containers to avoid extra space below sticky footer */
body:has(.steps) .container.main-box,
body:has(.steps) main#content,
body:has(.steps) form,
body:has(.steps-progressbar) .container.main-box,
body:has(.steps-progressbar) main#content,
body:has(.steps-progressbar) form,
body:has(nav[aria-label="Checkout steps"]) .container.main-box,
body:has(nav[aria-label="Checkout steps"]) main#content,
body:has(nav[aria-label="Checkout steps"]) form {
    padding-bottom: 0 !important;
}

/* ----------------------------------------------------------
   3. Panel Headers & Cart Table Headers (Slate Grey Theme)
   ---------------------------------------------------------- */
html body details.panel-primary summary.panel-heading,
body details.panel-primary summary.panel-heading,
details.panel-primary summary.panel-heading,
html body .panel-primary > .panel-heading,
body .panel-primary > .panel-heading,
.panel-primary > .panel-heading,
.panel-primary .panel-heading,
.panel-heading {
    background: #1e293b !important;
    background-color: #1e293b !important;
    background-image: none !important;
    border-color: #1e293b !important;
    color: #f8fafc !important;
    padding: 14px 20px !important;
}

html body details.panel-primary,
body details.panel-primary,
.panel-primary {
    border-color: #1e293b !important;
}

.panel {
    border-radius: 12px !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    overflow: hidden !important;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    margin-bottom: 20px !important;
}
.panel:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05) !important;
    border-color: #94a3b8 !important;
}

/* Panel headings text elements */
.panel-heading .panel-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
    letter-spacing: 0.01em;
}
.panel-heading .panel-title strong,
.panel-heading .panel-title span,
.panel-heading .panel-title a {
    color: #f8fafc !important;
}

/* Panel body padding */
.panel-body {
    padding: 20px !important;
}

/* ----------------------------------------------------------
   4. Primary Action Buttons inside Iframe (VKA Orange Theme)
   ---------------------------------------------------------- */
html body .btn-primary,
body .btn-primary,
.btn-primary,
.cart .checkout-button-row .btn-primary,
html body .cart .checkout-button-row .btn-primary {
    background-color: #ff9c21 !important;
    background-image: none !important;
    border-color: #ff9c21 !important;
    color: #111111 !important; /* Dark text for high contrast on orange */
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    box-shadow: 0 2px 6px rgba(255, 156, 33, 0.15) !important;
    transition: all 0.2s ease !important;
    text-shadow: none !important;
}

html body .btn-primary:hover,
html body .btn-primary:focus,
html body .btn-primary:active,
body .btn-primary:hover,
body .btn-primary:focus,
body .btn-primary:active,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.cart .checkout-button-row .btn-primary:hover,
html body .cart .checkout-button-row .btn-primary:hover {
    background-color: #ea580c !important;
    border-color: #ea580c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 156, 33, 0.25) !important;
}

/* ----------------------------------------------------------
   5. Default & Secondary Buttons (White with Slate Border)
   ---------------------------------------------------------- */
html body .btn-default,
body .btn-default,
.btn-default {
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    background-color: #ffffff !important;
    background-image: none !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

html body .btn-default:hover,
html body .btn-default:focus,
body .btn-default:hover,
body .btn-default:focus,
.btn-default:hover,
.btn-default:focus {
    background-color: #f8fafc !important;
    color: #1e293b !important;
    border-color: #94a3b8 !important;
}

/* ----------------------------------------------------------
   6. Table & Items list inside Iframe
   ---------------------------------------------------------- */
.table th, .table td {
    border-top: 1px solid #f1f5f9 !important;
    padding: 14px 10px !important;
    font-size: 0.92rem !important;
    vertical-align: middle !important;
}
.table th {
    font-weight: 700 !important;
    color: #475569 !important;
    border-bottom: 2px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
}

/* Stepper links in the cart table */
.table a, .table button {
    color: #ea580c !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}
.table a:hover, .table button:hover {
    color: #9a3412 !important;
    text-decoration: none !important;
}

/* Payment list items */
.list-group-item.payment {
    border: none !important;
    border-radius: 0 !important;
    padding: 16px 20px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* Test Mode Alert Box Override */
.alert-warning {
    background-color: #fffbeb !important;
    border: 1px solid #fef3c7 !important;
    color: #b45309 !important;
    border-radius: 12px !important;
    padding: 1rem 1.25rem !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    box-shadow: 0 2px 10px rgba(180, 83, 9, 0.02) !important;
}
.alert-warning a {
    color: #d97706 !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}
.alert-warning a:hover {
    color: #b45309 !important;
}

/* ----------------------------------------------------------
   7. Injected Payment Custom Panel
   ---------------------------------------------------------- */
.modern-payment-panel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 24px !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.modern-payment-panel:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06) !important;
    border-color: #cbd5e1 !important;
}
.modern-payment-panel h3 {
    margin-top: 0 !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modern-payment-panel h3::before {
    content: "\f023"; /* padlock icon */
    font-family: "FontAwesome";
    color: #10b981;
}
.modern-payment-panel p {
    color: #64748b !important;
    font-size: 0.9rem !important;
    margin-bottom: 0 !important;
}

/* ----------------------------------------------------------
   8. Overlay while the Helcim payment window initialises
   ---------------------------------------------------------- */
body.checkout-processing-active::after {
    content: "Initializing Secure Connection...";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 1.25rem; color: #ea580c;
    z-index: 99999;
    animation: fadeInOverlay 0.3s ease forwards;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ----------------------------------------------------------
   9. VKA Membership-required modal
   ---------------------------------------------------------- */
.vka-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    opacity: 0;
}
.vka-modal.vka-modal-open {
    opacity: 1;
}
.vka-modal-backdrop {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
}
.vka-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 16px;
    z-index: 1051;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.vka-modal.vka-modal-open .vka-modal-dialog {
    transform: translateY(0);
}
.vka-modal-content {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.vka-modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.vka-modal-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f172a;
}
.vka-modal-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}
.vka-modal-close:hover { color: #475569; }
.vka-modal-body {
    padding: 32px 24px;
    text-align: center;
}
.vka-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.1);
}
.vka-modal-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}
.vka-modal-subtext {
    font-size: 0.92rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}
.vka-modal-footer {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.btn-join-renew {
    background-color: #b45309 !important;
    border-color: #b45309 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 10px 18px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}
.btn-join-renew:hover {
    background-color: #92400e !important;
    border-color: #92400e !important;
    transform: translateY(-1px);
}
.btn-modal-cancel {
    border-radius: 8px !important;
    padding: 10px 18px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

/* ============================================================
   10. Streamlined Customer Step (Login & Guest Options)
   ============================================================ */

.vka-streamlined-checkout {
    margin: 30px auto;
    max-width: 860px;
    padding: 0 15px;
}

.checkout-choice-header {
    text-align: center;
    margin-bottom: 35px;
}

.checkout-choice-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.checkout-choice-cards {
    display: flex;
    gap: 24px;
    margin-bottom: 35px;
}

@media (max-width: 768px) {
    .checkout-choice-cards {
        flex-direction: column;
    }
}

.checkout-card {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.checkout-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    border-color: #cbd5e1;
}

.checkout-card.disabled {
    opacity: 0.7;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.checkout-card.disabled:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    border-color: #e2e8f0;
}

.checkout-card .card-icon {
    font-size: 2.5rem;
    color: #ff9c21;
    margin-bottom: 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-card.disabled .card-icon {
    color: #94a3b8;
}

.checkout-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 12px;
}

.checkout-card .card-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.checkout-card.disabled .card-desc {
    color: #e11d48 !important; /* Red alert for warning text */
    font-weight: 500;
}

.checkout-card .btn {
    width: 100%;
    margin-top: auto;
}

/* Specific buttons styles inside the card */
.btn-login-action {
    background-color: #ff9c21 !important;
    border-color: #ff9c21 !important;
    color: #111111 !important;
}

.btn-guest-action {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

.checkout-choice-footer {
    text-align: center;
    margin-top: 20px;
}

.btn-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    text-decoration: none !important;
}

.btn-back-link:hover {
    color: #1e293b !important;
}

.hidden-accordion-original {
    display: none !important;
}

/* ============================================================
   11. Unified Checkout Flow Card Styling Overrides
   ============================================================ */

/* Remove the heavy dark background and styling from default panel headers */
html body .panel-default > .panel-heading,
body .panel-default > .panel-heading,
.panel-default > .panel-heading,
html body details.panel-default summary.panel-heading,
body details.panel-default summary.panel-heading,
details.panel-default summary.panel-heading {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #1e293b !important;
    border: none !important;
    padding: 16px 24px 8px 24px !important;
}

/* Transform the panel wrappers into clean white cards */
html body .panel-default,
body .panel-default,
.panel-default {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important; /* Soft border matching step 1 */
    border-radius: 12px !important; /* Smooth rounded corners */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 20px !important;
    overflow: hidden !important;
}

/* Style default panel titles span, strong, links to dark color */
.panel-default > .panel-heading .panel-title,
.panel-default > .panel-heading .panel-title strong,
.panel-default > .panel-heading .panel-title span,
.panel-default > .panel-heading .panel-title a,
details.panel-default summary.panel-heading .panel-title,
details.panel-default summary.panel-heading .panel-title strong,
details.panel-default summary.panel-heading .panel-title span,
details.panel-default summary.panel-heading .panel-title a {
    color: #1e293b !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
}

/* Hide the accordion carrot/arrow icons */
.panel-heading .fa-chevron-down,
.panel-heading .fa-chevron-right,
.panel-title a::before,
summary.panel-heading::marker,
summary.panel-heading::-webkit-details-marker {
    display: none !important;
}

/* Ensure smooth inner spacing */
html body .panel-default .panel-body,
body .panel-default .panel-body,
.panel-default .panel-body {
    padding: 8px 24px 24px 24px !important;
}

/* Modernize form inputs to look sharp, clean and minimal */
.form-control,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="password"],
input[type="url"],
select,
textarea {
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    height: auto !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
    background-color: #ffffff !important;
    color: #334155 !important;
    box-shadow: none !important;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    border-color: #ff9c21 !important; /* VKA orange focus color */
    box-shadow: 0 0 0 3px rgba(255, 156, 33, 0.15) !important;
    outline: none !important;
}

/* ============================================================
   12. Cart Panel Specific Style Overrides (Align with cards)
   ============================================================ */

/* Remove heavy background from all cart panel headers */
html body .panel.cart > .panel-heading,
body .panel.cart > .panel-heading,
.panel.cart > .panel-heading,
html body details.panel.cart summary.panel-heading,
body details.panel.cart summary.panel-heading,
details.panel.cart summary.panel-heading,
html body details.panel-primary.cart summary.panel-heading,
body details.panel-primary.cart summary.panel-heading,
details.panel-primary.cart summary.panel-heading,
html body .panel-primary.cart > .panel-heading,
body .panel-primary.cart > .panel-heading,
.panel-primary.cart > .panel-heading {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #1e293b !important;
    border: none !important;
    padding: 16px 24px 8px 24px !important;
}

/* Transform the cart panel wrapper into clean white cards */
html body .panel.cart,
body .panel.cart,
.panel.cart,
html body .panel-primary.cart,
body .panel-primary.cart,
.panel-primary.cart {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 20px !important;
    overflow: hidden !important;
}

/* Style cart titles (links, strongs, spans) to be dark */
.panel.cart .panel-title,
.panel-primary.cart .panel-title {
    color: #1e293b !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}
.panel.cart .panel-title strong,
.panel.cart .panel-title span,
.panel-primary.cart .panel-title strong,
.panel-primary.cart .panel-title span {
    color: #1e293b !important;
}

/* Format Modify and Add/Remove tickets links inside titles */
.panel-title a.h6,
.panel-title a.btn-link,
.panel-title a {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #ea580c !important;
    margin-left: 10px !important;
}
.panel-title a:hover {
    color: #9a3412 !important;
    text-decoration: none !important;
}

/* Hide disclosure markers on cart summary panel */
html body details.cart summary.panel-heading,
body details.cart summary.panel-heading,
details.cart summary.panel-heading {
    list-style: none !important;
    list-style-type: none !important;
}
html body details.cart summary.panel-heading::-webkit-details-marker,
body details.cart summary.panel-heading::-webkit-details-marker,
details.cart summary.panel-heading::-webkit-details-marker,
html body details.cart summary.panel-heading::marker,
body details.cart summary.panel-heading::marker,
details.cart summary.panel-heading::marker {
    display: none !important;
}
/* ============================================================
   13. Ticket-section Cart-style Stepper
   ============================================================ */

.vka-ticket-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    user-select: none;
}

.vka-stepper-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #ea580c;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.1s ease;
    padding: 0;
    line-height: 1;
    border-radius: 6px;
}

.vka-stepper-btn:hover:not(:disabled) {
    color: #9a3412;
    transform: scale(1.15);
}

.vka-stepper-btn:disabled {
    color: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

/* Trash icon variant — slightly smaller to match FA icon weight */
.vka-stepper-btn.vka-stepper-trash {
    color: #ea580c;
    font-size: 0.9rem;
}
.vka-stepper-btn.vka-stepper-trash:hover:not(:disabled) {
    color: #e11d48;
}

.vka-stepper-value {
    display: inline-block;
    min-width: 28px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    line-height: 32px;
}

/* Dim the entire stepper when quantity is 0 */
.vka-stepper-zero .vka-stepper-value {
    color: #94a3b8;
}

/* Voucher Redeem Submit Button Styling */
.btn-voucher-submit {
    background-color: #ff9c21 !important;
    border-color: #ff9c21 !important;
    color: #ffffff !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

.btn-voucher-submit:hover {
    background-color: #ea580c !important;
    border-color: #ea580c !important;
    color: #ffffff !important;
}

/* CSP/Accessibility Utility Classes to Avoid Inline Styles */
.vka-hidden {
    display: none !important;
}

.vka-panel-transparent {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.vka-panel-transparent .panel-body {
    padding: 0 !important;
}

.vka-voucher-inline-wrapper {
    max-width: 300px !important;
    margin-top: 0 !important;
}

.btn-voucher-toggle {
    margin-top: 0 !important;
}

/* Flex align checkout buttons and voucher toggle on the same row */
.vka-ticket-submit-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 25px !important; /* Space away from bottom edge of card/modal */
    gap: 15px !important;
}

.vka-voucher-side {
    flex: 0 1 auto !important;
}

.vka-submit-side {
    flex: 0 1 auto !important;
}

.vka-submit-side button[type="submit"] {
    min-width: 180px !important;
    padding: 10px 24px !important;
}

/* Sticky button row at the bottom of the page/modal */
body:has(.steps) .checkout-button-row,
body:has(.steps-progressbar) .checkout-button-row,
body:has(nav[aria-label="Checkout steps"]) .checkout-button-row {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 1000 !important;
    background-color: #ffffff !important;
    margin-top: 80px !important; /* Push preceding content up so it's not covered when scrolled to the end */
    margin-bottom: 0 !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
    padding: 16px 20px !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.05) !important;
}

@media (min-width: 576px) {
    .vka-ticket-submit-row {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
}

@media (max-width: 575px) {
    .vka-ticket-submit-row {
        flex-direction: column-reverse !important; /* Stack Add to Cart on top, Voucher below */
        align-items: stretch !important;
    }
    .vka-voucher-side,
    .vka-submit-side {
        width: 100% !important;
    }
    .vka-voucher-side .btn-voucher-toggle,
    .vka-voucher-side .vka-voucher-inline-wrapper,
    .vka-submit-side button[type="submit"] {
        width: 100% !important;
        display: block !important;
    }
}

/* Hook 4: CSS styling for card layout to remove inline HTML style attributes */
.native-login-fields-container,
.login-action-container,
.guest-action-container {
    width: 100% !important;
}

.native-login-fields-container {
    margin-bottom: 20px !important;
}

/* Clickable Choice Cards */
.checkout-card.vka-clickable-card:not(.disabled) {
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.checkout-card.vka-clickable-card:not(.disabled):hover {
    border-color: #ff9c21 !important;
    box-shadow: 0 6px 20px rgba(255, 156, 33, 0.15) !important;
    transform: translateY(-3px) !important;
}

/* Propagate hover states from clickable cards to their contained buttons */
.checkout-card.vka-clickable-card:not(.disabled):hover .btn-primary {
    background-color: #ea580c !important;
    border-color: #ea580c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 156, 33, 0.25) !important;
}

.checkout-card.vka-clickable-card:not(.disabled):hover .btn-default {
    background-color: #f8fafc !important;
    color: #1e293b !important;
    border-color: #94a3b8 !important;
}

/* SPA Content Transition Animations */
#vka-spa-content-wrapper {
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 1;
    transform: translateY(0);
}

#vka-spa-content-wrapper.vka-fade-out {
    opacity: 0 !important;
    transform: translateY(12px) !important;
}

#vka-spa-content-wrapper.vka-fade-in {
    opacity: 0 !important;
    transform: translateY(-12px) !important;
}

/* ============================================================
   14. Helcim Pay Inline Card Styles
   ============================================================ */
body .panel-default.helcim-inline-panel,
body .helcim-inline-panel,
.helcim-inline-panel {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    overflow: visible !important;
    background: #ffffff !important;
    margin-bottom: 20px !important;
}

.helcim-inline-panel .panel-heading {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 16px 24px !important;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    overflow: visible !important;
}

.helcim-inline-panel .panel-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin: 0 !important;
}

#helcimPayIframe {
    width: 100% !important;
    height: 500px !important;
    min-height: 500px !important;
    border: none !important;
    background-color: transparent !important;
    position: relative !important;
    z-index: 1 !important;
}

.helcim-inline-body {
    padding: 0 !important;
    min-height: 500px !important;
    position: relative !important;
}

.helcim-inline-footer {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 16px !important;
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

.helcim-inline-footer .helcim-cancel-btn {
    min-width: 200px !important;
}

/* ============================================================
   15. Helcim Pay CSP-Compliant Retry Modal Styles
   ============================================================ */
.helcim-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 1040 !important;
}

.helcim-modal-wrapper {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    z-index: 1050 !important;
    width: 90% !important;
    max-width: 450px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.helcim-modal-content {
    padding: 24px !important;
}

.helcim-modal-title {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
}

.helcim-modal-body {
    font-size: 0.95rem !important;
    color: #475569 !important;
    margin-bottom: 24px !important;
    line-height: 1.5 !important;
}

.helcim-modal-footer {
    display: flex !important;
    gap: 12px !important;
    justify-content: flex-end !important;
}

/* Utility classes */
.vka-hidden {
    display: none !important;
}
