/* web_pouyan order form — cart + configure step (pw-*). Tokens and the shared pieces
   (.pw-card, .pw-btn, .pw-hero, .pw-modal…) come from the theme's pw-shell.css / pw-pages.css. */

.pw-of { --of-res-ram: #7457e8; --of-res-cpu: #2f6fdf; --of-res-disk: #0891b2; --of-res-bw: #c2740c; --of-res-ip: #0d9b76; }
.pw-of .pw-svg { width: 18px; height: 18px; }

/* ---------------- steps ---------------- */
.pw-of-steps { list-style: none; margin: 0 0 16px; padding: 6px; display: flex; gap: 6px; border-radius: 18px; background: var(--pw-card); border: 1px solid var(--pw-line); counter-reset: s; }
.pw-of-steps li { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; padding: 9px 10px; border-radius: 13px; font-size: 12.5px; font-weight: 700; color: var(--pw-ink3); white-space: nowrap; }
.pw-of-steps li i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11.5px; font-weight: 800; background: var(--pw-soft); color: var(--pw-ink3); }
.pw-of-steps li i .pw-svg { width: 14px; height: 14px; stroke-width: 2.4; }
.pw-of-steps li span { overflow: hidden; text-overflow: ellipsis; }
.pw-of-steps li.is-done { color: #0b7a5d; }
.pw-of-steps li.is-done i { background: #12b886; color: #fff; }
.pw-of-steps li.is-cur { background: var(--pw-accent-soft); color: var(--pw-accent); }
.pw-of-steps li.is-cur i { background: var(--pw-accent); color: #fff; box-shadow: 0 6px 14px -6px var(--pw-accent); }

/* ---------------- layout ---------------- */
.pw-of-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.pw-of-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pw-of-side { position: sticky; top: calc(var(--pw-top, 72px) + 16px); min-width: 0; }
.pw-of .pw-hero-act { align-items: center; }
.pw-of-addbtn { white-space: nowrap; }

/* ---------------- alerts ---------------- */
.pw-of-alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; margin-bottom: 14px; border-radius: 16px; font-size: 13px; line-height: 1.85; border: 1px solid transparent; }
.pw-of-alert > .pw-svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.pw-of-alert ul { margin: 4px 0 0; padding-inline-start: 18px; }
.pw-of-alert.is-bad { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.pw-of-alert.is-warn { background: #fffaeb; border-color: #fedf89; color: #93370d; }
.pw-of-alert.is-ok { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.pw-of-alert.is-info { background: #eff8ff; border-color: #b2ddff; color: #175cd3; }

/* ---------------- cart items ---------------- */
.pw-of-items { padding-bottom: 8px; }
.pw-of-list { display: flex; flex-direction: column; }
.pw-of-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: start; padding: 16px 2px; border-top: 1px solid var(--pw-line); }
.pw-of-list > .pw-of-item:first-child { border-top: 0; padding-top: 4px; }
.pw-of-item-ic { width: 46px; height: 46px; border-radius: 15px; }
.pw-of-item-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pw-of-item-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pw-of-item-top b { font-size: 14.5px; font-weight: 800; color: var(--pw-ink); }
.pw-of-item-top small { font-size: 12px; color: var(--pw-ink3); }
.pw-of-item-dom { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--pw-ink2); padding: 2px 9px; border-radius: 8px; background: var(--pw-soft); }
.pw-of-chips { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pw-of-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 10px; background: var(--pw-soft); font-size: 11.5px; line-height: 1.5; }
.pw-of-chips li span { color: var(--pw-ink3); }
.pw-of-chips li b { color: var(--pw-ink); font-weight: 700; }
.pw-of-subs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--pw-ink2); }
.pw-of-subs:empty { display: none; }
.pw-of-subs li { display: flex; justify-content: space-between; gap: 10px; }
.pw-of-item-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: left; min-width: 120px; }
.pw-of-item-price > b { font-size: 15px; font-weight: 800; color: var(--pw-ink); white-space: nowrap; }
.pw-of-item-price small { font-size: 11.5px; color: var(--pw-ink3); white-space: nowrap; }
.pw-of-item-acts { display: flex; gap: 6px; }
.pw-of-item-acts .pw-icbtn { width: 36px; height: 36px; border-radius: 11px; }
.pw-of-item-acts .pw-icbtn.is-del:hover { background: var(--pw-bad-soft); border-color: #fbd0cc; color: var(--pw-bad) !important; }
.pw-of-upg { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--pw-ink2); flex-wrap: wrap; }
.pw-of-upg .pw-svg { width: 15px; height: 15px; color: var(--pw-ink3); }
.pw-of-upg b { color: var(--pw-ink); }
.pw-of-credit { display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 8px 10px; border-radius: 12px; background: #ecfdf3; font-size: 12px; color: #067647; }
.pw-of-credit small { flex: 1 1 100%; color: #05603a; opacity: .85; }
.pw-of-qtyform { display: flex; gap: 6px; align-items: center; }
.pw-of-qtyform input { width: 80px; height: 36px; border-radius: 10px; border: 1px solid var(--pw-line); text-align: center; font: inherit; }
.pw-of-qtyform .pw-btn { height: 36px; padding: 0 12px; font-size: 12px; }
.pw-of-emptybtn { height: 36px; padding: 0 12px; font-size: 12px; }
.pw-of-period { margin-top: 4px; }
.pw-of-period select { height: 34px !important; font-size: 12px !important; }

/* ---------------- promo ---------------- */
.pw-of-promo-form { display: flex; gap: 8px; }
.pw-of-promo-form input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--pw-line); background: #fff; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.pw-of-promo-form input:focus { border-color: var(--pw-accent); box-shadow: 0 0 0 4px rgba(193, 21, 57, .1); }
.pw-of-promo-form .pw-btn { height: 46px; padding: 0 18px; }
.pw-of-promo-on { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #ecfdf3; border: 1px dashed #75e0a7; }
.pw-of-promo-on > .pw-svg { flex: none; width: 24px; height: 24px; color: #12b76a; }
.pw-of-promo-on > div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.6; }
.pw-of-promo-on b { font-size: 15px; font-weight: 800; color: #054f31; letter-spacing: .06em; }
.pw-of-promo-on span { font-size: 12px; color: #05603a; }
.pw-of-promo-on .pw-btn { height: 36px; padding: 0 12px; font-size: 12px; }

/* ---------------- summary ---------------- */
.pw-of-sum .pw-card-head { margin-bottom: 10px; }
.pw-os { display: flex; flex-direction: column; gap: 8px; }
.pw-os-head { display: flex; flex-direction: column; gap: 1px; padding-bottom: 6px; }
.pw-os-head b { font-size: 13.5px; font-weight: 800; color: var(--pw-ink); }
.pw-os-head small { font-size: 11.5px; color: var(--pw-ink3); }
.pw-os-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 12.5px; color: var(--pw-ink2); line-height: 1.7; }
.pw-os-row > b { flex: none; font-weight: 800; color: var(--pw-ink); white-space: nowrap; text-align: left; }
.pw-os-row.is-sub { font-size: 12px; color: var(--pw-ink3); padding-inline-start: 10px; }
.pw-os-row.is-sub em { font-style: normal; color: var(--pw-ink2); }
.pw-os-row.is-sub > b { font-weight: 700; color: var(--pw-ink2); }
.pw-os-row.is-good, .pw-os-row.is-good > b { color: #067647; }
.pw-os-rec > b { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-weight: 700; font-size: 12px; }
.pw-os-rec .cost { font-weight: 800; color: var(--pw-ink); font-size: 12.5px; }
.pw-os-sep { height: 1px; margin: 4px 0; background: repeating-linear-gradient(to left, var(--pw-line) 0 6px, transparent 6px 10px); }
.pw-os-del { display: inline-flex; vertical-align: middle; color: var(--pw-ink3) !important; margin-inline-start: 4px; }
.pw-os-del .pw-svg { width: 15px; height: 15px; }
.pw-os-total { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 8px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, #fff5f7 0%, #fdecef 100%); border: 1px solid #f9d2da; }
.pw-os-total small { font-size: 12px; font-weight: 700; color: #a3123a; }
.pw-os-total b { font-size: 22px; font-weight: 900; color: var(--pw-accent); letter-spacing: -.01em; }
.pw-of-go { width: 100%; height: 52px; margin-top: 14px; border-radius: 16px; font-size: 14.5px; font-weight: 800; gap: 10px; }
.pw-of-go .pw-svg { width: 18px; height: 18px; }
.pw-of-more { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; padding: 8px; font-size: 12.5px; font-weight: 700; color: var(--pw-ink2) !important; border-radius: 12px; }
.pw-of-more:hover { background: var(--pw-soft); }
.pw-of-more .pw-svg { width: 16px; height: 16px; }
.pw-of-safe { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 11.5px; line-height: 1.8; color: var(--pw-ink3); }
.pw-of-safe .pw-svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: #12b76a; }
.pw-of-express { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.pw-of-or { text-align: center; font-size: 11px; color: var(--pw-ink3); }
.pw-of-express .pw-of-or:last-child { display: none; }
.pw-of-loader { width: 22px; height: 22px; }
.pw-of-loader .pw-spin { width: 22px; height: 22px; border-width: 3px; }
.pw-of-total { min-height: 60px; }
.pw-of-skel { display: flex; flex-direction: column; gap: 10px; }
.pw-of-skel i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--pw-soft), #eceef2, var(--pw-soft)); background-size: 200% 100%; animation: pwOfSk 1.2s linear infinite; }
.pw-of-skel i:nth-child(2) { width: 70%; } .pw-of-skel i:nth-child(3) { height: 44px; border-radius: 14px; }
@keyframes pwOfSk { to { background-position: -200% 0; } }
.pw-of-errs { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #fef3f2; border: 1px solid #fecdca; color: #b42318; font-size: 12.5px; line-height: 1.8; }
.pw-of-errs b { display: flex; align-items: center; gap: 6px; }
.pw-of-errs b .pw-svg { width: 17px; height: 17px; }
.pw-of-errs ul { margin: 4px 0 0; padding-inline-start: 18px; }

/* ---------------- empty cart ---------------- */
.pw-of-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 48px 20px; }
.pw-of-empty-art { position: relative; width: 110px; height: 110px; border-radius: 34px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
  background: radial-gradient(circle at 30% 25%, #fff 0, #fdecef 70%); color: var(--pw-accent); box-shadow: inset 0 0 0 1px #f9d2da, 0 24px 40px -26px var(--pw-accent); }
.pw-of-empty-art .pw-svg { width: 52px; height: 52px; stroke-width: 1.4; }
.pw-of-empty-art::after { content: ''; position: absolute; inset: -10px; border-radius: 42px; border: 1.5px dashed #f6c3ce; animation: pwOfSpin 22s linear infinite; }
@keyframes pwOfSpin { to { transform: rotate(360deg); } }
.pw-of-empty h2 { font-size: 18px; font-weight: 900; color: var(--pw-ink); margin: 0; }
.pw-of-empty p { max-width: 440px; margin: 0; font-size: 13px; line-height: 1.95; color: var(--pw-ink2); }
.pw-of-empty-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.pw-of-empty-acts .pw-btn { height: 46px; padding: 0 18px; border-radius: 14px; }

/* ---------------- confirm modals ---------------- */
.pw-of-ask { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 26px 22px 18px; }
.pw-of-ask-ic { width: 58px; height: 58px; border-radius: 19px; display: flex; align-items: center; justify-content: center; background: var(--pw-bad-soft); color: var(--pw-bad); margin-bottom: 4px; }
.pw-of-ask-ic .pw-svg { width: 28px !important; height: 28px !important; }
.pw-of-ask h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--pw-ink); }
.pw-of-ask p { margin: 0; font-size: 13px; line-height: 1.9; color: var(--pw-ink2); }
.pw-of .pw-modal-foot, .pw-modal .pw-of-ask + .pw-modal-foot { justify-content: stretch; }
.pw-modal .pw-of-ask + .pw-modal-foot .pw-btn { flex: 1; height: 46px; }

/* ================= configure step ================= */
.pw-of-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.pw-of-specs[hidden] { display: none; }
.pw-of-spec { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 16px; background: var(--pw-soft); }
.pw-of-spec small { font-size: 11.5px; color: var(--pw-ink3); }
.pw-of-spec b { font-size: 14px; font-weight: 800; color: var(--pw-ink); }
.pw-of-spec-ic, .pw-of-res-ic { width: 32px; height: 32px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--pw-ink2); margin-bottom: 4px; }
.pw-of-spec-ic .pw-svg, .pw-of-res-ic .pw-svg { width: 18px; height: 18px; }
[data-res="ram"] { --rc: var(--of-res-ram); --rs: #f1edfd; }
[data-res="cpu"], [data-res="core"] { --rc: var(--of-res-cpu); --rs: #ecf2fd; }
[data-res="disk"], [data-res="xdisk"] { --rc: var(--of-res-disk); --rs: #e5f6fa; }
[data-res="bw"], [data-res="net"] { --rc: var(--of-res-bw); --rs: #fdf3e2; }
[data-res="ip"] { --rc: var(--of-res-ip); --rs: #e7f6f0; }
.pw-of-spec-ic[data-res], .pw-of-res-ic[data-res] { color: var(--rc); background: #fff; box-shadow: inset 0 0 0 1px var(--pw-line); }
.pw-of-desc { margin-top: 14px; font-size: 12.5px; line-height: 2; color: var(--pw-ink2); overflow: hidden; position: relative; }
.pw-of-desc.is-fold { max-height: 150px; }
.pw-of-desc.is-fold::after { content: ''; position: absolute; inset: auto 0 0; height: 60px; background: linear-gradient(transparent, var(--pw-card)); }
.pw-of-desc img { max-width: 100%; height: auto; }
.pw-of-descmore { border: 0; background: none; padding: 6px 0 0; font: inherit; font-size: 12.5px; font-weight: 800; color: var(--pw-accent); cursor: pointer; }

.pw-of-cycles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.pw-of-cycle { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; padding: 13px 14px; border-radius: 16px; border: 1.5px solid var(--pw-line); background: #fff; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--pw-ink2); line-height: 1.6; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.pw-of-cycle:hover { border-color: #d0d5dd; }
.pw-of-cycle input { position: absolute; opacity: 0; pointer-events: none; }
.pw-of-cycle-ck { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #d0d5dd; display: flex; align-items: center; justify-content: center; color: transparent; transition: all .2s ease; }
.pw-of-cycle-ck .pw-svg { width: 13px; height: 13px; stroke-width: 2.6; }
.pw-of-cycle.is-on, .pw-of-cycle:has(input:checked) { border-color: var(--pw-accent); background: color-mix(in srgb, var(--pw-accent) 4%, #fff); color: var(--pw-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pw-accent) 9%, transparent); }
.pw-of-cycle.is-on .pw-of-cycle-ck, .pw-of-cycle:has(input:checked) .pw-of-cycle-ck { border-color: var(--pw-accent); background: var(--pw-accent); color: #fff; }
.pw-of-cycle:has(input:focus-visible) { outline: 2px solid var(--pw-accent); outline-offset: 2px; }

.pw-of-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; transition: opacity .2s ease; }
.pw-of-opts.is-busy { opacity: .45; pointer-events: none; }
.pw-of-opt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pw-of-opt.is-res { grid-column: 1 / -1; }
.pw-of-opt.is-res > .pw-of-opt-lbl, .pw-of-opt.is-res > .pw-of-select, .pw-of-opt.is-res > .pw-of-radios { display: none; }
.pw-of-opt-lbl { margin: 0; font-size: 12.5px; font-weight: 800; color: var(--pw-ink); }
.pw-of-select { position: relative; }
.pw-of-select select { width: 100%; height: 46px; padding: 0 14px 0 38px; border-radius: 14px; border: 1.5px solid var(--pw-line); background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--pw-ink); -webkit-appearance: none; appearance: none; cursor: pointer; outline: none; }
.pw-of-select select:focus { border-color: var(--pw-accent); }
.pw-of-select > .pw-svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--pw-ink3); }
.pw-of-radios { display: flex; flex-direction: column; gap: 6px; }
.pw-of-radio { display: flex; align-items: center; gap: 10px; margin: 0; padding: 11px 12px; border-radius: 13px; border: 1.5px solid var(--pw-line); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--pw-ink2); }
.pw-of-radio input, .pw-of-switch input { position: absolute; opacity: 0; pointer-events: none; }
.pw-of-radio i { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #d0d5dd; transition: all .2s ease; }
.pw-of-radio:has(input:checked) { border-color: var(--pw-accent); color: var(--pw-ink); }
.pw-of-radio:has(input:checked) i { border: 5.5px solid var(--pw-accent); }
.pw-of-switch { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; padding: 11px 12px; border-radius: 13px; border: 1.5px solid var(--pw-line); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--pw-ink2); }
.pw-of-switch i { flex: none; position: relative; width: 38px; height: 22px; border-radius: 11px; background: #d0d5dd; transition: background-color .2s ease; }
.pw-of-switch i::after { content: ''; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s ease; }
.pw-of-switch:has(input:checked) { border-color: var(--pw-accent); color: var(--pw-ink); }
.pw-of-switch:has(input:checked) i { background: var(--pw-accent); }
.pw-of-switch:has(input:checked) i::after { transform: translateX(-16px); }
.pw-of-qty { display: flex; align-items: center; gap: 6px; }
.pw-of-qty button { flex: none; width: 42px; height: 42px; border-radius: 13px; border: 1.5px solid var(--pw-line); background: #fff; font: inherit; font-size: 20px; color: var(--pw-ink); cursor: pointer; }
.pw-of-qty input { width: 90px; height: 42px; border-radius: 13px; border: 1.5px solid var(--pw-line); text-align: center; font: inherit; font-size: 15px; font-weight: 800; -moz-appearance: textfield; }
.pw-of-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pw-of-qty-unit { font-size: 12px; color: var(--pw-ink3); }

/* the extra-resource control */
.pw-of-res { padding: 14px; border-radius: 20px; border: 1.5px solid var(--pw-line); background: #fff; transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease; }
.pw-of-res.is-on { border-color: color-mix(in srgb, var(--rc) 45%, #fff); background: color-mix(in srgb, var(--rc) 3%, #fff); box-shadow: 0 16px 30px -24px var(--rc); }
.pw-of-res-top { display: flex; align-items: center; gap: 12px; }
.pw-of-res-top .pw-of-res-ic { width: 44px; height: 44px; border-radius: 14px; margin: 0; background: var(--rs); box-shadow: none; }
.pw-of-res-top .pw-of-res-ic .pw-svg { width: 22px; height: 22px; }
.pw-of-res-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.6; }
.pw-of-res-tx b { font-size: 14px; font-weight: 800; color: var(--pw-ink); }
.pw-of-res-tx small { font-size: 12px; color: var(--pw-ink3); }
.pw-of-res-val { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.5; text-align: left; }
.pw-of-res-val output { font-size: 15px; font-weight: 900; color: var(--pw-ink3); white-space: nowrap; }
.pw-of-res.is-on .pw-of-res-val output { color: var(--rc); }
.pw-of-res-val small { font-size: 11.5px; color: var(--pw-ink2); white-space: nowrap; min-height: 1em; }
.pw-of-res-ctl { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.pw-of-step { flex: none; width: 40px; height: 40px; border-radius: 13px; border: 1.5px solid var(--pw-line); background: #fff; font: inherit; font-size: 20px; line-height: 1; color: var(--pw-ink); cursor: pointer; transition: all .15s ease; }
.pw-of-step:hover:not(:disabled) { border-color: var(--rc); color: var(--rc); }
.pw-of-step:active:not(:disabled) { transform: scale(.94); }
.pw-of-step:disabled { opacity: .35; cursor: default; }
.pw-of-track { position: relative; flex: 1; min-width: 0; padding-bottom: 22px; }
.pw-of-rail { position: relative; height: 8px; border-radius: 4px; background: var(--pw-soft); box-shadow: inset 0 0 0 1px var(--pw-line); overflow: hidden; }
.pw-of-rail i { position: absolute; inset: 0 0 0 auto; width: 0; background: var(--rc); border-radius: 4px; transition: width .25s var(--pw-ease, ease); }
.pw-of-track input[type=range] { position: absolute; inset: -8px 0 auto; width: 100%; height: 24px; margin: 0; opacity: 0; cursor: pointer; direction: rtl; }
.pw-of-ticks { position: absolute; inset: -6px 0 0; display: flex; justify-content: space-between; pointer-events: none; }
.pw-of-tick { position: relative; width: 26px; height: 26px; margin: 0 -13px; padding: 0; border: 0; background: none; pointer-events: auto; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.pw-of-tick i { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #d0d5dd; flex: none; transition: all .2s ease; transform: translateY(1px); }
.pw-of-tick.is-on i { border-color: var(--rc); }
.pw-of-tick.is-cur i { width: 22px; height: 22px; transform: translateY(-2px); background: var(--rc); border: 4px solid #fff; box-shadow: 0 0 0 1.5px var(--rc), 0 6px 14px -4px var(--rc); }
.pw-of-tick span { position: absolute; top: 22px; font-size: 10.5px; font-weight: 700; color: var(--pw-ink3); white-space: nowrap; }
.pw-of-tick.is-cur span { color: var(--rc); font-weight: 900; }
.pw-of-ticks .pw-of-tick:nth-child(n+8):not(:last-child):not(.is-cur) span { display: none; }
.pw-of-res-price { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--pw-line); font-size: 12px; color: var(--pw-ink3); min-height: 1.6em; }
.pw-of-res-price b { color: var(--pw-ink); font-weight: 800; }

.pw-of-cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pw-of-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pw-of-field label { margin: 0; font-size: 12.5px; font-weight: 800; color: var(--pw-ink); }
.pw-of-field input:not([type=checkbox]):not([type=radio]), .pw-of-field select, .pw-of-field textarea { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--pw-line); background: #fff; font: inherit; font-size: 13px; color: var(--pw-ink); outline: none; }
.pw-of-field textarea { padding: 10px 14px; min-height: 90px; }
.pw-of-field input:focus, .pw-of-field select:focus, .pw-of-field textarea:focus { border-color: var(--pw-accent); }
.pw-of-field small { font-size: 11.5px; color: var(--pw-ink3); line-height: 1.7; }
.pw-of-note { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #fffaeb; border: 1px solid #fedf89; font-size: 12.5px; line-height: 1.8; color: #93370d; }
.pw-of-note .pw-svg { flex: none; width: 20px; height: 20px; color: #dc6803; }

.pw-of-final { margin-bottom: 12px; padding: 12px; border-radius: 16px; background: var(--pw-soft); }
.pw-of-final[hidden] { display: none; }
.pw-of-final-t { margin: 0 0 8px; font-size: 12px; font-weight: 800; color: var(--pw-ink2); }
.pw-of-final ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pw-of-final li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--pw-ink2); }
.pw-of-final li .pw-of-res-ic { width: 26px; height: 26px; border-radius: 9px; margin: 0; }
.pw-of-final li .pw-of-res-ic .pw-svg { width: 15px; height: 15px; }
.pw-of-final li span:nth-child(2) { flex: 1; }
.pw-of-final li b { font-weight: 800; color: var(--pw-ink); white-space: nowrap; }
.pw-of-final li.is-plus b { color: var(--rc); }
.pw-of-final li.is-plus b::before { content: '▲ '; font-size: 8px; vertical-align: 2px; }

/* ---------------- responsive ---------------- */
@media (max-width: 1101px) {
  .pw-of-grid { grid-template-columns: minmax(0, 1fr); }
  .pw-of-side { position: static; }
  .pw-of-conf .pw-of-side, .pw-of-cart .pw-of-side { margin-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 640px) {
  .pw-of-steps li { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 11px; }
  .pw-of-item { grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; }
  .pw-of-item-price { grid-column: 2; align-items: flex-start; text-align: right; min-width: 0; flex-direction: row; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
  .pw-of-item-acts { grid-column: 1 / -1; grid-row: 1; justify-self: end; position: absolute; left: 0; }
  .pw-of-item { position: relative; }
  .pw-of-opts, .pw-of-cf-grid { grid-template-columns: 1fr; }
  .pw-of-cycles { grid-template-columns: 1fr; }
  .pw-of-res-top { flex-wrap: wrap; }
  .pw-of-res-val { flex: 1 1 100%; flex-direction: row; justify-content: space-between; align-items: baseline; padding: 8px 10px; border-radius: 12px; background: var(--pw-soft); }
  .pw-of-promo-form { flex-direction: column; }
  .pw-of .pw-hero-act .pw-of-addbtn span { display: none; }
}
/* hostnames / codes: Latin digits */
.pw-of-item-dom, .pw-of-promo-on b, .pw-of-promo-form input { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }

/* mobile action bar (above the theme's bottom navigation) */
.pw-of-mbar { display: none; }
@media (max-width: 1101px) {
  .pw-of-mbar { position: fixed; z-index: 1040; inset: auto 10px calc(78px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 10px;
    border-radius: 20px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--pw-line); box-shadow: 0 18px 40px -18px rgba(16, 24, 40, .45); direction: rtl; }
  .pw-of-mbar-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-inline-start: 6px; line-height: 1.5; }
  .pw-of-mbar-tx small { font-size: 11px; color: var(--pw-ink3); }
  .pw-of-mbar-tx b { font-size: 15.5px; font-weight: 900; color: var(--pw-accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pw-of-mbar .pw-btn { flex: none; height: 46px; padding: 0 20px; border-radius: 14px; font-weight: 800; }
  .pw-of-conf, .pw-of-cart { padding-bottom: 90px; }
}

/* ================= 1.1.0: the VPS module's own extras + OS ================= */
.pw-of-opt[hidden], .pw-of-res-card[hidden], .pw-of-os-card[hidden], .pw-of-co-card[hidden] { display: none !important; }
#pwOfRes { grid-template-columns: 1fr; }
.pw-of-res-price span { color: var(--pw-ink3); }
.pw-of-os { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.pw-of-oscard { position: relative; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 12px; border-radius: 16px; border: 1.5px solid var(--pw-line); background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: var(--pw-ink2); text-align: right; direction: rtl; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.pw-of-oscard:hover { border-color: #d0d5dd; }
.pw-of-oscard bdi { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.5; direction: ltr; text-align: right; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.pw-of-os-ic { flex: none; width: 36px; height: 36px; border-radius: 11px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--pw-soft); }
.pw-of-os-ic img { width: 26px; height: 26px; object-fit: contain; }
.pw-of-os-ic i { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-style: normal; font-weight: 900; font-size: 15px; }
.pw-of-oscard em { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #d0d5dd; display: flex; align-items: center; justify-content: center; color: transparent; }
.pw-of-oscard em .pw-svg { width: 12px; height: 12px; stroke-width: 2.6; }
.pw-of-oscard.is-on { border-color: var(--pw-accent); background: color-mix(in srgb, var(--pw-accent) 4%, #fff); color: var(--pw-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pw-accent) 9%, transparent); }
.pw-of-oscard.is-on em { border-color: var(--pw-accent); background: var(--pw-accent); color: #fff; }
.pw-of-final li { flex-wrap: wrap; }
.pw-of-final li em { flex: none; order: 3; padding: 2px 7px; border-radius: 8px; background: #ecfdf3; font-style: normal; font-size: 11px; font-weight: 800; color: #067647; white-space: nowrap; }
.pw-of-final li b { order: 4; }
.pw-of-final li.is-plus b::before { content: none; }
.pw-of-final li.is-plus b { color: var(--pw-ink); }
.pw-of-chips li em { font-style: normal; font-size: 11px; font-weight: 800; color: #067647; }
.pw-of-xprice { color: #067647 !important; font-weight: 700; }
