/* ==========================================================================
   One-page checkout — zepter-ua.shop
   Palette taken from the live site: Zepter blue #005596, graphite #3A4754,
   accent yellow #FDC22D, price orange #E96631, green #50AD55. Font: Roboto.
   ========================================================================== */
#onepage {
  --z-blue: #005596;
  --z-blue-600: #00487f;
  --z-blue-700: #003a66;
  --z-blue-50: #eef4fa;
  --z-blue-100: #dbe8f2;
  --z-graphite: #3a4754;
  --z-yellow: #fdc22d;
  --z-orange: #e96631;
  --z-green: #2f9e44;
  --z-red: #d6293e;
  --z-text: #1f2a35;
  --z-muted: #6b7682;
  --z-line: #e3e8ee;
  --z-bg: #f4f6f9;
  --z-card: #ffffff;
  --z-radius: 14px;
  --z-radius-sm: 10px;
  --z-shadow: 0 1px 2px rgba(16, 40, 70, .06), 0 8px 24px rgba(16, 40, 70, .06);
  --z-shadow-lg: 0 2px 4px rgba(16, 40, 70, .06), 0 18px 40px rgba(16, 40, 70, .10);
  --z-ease: cubic-bezier(.2, .8, .2, 1);
  font-family: Roboto, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--z-text);
}
#onepage *, #onepage *::before, #onepage *::after { box-sizing: border-box; }
#onepage .op-ico { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }

/* ---------- head + steps ---------- */
.op-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 6px 0 22px; }
#onepage .op-title { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 0; color: var(--z-text); }
.op-steps { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 0; }
.op-steps li { display: flex; align-items: center; gap: 8px; color: var(--z-muted); font-size: 14px; font-weight: 500; }
.op-steps li + li::before { content: ""; width: 44px; height: 2px; background: var(--z-line); margin: 0 12px; border-radius: 2px; transition: background .4s var(--z-ease); }
.op-steps li.is-done + li::before { background: var(--z-blue); }
.op-step-dot { position: relative; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--z-line); color: var(--z-muted); font-size: 13px; transition: all .3s var(--z-ease); }
.op-step-dot b { font-weight: 700; }
.op-step-dot .op-ico { position: absolute; width: 16px; height: 16px; stroke-width: 3; opacity: 0; transform: scale(.4); transition: all .3s var(--z-ease); }
.op-steps li.is-active { color: var(--z-text); }
.op-steps li.is-active .op-step-dot { border-color: var(--z-blue); color: var(--z-blue); box-shadow: 0 0 0 4px var(--z-blue-100); }
.op-steps li.is-done { color: var(--z-text); }
.op-steps li.is-done .op-step-dot { background: var(--z-blue); border-color: var(--z-blue); color: #fff; }
.op-steps li.is-done .op-step-dot b { opacity: 0; }
.op-steps li.is-done .op-step-dot .op-ico { opacity: 1; transform: scale(1); }

/* ---------- layout ---------- */
#op-form { position: relative; }
.op-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.op-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.op-aside { position: sticky; top: 96px; }

/* ---------- cards ---------- */
.op-card { background: var(--z-card); border: 1px solid var(--z-line); border-radius: var(--z-radius); padding: 24px; box-shadow: var(--z-shadow); transition: border-color .3s, box-shadow .3s; }
.op-card.is-complete { border-color: #cfe0ee; }
.op-card-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.op-card-head > div { flex: 1; min-width: 0; }
.op-card-head h2 { font-size: 19px; font-weight: 700; margin: 2px 0 3px; color: var(--z-text); letter-spacing: -.01em; }
.op-card-head p { margin: 0; color: var(--z-muted); font-size: 13.5px; }
.op-card-num { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--z-blue); background: var(--z-blue-50); transition: all .3s var(--z-ease); }
.op-card.is-complete .op-card-num { background: var(--z-blue); color: #fff; }
.op-login { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--z-blue) !important; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--z-blue-100); text-decoration: none !important; white-space: nowrap; transition: background .2s; }
.op-login:hover { background: var(--z-blue-50); }
#onepage .op-login .op-ico { width: 16px; height: 16px; }

