/*
 * One-page cart, Hostinger look (2026-11-23, Edgar: "look exactly the same way as Hostinger").
 * Values measured from cart.hostinger.com (signed out, 1440px and 390px) with computed styles:
 *   page #f5f5f6 · content 1128px · columns 704 / 400, gap 24 · cards white, radius 16, padding 24, no border
 *   titles 18/26 600 · body 14/20 · small 12/16 #58585e · text #222225 · Save pill #ff4646 radius 8
 *   offer strip #110c29 radius 16, 44px · search 40px radius 12, 1px ring · result rows 48px on #f5f6ff
 *   summary gap 20 · Total 18 600 · saving box rgba(0,158,91,.1) / #005432 radius 8 · button 48px radius 12 700
 *   brand cards 164px radius 16 pad 16, TLD 20 600, price 18 600, Add 48px outlined radius 12
 * Serverlys keeps its own logo and brand colour (#0000ff) where Hostinger uses its purple.
 * Loaded after the theme's serverlys.css from sx-onepage.tpl, so these win without !important
 * except where the theme already uses it. Scoped to the one-page cart only.
 */
body:has(.sx-oc) { background: #f5f5f6; }
.sx-oc { --hg-text: #222225; --hg-muted: #58585e; --hg-line: #e4e4e8; --hg-brand: var(--sx-primary, #0000ff); --hg-brand-soft: rgba(0, 0, 255, .06);
  max-width: 1128px; margin: 0 auto; color: var(--hg-text); font-family: "DM Sans", var(--sx-font); font-size: 14px; line-height: 20px; }

/* Distraction-free checkout header: logo and account only (Hostinger: logo + Agent). */
body:has(.sx-oc) .sx-menu, body:has(.sx-oc) .sx-nav__burger { display: none !important; }

/* Black Friday strip on top of the page. */
.sx-hg-top { position: relative; z-index: 1041; display: flex; align-items: center; justify-content: center; min-height: 32px; padding: 6px 16px;
  background: #ff4646; color: #fff; font: 600 14px/20px "DM Sans", var(--sx-font); text-align: center; }

.sx-oc__title { margin: 32px 0 16px; font: 600 18px/26px "DM Sans", var(--sx-font); letter-spacing: 0; color: var(--hg-text); }
.sx-oc__grid { grid-template-columns: minmax(0, 704px) 400px; gap: 24px; justify-content: space-between; }
.sx-oc__main { gap: 16px; }
.sx-oc-card { padding: 24px; border: 0; border-radius: 16px; background: #fff; box-shadow: none; }
.sx-oc-ico { width: 40px; height: 40px; border-radius: 8px; background: #f2f3f6; }

/* Plan card */
.sx-oc-plan__head { gap: 16px; align-items: center; }
.sx-oc-plan__name { margin: 0; font: 600 16px/24px "DM Sans", var(--sx-font); }
.sx-oc-plan__group { margin: 0; font-size: 12px; line-height: 16px; color: var(--hg-muted); }
.sx-oc-label { display: block; margin: 24px 0 8px 2px; font: 600 14px/20px "DM Sans", var(--sx-font); color: #18181a; }
.sx-oc-plan__row { align-items: center; gap: 16px; }
.sx-oc .sx-oc-select { min-width: 210px; }
.sx-oc .sx-oc-select select { height: 40px; padding: 0 36px 0 12px; border: 1px solid #dadce0; border-radius: 8px; font: 400 16px/24px "DM Sans", var(--sx-font); color: #18181a; background: #fff; box-shadow: none; }
.sx-oc-plan__price { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.sx-oc-save { order: 0; padding: 2px 4px; border-radius: 8px; background: #ff4646; color: #fff; font: 600 12px/16px "DM Sans", var(--sx-font); }
.sx-oc-plan__amt { order: 1; display: grid; justify-items: end; grid-template-columns: auto auto; column-gap: 0; }
.sx-oc-plan__amt strong { font: 600 18px/26px "DM Sans", var(--sx-font); letter-spacing: -0.09px; }
.sx-oc-plan__amt small { align-self: end; font: 600 18px/26px "DM Sans", var(--sx-font); color: var(--hg-text); }
.sx-oc-plan__amt .sx-oc-was { grid-column: 1 / -1; font-size: 12px; line-height: 16px; color: var(--hg-muted); }
.sx-oc-note { margin: 8px 0 0; font-size: 12px; line-height: 16px; color: var(--hg-muted); }

/* Offer strip: one line, 44px, dark. */
.sx-oc-up { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 16px 0 0; padding: 8px 8px 8px 12px; border-radius: 16px;
  background: #110c29 linear-gradient(90deg, #110c29 55%, #2b1d7a); color: #fff; box-shadow: none; }
.sx-oc-up__ico { width: 20px; height: 20px; border-radius: 6px; font-size: 12px; background: transparent; }
.sx-oc-up__text { margin: 0; font-size: 14px; line-height: 20px; }
.sx-oc-up__text b { font-weight: 600; margin-right: 6px; }
.sx-oc-up__go { margin-left: auto; height: 32px; padding: 0 12px; border-radius: 8px; font: 700 14px/1 "DM Sans", var(--sx-font); white-space: nowrap; }

/* Plan features: three, then "See N more features". */
.sx-oc-perks { margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--hg-line); gap: 8px; font-size: 14px; line-height: 20px; }
.sx-oc-perks li { font-size: 14px; line-height: 20px; }
.sx-oc .sx-oc-perk--more { display: none; }
.sx-oc--perks-open .sx-oc-perk--more { display: flex; }
.sx-oc-perks__more { margin: 8px 0 0 28px; padding: 0; border: 0; background: none; color: var(--hg-brand); font: 600 14px/20px "DM Sans", var(--sx-font); cursor: pointer; }

/* Domain card: one search box; the add-mode tabs become a quiet text row under it. */
.sx-oc-dom { display: flex; flex-direction: column; }
.sx-oc-dom__head { order: 0; gap: 16px; align-items: center; margin: 0 0 8px; }
.sx-oc-dom__title { margin: 0; font: 600 16px/24px "DM Sans", var(--sx-font); }
.sx-oc-dom__sub { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--hg-text); }
.sx-oc-search { order: 1; margin-top: 8px; }
.sx-oc-modes { order: 2; display: flex; flex-wrap: wrap; gap: 4px 16px; width: auto; margin: 12px 0 0; padding: 0; border: 0; border-radius: 0; background: none; }
.sx-oc .sx-oc-mode { flex: none; height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--hg-muted); font: 600 13px/18px "DM Sans", var(--sx-font); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent; }
.sx-oc .sx-oc-mode:hover { color: var(--hg-brand); }
.sx-oc .sx-oc-mode.is-on { color: var(--hg-brand); background: none; box-shadow: none; text-decoration-color: currentColor; }
.sx-oc-pick { order: 3; }
.sx-oc-search__box { height: 40px; padding: 0 12px; gap: 8px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.sx-oc-search__box:focus-within { box-shadow: 0 0 0 1px var(--hg-brand), 0 0 0 4px rgba(0, 0, 255, .12); }
.sx-oc .sx-oc-search__box input { font-size: 14px !important; }
.sx-oc-list { margin: 4px 0 0; padding: 0; border: 0; border-radius: 12px; background: #f5f6ff; box-shadow: none; overflow: hidden; }
.sx-oc-opt { min-height: 48px; padding: 12px 16px; border: 0; gap: 8px; font-size: 14px; }
.sx-oc-opt:hover, .sx-oc-opt:focus { background: #e9ebff; outline: 0; }
.sx-oc-opt__name { font-weight: 600; }
.sx-oc-opt .sx-oc-free, .sx-oc-pick .sx-oc-free { padding: 0 4px; border-radius: 6px; background: #e3f5ec; color: #007a49; font: 600 12px/16px "DM Sans", var(--sx-font); }
.sx-oc-opt s { color: var(--hg-muted); font-size: 14px; }
.sx-oc-opt b { font-weight: 600; font-size: 14px; }
.sx-oc-opt b small { font-weight: 600; font-size: 14px; color: var(--hg-text); }

/* Picked domain = its own card (head, tabs and search hidden). */
.sx-oc-dom.is-picked .sx-oc-dom__head, .sx-oc-dom.is-picked .sx-oc-modes { display: none; }
.sx-oc-pick { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.sx-oc-pick__top { display: flex; align-items: center; gap: 16px; }
.sx-oc-pick__id { flex: 1; min-width: 0; }
.sx-oc-pick__name { margin: 0; font: 600 16px/24px "DM Sans", var(--sx-font); }
.sx-oc-pick__kind { margin: 0; font-size: 12px; line-height: 16px; color: var(--hg-muted); }
.sx-oc .sx-oc-x { width: 40px; height: 40px; padding: 10px; border: 0; border-radius: 12px; background: none; color: var(--hg-brand); }
.sx-oc .sx-oc-x:hover { background: var(--hg-brand-soft); }
.sx-oc-pick__row { margin-top: 16px; align-items: center; }
.sx-oc-pick__price { display: flex; align-items: center; gap: 12px; }
.sx-oc-pick__price strong { font: 600 18px/26px "DM Sans", var(--sx-font); }
.sx-oc-pick__price s { font-size: 12px; color: var(--hg-muted); }
.sx-oc-pick .sx-oc-free { padding: 2px 4px; border-radius: 8px; background: #ff4646; color: #fff; }
.sx-oc-pick .sx-oc-good { display: none !important; }

/* Protect your brand: no wrapper card, a sliding row of 164px cards. */
.sx-oc-brand { position: relative; padding: 8px 0 0; border: 0; background: none; }
.sx-oc-brand__title { margin: 0; font: 600 18px/26px "DM Sans", var(--sx-font); }
.sx-oc-brand__sub { margin: 4px 0 16px; font-size: 14px; color: var(--hg-text); }
.sx-oc-brand__nav { position: absolute; top: 0; right: 0; display: flex; gap: 8px; }
.sx-oc-brand__nav button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #e8e8ec; color: var(--hg-text); font: 400 24px/1 "DM Sans", var(--sx-font); cursor: pointer; }
.sx-oc-brand__nav button:hover { background: #dcdce2; }
.sx-oc .sx-oc-brand__list { display: grid; grid-auto-flow: column; grid-auto-columns: 164px; grid-template-columns: none; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 0 4px; margin: 0; }
.sx-oc-brand__list::-webkit-scrollbar { display: none; }
.sx-oc .sx-oc-brand__item { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 16px; border: 0; border-radius: 16px; background: #fff; scroll-snap-align: start; }
.sx-oc-brand__tld { font: 600 20px/28px "DM Sans", var(--sx-font); color: var(--hg-brand); }
.sx-oc-brand__price b { font: 600 18px/24px "DM Sans", var(--sx-font); }
.sx-oc-brand__price small { font-size: 14px; color: var(--hg-text); }
.sx-oc .sx-oc-brand__add { width: 100%; height: 48px; margin-top: 8px; border: 1px solid var(--hg-brand); border-radius: 12px; background: #fff; color: var(--hg-brand); font: 700 16px/1 "DM Sans", var(--sx-font); }
.sx-oc .sx-oc-brand__item.is-on .sx-oc-brand__add { background: var(--hg-brand); color: #fff; }

/* Order summary: 400px card, guarantee underneath. */
.sx-oc-side { position: sticky; top: calc(var(--sx-nav-h, 60px) + 24px); align-self: start; }
.sx-oc-side .sx-oc-sum { position: static; display: flex; flex-direction: column; gap: 20px; padding: 24px; border: 0; border-radius: 16px; background: #fff; box-shadow: none; }
.sx-oc-sum__title { margin: 0; font: 600 18px/26px "DM Sans", var(--sx-font); }
.sx-oc-sum__plan { margin: 0 0 -12px; font: 600 14px/20px "DM Sans", var(--sx-font); }
.sx-oc-sum__rows { gap: 8px; padding: 0 0 20px; border-bottom: 1px solid var(--hg-line); }
.sx-oc-sum__rows > div { font-size: 14px; line-height: 20px; }
.sx-oc-sum__rows dt { font-weight: 400; color: var(--hg-text); }
.sx-oc-sum__rows dd { margin: 0; font-weight: 600; text-align: right; }
.sx-oc-sum__rows dd s { margin-right: 6px; font-weight: 400; font-size: 12px; color: var(--hg-muted); }
.sx-oc-sum__bf dd { color: #007a49; }
.sx-oc-sum__taxes dd { font-weight: 400; color: var(--hg-muted); }
.sx-oc-sum__total { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 0; border: 0; }
.sx-oc-sum__total > span:first-child { font: 600 18px/26px "DM Sans", var(--sx-font); }
.sx-oc-sum__totv { display: inline-flex; align-items: baseline; gap: 8px; }
.sx-oc-sum__totv s { font-size: 14px; color: var(--hg-muted); }
.sx-oc-sum__total strong { font: 600 18px/26px "DM Sans", var(--sx-font); letter-spacing: -0.09px; }
.sx-oc-coupon { margin: 0; }
.sx-oc-coupon__toggle { padding: 0; border: 0; background: none; color: var(--hg-brand); font: 600 14px/20px "DM Sans", var(--sx-font); }
.sx-oc-saving { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px; border-radius: 8px; background: rgba(0, 158, 91, .1); color: #005432; font-size: 14px; line-height: 20px; }
.sx-oc-saving[hidden] { display: none; }
.sx-oc .sx-oc-continue { height: 48px; padding: 12px 16px; border-radius: 12px; background: var(--hg-brand); box-shadow: none; font: 700 16px/24px "DM Sans", var(--sx-font); }
.sx-oc .sx-oc-continue:hover { background: var(--sx-primary-hover, #0000d6); transform: none; box-shadow: none; }
.sx-oc-sum__err { margin: -12px 0 0; }
.sx-oc-sum__secure { margin: -8px 0 0; }
.sx-oc-guarantee { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 24px 0 0; font-size: 16px; line-height: 24px; color: var(--hg-text); }

/* Tablet and phone: one column, Hostinger's bottom sheet, no chat bubble over it
   (ConvoAI stays one tap away in the header). */
@media (max-width: 991.98px) {
  .sx-oc { padding: 0 0 4px; }
  .sx-oc__grid { grid-template-columns: minmax(0, 1fr); }
  .sx-oc-side { position: static; }
  body:has(.sx-oc) #convoai-widget-host { display: none !important; }
  .sx-oc-bar { flex-direction: column; align-items: stretch; gap: 8px; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); border: 0;
    border-radius: 16px 16px 0 0; background: #fff; box-shadow: 0 -4px 24px rgba(17, 12, 41, .12); }
  .sx-oc-bar__sum { display: flex; align-items: baseline; gap: 6px; padding: 0; border: 0; background: none; color: var(--hg-text); font: 600 18px/26px "DM Sans", var(--sx-font); text-align: left; }
  .sx-oc-bar__sum strong { font: inherit; }
  .sx-oc-bar__sum s { font-size: 14px; font-weight: 400; color: var(--hg-muted); }
  .sx-oc-bar__sum svg { align-self: center; margin-left: auto; }
  .sx-oc-bar__coupon { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--hg-brand); font: 600 14px/20px "DM Sans", var(--sx-font); }
  .sx-oc .sx-oc-bar .sx-oc-continue { width: 100%; flex: none; height: 48px; }
  .sx-oc-on { padding-bottom: 170px; }
}
@media (max-width: 575.98px) {
  .sx-oc__title { margin-top: 24px; }
  .sx-oc-card { padding: 24px; }
  .sx-oc-plan__row { flex-wrap: wrap; }
  .sx-oc .sx-oc-select { min-width: 0; width: 100%; }
  .sx-oc-plan__price { margin-left: 0; width: 100%; flex-direction: row-reverse; justify-content: flex-end; }
  .sx-oc-plan__amt { justify-items: start; }
  .sx-oc-up { flex-wrap: wrap; }
  .sx-oc-up__go { margin-left: 32px; }
  .sx-oc .sx-oc-brand__list { grid-auto-columns: calc(50% - 8px); }
  .sx-oc-brand__nav { display: none; }
}
@media (min-width: 992px) { .sx-oc-bar { display: none !important; } }

/* Fixes after the first preview (2026-11-23):
   - the sliding brand row's width leaked into the main column and pushed it under the summary;
   - brand prices wrapped "/1st yr" inside 164px cards;
   - the offer strip ran to three lines (title now runs inline with the text). */
.sx-oc__main { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.sx-oc__main > * { min-width: 0; }
.sx-oc .sx-oc-brand__list { max-width: 100%; }
.sx-oc-brand__price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px; }
.sx-oc-brand__price b { white-space: nowrap; }
.sx-oc-up__text { display: block; }
.sx-oc-up__text b { display: inline; }
.sx-oc-up__text span { display: inline; }
@media (max-width: 575.98px) {
  .sx-oc .sx-oc-up__go { flex: 1 1 100%; max-width: calc(100% - 32px); margin-left: 32px; }
}
