/* Cart, checkout, order page, order popups and the installment calculator (design language V2):
   white page, hairline dividers, one black primary button per screen, 1pro blue only for prices and links. */
:root {
    --op-accent: #1f5fe6;
    --op-accent-dark: #1747b8;
    --op-black: #1d1d1f;
    --op-text: #1d1d1f;
    --op-text-2: #3a3a3c;
    --op-muted: #6e6e73;
    --op-line: #e8e8ed;
    --op-border: #d2d2d7;
    --op-bg: #f5f5f7;
    --op-ok: #1a7f37;
    --op-error: #c4320a;
    --op-bar-h: 84px;
}

.op-page {
    background: #fff;
    color: var(--op-text);
    padding: 16px 0 48px;
    min-height: 60vh;
    font-size: 15px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}
.op-page a { color: var(--op-accent); text-decoration: none; }
.op-page a:hover { color: var(--op-accent-dark); }
.op-page h1, .op-page h2, .op-page h3 { color: var(--op-text); }
.op-page[hidden], .op-page [hidden], #checkoutStep[hidden] { display: none !important; }
body.page-template-page-cart .open-cart-wrap { display: none !important; }

/* Content width of the mockups: 1120px plus side gutters (20px phone, 24px desktop), same frame as the V2 header
   and footer (.s-container). !important beats the old global ".container { max-width: 1600px !important }" in
   style.css, which left these pages full width on desktop while the header and footer sat in 1120px. */
.op-page > .container, .op-head > .container { max-width: 1168px !important; padding-left: 20px; padding-right: 20px; }
/* Wider frame on large screens, same as .s-container (1Pro feedback 22/10) */
@media (min-width: 1280px) { .op-page > .container, .op-head > .container { max-width: 1368px !important; } }
@media (min-width: 992px) {
    .op-page > .container, .op-head > .container { padding-left: 24px; padding-right: 24px; }
    .op-sec.op-sec-form { border-top: 0; padding-top: 0; margin-top: 36px; }
}
.op-pop .op-pop-block { margin-top: 24px; margin-bottom: 0; }
.op-show-bank { margin: 24px 0 0; }
.op-cur { font-size: inherit; vertical-align: baseline; line-height: inherit; margin-left: 0; }
.op-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 12px; line-height: 1.5; color: var(--op-muted); margin-bottom: 24px; }
.op-crumb a { color: var(--op-muted) !important; }
.op-eyebrow { margin: 0; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--op-muted); }
.op-title { margin: 6px 0 0; font-size: 26px; line-height: 30px; font-weight: 600; letter-spacing: -.02em; }
.op-lead { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--op-muted); }
.op-h2 { margin: 0 0 16px; font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -.01em; }
.op-h2 small { font-size: inherit; font-weight: 400; color: var(--op-muted); }
.op-h2-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.op-h2-row .op-h2 { margin: 0; }
.op-fine { margin: 0; font-size: 13px; line-height: 1.5; color: var(--op-muted); }
.op-muted { color: var(--op-muted); }
.op-price { font-weight: 600; white-space: nowrap; }
.op-price.is-accent { color: var(--op-accent); }