.op-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.op-col-2 { grid-column: 1 / -1; }
.op-sub { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--z-muted); margin: 22px 0 10px; }

/* ---------- floating-label inputs ---------- */
.op-field { min-width: 0; }
.op-input { position: relative; }
.op-input input {
  width: 100%; height: 58px; padding: 22px 44px 6px 46px; font-size: 16px; color: var(--z-text);
  background: #fff; border: 1.5px solid var(--z-line); border-radius: var(--z-radius-sm); outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none; box-shadow: none;
}
.op-input input:hover { border-color: #c9d3dd; }
.op-input input:focus { border-color: var(--z-blue); box-shadow: 0 0 0 4px rgba(0, 85, 150, .12); }
.op-input label {
  position: absolute; left: 46px; top: 50%; transform: translateY(-50%); margin: 0; pointer-events: none;
  color: var(--z-muted); font-size: 15.5px; font-weight: 400; transition: all .18s var(--z-ease); white-space: nowrap; max-width: calc(100% - 90px); overflow: hidden; text-overflow: ellipsis;
}
.op-input label i, .op-select-label i { color: var(--z-red); font-style: normal; }
.op-input label small { color: #9aa4ae; font-size: 12px; }
.op-input input:focus + label, .op-input input:not(:placeholder-shown) + label { top: 16px; font-size: 12px; font-weight: 500; color: var(--z-blue); }
.op-input input:not(:focus):not(:placeholder-shown) + label { color: var(--z-muted); }
.op-input-ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #9aa4ae; transition: color .2s; }
.op-input:focus-within .op-input-ico { color: var(--z-blue); }
.op-ok { position: absolute; right: 14px; top: 50%; width: 22px !important; height: 22px !important; padding: 4px; border-radius: 50%; color: #fff; background: var(--z-green); stroke-width: 3 !important; transform: translateY(-50%) scale(0); transition: transform .25s var(--z-ease); }
.op-field.is-valid .op-ok { transform: translateY(-50%) scale(1); }
.op-field.is-valid .op-input input { border-color: #b8dcc1; }
.op-field.has-error .op-input input, .op-field.has-error .select2-selection { border-color: var(--z-red) !important; background: #fff8f8; }
.op-field.has-error { animation: op-shake .35s; }
@keyframes op-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* phone with Ukrainian flag */
.op-flag { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 14px; border-radius: 3px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.op-flag i { flex: 1; background: #0057b7; }
.op-flag i + i { background: #ffd700; }

/* ---------- selects (select2 skin) ---------- */
.op-select { position: relative; }
.op-select-label { position: absolute; z-index: 2; left: 46px; top: 9px; font-size: 12px; font-weight: 500; color: var(--z-muted); pointer-events: none; display: flex; align-items: center; gap: 6px; }
.op-select-label .op-ico { position: absolute; left: -31px; top: 9px; color: #9aa4ae; }
.op-select select { width: 100%; height: 58px; padding: 20px 40px 4px 46px; font-size: 16px; border: 1.5px solid var(--z-line); border-radius: var(--z-radius-sm); background: #fff; }
#op-form .select2-container { width: 100% !important; }
#op-form .select2-container .select2-selection--single {
  height: 58px; border: 1.5px solid var(--z-line); border-radius: var(--z-radius-sm); background: #fff;
  transition: border-color .2s, box-shadow .2s; outline: none;
}
#op-form .select2-container:hover .select2-selection--single { border-color: #c9d3dd; }
#op-form .select2-container--open .select2-selection--single,
#op-form .select2-container--focus .select2-selection--single { border-color: var(--z-blue); box-shadow: 0 0 0 4px rgba(0, 85, 150, .12); }
#op-form .select2-selection__rendered { line-height: 1.3 !important; padding: 27px 44px 0 46px !important; font-size: 16px; color: var(--z-text) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#op-form .select2-selection__placeholder { color: #9aa4ae !important; }
#op-form .select2-selection__arrow { height: 56px !important; right: 12px !important; width: 24px !important; }
#op-form .select2-selection__arrow b { border: 0 !important; width: 10px !important; height: 10px !important; margin: -7px 0 0 -5px !important; border-right: 2px solid #7b8794 !important; border-bottom: 2px solid #7b8794 !important; transform: rotate(45deg); transition: transform .2s; }
#op-form .select2-container--open .select2-selection__arrow b { transform: rotate(-135deg); margin-top: -2px !important; }
.op-select:focus-within .op-select-label .op-ico { color: var(--z-blue); }
.op-field.is-valid .op-select .select2-selection--single { border-color: #b8dcc1; }

.select2-container--open .select2-dropdown.op-dd { border: 1.5px solid var(--z-blue); border-radius: var(--z-radius-sm); box-shadow: var(--z-shadow-lg, 0 18px 40px rgba(16,40,70,.12)); overflow: hidden; font-family: Roboto, Arial, sans-serif; }
.select2-container--open .select2-dropdown--below.op-dd { margin-top: 6px; }
.select2-container--open .select2-dropdown--above.op-dd { margin-top: -6px; }
.op-dd .select2-search--dropdown { padding: 10px; }
.op-dd .select2-search__field { height: 42px; border: 1.5px solid #e3e8ee !important; border-radius: 8px; padding: 0 12px 0 36px !important; font-size: 15px; outline: none; background: #f7f9fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa4ae' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px center / 17px; }
.op-dd .select2-search__field:focus { border-color: #005596 !important; background-color: #fff; }
.op-dd .select2-results__options { max-height: 300px !important; padding: 4px 6px 8px; }
.op-dd .select2-results__option { padding: 10px 12px; border-radius: 8px; font-size: 14.5px; line-height: 1.35; color: #1f2a35; }
.op-dd .select2-results__option--highlighted[aria-selected] { background: #eef4fa !important; color: #005596 !important; }
.op-dd .select2-results__option[aria-selected=true] { background: #005596 !important; color: #fff !important; }
.op-dd .select2-results__message { color: #6b7682; }

/* ---------- option cards (shipping / payment) ---------- */
.op-options { display: grid; gap: 10px; }
.op-option { position: relative; display: flex; align-items: center; gap: 14px; margin: 0; padding: 15px 16px; border: 1.5px solid var(--z-line); border-radius: var(--z-radius-sm); background: #fff; cursor: pointer; font-weight: 400; transition: border-color .2s, background .2s, box-shadow .2s, transform .15s; }
.op-option:hover { border-color: #b9cde0; }
.op-option:active { transform: scale(.995); }
.op-option input { position: absolute; opacity: 0; pointer-events: none; }
.op-option-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--z-bg); color: var(--z-graphite); transition: all .2s; }
#onepage .op-option-ico .op-ico { width: 22px; height: 22px; }
.op-option-text { flex: 1; min-width: 0; }
.op-option-text b { display: block; font-weight: 600; font-size: 15px; color: var(--z-text); }
.op-option-text small { display: block; color: var(--z-muted); font-size: 13px; margin-top: 2px; }
.op-option-price { font-weight: 700; color: var(--z-text); white-space: nowrap; font-size: 14px; }
.op-option-price.is-free { color: var(--z-green); font-weight: 600; }
.op-option-text small.op-price-inline { display: none; font-weight: 600; color: var(--z-text); }
.op-option-text small.op-price-inline.is-free { color: var(--z-green); }
.op-radio-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c5ced8; flex: none; position: relative; transition: all .2s; }
.op-radio-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--z-blue); transform: scale(0); transition: transform .2s var(--z-ease); }
.op-option.is-checked { border-color: var(--z-blue); background: var(--z-blue-50); box-shadow: 0 0 0 3px rgba(0, 85, 150, .08); }
.op-option.is-checked .op-option-ico { background: var(--z-blue); color: #fff; }
.op-option.is-checked .op-radio-dot { border-color: var(--z-blue); }
.op-option.is-checked .op-radio-dot::after { transform: scale(1); }
.op-option input:focus-visible ~ .op-radio-dot { box-shadow: 0 0 0 4px rgba(0, 85, 150, .2); }
#op-city-wrap, #op-address-wrap { margin-top: 14px; }
#op-city-wrap[hidden], #op-address-wrap[hidden] { display: none; }
.op-note { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--z-radius-sm); background: var(--z-bg); color: var(--z-muted); font-size: 14px; }
.op-note .op-ico { color: var(--z-blue); }

/* comment */
.op-comment { margin-top: 18px; border-top: 1px dashed var(--z-line); padding-top: 14px; }
.op-comment summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--z-blue); font-weight: 500; font-size: 14.5px; user-select: none; }
.op-comment summary::-webkit-details-marker { display: none; }
#onepage .op-comment .op-chev { width: 16px; height: 16px; transition: transform .2s; }
.op-comment[open] .op-chev { transform: rotate(180deg); }
.op-comment textarea { width: 100%; margin-top: 12px; min-height: 92px; padding: 12px 14px; font-size: 15px; border: 1.5px solid var(--z-line); border-radius: var(--z-radius-sm); resize: vertical; outline: none; transition: border-color .2s, box-shadow .2s; font-family: inherit; }
.op-comment textarea:focus { border-color: var(--z-blue); box-shadow: 0 0 0 4px rgba(0, 85, 150, .12); }

/* ---------- summary ---------- */
.op-summary { background: var(--z-card); border: 1px solid var(--z-line); border-radius: var(--z-radius); box-shadow: var(--z-shadow-lg); padding: 22px; position: relative; overflow: hidden; }
.op-summary::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--z-blue), #1d78c1 60%, var(--z-yellow)); }
.op-summary-head { all: unset; box-sizing: border-box; width: 100%; display: flex; justify-content: space-between; align-items: center; font-size: 18px; font-weight: 700; color: var(--z-text); margin-bottom: 14px; cursor: default; }
.op-summary-head > span { display: flex; align-items: center; gap: 10px; }
.op-summary-head .op-ico { color: var(--z-blue); }
.op-summary-head em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--z-blue); background: var(--z-blue-50); padding: 3px 9px; border-radius: 20px; }
#onepage .op-summary-head .op-chev { display: none; }
#onepage .op-summary-head .op-head-sum { display: none; }

.op-lines { display: flex; flex-direction: column; }
.op-line { display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: "t n x" "t q s"; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--z-line); animation: op-in .3s var(--z-ease); }
.op-line:first-child { padding-top: 4px; }
@keyframes op-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.op-thumb { grid-area: t; width: 64px; height: 64px; border-radius: 10px; background: #fff; border: 1px solid var(--z-line); display: grid; place-items: center; overflow: hidden; }
.op-thumb img { max-width: 56px; max-height: 56px; object-fit: contain; }
.op-name { grid-area: n; min-width: 0; font-size: 14px; line-height: 1.35; }
.op-name a { color: var(--z-text) !important; font-weight: 500; text-decoration: none !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.op-name a:hover { color: var(--z-blue) !important; }
.op-name small { display: block; color: var(--z-muted); font-size: 12px; margin-top: 2px; }
.op-nostock .op-name a { color: var(--z-red) !important; }
.op-remove { grid-area: x; align-self: start; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: #a3adb7; cursor: pointer; display: grid; place-items: center; transition: all .2s; padding: 0; }
.op-remove:hover { background: #fdecee; color: var(--z-red); }
#onepage .op-remove .op-ico { width: 16px; height: 16px; }
.op-qty { grid-area: q; display: inline-flex; align-items: center; justify-self: start; background: var(--z-bg); border-radius: 10px; padding: 3px; }
.op-qbtn { width: 30px; height: 30px; border: 0; border-radius: 8px; background: #fff; color: var(--z-graphite); font-size: 17px; line-height: 1; cursor: pointer; box-shadow: 0 1px 2px rgba(16,40,70,.08); transition: all .15s; padding: 0; }
.op-qbtn:hover { color: var(--z-blue); }
.op-qbtn:active { transform: scale(.92); }
.op-qinput { width: 40px; height: 30px; border: 0; background: transparent; text-align: center; font-weight: 600; font-size: 15px; -moz-appearance: textfield; outline: none; }
.op-qinput::-webkit-outer-spin-button, .op-qinput::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.op-sum { grid-area: s; align-self: center; font-weight: 700; white-space: nowrap; font-size: 15px; }
.op-unit { color: var(--z-muted); font-size: 12px; }

.op-totals { margin: 14px 0 4px; }
.op-trow { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14.5px; color: var(--z-muted); }
.op-trow b { color: var(--z-text); font-weight: 600; white-space: nowrap; }
.op-trow.is-free b { color: var(--z-green); }
.op-trow.op-grand { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--z-line); color: var(--z-text); font-size: 16px; font-weight: 600; align-items: baseline; }
.op-trow.op-grand b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--z-text); }

/* ---------- buttons ---------- */
.op-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 12px; font-family: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important; transition: background .2s, transform .15s, box-shadow .2s; position: relative; }
.op-btn-primary { background: var(--z-blue); color: #fff !important; padding: 14px 22px; font-size: 15px; box-shadow: 0 6px 18px rgba(0, 85, 150, .28); }
.op-btn-primary:hover { background: var(--z-blue-600); box-shadow: 0 8px 22px rgba(0, 85, 150, .34); }
.op-btn-primary:active { transform: translateY(1px); }
.op-btn-primary .op-ico { transition: transform .2s; }
.op-btn-primary:hover .op-ico { transform: translateX(3px); }
.op-btn-lg { width: 100%; padding: 18px 22px; font-size: 17px; margin-top: 16px; text-transform: none; letter-spacing: .01em; }
.op-btn[disabled] { opacity: .85; cursor: progress; }
.op-spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: op-spin .7s linear infinite; }
.op-btn.is-loading .op-spinner { display: inline-block; }
.op-btn.is-loading .op-ico { display: none; }
@keyframes op-spin { to { transform: rotate(360deg); } }

.op-legal { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 12px 0 0; color: var(--z-muted); font-size: 12.5px; text-align: center; }
#onepage .op-legal .op-ico { width: 14px; height: 14px; }
.op-trust { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--z-line); display: grid; gap: 12px; }
.op-trust li { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--z-muted); line-height: 1.3; }
#onepage .op-trust li .op-ico { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: #fff4d1; color: #a87400; }
.op-trust b { display: block; color: var(--z-text); font-weight: 600; font-size: 13.5px; }

/* ---------- errors / loading ---------- */
.op-error { display: none; align-items: center; gap: 6px; color: var(--z-red); font-size: 13px; margin-top: 7px; font-weight: 500; }
.op-error.is-shown { display: flex; animation: op-in .2s; }
.op-error::before { content: "!"; width: 16px; height: 16px; border-radius: 50%; background: var(--z-red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; flex: none; }
.op-error-main { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #fdecee; }
.op-summary-body { position: relative; transition: opacity .2s; }
#op-form.op-loading .op-summary-body, #op-form.op-loading .op-options { opacity: .5; pointer-events: none; }
#op-form.op-loading .op-summary::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 40%; background: rgba(255,255,255,.7); animation: op-bar 1s ease-in-out infinite; }
@keyframes op-bar { from { left: -40%; } to { left: 100%; } }

/* ---------- empty cart ---------- */
.op-empty { max-width: 520px; margin: 40px auto 60px; text-align: center; padding: 48px 32px; background: #fff; border: 1px solid var(--z-line); border-radius: var(--z-radius); box-shadow: var(--z-shadow); }
.op-empty-icon { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%; background: var(--z-blue-50); color: var(--z-blue); display: grid; place-items: center; }
#onepage .op-empty-icon .op-ico { width: 40px; height: 40px; }
.op-empty h1 { font-size: 24px; font-weight: 700; margin: 0 0 10px; }
.op-empty p { color: var(--z-muted); margin: 0 0 24px; font-size: 15px; }

/* ---------- mobile bar ---------- */
.op-mbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .op-layout { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 991px) {
  .op-layout { grid-template-columns: 1fr; }
  .op-aside { position: static; order: -1; }
  .op-summary { padding: 16px 18px; }
  .op-summary-head { cursor: pointer; margin-bottom: 0; }
  #onepage .op-summary-head .op-chev { display: block; transition: transform .25s; color: var(--z-muted); }
  .op-summary-head[aria-expanded="true"] .op-chev { transform: rotate(180deg); }
  .op-summary-head[aria-expanded="true"] { margin-bottom: 12px; }
  .op-summary-head[aria-expanded="false"] + .op-summary-body { display: none; }
  .op-summary #op-submit, .op-summary .op-legal { display: none; }
  .op-summary-head > span:first-child { flex: 1; }
  #onepage .op-summary-head .op-head-sum { display: block; font-size: 16px; font-weight: 800; margin-right: 8px; white-space: nowrap; }
  #onepage .op-summary-head[aria-expanded="true"] .op-head-sum { display: none; }
  .op-summary-head[aria-expanded="false"] ~ .op-trust { display: none; }
  .op-trust { order: 9; }
  .op-trust { grid-template-columns: repeat(3, 1fr); }
  .op-trust li { flex-direction: column; text-align: center; gap: 6px; font-size: 11.5px; }
  .op-trust b { font-size: 12px; }
  .op-mbar {
    display: flex; position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0; gap: 14px; align-items: center;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--z-line); box-shadow: 0 -8px 24px rgba(16, 40, 70, .08);
  }
  .op-mbar-total { flex: 1; min-width: 0; line-height: 1.15; }
  .op-mbar-total small { display: block; color: var(--z-muted); font-size: 12px; }
  .op-mbar-total b { font-size: 20px; font-weight: 800; white-space: nowrap; }
  .op-mbar .op-btn { padding: 14px 22px; font-size: 16px; }
  #onepage { padding-bottom: 90px; }
}
@media (max-width: 767px) {
  #onepage .op-title { font-size: 24px; }
  .op-head { margin-bottom: 16px; gap: 14px; }
  .op-steps { width: 100%; justify-content: space-between; }
  .op-steps li { flex-direction: column; gap: 5px; font-size: 12px; flex: none; }
  .op-steps li + li::before { display: none; }
  .op-steps { position: relative; }
  .op-steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 15px; height: 2px; background: var(--z-line); z-index: 0; }
  .op-step-dot { z-index: 1; }
  .op-card { padding: 18px 16px; border-radius: 12px; }
  .op-card-head p { font-size: 13px; }
  .op-summary-head { font-size: 16px; }
  .op-card-head { margin-bottom: 16px; gap: 12px; }
  .op-card-head h2 { font-size: 17px; }
  .op-grid { grid-template-columns: 1fr; gap: 12px; }
  .op-login { padding: 6px 10px; font-size: 13px; }
  .op-option { padding: 13px 12px; gap: 12px; }
  .op-option-ico { width: 40px; height: 40px; }
  .op-option-price { display: none; }
  .op-option-text small.op-price-inline { display: block; margin-top: 4px; }
  .op-summary-head > span:first-child { white-space: nowrap; min-width: 0; gap: 8px; }
  .op-summary-head em { white-space: nowrap; padding: 2px 8px; font-size: 11.5px; }
  .op-head-sum { font-size: 15px; margin-right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  #onepage *, #onepage *::before, #onepage *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Empty cart (rendered instantly by JS) + Order success page
   ========================================================================== */
.op-empty-anim { animation: op-pop .45s var(--z-ease); }
@keyframes op-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.op-success { padding-bottom: 40px; }
.op-hero { position: relative; text-align: center; max-width: 760px; margin: 18px auto 28px; padding: 48px 32px 40px; background: #fff; border: 1px solid var(--z-line); border-radius: 20px; box-shadow: var(--z-shadow-lg); overflow: hidden; }
.op-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--z-blue), #1d78c1 60%, var(--z-yellow)); }
.op-hero::after { content: ""; position: absolute; left: 50%; top: -140px; width: 520px; height: 320px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0, 85, 150, .09), transparent); pointer-events: none; }
.op-hero h1 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 12px; color: var(--z-text); position: relative; }
.op-hero-kicker { position: relative; display: inline-block; margin: 0; padding: 5px 12px; border-radius: 20px; background: var(--z-blue-50); color: var(--z-blue); font-weight: 600; font-size: 13.5px; }
.op-hero-lead { position: relative; max-width: 520px; margin: 0 auto 26px; font-size: 16px; line-height: 1.55; color: var(--z-muted); }
.op-hero-lead b { color: var(--z-text); white-space: nowrap; }
.op-hero-actions { position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.op-btn-ghost { background: #fff; color: var(--z-blue) !important; border: 1.5px solid var(--z-blue-100); padding: 13px 20px; font-size: 15px; }
.op-btn-ghost:hover { background: var(--z-blue-50); border-color: var(--z-blue); }

/* animated check */
.op-check { position: relative; z-index: 1; width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%; background: var(--z-blue); box-shadow: 0 0 0 10px var(--z-blue-50), 0 14px 30px rgba(0, 85, 150, .35); animation: op-check-pop .5s var(--z-ease) both; }
.op-check svg { width: 100%; height: 100%; }
.op-check-circle { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: op-draw .6s .15s ease-out forwards; }
.op-check-mark { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: op-draw .45s .45s ease-out forwards; }
@keyframes op-draw { to { stroke-dashoffset: 0; } }
@keyframes op-check-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
.op-burst { position: absolute; left: 50%; top: 94px; width: 0; height: 0; z-index: 0; }
.op-burst span { position: absolute; width: 8px; height: 8px; border-radius: 2px; background: var(--z-yellow); opacity: 0; animation: op-burst .9s .35s ease-out forwards; }
.op-burst span:nth-child(even) { background: var(--z-blue); width: 6px; height: 6px; border-radius: 50%; }
.op-burst span:nth-child(3n) { background: var(--z-orange); }
.op-burst span:nth-child(1) { --x: -95px; --y: -40px; } .op-burst span:nth-child(2) { --x: 90px; --y: -48px; }
.op-burst span:nth-child(3) { --x: -70px; --y: 45px; }  .op-burst span:nth-child(4) { --x: 78px; --y: 40px; }
.op-burst span:nth-child(5) { --x: -120px; --y: 5px; }  .op-burst span:nth-child(6) { --x: 120px; --y: -2px; }
.op-burst span:nth-child(7) { --x: -35px; --y: -75px; } .op-burst span:nth-child(8) { --x: 40px; --y: -78px; }
@keyframes op-burst { 0% { opacity: 1; transform: translate(0, 0) scale(.6) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1) rotate(180deg); } }

/* what's next */
.op-next, .op-receipt { max-width: 960px; margin: 0 auto 24px; background: #fff; border: 1px solid var(--z-line); border-radius: var(--z-radius); box-shadow: var(--z-shadow); padding: 26px 28px; }
.op-next h2, .op-receipt h2 { font-size: 19px; font-weight: 700; margin: 0 0 20px; color: var(--z-text); display: flex; align-items: center; gap: 10px; }
.op-receipt h2 .op-ico { color: var(--z-blue); }
.op-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.op-timeline::before { content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 2px; background: repeating-linear-gradient(90deg, var(--z-line) 0 8px, transparent 8px 14px); }
.op-timeline li { position: relative; display: flex; flex-direction: column; gap: 12px; }
.op-tl-ico { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--z-line); color: var(--z-graphite); }
#onepage .op-tl-ico .op-ico { width: 22px; height: 22px; }
.op-timeline li.is-current .op-tl-ico { background: var(--z-blue); border-color: var(--z-blue); color: #fff; box-shadow: 0 0 0 6px var(--z-blue-50); animation: op-pulse 2s 1.2s ease-in-out infinite; }
@keyframes op-pulse { 0%, 100% { box-shadow: 0 0 0 6px var(--z-blue-50); } 50% { box-shadow: 0 0 0 11px rgba(0, 85, 150, .06); } }
.op-timeline b { display: block; font-size: 15.5px; color: var(--z-text); margin-bottom: 4px; }
.op-timeline p { margin: 0; color: var(--z-muted); font-size: 14px; line-height: 1.5; }

/* receipt */
.op-receipt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.op-receipt-head h2 { margin: 0; }
.op-badge { font-weight: 700; font-size: 13px; color: var(--z-blue); background: var(--z-blue-50); padding: 5px 11px; border-radius: 20px; }
.op-receipt-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; margin-top: 14px; }
.op-ritem { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--z-line); }
.op-ritem .op-thumb { grid-area: auto; }
.op-ritem-name { min-width: 0; font-size: 14.5px; line-height: 1.35; }
.op-ritem-name a { color: var(--z-text) !important; font-weight: 500; text-decoration: none !important; }
.op-ritem-name a:hover { color: var(--z-blue) !important; }
.op-ritem-name small { display: block; color: var(--z-muted); font-size: 12.5px; margin-top: 3px; }
.op-ritem-sum { font-weight: 700; white-space: nowrap; }
.op-receipt-info { margin: 0; padding: 18px 20px; background: var(--z-bg); border-radius: 12px; display: grid; gap: 16px; align-self: start; }
.op-receipt-info dt { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--z-muted); margin-bottom: 5px; }
#onepage .op-receipt-info dt .op-ico { width: 16px; height: 16px; color: var(--z-blue); }
.op-receipt-info dd { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--z-text); word-break: break-word; }
.op-receipt-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--z-blue) !important; font-weight: 500; }

@media (max-width: 767px) {
  .op-hero { padding: 36px 18px 28px; border-radius: 16px; margin-top: 8px; }
  .op-hero h1 { font-size: 24px; }
  .op-hero-lead { font-size: 15px; }
  .op-hero-actions .op-btn { width: 100%; }
  .op-check { width: 76px; height: 76px; }
  .op-burst { top: 78px; }
  .op-next, .op-receipt { padding: 20px 16px; border-radius: 12px; }
  .op-timeline { grid-template-columns: 1fr; gap: 0; }
  .op-timeline::before { left: 23px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--z-line) 0 8px, transparent 8px 14px); }
  .op-timeline li { flex-direction: row; gap: 14px; padding-bottom: 18px; }
  .op-timeline li:last-child { padding-bottom: 0; }
  .op-tl-ico { flex: none; }
  .op-receipt-grid { grid-template-columns: 1fr; gap: 18px; }
  .op-ritem { grid-template-columns: 52px 1fr auto; gap: 12px; }
  .op-ritem .op-thumb { width: 52px; height: 52px; }
}

.op-receipt .op-trow.op-grand { border-top: 0; padding-top: 8px; }
