/* =====================================================================
   Staer OPC modernization — applies only on .html-checkout-page
   2-col grid on desktop (steps + sticky summary), single col on mobile,
   circular badges per step, modern card styling.
   ===================================================================== */

.html-checkout-page .page.checkout-page {
    padding: 24px 16px 64px;
}

.html-checkout-page .page.checkout-page .page-title {
    margin-bottom: 24px;
}

.html-checkout-page .page.checkout-page .page-title h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Full-width single column — match cart page width */

/* ----- Step list (the <ol class="opc">) ----- */
.html-checkout-page ol.opc {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
}
.html-checkout-page ol.opc li.tab-section {
    background: #fff;
    border: 1px solid #e7e9ee;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: box-shadow .15s ease, border-color .15s ease;
    /* fix: when location.hash changes after Continue, the native scroll-to-anchor lands ~150px below page top so the blue header doesn't cover the tab */
    scroll-margin-top: 150px;
}

/* Transport + Manipulare summary banner — placed inside OrderSummary on OPC payment_info step */
.html-checkout-page .staer-checkout-attrs {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 20px;
    margin: 0 0 18px;
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
}
.html-checkout-page .staer-checkout-attrs strong { color: #0f172a; }

/* Inline variant: sits in the empty space below the cart table, alongside totals box */
.html-checkout-page .staer-checkout-attrs--inline {
    display: inline-block;
    max-width: 60%;
    margin: 16px 0 0;
    vertical-align: top;
}
.html-checkout-page ol.opc li.tab-section.allow:hover { border-color: #cbd5e1; }
.html-checkout-page ol.opc li.tab-section.active-step,
.html-checkout-page ol.opc li.tab-section:has(> .step.a-item[style*="block"]) {
    border-color: var(--staer-accent, #0d6efd);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, .12), 0 8px 24px -10px rgba(13, 110, 253, .25);
}

/* Step header */
.html-checkout-page ol.opc li.tab-section .step-title {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    cursor: pointer;
    user-select: none;
}
.html-checkout-page ol.opc li.tab-section .step-title .number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eef2f7;
    color: #64748b;
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
    transition: background-color .15s ease, color .15s ease;
}
.html-checkout-page ol.opc li.tab-section.allow .step-title .number {
    background: #fff;
    color: var(--staer-accent, #0d6efd);
    border: 2px solid var(--staer-accent, #0d6efd);
}
.html-checkout-page ol.opc li.tab-section:has(> .step.a-item[style*="block"]) .step-title .number,
.html-checkout-page ol.opc li.tab-section.active-step .step-title .number {
    background: var(--staer-accent, #0d6efd);
    color: #fff;
    border-color: var(--staer-accent, #0d6efd);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, .14);
}
.html-checkout-page ol.opc li.tab-section.completed .step-title .number {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}
.html-checkout-page ol.opc li.tab-section.completed .step-title .number::after {
    content: '\2713';
    font-size: 18px;
    font-weight: 700;
}
.html-checkout-page ol.opc li.tab-section.completed .step-title .number > * { display: none; }

.html-checkout-page ol.opc li.tab-section .step-title .title,
.html-checkout-page ol.opc li.tab-section .step-title h2.title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}
.html-checkout-page ol.opc li.tab-section .step-title strong { font-weight: 600; }

/* Step body */
.html-checkout-page ol.opc li.tab-section .step.a-item {
    padding: 6px 20px 20px;
    border-top: 1px solid #f1f3f7;
}
.html-checkout-page ol.opc li.tab-section:not(:has(> .step.a-item[style*="block"])) .step.a-item {
    border-top: none;
}

/* Form fields */
.html-checkout-page ol.opc input[type="text"],
.html-checkout-page ol.opc input[type="email"],
.html-checkout-page ol.opc input[type="tel"],
.html-checkout-page ol.opc input[type="number"],
.html-checkout-page ol.opc select,
.html-checkout-page ol.opc textarea {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.html-checkout-page ol.opc input[type="text"]:focus,
.html-checkout-page ol.opc input[type="email"]:focus,
.html-checkout-page ol.opc input[type="tel"]:focus,
.html-checkout-page ol.opc select:focus,
.html-checkout-page ol.opc textarea:focus {
    outline: none;
    border-color: var(--staer-accent, #0d6efd);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .15);
}

/* Buttons */
.html-checkout-page .button-1,
.html-checkout-page button.button-1 {
    background: var(--staer-accent, #0d6efd);
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background-color .15s ease, transform .05s ease;
}
.html-checkout-page .button-1:hover { background: #0859d2; }
.html-checkout-page .button-1:active { transform: translateY(1px); }

.html-checkout-page .buttons { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.html-checkout-page .buttons .back-link { margin: 0; }
.html-checkout-page .buttons .back-link a {
    color: #64748b;
    font-size: 14px;
    text-decoration: none;
}
.html-checkout-page .buttons .back-link a:hover { color: var(--staer-accent, #0d6efd); }
.html-checkout-page .buttons .please-wait {
    color: #64748b;
    font-size: 14px;
    font-style: italic;
}
