.jh-cw-checkout { --cw-bg:#111440; --cw-panel:#1d08ee; --cw-line:#3227a1; --cw-text:#edf0ff; --cw-muted:#c9cdf2; --cw-accent:#cbf528; background:var(--cw-bg); padding:30px 0 48px; isolation:isolate; }
.jh-cw-checkout .cw-parameters [hidden] { display:none !important; }
.jh-cw-checkout .cw-checkout-wrap { max-width:1200px; margin:auto; width:calc(100% - 48px); }
.jh-cw-checkout .cw-checkout-heading,.jh-cw-checkout .cw-parameters,.jh-cw-checkout .cw-error { color:var(--cw-text); font:400 15px/1.5 Geologica,Arial,sans-serif; }
.jh-cw-checkout .cw-checkout-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.jh-cw-checkout .cw-checkout-title { margin:0; font:600 30px/1.25 Geologica,Arial,sans-serif; color:#ffffff; }
.jh-cw-checkout .cw-parameters h2 { margin:0 0 18px; font:600 19px/1.4 Geologica,Arial,sans-serif; color:#ffffff; letter-spacing:normal; }
.jh-cw-checkout .cw-checkout-heading a { color:var(--cw-muted); text-decoration:underline; }
.jh-cw-checkout .cw-checkout-grid { display:grid; grid-template-columns:minmax(0,1fr) 340px; align-items:start; gap:24px; }
.jh-cw-checkout .cw-panel { box-sizing:border-box; background:var(--cw-panel); border:1px solid var(--cw-line); border-radius:20px; padding:24px; min-width:0; }
.jh-cw-checkout .cw-parameters > section + section { margin-top:24px; padding-top:24px; border-top:1px solid var(--cw-line); }
/* Native receipt; the owner explicitly changed only its order CTA to lime. --cw-float-safe is the room kept clear at the
   bottom of the viewport for the floating chat / discount-wheel button (checkout.js lifts the sticky receipt by it);
   the margin keeps the end of its sticky range the same distance above the bottom of the form. */
.jh-cw-checkout .cw-receipt { --cw-float-safe:104px; position:sticky; top:60px; float:none; margin:0 0 var(--cw-float-safe); width:340px; }
.jh-cw-checkout .cw-receipt .promocode-btn.cw-order-action,.jh-cw-checkout .cw-receipt .order__doorder { background:var(--cw-accent) !important; border-color:var(--cw-accent); color:#000 !important; }
.jh-cw-checkout .cw-parameters .groups { margin:0; padding:0; border:0; }
/* Keep native tab geometry, white tiles, version menus and full-size logos. */
.jh-cw-checkout .groups-software > .labels { background:#fff; border-color:var(--cw-accent); }
.jh-cw-checkout .groups-software > .labels label { color:#000; }
.jh-cw-checkout .groups-software > .labels label.active { background:var(--cw-accent); color:#000; }
.jh-cw-checkout .select-groups-software { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0; color:var(--color-gray-900,#111440); }
.jh-cw-checkout .select-groups-software > .select-group { box-sizing:border-box; margin:0; float:none; width:100%; }
.jh-cw-checkout .enter-message,.jh-cw-checkout .cw-software hr { display:none; }
.jh-cw-checkout .cw-parameters .slider-wrapper { margin:16px 0 20px; padding:0; border-bottom:0; }
.jh-cw-checkout .cw-parameters .slider-wrapper .labels { display:flex; justify-content:space-between; align-items:center; gap:12px; border:0; }
.jh-cw-checkout .cw-parameters .slider-wrapper label { font:500 13px/1.4 Geologica,Arial,sans-serif; color:var(--cw-text); border:0; letter-spacing:normal; margin:0; }
.jh-cw-checkout .cw-period .slider-wrapper,.jh-cw-checkout .cw-quantity .slider-wrapper { margin-top:0; }
.jh-cw-checkout .cw-period .slider-wrapper label,.jh-cw-checkout .cw-quantity .slider-wrapper label { font:600 19px/1.4 Geologica,Arial,sans-serif; color:#ffffff; }
.jh-cw-checkout .cw-parameters .slider-wrapper input { box-sizing:border-box; color:var(--cw-accent); background:#12049a; border:1px solid var(--cw-line); border-radius:5px; width:76px; height:38px; font:600 22px/1.3 Geologica,Arial,sans-serif; text-align:center; }
.jh-cw-checkout .cw-parameters .slider-wrapper .slider-selection { background:var(--cw-accent); background-image:none; box-shadow:none; }
.jh-cw-checkout .cw-parameters .slider-wrapper .slider-track { background:#3227a1; }
.jh-cw-checkout .cw-parameters .slider-wrapper .slider.slider-horizontal { width:100%; margin-inline:0; }
.jh-cw-checkout .cw-parameters .slider-wrapper .slider.slider-horizontal .slider-track { top:50%; height:8px; margin-top:-4px; border-radius:8px; }
.jh-cw-checkout .cw-parameters .slider-wrapper .slider-track:before,.jh-cw-checkout .cw-parameters .slider-wrapper .slider-track:after { display:none; }
.jh-cw-checkout .cw-parameters .slider-wrapper .slider .slider-handle { background:var(--cw-accent); border:2px solid #fff; box-shadow:none; }
.jh-cw-checkout .cw-parameters .slider-wrapper .slider.slider-horizontal .slider-handle { top:2px; width:20px; height:20px; }
.jh-cw-checkout .cw-parameters .cw-period .slider .slider-tick { background:#fff; border:2px solid #8f95c9; box-shadow:none; opacity:1; }
.jh-cw-checkout .cw-parameters .cw-period .slider .slider-tick.in-selection { background:var(--cw-accent); border-color:var(--cw-accent); }
.jh-cw-checkout .cw-period .slider-tick-label { color:var(--cw-text); }
.jh-cw-checkout .cw-parameters .cw-period .slider-wrapper { overflow-x:clip; overflow-y:visible; }
.jh-cw-checkout .cw-parameters .cw-period .slider { margin-top:14px; }
.jh-cw-checkout .cw-period .slider.slider-horizontal .slider-tick-label { white-space:normal; overflow-wrap:anywhere; line-height:1.4; vertical-align:top; }
.jh-cw-checkout .cw-period .slider.slider-horizontal .slider-tick-label:first-child { text-align:left; transform:translateX(50%); }
.jh-cw-checkout .cw-period .slider.slider-horizontal .slider-tick-label:last-child { text-align:right; transform:translateX(-50%); }
.jh-cw-checkout .cw-period .slider.slider-horizontal.slider-rtl .slider-tick-label:first-child { text-align:right; transform:translateX(-50%); }
.jh-cw-checkout .cw-period .slider.slider-horizontal.slider-rtl .slider-tick-label:last-child { text-align:left; transform:translateX(50%); }
.jh-cw-checkout .cw-period .discount { display:none; }
.jh-cw-checkout .cw-parameters .slider-min-value,.jh-cw-checkout .cw-parameters .slider-max-value { color:var(--cw-muted); }
.jh-cw-checkout .cw-parameters summary { min-height:44px; padding:10px 0; cursor:pointer; color:var(--cw-text); }
.jh-cw-checkout .cw-parameters textarea { box-sizing:border-box; width:100%; min-height:70px; max-height:180px; resize:vertical; color:var(--cw-text); background:#1a0f8a; border:1px solid var(--cw-line); border-radius:8px; }
.jh-cw-checkout .cw-error { color:#ffd9cf; }
.jh-cw-checkout .cw-parameters :focus-visible,.jh-cw-checkout .cw-checkout-heading a:focus-visible { outline:2px solid var(--cw-accent); outline-offset:4px; }
@media(max-width:1050px) { .jh-cw-checkout .cw-checkout-grid { gap:16px; } .jh-cw-checkout .cw-panel { padding:20px; } .jh-cw-checkout .select-groups-software { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:767px) { .jh-cw-checkout { padding:32px 0; } .jh-cw-checkout .cw-checkout-wrap { width:calc(100% - 32px); } .jh-cw-checkout .cw-checkout-grid { display:flex; flex-direction:column; } .jh-cw-checkout .cw-panel { width:100%; padding:18px; border-radius:16px; } .jh-cw-checkout .cw-receipt { position:static; width:100%; } .jh-cw-checkout .cw-checkout-title { font-size:25px; } .jh-cw-checkout .cw-checkout-heading { align-items:flex-start; flex-direction:column; gap:8px; } }
@media(max-width:425px) { .jh-cw-checkout .select-groups-software { grid-template-columns:minmax(0,1fr); } }
/* Reuse native abbreviated labels when the parameter panel is narrow. */
@media(max-width:1050px) {
  .jh-cw-checkout .cw-period .slider-tick-label { word-spacing:100px; }
  .jh-cw-checkout .cw-period .cloud-vps-period-label,.jh-cw-checkout .cw-period .cw-period-label { font-size:0; word-spacing:0; }
  .jh-cw-checkout .cw-period .cloud-vps-period-label::after,.jh-cw-checkout .cw-period .cw-period-label::after { content:attr(data-mobile-label); font-size:11px; word-spacing:100px; }
}
@media(max-width:360px) { .jh-cw-checkout .cw-period .slider-tick-label,.jh-cw-checkout .cw-period .cloud-vps-period-label::after,.jh-cw-checkout .cw-period .cw-period-label::after { font-size:10px; } .jh-cw-checkout .cw-period .cloud-vps-period-label,.jh-cw-checkout .cw-period .cw-period-label { font-size:0; } }

/* The native abbreviated labels stack "3 / мес." by a 100px word spacing inside the narrow cell of one of SIX terms.
   The campaign offers four terms (3, 6, 12, 24), fewer than the native six, so a cell is wider and the spaced-out label no longer wraps: it spans
   over the next label. One word, normal spacing: the label stays short and inside its own tick. */
.jh-cw-checkout .cw-period .slider-tick-label,
.jh-cw-checkout .cw-period .cloud-vps-period-label,
.jh-cw-checkout .cw-period .cloud-vps-period-label::after,
.jh-cw-checkout .cw-period .cw-period-label,
.jh-cw-checkout .cw-period .cw-period-label::after { word-spacing: normal !important; }

/* The end dots of the period scale were cut in half. The native tick and handle carry margin-left:-10px (bootstrap-slider),
   so the first and the last 20px dot stick 10px out of the .slider box, and the .slider-wrapper's overflow-x:clip cut them
   there. The scale itself is inset by 12px on both sides (inside .jh-cw-checkout only): the dots are whole, the labels stay
   under their own dots. The native quantity scales and the native form are not changed. */
.jh-cw-checkout .cw-parameters .cw-period .slider.slider-horizontal { width:calc(100% - 24px); margin-inline:12px; }
/* Order receipt («Ваш комплект», the archive's order dialog): a native white card with dark text (every text colour on white
   is at least 4.5:1), left-aligned label/value rows, one price row per city, and the total of the term on one line. The
   order CTA keeps the campaign colour. The JS hooks are the classes and the data-cw-term/data-cw-total attributes. */
.jh-cw-checkout .cw-receipt { color:#111; }
.jh-cw-checkout .cw-receipt__card { box-sizing:border-box; background:#fff; color:#111; border-radius:20px; padding:24px; font:400 15px/1.5 Geologica,Arial,sans-serif; box-shadow:0 18px 40px #05033a55; }
.jh-cw-checkout .cw-receipt__eyebrow { margin:0 0 6px; color:#3f47c4; font:600 13px/1.4 Geologica,Arial,sans-serif; text-transform:uppercase; letter-spacing:.04em; }
.jh-cw-checkout .cw-receipt__title { margin:0; color:#111; font:600 22px/1.3 Geologica,Arial,sans-serif; letter-spacing:normal; text-align:left; }
.jh-cw-checkout .cw-receipt__cities { margin:6px 0 0; color:#4f5565; font-size:14px; text-align:left; }
.jh-cw-checkout .cw-receipt__specs { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:16px; row-gap:10px; margin:18px 0 0; padding:16px 0 0; border-top:1px solid #e6e7eb; text-align:left; }
.jh-cw-checkout .cw-receipt__specs > div { display:contents; }
.jh-cw-checkout .cw-receipt__specs dt { margin:0; color:#4f5565; font-size:14px; }
.jh-cw-checkout .cw-receipt__specs dd { margin:0; color:#111; font-weight:600; font-size:14px; text-align:right; white-space:nowrap; }
.jh-cw-checkout .cw-receipt__specs dd span { color:inherit; }
/* The chosen OS / software name is long («Ubuntu Server 24.04 64bit»): its own full-width row, the label over the name, so it
   does not widen the value column of the other rows. */
.jh-cw-checkout .cw-receipt__specs > .cw-receipt__software { display:block; grid-column:1 / -1; padding:10px 0; border-block:1px solid #e6e7eb; }
.jh-cw-checkout .cw-receipt__specs .cw-receipt__software dd { margin-top:2px; font-size:15px; text-align:left; white-space:normal; overflow-wrap:anywhere; }
.jh-cw-checkout .cw-receipt__term { margin-top:16px; padding-top:16px; border-top:1px solid #e6e7eb; }
.jh-cw-checkout .cw-receipt__term[hidden] { display:none !important; }
.jh-cw-checkout .cw-receipt__term .cw-receipt__specs { margin:0 0 4px; padding:0; border:0; }
.jh-cw-checkout .cw-receipt__rows { list-style:none; margin:12px 0 0; padding:0; text-align:left; }
.jh-cw-checkout .cw-receipt__rows li { display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:9px 0; border-bottom:1px solid #e6e7eb; color:#111; }
.jh-cw-checkout .cw-receipt__city { min-width:0; }
.jh-cw-checkout .cw-receipt__price { font-weight:600; white-space:nowrap; color:#111; }
.jh-cw-checkout .cw-receipt__total { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:4px 12px; margin:14px 0 0; color:#111; }
.jh-cw-checkout .cw-receipt__total span { font-size:15px; font-weight:600; white-space:nowrap; }
.jh-cw-checkout .cw-receipt__total strong { margin-left:auto; font-size:28px; line-height:1.2; color:#1d08ee; white-space:nowrap; }
.jh-cw-checkout .cw-receipt__promo { display:inline-block; margin:14px 0 0; padding:8px 12px; border:1px dashed #5c7a06; border-radius:10px; background:#f6ffd1; color:#1f2a00; font-size:13px; font-weight:600; }
.jh-cw-checkout .cw-native-details[hidden] { display:none !important; }
.jh-cw-checkout .cw-receipt .order_btn { margin-top:20px; }
.jh-cw-checkout .cw-receipt .order__doorder,.jh-cw-checkout .cw-receipt .cw-order { display:block; width:100%; box-sizing:border-box; background:#cbf528 !important; border-color:#cbf528; color:#000 !important; }
.jh-cw-checkout .cw-receipt__addresses { margin:14px 0 0; color:#4f5565; font-size:13px; text-align:left; }
.jh-cw-checkout .cw-error { color:#edf0ff; }
.jh-cw-checkout .cw-error a { color:#cbf528; }

/* The chosen OS / software card. The native selection is a 1px purple frame (groups.css .select-group.active), which is
   lost on the campaign's blue panel. Same language, campaign colours: a 3px lime frame (7.5:1 against the panel), a lime
   tint, a darker version line (7.4:1 on the tint instead of the native grey 2.8:1) and a check badge that does not rely on colour. */
.jh-cw-checkout .select-groups-software > .select-group { transition:box-shadow .15s ease,border-color .15s ease; }
.jh-cw-checkout .select-groups-software > .select-group.active { border-color:var(--cw-accent); box-shadow:0 0 0 3px var(--cw-accent); background:#f7ffd6; }
.jh-cw-checkout .select-groups-software > .select-group.active .select-group__header { padding-inline-end:30px; }
.jh-cw-checkout .select-groups-software > .select-group.active .select-group__selected { color:#3d4256; font-weight:500; }
.jh-cw-checkout .select-groups-software > .select-group.active::after { content:""; position:absolute; top:10px; inset-inline-end:10px; width:24px; height:24px; box-sizing:border-box; border-radius:50%; background:#1d08ee url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.5 12.5l3.8 3.8 7.2-7.6' fill='none' stroke='%23cbf528' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/100% no-repeat; pointer-events:none; }
.jh-cw-checkout .select-groups-software > .select-group:not(.active):not(.disabled):hover { box-shadow:0 0 0 2px #8f95c9; }
/* Keyboard focus: white ring outside the card (the lime frame of a selected card stays readable), dark ring on the tab strip. */
.jh-cw-checkout .select-groups-software > .select-group:focus-visible { outline:3px solid #fff; outline-offset:5px; }
.jh-cw-checkout .groups-software > .labels label:focus-visible { outline:3px solid #111440; outline-offset:-5px; }
.jh-cw-checkout .select-group__option:focus-visible { outline:2px solid #1d08ee; outline-offset:-2px; }
@media(max-width:767px) { .jh-cw-checkout .cw-receipt { margin-bottom:0; } }

/* The refusal of the order, kept by the order button (the toast fades after 5 s). Dark red on a light tint: 9.6:1. */
.jh-cw-checkout .cw-receipt__notice-box { display:flex; align-items:flex-start; gap:8px; margin-top:20px; padding:12px 8px 12px 14px; border:2px solid #b3261e; border-radius:12px; background:#fff1ef; color:#5c0b06; }
.jh-cw-checkout .cw-receipt__notice-box[hidden] { display:none; }
.jh-cw-checkout .cw-receipt__notice-text { flex:1; margin:0; font-size:14px; font-weight:600; line-height:1.45; text-align:left; overflow-wrap:anywhere; }
.jh-cw-checkout .cw-receipt__notice-close { flex:none; width:32px; height:32px; margin:-6px 0; padding:0; border:0; border-radius:8px; background:transparent; color:#5c0b06; font:400 24px/1 Arial,sans-serif; cursor:pointer; }
.jh-cw-checkout .cw-receipt__notice-close:focus-visible { outline:3px solid #111440; outline-offset:0; }
.jh-cw-checkout .cw-receipt__notice-box + .order_btn,.jh-cw-checkout .cw-receipt__notice + .order_btn { margin-top:12px; }

/* The campaign's label wraps the native one (.cw-period-label > .cloud-vps-period-label): both carry data-mobile-label,
   so on a narrow screen both drew «3 мес.» («3 мес.3 мес.»). The short label is drawn by the outer one only. */
.jh-cw-checkout .cw-period .cw-period-label .cloud-vps-period-label::after { content: none; }