/* Sections: hairline and white space, no cards */
.op-layout { display: block; }
.op-main, .op-aside { min-width: 0; }
.op-sec { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--op-line); }
.op-sec.is-flush { margin-top: 0; padding-top: 0; border-top: 0; }
.op-card { background: none; border-radius: 0; padding: 0; }
.op-empty { text-align: center; padding: 48px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.op-empty p { margin: 0; font-size: 15px; color: var(--op-muted); }
.op-notice { margin-bottom: 16px; font-size: 14px; line-height: 1.5; color: var(--op-text-2); }
.op-notice::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: #b25000; margin-right: 8px; vertical-align: 1px; }

/* Buttons: black primary, outlined secondary, blue text link */
.op-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; padding: 0 28px; border-radius: 12px; border: 0;
    background: var(--op-black); color: #fff !important; font-size: 15px; font-weight: 600; line-height: 1.2;
    text-decoration: none; cursor: pointer; white-space: nowrap; font-family: inherit;
}
.op-btn:hover { background: #000; }
.op-btn:focus-visible { outline: 2px solid var(--op-accent); outline-offset: 2px; }
.op-btn:disabled, .op-btn[aria-busy="true"] { opacity: .55; cursor: progress; }
.op-btn-block { display: flex; width: 100%; }
.op-btn-ghost { background: #fff; color: var(--op-text) !important; border: 1px solid var(--op-border); font-weight: 500; }
.op-btn-ghost:hover { background: var(--op-bg); }
.op-link-btn {
    border: 0; background: none; padding: 6px 0; color: var(--op-accent) !important; font-size: 15px; font-weight: 500;
    cursor: pointer; text-decoration: none; font-family: inherit; line-height: 1.4;
}
.op-link-btn:hover { color: var(--op-accent-dark) !important; }
.op-link-center { display: block; text-align: center; margin-top: 12px; }

/* Desktop mini-cart (offcanvas, markup in includes/offcanvas.php) */
.offcanvas.op-mc {
    width: 420px; max-width: 100%; padding: 0; background: #fff; color: var(--op-text);
    border-left: 0; font-size: 15px; font-variant-numeric: tabular-nums;
}
.op-mc-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 20px 28px; border-bottom: 1px solid var(--op-line); }
.op-mc-head h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--op-text); }
.op-mc-close { width: 40px; height: 40px; border: 0; border-radius: 20px; background: none; color: var(--op-text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.op-mc-close:hover { background: var(--op-bg); }
.op-mc-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 28px; }
.op-mc-list { list-style: none; margin: 0; padding: 0; }
.op-mc-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--op-line); }
.op-mc-img { flex: 0 0 80px; width: 80px; height: 80px; border-radius: 12px; background: var(--op-bg); padding: 6px; box-sizing: border-box; }
.op-mc-img img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.op-mc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.op-mc-title { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--op-text) !important; text-decoration: none; }
.op-mc-title:hover { color: var(--op-accent) !important; }
.op-mc-classify, .op-mc-qty { font-size: 13px; color: var(--op-muted); }
.op-mc-price { margin-top: 2px; font-size: 15px; font-weight: 600; }
.op-mc-remove { flex: 0 0 32px; width: 32px; height: 32px; border: 0; border-radius: 16px; background: none; color: var(--op-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.op-mc-remove:hover { background: var(--op-bg); color: var(--op-error); }
.op-mc-empty { margin: 0; padding: 40px 0; font-size: 15px; color: var(--op-muted); }
.op-mc-loading { padding: 48px 0; text-align: center; }
.op-mc-foot { padding: 20px 28px 24px; display: flex; flex-direction: column; gap: 12px; background: #fff; border-top: 1px solid var(--op-line); }
.op-mc-foot[hidden] { display: none; }
.op-mc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; font-size: 15px; }
.op-mc-total > span:first-child { font-weight: 600; }
.op-mc-total > span:first-child small { font-size: inherit; font-weight: 400; color: var(--op-muted); }
.op-mc-total > span:last-child { font-size: 22px; font-weight: 600; color: var(--op-accent); white-space: nowrap; }
.op-mc-foot .op-fine { text-align: center; }

/* Cart items: image left, info, price, quantity and remove below */
.op-items { border-top: 1px solid var(--op-line); margin-top: 20px; }
.op-item {
    display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 16px; row-gap: 16px;
    padding: 24px 0; border-bottom: 1px solid var(--op-line);
}
.op-item-img { grid-column: 1; grid-row: 1 / 3; width: 120px; height: 120px; border-radius: 16px; background: var(--op-bg); padding: 12px; box-sizing: border-box; display: block; }
.op-item-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.op-item-info { grid-column: 2; grid-row: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.op-item-title { font-size: 15px; line-height: 1.35; font-weight: 600; color: var(--op-text) !important; text-decoration: none; }
.op-item-meta { font-size: 13px; line-height: 1.4; color: var(--op-muted); }
.op-item-amount { grid-column: 2; grid-row: 2; align-self: start; font-size: 15px; font-weight: 600; white-space: nowrap; }
.op-item-actions { grid-column: 1 / -1; grid-row: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.op-qty { display: inline-flex; align-items: center; border: 1px solid var(--op-line); border-radius: 10px; height: 38px; overflow: hidden; }
.op-qty button { width: 38px; height: 36px; border: 0; background: none; color: var(--op-text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.op-qty button:disabled { color: var(--op-border); cursor: default; }
.op-qty input {
    width: 34px; height: 36px; border: 0; text-align: center; font-size: 15px; font-weight: 600; color: var(--op-text);
    -moz-appearance: textfield; appearance: textfield; background: transparent; padding: 0; font-family: inherit;
}
.op-qty input::-webkit-outer-spin-button, .op-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.op-remove { border: 0; background: none; padding: 6px 0; color: var(--op-accent); font-size: 15px; font-weight: 500; cursor: pointer; font-family: inherit; }
.op-remove:hover { color: var(--op-error); }

/* Summary rows */
.op-rows { margin: 0; display: flex; flex-direction: column; font-size: 15px; }
.op-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; }
.op-row > span:first-child, .op-row > dt { color: var(--op-muted); font-weight: 400; }
.op-row > span:last-child, .op-row > dd { margin: 0; font-weight: 500; text-align: right; }
.op-total { padding-top: 16px; align-items: center; }
.op-total > span:first-child { font-weight: 600; color: var(--op-text); }
.op-total > span:first-child small { font-size: inherit; font-weight: 400; color: var(--op-muted); }
.op-total > span:last-child { font-size: 24px; line-height: 30px; font-weight: 600; color: var(--op-accent); white-space: nowrap; }
.op-sum-actions { margin-top: 20px; display: flex; flex-direction: column; }
.op-promise { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--op-line); }

/* Small product rows (checkout summary, order page, popups) */
.op-minis { display: flex; flex-direction: column; }
.op-mini { display: flex; gap: 14px; align-items: center; padding: 10px 0; font-size: 15px; }
.op-mini-img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; background: var(--op-bg); padding: 6px; box-sizing: border-box; object-fit: contain; mix-blend-mode: multiply; }
.op-mini-body { flex: 1; min-width: 0; line-height: 1.35; }
.op-mini-body b, .op-mini-body a { display: block; font-weight: 500; color: var(--op-text) !important; }
.op-mini-body > span { display: block; margin-top: 2px; font-size: 13px; color: var(--op-muted); }
.op-mini-body > .op-price { margin-top: 4px; font-size: 15px; color: var(--op-text); }
.op-mini-price { white-space: nowrap; font-weight: 600; }

/* Bottom bar (mobile): CTO page */
.op-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    min-height: var(--op-bar-h); padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--op-line);
    display: flex; align-items: center; gap: 12px; box-sizing: border-box;
}
.op-bar-total { flex: 1; min-width: 0; }
.op-bar-total small { display: block; font-size: 13px; color: var(--op-muted); }
.op-bar-total strong { display: block; font-size: 20px; font-weight: 600; color: var(--op-accent); white-space: nowrap; }

/* Compact header of checkout and the order page */
.op-head { background: #fff; border-bottom: 1px solid var(--op-line); }
.op-head-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 12px; }
.op-head-start { display: flex; align-items: center; gap: 4px; min-width: 44px; }
.op-head-end { display: flex; align-items: center; justify-content: flex-end; min-width: 44px; }
.op-head-logo img { height: 30px; width: auto; display: block; }
.op-icon-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--op-text) !important; border: 0; background: none; border-radius: 10px; cursor: pointer; text-decoration: none; }
.op-hotline {
    display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 6px; box-sizing: border-box;
    border: 1px solid var(--op-line); border-radius: 12px; background: #fff;
    color: var(--op-text) !important; text-decoration: none; white-space: nowrap; transition: border-color .15s;
}
.op-hotline:hover { border-color: var(--op-black); }
.op-hotline-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--op-bg); display: flex; align-items: center; justify-content: center; color: var(--op-black); }
.op-hotline-text { display: flex; flex-direction: column; line-height: 1.2; }
.op-hotline-text small { font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--op-muted); }
.op-hotline-text strong { margin-top: 2px; font-size: 15px; font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.op-steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 24px; font-size: 13px; }
.op-steps li { color: var(--op-muted); white-space: nowrap; }
.op-steps .is-current { color: var(--op-text); font-weight: 600; }
.op-steps button { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.op-steps button:hover { color: var(--op-text); }

/* Form */
.op-fields { display: flex; flex-direction: column; gap: 16px; }
.op-field { display: flex; flex-direction: column; gap: 6px; }
.op-field label { font-size: 13px; font-weight: 500; color: var(--op-text-2); margin: 0; }
.op-field label .op-req { color: var(--op-error); }
.op-field label .op-opt { font-weight: 400; color: var(--op-muted); }
.op-field input, .op-field textarea {
    width: 100%; box-sizing: border-box; padding: 0 14px; height: 50px;
    border: 0; border-radius: 12px; background: var(--op-bg);
    font-size: 16px; color: var(--op-text); font-family: inherit; box-shadow: none; outline: none;
}
.op-field textarea { height: auto; min-height: 76px; padding: 13px 14px; resize: vertical; line-height: 1.45; }
.op-field input:focus, .op-field textarea:focus { box-shadow: inset 0 0 0 2px var(--op-black); background: #fff; }
.op-field input::placeholder, .op-field textarea::placeholder { color: #8e8e93; }
.op-field .op-help { font-size: 13px; color: var(--op-muted); }
.op-field .op-error { display: none; font-size: 13px; color: var(--op-error); }
.op-field.is-invalid input, .op-field.is-invalid textarea { box-shadow: inset 0 0 0 2px var(--op-error); background: #fff; }
.op-field.is-invalid .op-error { display: block; }
.op-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Radio rows with hairlines (payment, installment provider) */
.op-pay { display: flex; flex-direction: column; border-top: 1px solid var(--op-line); }
.op-pay label { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; margin: 0; border-bottom: 1px solid var(--op-line); cursor: pointer; }
.op-radio, .op-pay input[type="radio"] {
    -webkit-appearance: none; appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0;
    border-radius: 10px; border: 1.5px solid var(--op-black); background: #fff; display: grid; place-content: center; cursor: pointer;
}
.op-radio::before, .op-pay input[type="radio"]::before { content: ""; width: 10px; height: 10px; border-radius: 5px; background: var(--op-black); transform: scale(0); }
.op-pay input[type="radio"]:checked::before, .op-radio.is-on::before { transform: scale(1); }
.op-pay input[type="radio"]:focus-visible { outline: 2px solid var(--op-accent); outline-offset: 2px; }
.op-pay b { display: block; font-size: 15px; line-height: 1.35; font-weight: 500; }
.op-pay span span { display: block; font-size: 13px; color: var(--op-muted); margin-top: 2px; }
.op-form-error { display: none; margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--op-error); }
.op-form-error.is-shown { display: block; }
.op-turnstile:empty { display: none; }
.op-turnstile { margin-top: 16px; }

/* Focus mode: checkout and order page hide the site header, footer and floating buttons */
body.op-focus .site-header, body.op-focus #footer, body.op-focus .float-contact { display: none !important; }
html:has(body.op-focus), body.op-focus, body.op-focus .wrapper { background: #fff; }
body.op-focus .op-page { min-height: calc(100vh - 57px); }

/* Order page: title, tracker, bank transfer, delivery */
.op-track { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column-reverse; text-align: left; font-size: 15px; line-height: 1.35; }
.op-track li { display: flex; align-items: flex-start; gap: 14px; color: var(--op-text); font-weight: 500; position: relative; padding-bottom: 16px; }
.op-track li:first-child { padding-bottom: 0; }
.op-track li::before { content: ""; position: absolute; left: 4px; top: 15px; bottom: 0; width: 2px; background: var(--op-line); }
.op-track li:first-child::before { display: none; }
.op-track .op-dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 5px; background: var(--op-ok); margin-top: 5px; position: relative; z-index: 1; }
.op-track .op-track-text { display: flex; flex-direction: column; gap: 2px; }
.op-track .op-track-text small { font-size: 13px; font-weight: 400; color: var(--op-muted); }
.op-cancel { margin: 16px 0 0; font-size: 15px; line-height: 1.5; color: var(--op-error); }
.op-paid { color: var(--op-ok); }
.op-bank-logo { flex: 0 0 auto; width: 100px; height: 32px; object-fit: cover; object-position: center; border: 1px solid var(--op-line); border-radius: 8px; }
.op-bank-qrbox { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px; border-radius: 16px; background: var(--op-bg); text-align: center; }
.op-bank-qrbox + .op-dl { margin-top: 12px; }
.op-bank-qr { display: block; width: 180px; max-width: 100%; height: auto; border-radius: 12px; background: #fff; }
.op-qr { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.op-qr .op-bank-qr { width: 180px; aspect-ratio: 1 / 1; image-rendering: pixelated; }
.op-qr figcaption { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; line-height: 1.5; color: var(--op-muted); }
.op-qr figcaption .op-link-btn { font-size: 14px; }
.op-dl { margin: 0; display: flex; flex-direction: column; font-size: 15px; }
.op-dl > div { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--op-line); }
.op-dl > div:last-child { border-bottom: 0; }
.op-dl dt { flex: 0 0 116px; color: var(--op-muted); font-weight: 400; }
.op-dl dd { margin: 0; flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.op-dl dd.is-accent { color: var(--op-accent); font-weight: 600; }
.op-dl dd.is-strong { font-weight: 600; }
.op-dl.is-plain > div { padding: 8px 0; border-bottom: 0; }
.op-dl.is-split dt { flex: 1 1 auto; }
.op-dl.is-split dd { flex: 0 0 auto; text-align: right; white-space: nowrap; }
.op-copy { flex: 0 0 auto; border: 0; background: none; padding: 0; color: var(--op-accent); font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; }
.op-copy:hover { color: var(--op-accent-dark); }
.op-copied { color: var(--op-ok) !important; }
.op-actions { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; }
.op-actions .op-link-btn { text-align: center; }
.sr-only-op { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Order page on phones: products before delivery, actions last (one column built from both columns) */
@media (max-width: 991.98px) {
    .op-order { display: flex; flex-direction: column; }
    .op-order > .op-main, .op-order > .op-aside { display: contents; }
    .op-order-deli { order: 2; }
    .op-order-items { order: 1; }
    .op-order-actions { order: 3; }
}
@media (min-width: 992px) {
    .op-order-items { margin-top: 0; padding-top: 0; border-top: 0; }
}

/* Added-to-cart sheet (mobile) */
.op-sheet-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 100000; }
.op-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100001; background: #fff; color: var(--op-text);
    border-radius: 20px 20px 0 0; padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; box-sizing: border-box; font-size: 15px; font-variant-numeric: tabular-nums;
}
.op-sheet-grip { align-self: center; width: 36px; height: 4px; border-radius: 2px; background: var(--op-border); }
.op-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.op-sheet-head h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--op-text); }
.op-sheet-close { width: 40px; height: 40px; margin-right: -8px; border: 0; border-radius: 20px; background: none; color: var(--op-text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.op-sheet-close:hover { background: var(--op-bg); }
.op-sheet-item { display: flex; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--op-line); }
.op-sheet-img { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 16px; background: var(--op-bg); padding: 10px; box-sizing: border-box; object-fit: contain; mix-blend-mode: multiply; }
.op-sheet-item .op-mini-body b { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.op-sheet-item .op-price { display: block; margin-top: 4px; }
.op-sheet-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0 20px; }
.op-sheet-sum > span:first-child { color: var(--op-muted); }
.op-sheet-sum > span:last-child { font-size: 22px; font-weight: 600; color: var(--op-accent); white-space: nowrap; }
.op-sheet-actions { display: flex; flex-direction: column; gap: 12px; }

/* Order popups (templates/order-popup.php, templates/order-popup-cto.php) */
html.op-pop-open, body.op-pop-open { overflow: hidden; }
.op-pop[hidden], .op-pop [hidden] { display: none !important; }
.op-pop { position: fixed; inset: 0; z-index: 100002; background: #fff; color: var(--op-text); font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.op-pop a { text-decoration: none; }
.op-pop-box { height: 100%; display: flex; flex-direction: column; background: #fff; }
.op-pop-form { height: 100%; display: flex; flex-direction: column; min-height: 0; margin: 0; }
.op-pop-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 6px 8px 6px 20px; background: #fff; border-bottom: 1px solid var(--op-line); }
.op-pop-head h2 { margin: 0; font-size: 17px; font-weight: 600; color: var(--op-text); }
.op-pop-close { width: 44px; height: 44px; border: 0; border-radius: 22px; background: none; color: var(--op-text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.op-pop-close:hover { background: var(--op-bg); }
.op-pop-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 24px 20px 28px; display: flex; flex-direction: column; }
.op-pop-main, .op-pop-side { display: flex; flex-direction: column; min-width: 0; }
.op-pop-side { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--op-line); }
.op-pop-foot {
    flex: 0 0 auto; display: flex; flex-direction: column; gap: 12px;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--op-line);
}
.op-pop-foot .op-bar-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.op-pop-foot .op-bar-total small { flex: 1 1 auto; min-width: 0; font-size: 14px; color: var(--op-muted); }
.op-pop-foot .op-bar-total small b { font-weight: 600; color: var(--op-text); }
.op-pop-foot .op-bar-total strong { flex: 0 0 auto; font-size: 20px; }
.op-pop-actions { display: flex; gap: 12px; }
.op-pop-actions .op-btn { flex: 1; }
.op-pop-actions .js-pop-cancel { display: none; }
.op-pop.is-done .op-pop-actions .js-pop-cancel { display: inline-flex; }
.op-pop-product { display: flex; gap: 16px; align-items: center; }
.op-pop-img { flex: 0 0 120px; width: 120px; height: 120px; border-radius: 16px; background: var(--op-bg); padding: 12px; box-sizing: border-box; object-fit: contain; mix-blend-mode: multiply; }
.op-pop-product-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.op-pop-product-body b { font-size: 15px; font-weight: 600; line-height: 1.35; }
.op-pop-product-body .op-price { font-size: 17px; color: var(--op-accent); }
.op-pop-meta { font-size: 13px; color: var(--op-muted); }
.op-pop-block { margin-top: 24px; }
.op-pop-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.op-pop-fieldset + .op-pop-fieldset { margin-top: 20px; }
.op-pop-fieldset legend, .op-pop-legend { float: none; width: auto; padding: 0; margin: 0 0 10px; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--op-text); }
.op-pop-fieldset legend span, .op-pop-legend span { font-weight: 400; color: var(--op-muted); }
.op-pop-label { margin: 0; font-size: 15px; }
.op-pop-label b { font-weight: 600; }
.op-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.op-choice {
    min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--op-border); background: #fff;
    color: var(--op-text); font-size: 14px; line-height: 1.3; cursor: pointer; font-family: inherit;
}
.op-choice small { color: var(--op-muted); font-size: 12px; }
/* Same font weight in both states: a bolder label is wider and re-wraps */
.op-choice[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--op-black); border-color: var(--op-black); }
/* Segmented control: prepay and tenor */
.op-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 2px; border-radius: 10px; background: var(--op-bg); }
.op-seg button {
    min-height: 36px; padding: 0 2px; border: 0; border-radius: 8px; background: none; color: var(--op-text);
    font-size: 14px; line-height: 1.2; white-space: nowrap; cursor: pointer; font-family: inherit;
}
.op-seg button[aria-pressed="true"] { background: #fff; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.op-seg button:focus-visible { outline: 2px solid var(--op-accent); outline-offset: -2px; }
@media (max-width: 374.98px) {
    .op-seg button { font-size: 13px; }
}
/* Installment providers: radio rows with the logo on the right */
.op-plans { display: flex; flex-direction: column; border-top: 1px solid var(--op-line); }
.op-plan {
    display: flex; gap: 14px; align-items: flex-start; width: 100%; padding: 16px 0; border: 0; border-bottom: 1px solid var(--op-line);
    background: none; color: var(--op-text); text-align: left; cursor: pointer; font-family: inherit;
}
.op-plan .op-radio { pointer-events: none; }
.op-plan[aria-checked="true"] .op-radio::before { transform: scale(1); }
.op-plan-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.op-plan-text b { font-size: 15px; font-weight: 500; line-height: 1.35; }
.op-plan-text b span { font-weight: 400; color: var(--op-muted); }
.op-plan-text small { font-size: 13px; line-height: 1.4; color: var(--op-muted); }
.op-plan img { flex: 0 0 auto; width: 56px; height: 24px; object-fit: contain; }
.op-plan:disabled { opacity: .45; cursor: not-allowed; }
.op-plan-sum { margin-top: 8px; }
.op-plan-sum .op-dl > div { padding: 10px 0; }
.op-plan-sum .op-dl dt { flex: 1 1 auto; }
.op-plan-sum .op-dl dd { flex: 0 0 auto; text-align: right; white-space: nowrap; }
.op-pop-cto { display: inline-block; margin-top: 16px; font-size: 15px; font-weight: 500; color: var(--op-accent) !important; }
.op-cto-open { margin-left: 4px; font-weight: 600; color: var(--op-accent); }
.op-cto-lines .op-dl > div { padding: 10px 0; }
.op-cto-lines .op-dl dt { flex: 1 1 auto; }
.op-cto-lines .op-dl dd { flex: 0 0 auto; text-align: right; white-space: nowrap; font-weight: 500; }
.op-cto-lines .op-dl dd.is-included { font-weight: 400; color: var(--op-muted); }
.op-cto-lines .op-dl + .op-dl:not(:empty), .op-cto-lines .op-rows { border-top: 1px solid var(--op-line); }
.op-cto-lines .op-total { padding-top: 14px; }
.op-cto-deli p { margin: 0; font-size: 15px; line-height: 1.5; }
.op-contact .op-field input, .op-contact .op-field textarea { background: var(--op-bg); }
.op-contact-done { margin-top: 16px; font-size: 15px; color: var(--op-ok); }
.op-pop-done { text-align: left; display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.op-pop-done h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.op-pop-done p { margin: 0; color: var(--op-text-2); }
.op-pop-done .op-done-meta { font-size: 15px; line-height: 1.6; }
.op-pop-done .op-sheet-item { padding: 12px 0; border-top: 1px solid var(--op-line); }

@media (min-width: 992px) {
    .op-pop { background: rgba(0, 0, 0, .4); display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
    .op-pop-box { height: auto; max-height: calc(100vh - 64px); width: 100%; max-width: 920px; border-radius: 20px; overflow: hidden; }
    .op-pop[data-mode="gop"] .op-pop-box, .op-pop[data-mode="cto"] .op-pop-box { max-width: 980px; }
    .op-pop-form { height: auto; max-height: calc(100vh - 64px); }
    .op-pop-head { min-height: 0; padding: 28px 28px 8px 40px; border-bottom: 0; }
    .op-pop-head h2 { font-size: 22px; letter-spacing: -.01em; }
    .op-pop-body { padding: 16px 40px 28px; flex-direction: row; align-items: flex-start; gap: 48px; }
    .op-pop-main { flex: 1 1 0; }
    .op-pop-side { flex: 1 1 0; margin-top: 0; padding-top: 0; border-top: 0; }
    .op-pop-foot { margin: 0 40px; padding: 20px 0 28px; flex-direction: row; align-items: center; gap: 24px; }
    .op-pop-foot .op-bar-total { flex: 1; flex-direction: column; align-items: flex-start; gap: 0; }
    .op-pop-foot .op-bar-total strong { font-size: 22px; }
    .op-pop-actions { flex: 0 0 auto; }
    .op-pop-actions .op-btn { flex: 0 0 auto; }
    .op-pop-actions .js-pop-cancel { display: inline-flex; }
    .op-pop .op-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .op-pop .op-form-grid .op-field-wide, .op-pop .op-form-grid [data-field="email"], .op-pop .op-form-grid [data-field="note"] { grid-column: 1 / -1; }
}

@media (max-width: 991.98px) {
    .op-desktop { display: none !important; }
    .op-form-error, .op-turnstile, .op-field { scroll-margin-bottom: 140px; }
}
@media (min-width: 992px) {
    .op-mobile, .op-bar { display: none !important; }
    .op-page { padding: 24px 0 72px; }
    .op-title { font-size: 32px; line-height: 36px; }
    .op-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
    .op-aside { position: sticky; top: 24px; }
    body:not(.op-focus) .op-aside { top: 96px; }
    .op-items { margin-top: 28px; }
    .op-item { grid-template-columns: 160px minmax(0, 1fr) auto; column-gap: 28px; row-gap: 16px; }
    .op-item-img { width: 160px; height: 160px; grid-row: 1 / 3; }
    .op-item-info { grid-column: 2; grid-row: 1; }
    .op-item-title { font-size: 17px; font-weight: 500; }
    .op-item-amount { grid-column: 3; grid-row: 1; font-size: 17px; text-align: right; }
    .op-item-actions { grid-column: 2; grid-row: 2; align-self: start; justify-content: flex-start; gap: 24px; }
    .op-rows .op-row { padding: 12px 0; border-bottom: 1px solid var(--op-line); }
    .op-rows .op-row.op-total { border-bottom: 0; padding-top: 20px; }
    .op-total > span:last-child { font-size: 26px; }
    .op-head-inner { min-height: 64px; }
    .op-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .op-form-grid .op-field-wide, .op-form-grid [data-field="email"], .op-form-grid [data-field="note"] { grid-column: 1 / -1; }
    .op-mini-img { flex-basis: 80px; width: 80px; height: 80px; }
    .op-aside .op-mini { align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--op-line); }
    .op-bank-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: start; }
    .op-bank-grid .op-bank-qrbox { padding: 0; background: none; align-items: flex-start; text-align: left; }
    .op-bank-grid .op-qr, .op-bank-grid .op-qr figcaption { align-items: flex-start; }
    .op-bank-grid .op-bank-qr { border: 1px solid var(--op-line); }
    .op-bank-grid .op-bank-qrbox + .op-dl { margin-top: -12px; }
}

/* Installment calculator page (page-gop.php) */
.op-gop-grid { display: flex; flex-direction: column; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--op-line); }
.op-gop-controls { display: flex; flex-direction: column; gap: 20px; }
.op-gop-price { position: relative; }
.op-field .op-gop-price input { padding-right: 44px; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.op-gop-price span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--op-muted); pointer-events: none; }
.op-gop-results { display: flex; flex-direction: column; margin-top: 28px; padding-top: 4px; border-top: 1px solid var(--op-line); }
.op-gop-plan { display: flex; flex-direction: column; min-width: 0; padding: 24px 0; border-bottom: 1px solid var(--op-line); }
.op-gop-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; }
.op-gop-plan-head img { height: 24px; width: auto; max-width: 50%; object-fit: contain; }
.op-gop-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--op-ok); font-size: 13px; font-weight: 600; white-space: nowrap; }
.op-gop-badge::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--op-ok); }
.op-gop-badge[hidden] { display: none; }
.op-page .op-gop-plan h2 { margin: 12px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.op-gop-monthly { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.op-gop-monthly > span { font-size: 13px; color: var(--op-muted); }
.op-gop-monthly strong { min-height: 34px; font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.01em; color: var(--op-accent); font-variant-numeric: tabular-nums; }
.op-gop-plan.is-off .op-gop-monthly strong { font-size: 17px; color: var(--op-muted); }
.op-gop-plan.is-empty .op-gop-monthly strong { font-size: 17px; font-weight: 500; color: var(--op-muted); }
.op-gop-rows { margin: 16px 0 0; display: flex; flex-direction: column; border-top: 1px solid var(--op-line); }
.op-gop-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--op-line); font-size: 15px; }
.op-gop-rows dt { font-weight: 400; color: var(--op-muted); }
.op-gop-rows dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.op-gop-facts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.45; color: var(--op-muted); }
.op-gop-note { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; font-size: 13px; line-height: 1.5; color: var(--op-muted); }
.op-gop-note p { margin: 0; }
.op-gop-actions { display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 768px) {
    .op-gop-results { flex-direction: row; gap: 40px; border-top: 0; margin-top: 0; padding-top: 0; }
    .op-gop-plan { flex: 1 1 0; padding: 0; border-bottom: 0; }
}
@media (min-width: 992px) {
    .op-gop-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 64px; align-items: start; border-top: 0; padding-top: 0; margin-top: 36px; }
    .op-gop-controls { position: sticky; top: 96px; }
    .op-gop-note { grid-column: 2; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--op-line); }
    .op-gop-actions { flex-direction: row; align-items: center; gap: 28px; }
}
