/* v6.1 — VPS order page: "build your server" panel (chips, steppers, disk cards) */
html body #order-standard_cart .dsb-native { display: none !important; }
html body #order-standard_cart .ds-hide { display: none !important; }

.dsb { display: grid; gap: 14px; margin-bottom: 8px; }
.dsb-block {
    background: #fff; border: 1px solid #ece4d8; border-radius: 18px; padding: 18px 20px 20px;
    box-shadow: 0 1px 0 rgba(12, 12, 13, .02);
}
.dsb-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.dsb-head > div { flex: 1; min-width: 0; }
.dsb-head h4 { margin: 0; font-family: "Familjen Grotesk", "Public Sans", sans-serif; font-size: 17px; font-weight: 600; color: #0c0c0d; letter-spacing: -.01em; }
.dsb-head p { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: #7d766e; }
.dsb-ico { flex: 0 0 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: #fff4df; color: #c97f0c; font-size: 15px; }
.dsb-val {
    flex: none; align-self: center; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12.5px; font-weight: 600;
    color: #0c0c0d; background: #f6f1e9; border-radius: 999px; padding: 4px 11px; white-space: nowrap;
}

/* steppers */
.dsb-stepper { display: inline-flex; align-items: center; gap: 6px; background: #f8f4ee; border: 1px solid #ece4d8; border-radius: 16px; padding: 6px; }
.dsb-step {
    width: 40px; height: 40px; border-radius: 12px; border: 1px solid #e3d9ca; background: #fff; color: #0c0c0d;
    font-size: 20px; line-height: 1; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s, transform .1s;
}
.dsb-step:hover:not(:disabled) { border-color: #f2a31e; background: #fffaf1; }
.dsb-step:active:not(:disabled) { transform: scale(.95); }
.dsb-step:disabled { opacity: .35; cursor: default; }
.dsb-step:focus-visible, .dsb-chip:focus-visible, .dsb-card:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(242, 163, 30, .4); }
.dsb-step-num { min-width: 74px; text-align: center; line-height: 1.05; }
.dsb-step-num strong { display: block; font-family: "Familjen Grotesk", "Public Sans", sans-serif; font-size: 24px; font-weight: 700; color: #0c0c0d; }
.dsb-step-num span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8a8278; }
.dsb-stepper-lg .dsb-step { width: 48px; height: 48px; font-size: 24px; }
.dsb-stepper-lg .dsb-step-num { min-width: 96px; }
.dsb-stepper-lg .dsb-step-num strong { font-size: 32px; }

/* chips */
.dsb-chips { display: grid; gap: 8px; }
.dsb-cpurow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.dsb-chips-row { grid-template-columns: repeat(6, minmax(0, 1fr)); flex: 1 1 300px; }
.dsb-chips-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.dsb-chip {
    height: 42px; border-radius: 12px; border: 1px solid #e6ddcf; background: #fff; color: #3a352f; cursor: pointer;
    font-size: 14px; font-weight: 500; padding: 0 6px; white-space: nowrap; transition: border-color .15s, background .15s, color .15s;
}
.dsb-chip strong { font-weight: 600; }
.dsb-chip:hover { border-color: #f2a31e; }
.dsb-chip[aria-pressed="true"] { background: #0c0c0d; border-color: #0c0c0d; color: #fff; }
.dsb-chips-row .dsb-chip::after { content: " vCPU"; font-size: 11px; color: inherit; opacity: .6; }

/* disk cards */
.dsb-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.dsb-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; min-height: 84px;
    padding: 12px; border-radius: 14px; border: 1px solid #e6ddcf; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
}
.dsb-card:hover { border-color: #f2a31e; }
.dsb-card[aria-pressed="true"] { border-color: #f2a31e; background: #fff8ec; box-shadow: 0 0 0 2px #f2a31e inset; }
.dsb-card-size { font-family: "Familjen Grotesk", "Public Sans", sans-serif; font-size: 17px; font-weight: 700; color: #0c0c0d; }
.dsb-card-tier { font-size: 12px; color: #7d766e; line-height: 1.3; }
.dsb-card-tier em { display: block; font-style: normal; color: #b9770e; font-size: 11px; }
.dsb-card-price { margin-top: auto; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; font-weight: 600; color: #3a352f; }
.dsb-card-custom { border-style: dashed; }
.dsb-card-custom .dsb-card-size i { font-size: 12px; color: #c97f0c; }

.dsb-custom { margin-top: 12px; padding: 14px; border-radius: 14px; background: #fff8ec; border: 1px solid #f5d9a6; }
.dsb-custom[hidden] { display: none; }
.dsb-custom label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #8a6a2c; margin: 0 0 8px; }
.dsb-input { display: flex; align-items: center; gap: 8px; }
html body #order-standard_cart .dsb-input input {
    width: 140px; height: 48px; border-radius: 12px; border: 1px solid #e3d9ca; background: #fff; text-align: center;
    font-family: "Familjen Grotesk", "Public Sans", sans-serif; font-size: 22px; font-weight: 700; color: #0c0c0d; padding: 0 8px; -moz-appearance: textfield;
}
.dsb-input input::-webkit-outer-spin-button, .dsb-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
html body #order-standard_cart .dsb-input input:focus { border-color: #f2a31e; box-shadow: 0 0 0 3px rgba(242, 163, 30, .25); outline: none; }
.dsb-unit { font-weight: 600; color: #7d766e; margin-right: 4px; }
.dsb-custom p { margin: 8px 0 0; font-size: 12.5px; color: #8a8278; }

/* IPv4 */
.dsb-iprow { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dsb-iptotal { font-size: 14px; color: #3a352f; }
.dsb-iptotal strong { font-size: 18px; color: #0c0c0d; }
.dsb-iptotal small { display: block; font-size: 12px; color: #8a8278; }

/* notes */
html body #order-standard_cart .ds-order-note { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: #6b645c; }
html body #order-standard_cart .ds-order-note a { color: #b9770e; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
html body #order-standard_cart .ds-note-os { padding: 10px 12px; border-radius: 12px; background: rgba(242, 163, 30, .09); border: 1px solid rgba(242, 163, 30, .35); color: #4a443d; }
html body #order-standard_cart .ds-note-os i { color: #f2a31e; margin-right: 4px; }

@media (max-width: 767px) {
    .dsb-block { padding: 16px; }
    .dsb-chips-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .dsb-chips-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dsb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dsb-head p { display: none; }
}
@media (min-width: 768px) and (max-width: 1199px) {
    .dsb-chips-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .dsb-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
