/* ============================================================
   ARTNEST — KOŠÍK A OBJEDNÁVKA (vlastní checkout)
   Párový styl k artnest-kosik.js.

   Nahrát do /user/documents/artnest/ a v Shoptetu vložit do
   HTML kódy → Záhlaví (ZA ostatní ArtNest CSS):
     <link rel="stylesheet" href="/user/documents/artnest/artnest-kosik.css?v=1">

   Vše je pod body.an-co (třídu přidá skript) → bez skriptu zůstane
   nativní vzhled Shoptetu. Jediná výjimka je krátké skrytí obsahu
   proti probliknutí původního košíku (max. 2,5 s, pak se odkryje sám).
   Přebíjí styly doplňku Miranda Joy i main-11 šablony Classic.
   ============================================================ */

/* ---- Barvy a rozměry (z tokens.css, s pojistkou) ----------------
   Na :root — panel košíku běží na celém webu, ne jen v objednávce. */
:root {
  --an-bg:        var(--color-bg, #FBF8F3);
  --an-ink:       var(--color-ink, #1E1B19);
  --an-ink-2:     var(--color-ink-2, #5E574E);
  --an-ink-3:     var(--color-ink-3, #938A7E);
  --an-line:      var(--color-line, #ECE4D8);
  --an-line-2:    var(--color-line-strong, #DDD2C2);
  --an-soft:      var(--color-surface-2, #F4EEE5);
  --an-coral:     var(--color-coral, #ED4D6E);
  --an-coral-soft:var(--color-coral-soft, #FCE4E9);
  --an-coral-bg:  #FFF6F7;
  --an-cta:       #D43658;            /* tmavší korál: bílý text má kontrast 4.7:1 */
  --an-cta-hover: #B92A4A;
  --an-ok:        var(--color-success, #1F8A5B);
  --an-ok-soft:   var(--color-success-soft, #E0F2E9);
  --an-bad:       #C0352B;
  --an-r:         18px;
  --an-r-sm:      12px;
  --an-shadow:    0 1px 2px rgba(30,27,25,.04), 0 10px 30px rgba(30,27,25,.06);
  --an-font:      var(--font-body, "Inter", system-ui, sans-serif);
  --an-display:   var(--font-display, "Bricolage Grotesque", system-ui, sans-serif);
  --an-ease:      cubic-bezier(.2,.7,.3,1);
  --an-side:      380px;
  --an-ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E");
  --an-ico-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --an-ico-back:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 18l-6-6 6-6'/%3E%3C/svg%3E");
  --an-ico-truck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='6' width='13' height='11' rx='1.5'/%3E%3Cpath d='M14 9h4l3 3v5h-7z'/%3E%3Ccircle cx='5.5' cy='18.5' r='1.8'/%3E%3Ccircle cx='17.5' cy='18.5' r='1.8'/%3E%3C/svg%3E");
}

/* ---- Proti probliknutí původního košíku --------------------------
   Celá stránka objednávky zůstane skrytá, dokud ji skript nepřestaví
   (jinak by v krocích 1–2 na okamžik problikla plná hlavička webu).
   Bez !important, aby ji pojistka (animace) po 2,5 s vždy odkryla. */
@keyframes an-co-reveal { to { opacity: 1; } }
html body.ordering-process:not(.an-co-ready) {
  opacity: 0;
  animation: an-co-reveal .01s linear 2.5s forwards;
}
html:has(> body.ordering-process:not(.an-co-ready)),
html:has(> body.ordering-process:not(.xm-ready)) { background-color: #FBF8F3; }

/* ==================================================================
   STRÁNKA — světlé pozadí, bez bílé „karty" webu, bez rozptylování
   ================================================================== */
html body.an-co,
html body.an-co.page-dark-bg {
  background: var(--an-bg) !important;
  background-image: none !important;
  color: var(--an-ink);
}
html body.an-co #content-wrapper {
  max-width: 1240px !important;
  margin: 0 auto 80px !important;
  padding: 0 var(--xm-gutter, 24px) !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
html body.an-co .content-wrapper-in,
html body.an-co #content {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.an-co .content-inner,
body.an-co .cart-inner,
body.an-co .cart-content { background: none !important; padding: 0 !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; }

/* původní prvky, které nahrazuje vlastní vzhled */
body.an-co ol.cart-header,
body.an-co .cart-footer-wrapper,
body.an-co .checkout-box-wrapper,
body.an-co .checkout-box,
body.an-co .xm-akce-fab,
body.an-co .xm-svatek-fab,
body.an-co .xm-to-top { display: none !important; }

body.an-co .an-ico { width: 20px; height: 20px; flex: none; display: block; }

/* ---- Kroky 1–2: zjednodušená hlavička ------------------------------ */
body.an-co-focus .xm-header-sticky,
body.an-co-focus #header,
body.an-co-focus .top-navigation-bar,
body.an-co-focus .xm-utility,
body.an-co-focus .xm-catbar,
body.an-co-focus .xm-nav-backdrop,
body.an-co-focus .xm-drawer,
body.an-co-focus .xm-footer__wrap { display: none !important; }

.an-co-head { background: #fff; border-bottom: 1px solid var(--an-line); }
.an-co-head__in {
  max-width: 1240px; margin: 0 auto; padding: 14px var(--xm-gutter, 24px);
  display: flex; align-items: center; gap: 24px;
}
.an-co-head__logo { display: block; flex: none; }
html body.an-co .an-co-head__logo img { display: block; height: 38px !important; width: auto !important; max-width: none !important; }
.an-co-head__secure {
  display: inline-flex; align-items: center; gap: 8px; margin-right: auto;
  padding: 7px 12px; border-radius: 999px; background: var(--an-ok-soft); color: var(--an-ok);
  font: 600 13px/1 var(--an-font);
}
.an-co-head__secure .an-ico { width: 16px; height: 16px; }
.an-co-head__help {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--an-ink) !important; text-decoration: none !important;
}
.an-co-head__help .an-ico { width: 18px; height: 18px; color: var(--an-coral); }
.an-co-head__help b { display: block; font: 700 15px/1.2 var(--an-font); }
.an-co-head__help small { display: block; font: 500 12px/1.3 var(--an-font); color: var(--an-ink-3); }
.an-co-head__help:hover b { color: var(--an-cta); }

/* ==================================================================
   HLAVIČKA KROKU — nadpis a průběh objednávky
   ================================================================== */
.an-co-hero {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 20px 40px;
  padding: 36px 0 28px;
}
.an-co-eyebrow {
  margin: 0 0 10px !important;
  font: 600 12px/1 var(--an-font) !important;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--an-ink-3) !important;
}
.an-co-hero__title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
html body.an-co .an-co-hero h1.an-co-h1 {
  margin: 0 !important; padding: 0 !important;
  font: 700 clamp(30px, 4vw, 44px)/1.04 var(--an-display) !important;
  letter-spacing: -.025em; text-transform: none !important;
  color: var(--an-ink) !important; border: 0 !important;
}
.an-co-count {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border-radius: 999px; background: #fff; border: 1px solid var(--an-line);
  font: 600 13px/1 var(--an-font); color: var(--an-ink-2);
}

.an-co-steps { display: flex; align-items: center; list-style: none; margin: 0 !important; padding: 0 !important; }
.an-co-step { display: flex; align-items: center; margin: 0; padding: 0; }
.an-co-step + .an-co-step::before {
  content: ""; width: 36px; height: 2px; margin: 0 12px; border-radius: 2px; background: var(--an-line-2);
}
.an-co-step.is-done + .an-co-step::before { background: var(--an-coral); }
.an-co-step a,
.an-co-step__in { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.an-co-step__n {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  border: 1.5px solid var(--an-line-2); background: #fff;
  font: 700 13px/1 var(--an-font); color: var(--an-ink-3);
}
.an-co-step__n .an-ico { width: 16px; height: 16px; stroke-width: 2.6; }
.an-co-step__l { font: 600 14px/1.2 var(--an-font); color: var(--an-ink-3); white-space: nowrap; }
.an-co-step.is-done .an-co-step__n { background: var(--an-coral); border-color: var(--an-coral); color: #fff; }
.an-co-step.is-done .an-co-step__l { color: var(--an-ink-2); }
.an-co-step.is-done a:hover .an-co-step__l { color: var(--an-cta); text-decoration: underline; text-underline-offset: 3px; }
.an-co-step.is-active .an-co-step__n {
  background: var(--an-ink); border-color: var(--an-ink); color: #fff;
  box-shadow: 0 0 0 4px rgba(30,27,25,.08);
}
.an-co-step.is-active .an-co-step__l { color: var(--an-ink); }

/* ==================================================================
   ROZVRŽENÍ — obsah + lepící souhrn vpravo
   ================================================================== */
html body.an-co .cart-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) var(--an-side);
  gap: 32px;
  align-items: start;
  margin: 0 !important;
}
body.an-co .cart-row::before,
body.an-co .cart-row::after { content: none !important; display: none !important; }
html body.an-co .cart-row > [class*="col-"] {
  width: auto !important; max-width: none !important; min-width: 0;
  float: none !important; margin: 0 !important; padding: 0 !important;
}
html body.an-co .cart-row > .col-md-4,
html body.an-co #checkoutSidebar.col-md-4 {
  position: sticky !important;
  top: calc(var(--xm-header-h, 0px) + 20px);
}
html body.an-co-focus .cart-row > .col-md-4,
html body.an-co-focus #checkoutSidebar.col-md-4 { top: 20px; }

/* ---- Karty ------------------------------------------------------- */
body.an-co .an-sum,
html body.an-co #checkoutSidebar > .cart-content,
body.an-co .an-co-help,
body.an-co .an-co-emptybox {
  background: #fff !important;
  border: 1px solid var(--an-line) !important;
  border-radius: var(--an-r) !important;
  box-shadow: var(--an-shadow) !important;
}

/* ==================================================================
   KOŠÍK — seznam zboží
   ================================================================== */
html body.an-co .cart-table {
  display: block; width: 100%;
  margin: 0 0 32px !important; padding: 0 !important;
  background: #fff; border: 1px solid var(--an-line) !important;
  border-radius: var(--an-r); box-shadow: var(--an-shadow);
  overflow: hidden; border-collapse: separate;
}
html body.an-co .cart-table tbody { display: block !important; }
html body.an-co .cart-table tr.removeable {
  display: grid !important;
  grid-template-columns: 96px auto minmax(0, 1fr) auto minmax(104px, auto);
  grid-template-areas:
    "img name  name qty total"
    "img avail rm   qty unit";
  align-items: center;
  gap: 8px 20px;
  padding: 20px 24px !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--an-line) !important;
  background: #fff !important;
}
html body.an-co .cart-table tr.removeable:last-child { border-bottom: 0 !important; }
html body.an-co .cart-table tr.removeable:nth-last-child(1 of :not(.an-svc-row)) { border-bottom: 0 !important; }
html body.an-co .cart-table tr.an-svc-row { display: none !important; }
html body.an-co .cart-table td {
  display: block; width: auto !important; height: auto !important;
  padding: 0 !important; margin: 0 !important; border: 0 !important;
  background: none !important; text-align: left; flex: none !important;
}
/* šablona na mobilu posouvá ceny a „Odebrat" absolutně → v mřížce musí být v toku */
html body.an-co .cart-table tr.removeable > td,
html body.an-co .cart-table tr.removeable > td.p-total > * { position: static !important; inset: auto !important; transform: none !important; float: none !important; }
body.an-co .cart-table .p-label { display: none !important; }

body.an-co .cart-table td.cart-p-image { grid-area: img; align-self: start; }
body.an-co .cart-table td.cart-p-image a {
  display: block; width: 96px; height: 96px; border-radius: 14px;
  background: var(--an-soft); overflow: hidden;
}
body.an-co .cart-table td.cart-p-image img {
  width: 100% !important; height: 100% !important; object-fit: contain;
  border: 0 !important; border-radius: 0 !important; mix-blend-mode: multiply;
}

body.an-co .cart-table td.p-name { grid-area: name; align-self: end; }
html body.an-co .cart-table td.p-name .main-link {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font: 600 16px/1.35 var(--an-font) !important; text-transform: none !important;
  color: var(--an-ink) !important; text-decoration: none !important;
}
body.an-co .cart-table td.p-name .main-link:hover { color: var(--an-cta) !important; }
body.an-co .cart-table td.p-name .show-related,
body.an-co .cart-table td.p-name .main-link-variant { font: 500 12px/1.4 var(--an-font) !important; color: var(--an-ink-3) !important; }

body.an-co .cart-table td.p-availability { grid-area: avail; align-self: start; }
html body.an-co .cart-table .availability-label {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 13px/1.2 var(--an-font) !important; text-decoration: none !important; border: 0 !important;
}
body.an-co .cart-table .availability-label::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}
body.an-co .cart-table .availability-amount { display: none !important; }
body.an-co .cart-table tr.is-unavailable .cart-p-image img { opacity: .5; }

/* cena za kus (jen při více kusech) a celkem */
body.an-co .cart-table td.p-price { grid-area: unit; align-self: start; text-align: right; white-space: nowrap; }
html body.an-co .cart-table td.p-price .price-final,
html body.an-co .cart-table td.p-price .unit-value {
  font: 500 12px/1.3 var(--an-font) !important; color: var(--an-ink-3) !important; border: 0 !important;
}
body.an-co .cart-table tr.is-qty1 td.p-price { visibility: hidden; }
html body.an-co .cart-table td.p-total { display: contents !important; }
html body.an-co .cart-table td.p-total > .price-final {
  grid-area: total; align-self: end; justify-self: end; white-space: nowrap;
  font: 700 18px/1.1 var(--an-display) !important; color: var(--an-ink) !important;
}
html body.an-co .cart-table td.p-total > form,
html body.an-co .cart-table td.p-total > .inline { grid-area: rm; align-self: start; justify-self: start; display: block !important; width: auto !important; height: auto !important; margin: 0 !important; }
html body.an-co .cart-table td.p-total form .inline { display: block !important; width: auto !important; height: auto !important; }

/* Odebrat */
html body.an-co .cart-table .remove-item {
  display: inline-flex !important; align-items: center;
  width: auto !important; height: auto !important; min-height: 0 !important;
  padding: 2px 0 !important; margin: 0 !important;
  background: none !important; border: 0 !important; box-shadow: none !important;
  color: var(--an-ink-3) !important; cursor: pointer; opacity: 1 !important; filter: none !important;
  position: static !important; transform: none !important;
}
body.an-co .cart-table .remove-item::before,
body.an-co .cart-table .remove-item::after { display: none !important; content: none !important; }
body.an-co .cart-table .remove-item .an-rm { display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1 var(--an-font); }
body.an-co .cart-table .remove-item .an-rm .an-ico { width: 16px; height: 16px; }
body.an-co .cart-table .remove-item:hover { color: var(--an-bad) !important; }
body.an-co .cart-table .remove-item:hover .an-rm span { text-decoration: underline; text-underline-offset: 3px; }

/* počet kusů */
body.an-co .cart-table td.p-quantity { grid-area: qty; align-self: center; }
html body.an-co .cart-table tr.removeable td.p-quantity .quantity {
  position: relative; display: inline-flex !important; align-items: center;
  width: auto !important; min-width: 0 !important; max-width: none !important;
  height: 44px; padding: 0 4px !important; margin: 0 !important;
  border: 1px solid var(--an-line-2) !important; border-radius: 999px !important; background: #fff !important;
}
body.an-co .cart-table .quantity label { order: 2; margin: 0 !important; display: block; }
html body.an-co .cart-table .quantity input.amount {
  width: 40px !important; height: 40px !important; padding: 0 !important; margin: 0 !important;
  border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 0 !important;
  text-align: center; font: 700 15px/1 var(--an-font) !important; color: var(--an-ink) !important;
  -moz-appearance: textfield; appearance: textfield;
}
body.an-co .cart-table .quantity input.amount::-webkit-inner-spin-button,
body.an-co .cart-table .quantity input.amount::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
html body.an-co .cart-table .quantity button.increase,
html body.an-co .cart-table .quantity button.decrease {
  position: static !important; inset: auto !important; transform: none !important;
  width: 34px !important; height: 34px !important; padding: 0 !important; margin: 0 !important;
  display: grid !important; place-items: center; border: 0 !important; border-radius: 50% !important;
  background: transparent !important; color: var(--an-ink) !important; cursor: pointer;
  font: 500 19px/1 var(--an-font) !important; transition: background .15s var(--an-ease);
}
body.an-co .cart-table .quantity button.decrease { order: 1; }
body.an-co .cart-table .quantity button.increase { order: 3; }
body.an-co .cart-table .quantity button::before,
body.an-co .cart-table .quantity button::after { display: none !important; }
body.an-co .cart-table .quantity button:hover { background: var(--an-soft) !important; }
html body.an-co .cart-table .quantity button .increase__sign,
html body.an-co .cart-table .quantity button .decrease__sign {
  display: block !important; position: static !important; transform: none !important;
  font: 500 20px/1 var(--an-font) !important; color: inherit !important; margin: -2px 0 0 !important;
}
body.an-co .cart-table .quantity .increase-tooltip,
body.an-co .cart-table .quantity .decrease-tooltip { pointer-events: none; }

/* související produkty (rozbalovací řádek Shoptetu) */
html body.an-co .cart-table tr.related { display: none !important; }
html body.an-co .cart-table tr.related.visible { display: block !important; padding: 0 24px 20px !important; border-bottom: 1px solid var(--an-line) !important; }

/* ==================================================================
   DOPLŇKOVÉ SLUŽBY
   ================================================================== */
.an-svc { margin: 0 0 24px; }
.an-svc__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 14px; }
html body.an-co .an-svc__title {
  margin: 0 !important; padding: 0 !important;
  font: 700 24px/1.15 var(--an-display) !important; letter-spacing: -.015em;
  color: var(--an-ink) !important; text-transform: none !important;
}
.an-svc__sub { margin: 0 !important; font: 400 13px/1.4 var(--an-font) !important; color: var(--an-ink-3) !important; }
.an-svc__list { display: grid; gap: 10px; }
.an-svc__item { position: relative; }
.an-svc__cb { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; margin: 0 !important; pointer-events: none; }
html body.an-co .an-svc__lbl {
  display: grid !important;
  grid-template-columns: 24px 52px minmax(0, 1fr) auto;
  align-items: center; gap: 16px;
  margin: 0 !important; padding: 16px 20px !important;
  background: #fff; border: 1.5px solid var(--an-line); border-radius: 16px;
  cursor: pointer; user-select: none;
  transition: border-color .18s var(--an-ease), background-color .18s var(--an-ease), box-shadow .18s var(--an-ease);
}
html body.an-co .an-svc__lbl::before,
html body.an-co .an-svc__lbl::after { content: none !important; display: none !important; }
.an-svc__lbl:hover { border-color: var(--an-line-2); box-shadow: var(--an-shadow); }
.an-svc__cb:focus-visible + .an-svc__lbl { border-color: var(--an-coral); box-shadow: 0 0 0 4px var(--an-coral-soft); }
.an-svc__item.is-on .an-svc__lbl { border-color: var(--an-coral); background: var(--an-coral-bg); }

.an-svc__check {
  width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  border: 1.5px solid var(--an-line-2); background: #fff; color: transparent;
  transition: background-color .15s var(--an-ease), border-color .15s var(--an-ease);
}
body.an-co .an-svc__check .an-ico { width: 15px; height: 15px; stroke-width: 3; }
.an-svc__item.is-on .an-svc__check { background: var(--an-coral); border-color: var(--an-coral); color: #fff; }
.an-svc__ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--an-soft); color: var(--an-ink);
  transition: background-color .18s var(--an-ease), color .18s var(--an-ease);
}
body.an-co .an-svc__ico .an-ico { width: 26px; height: 26px; }
.an-svc__item.is-on .an-svc__ico { background: var(--an-coral-soft); color: var(--an-cta); }
.an-svc__body { min-width: 0; }
.an-svc__name { display: flex; align-items: center; gap: 6px; font: 600 15px/1.3 var(--an-font); color: var(--an-ink); }
.an-svc__desc { display: block; margin-top: 4px; font: 400 13px/1.45 var(--an-font); color: var(--an-ink-2); }
.an-svc__price { font: 700 15px/1 var(--an-font); color: var(--an-ok); white-space: nowrap; }
.an-svc__info {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  color: var(--an-ink-3); cursor: help; flex: none;
}
body.an-co .an-svc__info .an-ico { width: 16px; height: 16px; }
.an-svc__info:hover, .an-svc__info[aria-expanded="true"] { color: var(--an-cta); background: var(--an-coral-soft); }
.an-svc__info:focus-visible { outline: 2px solid var(--an-coral); outline-offset: 1px; }
.an-svc__tip {
  position: absolute; z-index: 20; left: 112px; right: 20px; top: calc(100% - 6px);
  padding: 12px 14px; border-radius: 12px;
  background: var(--an-ink); color: #fff; box-shadow: 0 12px 30px rgba(30,27,25,.22);
  font: 400 13px/1.5 var(--an-font);
}
.an-svc__tip[hidden] { display: none; }

/* právě se ukládá */
.an-svc__item.is-busy .an-svc__check { border-color: var(--an-coral); background: #fff; }
.an-svc__item.is-busy .an-svc__check .an-ico { display: none; }
.an-svc__item.is-busy .an-svc__check::after {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--an-coral); border-right-color: transparent;
  animation: an-spin .7s linear infinite;
}
.an-svc__cb:disabled + .an-svc__lbl { cursor: progress; }
@keyframes an-spin { to { transform: rotate(360deg); } }

/* ==================================================================
   DORUČENÍ + SLEVOVÝ KÓD
   ================================================================== */
.an-co-extras { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 28px; padding: 0 4px; }
.an-co-extras[hidden] { display: none; }
html body.an-co .delivery-time {
  display: inline-flex !important; align-items: center; gap: 10px;
  margin: 0 !important; padding: 0 !important;
  font: 500 14px/1.3 var(--an-font) !important; color: var(--an-ink-2) !important;
}
body.an-co .delivery-time::before {
  content: ""; width: 20px; height: 20px; flex: none; background: var(--an-ink-2);
  -webkit-mask: var(--an-ico-truck) center/contain no-repeat; mask: var(--an-ico-truck) center/contain no-repeat;
}
html body.an-co .delivery-time strong {
  color: var(--an-ink) !important; font-weight: 700 !important;
  border: 0 !important; border-bottom: 1px dashed var(--an-line-2) !important; text-decoration: none !important; cursor: help;
}

.an-coupon { display: flex; flex-direction: column; gap: 10px; }
.an-coupon-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 600 14px/1.3 var(--an-font); color: var(--an-ink);
}
.an-coupon-toggle span { text-decoration: underline; text-decoration-color: var(--an-line-2); text-underline-offset: 4px; }
.an-coupon-toggle:hover span { text-decoration-color: var(--an-coral); }
body.an-co .an-coupon-toggle .an-ico { width: 18px; height: 18px; color: var(--an-ink-2); }
body.an-co .an-coupon-toggle .an-coupon-chev { width: 16px; height: 16px; transition: transform .2s var(--an-ease); }
.an-coupon.is-open .an-coupon-chev { transform: rotate(180deg); }
html body.an-co .an-coupon .discount-coupon { display: none !important; margin: 0 !important; padding: 0 !important; }
html body.an-co .an-coupon.is-open .discount-coupon { display: block !important; }
body.an-co .an-coupon .discount-coupon > :not(form):not(.applied-coupon):not(.discount-coupon-code) { display: none !important; }
html body.an-co .an-coupon .discount-coupon form {
  display: flex !important; gap: 8px; width: 360px !important; max-width: 100%; margin: 0 !important;
}
html body.an-co .an-coupon .discount-coupon input[type="text"] {
  flex: 1; height: 44px !important; padding: 0 14px !important;
  border: 1.5px solid var(--an-line-2) !important; border-radius: 12px !important; background: #fff !important;
  font: 500 14px/1 var(--an-font) !important; box-shadow: none !important;
}
html body.an-co .an-coupon .discount-coupon button {
  height: 44px !important; padding: 0 18px !important; border-radius: 12px !important;
  background: var(--an-ink) !important; color: #fff !important; border: 0 !important;
  font: 600 14px/1 var(--an-font) !important; text-transform: none !important;
}

/* ==================================================================
   SOUHRN / REKAPITULACE (pravý sloupec)
   ================================================================== */
html body.an-co .summary-wrapper { margin: 0 !important; padding: 0 !important; background: none !important; }
html body.an-co .summary-wrapper .box.an-sum { padding: 24px !important; margin: 0 !important; }
html body.an-co #checkoutSidebar > .cart-content { padding: 24px !important; }
html body.an-co #summary-box,
html body.an-co #checkoutSidebar .order-summary { padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }

html body.an-co .an-sum-head {
  margin: 0 0 16px !important; padding: 0 !important;
  font: 700 20px/1.2 var(--an-display) !important; letter-spacing: -.01em;
  color: var(--an-ink) !important; text-transform: none !important; text-align: left !important;
}
html body.an-co .an-sum-head::before, html body.an-co .an-sum-head::after { display: none !important; }
.an-sum-lines { display: grid; gap: 10px; }
.an-sum-line { display: flex; justify-content: space-between; gap: 12px; font: 400 14px/1.3 var(--an-font); color: var(--an-ink-2); }
.an-sum-line b { font-weight: 600; color: var(--an-ink); white-space: nowrap; }
.an-sum-line em { font-style: normal; font-weight: 500; color: var(--an-ink-3); }

/* celková cena (Shoptet) */
html body.an-co .an-sum .price-wrapper,
html body.an-co #summary-box .price-wrapper {
  display: grid !important; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 12px;
  margin: 18px 0 0 !important; padding: 18px 0 0 !important; border-top: 1px solid var(--an-line) !important;
  background: none !important; text-align: left;
}
html body.an-co .an-sum .price-wrapper > *,
html body.an-co #summary-box .price-wrapper > * { float: none !important; display: block !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
html body.an-co .an-sum .price-label.price-primary,
html body.an-co #summary-box .price-label.price-primary { font: 600 15px/1.3 var(--an-font) !important; color: var(--an-ink) !important; text-transform: none !important; }
.an-sum .price-label.price-primary small { display: block; font: 400 12px/1.3 var(--an-font); color: var(--an-ink-3); }
html body.an-co .an-sum strong.price.price-primary,
html body.an-co #summary-box strong.price.price-primary,
html body.an-co #summary-box strong.price.price-primary span {
  text-align: right !important; font: 700 30px/1 var(--an-display) !important; letter-spacing: -.02em; color: var(--an-ink) !important;
}
html body.an-co .an-sum .price-label.price-secondary,
html body.an-co .an-sum strong.price.price-secondary,
html body.an-co #summary-box .price-label.price-secondary,
html body.an-co #summary-box strong.price.price-secondary,
html body.an-co #summary-box strong.price.price-secondary span {
  font: 400 12px/1.3 var(--an-font) !important; color: var(--an-ink-3) !important; text-align: right;
}
html body.an-co .an-sum .price-label.price-secondary,
html body.an-co #summary-box .price-label.price-secondary { text-align: left !important; }

/* rekapitulace v krocích: zboží s náhledy */
html body.an-co #summary-box .cart-items { margin: 0 !important; padding: 0 !important; border: 0 !important; }
html body.an-co #summary-box .cart-item {
  display: grid !important; grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-rows: auto auto;
  column-gap: 12px; row-gap: 2px; align-items: center;
  padding: 10px 0 !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid var(--an-line) !important;
}
html body.an-co #summary-box .cart-item:last-child { border-bottom: 0 !important; }
.an-thumb {
  grid-column: 1; grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 12px;
  background: var(--an-soft); overflow: hidden; display: block;
}
.an-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; display: block; }
html body.an-co #summary-box .cart-item-name { grid-column: 2; grid-row: 1; align-self: end; width: auto !important; padding: 0 !important; float: none !important; }
html body.an-co #summary-box .cart-item-name a {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font: 600 13px/1.35 var(--an-font) !important; color: var(--an-ink) !important; text-decoration: none !important; text-transform: none !important;
}
html body.an-co #summary-box .cart-item-amount {
  grid-column: 2; grid-row: 2; align-self: start; width: auto !important; padding: 0 !important; float: none !important; text-align: left !important;
  font: 500 12px/1.3 var(--an-font) !important; color: var(--an-ink-3) !important;
}
html body.an-co #summary-box .cart-item-price {
  grid-column: 3; grid-row: 1 / span 2; width: auto !important; padding: 0 !important; float: none !important; text-align: right !important;
  font: 700 14px/1.2 var(--an-font) !important; color: var(--an-ink) !important; white-space: nowrap;
}
html body.an-co #summary-box .cart-item.is-svc .cart-item-name a { font-weight: 500 !important; color: var(--an-ink-2) !important; }

html body.an-co #summary-box .order-summary-item.helper {
  display: flex !important; justify-content: space-between; gap: 12px;
  margin: 14px 0 0 !important; padding: 14px 0 0 !important; border-top: 1px solid var(--an-line) !important; border-bottom: 0 !important;
  font: 400 14px/1.3 var(--an-font) !important; color: var(--an-ink-2) !important;
}
html body.an-co #summary-box .order-summary-item.helper strong { font-weight: 400 !important; color: var(--an-ink-2) !important; }
html body.an-co #summary-box .order-summary-item.helper > div:last-child { font-weight: 600; color: var(--an-ink); }
html body.an-co #summary-box .order-recapitulation { margin: 8px 0 0 !important; padding: 0 !important; border: 0 !important; }
/* Doprava a platba v rekapitulaci. Krok 1 a krok 2 mají jiné značení
   (krok 2 bez tříd), proto pravidla stojí jen na struktuře:
   <div.recapitulation-single> <span>popisek</span> <strong><span data-testid=recapItemPrice>cena</span> název</strong> */
html body.an-co #summary-box .recapitulation-single {
  display: grid !important; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 1px;
  position: static !important; margin: 0 !important; padding: 7px 0 !important; border: 0 !important; background: none !important;
}
html body.an-co #summary-box .recapitulation-single > span:first-child {
  grid-column: 1; position: static !important; float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important;
  font: 400 12px/1.3 var(--an-font) !important; color: var(--an-ink-3) !important; text-transform: none !important;
}
/* název je text uvnitř <strong> spolu s cenou → strong se „rozpustí" do mřížky:
   cena vpravo přes oba řádky, název pod popiskem */
html body.an-co #summary-box .recapitulation-single > strong {
  display: contents !important; font: 600 14px/1.35 var(--an-font) !important; color: var(--an-ink) !important; text-align: left !important;
}
html body.an-co #summary-box .recapitulation-single > strong > [data-testid="recapItemPrice"] {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  position: static !important; float: none !important; margin: 0 !important; padding: 0 !important;
  font: 600 14px/1 var(--an-font) !important; color: var(--an-ink) !important; white-space: nowrap;
}
html body.an-co #summary-box .cart-items + .cart-items,
html body.an-co #summary-box .order-summary-item.helper + .cart-items { margin-top: 6px !important; }
html body.an-co #summary-box .order-recapitulation:empty { display: none !important; }

/* ---- Tlačítka dalšího kroku -------------------------------------- */
html body.an-co .next-step {
  display: flex !important; flex-direction: column-reverse; align-items: stretch; gap: 10px;
  margin: 20px 0 0 !important; padding: 0 !important; border: 0 !important; background: none !important;
}
html body.an-co .next-step .next-step-forward,
html body.an-co .next-step .next-step-finish,
html body.an-co .an-btn--primary {
  display: flex !important; align-items: center; justify-content: center; gap: 10px;
  width: 100% !important; min-height: 56px; height: auto !important; margin: 0 !important; padding: 14px 24px !important;
  border: 0 !important; border-radius: 999px !important;
  background: var(--an-cta) !important; color: #fff !important;
  font: 600 16px/1.2 var(--an-font) !important; letter-spacing: 0 !important; text-transform: none !important; text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(212,54,88,.28) !important;
  transition: background-color .18s var(--an-ease), transform .18s var(--an-ease), box-shadow .18s var(--an-ease) !important;
  float: none !important;
}
html body.an-co .next-step .next-step-forward:hover,
html body.an-co .next-step .next-step-finish:hover,
html body.an-co .an-btn--primary:hover { background: var(--an-cta-hover) !important; transform: translateY(-1px); box-shadow: 0 14px 28px rgba(212,54,88,.32) !important; }
html body.an-co .next-step .next-step-forward:focus-visible,
html body.an-co .next-step .next-step-finish:focus-visible { outline: 3px solid var(--an-coral-soft) !important; outline-offset: 2px; }
html body.an-co .next-step .next-step-forward::before,
html body.an-co .next-step .next-step-finish::before { display: none !important; content: none !important; }
html body.an-co .next-step .next-step-forward::after {
  content: "" !important; display: block !important; position: static !important; width: 20px; height: 20px; flex: none;
  background: #fff !important; border: 0 !important; transform: none !important;
  -webkit-mask: var(--an-ico-arrow) center/contain no-repeat; mask: var(--an-ico-arrow) center/contain no-repeat;
}
html body.an-co .next-step .next-step-forward span,
html body.an-co .next-step .next-step-finish span { color: inherit !important; font: inherit !important; margin: 0 !important; }
html body.an-co .next-step .next-step-finish { gap: .3em; flex-wrap: wrap; }
html body.an-co .next-step .next-step-back {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
  width: 100% !important; min-height: 0 !important; height: auto !important; margin: 0 !important; padding: 6px !important;
  background: none !important; border: 0 !important; box-shadow: none !important;
  color: var(--an-ink-2) !important; font: 500 14px/1.3 var(--an-font) !important; text-transform: none !important; text-decoration: none !important;
  float: none !important;
}
html body.an-co .next-step .next-step-back::before {
  content: "" !important; display: block !important; position: static !important; width: 16px; height: 16px; flex: none;
  background: currentColor !important; border: 0 !important; transform: none !important;
  -webkit-mask: var(--an-ico-back) center/contain no-repeat; mask: var(--an-ico-back) center/contain no-repeat;
}
html body.an-co .next-step .next-step-back::after { display: none !important; }
html body.an-co .next-step .next-step-back span { color: inherit !important; font: inherit !important; }
html body.an-co .next-step .next-step-back:hover { color: var(--an-ink) !important; text-decoration: underline !important; text-underline-offset: 3px; }

/* ---- Ujištění + kontakt ------------------------------------------ */
.an-trust { list-style: none; margin: 20px 0 0 !important; padding: 18px 0 0 !important; border-top: 1px solid var(--an-line); display: grid; gap: 10px; }
.an-trust li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; font: 500 13px/1.35 var(--an-font); color: var(--an-ink-2); }
body.an-co .an-trust .an-ico { width: 18px; height: 18px; color: var(--an-ok); }

body.an-co .an-co-help { margin-top: 16px; padding: 18px 20px; display: grid; gap: 8px; box-shadow: none !important; background: transparent !important; }
.an-co-help__t { margin: 0 0 2px !important; font: 700 12px/1 var(--an-font) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--an-ink-3) !important; }
.an-co-help a { display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1.3 var(--an-font); color: var(--an-ink) !important; text-decoration: none !important; }
.an-co-help a:hover { color: var(--an-cta) !important; }
body.an-co .an-co-help .an-ico { width: 18px; height: 18px; color: var(--an-ink-3); }
.an-co-help__h { margin: 0 !important; font: 400 12px/1.3 var(--an-font) !important; color: var(--an-ink-3) !important; }
html body.an-co #checkoutSidebar .an-co-help { margin: 16px 0 0; }

/* ==================================================================
   KROK 1 — DOPRAVA A PLATBA
   ================================================================== */
html body.an-co .co-box {
  margin: 0 0 36px !important; padding: 0 !important;
  background: none !important; border: 0 !important; box-shadow: none !important;
}
html body.an-co .co-box h2,
html body.an-co .co-box .header-billing {
  display: block !important; margin: 0 0 16px !important; padding: 0 !important;
  font: 700 24px/1.15 var(--an-display) !important; letter-spacing: -.015em;
  color: var(--an-ink) !important; text-transform: none !important; border: 0 !important; background: none !important;
}
html body.an-co .co-box h2::before,
html body.an-co .co-box h2::after { display: none !important; content: none !important; }

/* Země doručení — jeden řádek */
html body.an-co .co-box.an-basic {
  display: flex !important; align-items: center; gap: 12px 16px; flex-wrap: wrap;
  margin-bottom: 28px !important; padding: 14px 18px !important;
  background: #fff !important; border: 1px solid var(--an-line) !important; border-radius: 14px !important;
}
html body.an-co .co-box.an-basic h2 { display: none !important; }
html body.an-co #select-country-payment .co-box.an-basic .row,
html body.an-co #select-country-payment .co-box.an-basic [class*="col-"] {
  display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important; float: none !important;
}
html body.an-co .co-box.an-basic .row::before,
html body.an-co .co-box.an-basic .row::after,
html body.an-co .co-box.an-basic::before,
html body.an-co .co-box.an-basic::after { content: none !important; display: none !important; }
html body.an-co #select-country-payment .co-box.an-basic .form-group {
  display: flex !important; flex-direction: row !important; align-items: center; gap: 14px;
  margin: 0 !important; padding: 0 !important; width: 100%;
}
html body.an-co #select-country-payment .co-box.an-basic label {
  position: static !important; transform: none !important; margin: 0 !important; padding: 0 !important; flex: none;
  font: 600 14px/1.2 var(--an-font) !important; color: var(--an-ink-2) !important; background: none !important;
  width: auto !important; height: auto !important; opacity: 1 !important;
}
html body.an-co #select-country-payment .co-box.an-basic select.form-control {
  flex: 0 1 320px; max-width: 320px; height: 44px !important; min-height: 44px !important;
  padding: 0 40px 0 14px !important; line-height: 42px !important;
}

html body.an-co .shipping-billing-table { display: grid !important; gap: 10px; margin: 0 !important; padding: 0 !important; border: 0 !important; }
html body.an-co .shipping-billing-table .radio-wrapper {
  position: relative; margin: 0 !important; padding: 0 !important;
  background: #fff !important; border: 1.5px solid var(--an-line) !important; border-radius: 16px !important;
  transition: border-color .18s var(--an-ease), background-color .18s var(--an-ease), box-shadow .18s var(--an-ease);
}
html body.an-co .shipping-billing-table .radio-wrapper:hover { border-color: var(--an-line-2) !important; box-shadow: var(--an-shadow); }
html body.an-co .shipping-billing-table .radio-wrapper.active { border-color: var(--an-coral) !important; background: var(--an-coral-bg) !important; }
html body.an-co .shipping-billing-table .radio-wrapper:has(> input:checked) { border-color: var(--an-coral) !important; background: var(--an-coral-bg) !important; }
html body.an-co .shipping-billing-table .radio-wrapper > input[type="radio"] {
  position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; margin: 0 !important; pointer-events: none;
}
html body.an-co .shipping-billing-table .radio-wrapper > input[type="radio"]:focus-visible + label { box-shadow: 0 0 0 4px var(--an-coral-soft); border-radius: 15px; }
html body.an-co .shipping-billing-table .radio-wrapper > input[type="radio"] + label {
  position: relative; display: grid !important;
  grid-template-columns: 22px 64px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  min-height: 76px; margin: 0 !important; padding: 14px 20px !important;
  cursor: pointer; background: none !important; border: 0 !important; width: 100% !important;
}
html body.an-co .shipping-billing-table .radio-wrapper > input[type="radio"] + label::before {
  content: "" !important; position: static !important; inset: auto !important; transform: none !important;
  display: block !important; width: 22px !important; height: 22px !important; margin: 0 !important;
  border: 1.5px solid var(--an-line-2) !important; border-radius: 50% !important; background: #fff !important;
  box-shadow: none !important; transition: border-color .15s var(--an-ease), background .15s var(--an-ease);
}
html body.an-co .shipping-billing-table .radio-wrapper > input[type="radio"]:checked + label::before {
  border-color: var(--an-coral) !important;
  background: radial-gradient(circle, var(--an-coral) 0 5px, #fff 5.5px) !important;
}
html body.an-co .shipping-billing-table .radio-wrapper > input[type="radio"] + label::after { display: none !important; content: none !important; }

html body.an-co .shipping-billing-table .payment-logo {
  order: 1; width: 64px !important; height: 44px !important; margin: 0 !important; padding: 5px !important;
  display: grid !important; place-items: center; float: none !important;
  background: #fff; border: 1px solid var(--an-line); border-radius: 10px;
}
html body.an-co .shipping-billing-table .payment-logo img { max-width: 100% !important; max-height: 32px !important; width: auto !important; height: auto !important; object-fit: contain; }
html body.an-co .shipping-billing-table .payment-info { order: 2; min-width: 0; display: block !important; padding: 0 !important; margin: 0 !important; float: none !important; width: auto !important; max-width: none !important; flex: none !important; }
html body.an-co .shipping-billing-table .shipping-billing-name {
  display: inline !important; width: auto !important;
  font: 600 15px/1.35 var(--an-font) !important; color: var(--an-ink) !important; text-transform: none !important;
}
html body.an-co .shipping-billing-table .payment-info > span:not(.sublabel) { display: inline !important; }
html body.an-co .shipping-billing-table .question-tooltip {
  display: inline-grid !important; place-items: center; width: 18px !important; height: 18px !important; margin: 0 0 0 4px !important; padding: 0 !important;
  border-radius: 50% !important; background: var(--an-soft) !important; color: var(--an-ink-2) !important;
  font: 700 11px/1 var(--an-font) !important; vertical-align: 1px; border: 0 !important; cursor: help;
}
html body.an-co .shipping-billing-table .sublabel { display: block; margin-top: 2px; font: 400 13px/1.4 var(--an-font) !important; color: var(--an-ink-2) !important; }
html body.an-co .shipping-billing-table .payment-info a { font: 600 13px/1.4 var(--an-font) !important; color: var(--an-cta) !important; text-decoration: underline !important; text-underline-offset: 3px; }
html body.an-co .shipping-billing-table .not-possible-info { display: none !important; }
html body.an-co .shipping-billing-table .payment-shipping-price {
  order: 3; float: none !important; margin: 0 !important; padding: 0 !important; width: auto !important; text-align: right !important;
  font: 700 15px/1 var(--an-font) !important; color: var(--an-ink) !important; white-space: nowrap;
}
html body.an-co .shipping-billing-table .payment-shipping-price.for-free { color: var(--an-ok) !important; }

/* nedostupná kombinace dopravy a platby */
html body.an-co .shipping-billing-table .radio-wrapper.inactive-child { background: var(--an-soft) !important; border-color: var(--an-line) !important; box-shadow: none !important; }
html body.an-co .shipping-billing-table .radio-wrapper.inactive-child label { cursor: not-allowed !important; }
html body.an-co .shipping-billing-table .radio-wrapper.inactive-child .payment-logo,
html body.an-co .shipping-billing-table .radio-wrapper.inactive-child .shipping-billing-name,
html body.an-co .shipping-billing-table .radio-wrapper.inactive-child .payment-shipping-price { opacity: .45; }
html body.an-co .shipping-billing-table .radio-wrapper.inactive-child .not-possible-info {
  display: block !important; margin-top: 3px; font: 500 12px/1.3 var(--an-font) !important; font-style: normal !important; color: var(--an-bad) !important;
}

/* ==================================================================
   KROK 2 — ÚDAJE (formulář)
   ================================================================== */
html body.an-co.an-co--s2 #checkoutContent .co-box > fieldset,
html body.an-co.an-co--s2 #checkoutContent fieldset.co-box {
  margin: 0 !important; padding: 24px !important;
  background: #fff !important; border: 1px solid var(--an-line) !important; border-radius: var(--an-r) !important; box-shadow: var(--an-shadow) !important;
}
html body.an-co.an-co--s2 #checkoutContent .co-box,
html body.an-co.an-co--s2 #checkoutContent fieldset.co-box { margin-bottom: 20px !important; }
html body.an-co.an-co--s2 #checkoutContent .co-box h2,
html body.an-co.an-co--s2 #checkoutContent .co-box .header-billing { font-size: 22px !important; margin-bottom: 18px !important; }

/* mřížka polí */
html body.an-co.an-co--s2 .co-contact-information,
html body.an-co.an-co--s2 .co-billing-address > fieldset,
html body.an-co.an-co--s2 #company-info {
  display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 16px; align-items: start;
}
html body.an-co.an-co--s2 .co-contact-information > *,
html body.an-co.an-co--s2 .co-billing-address > fieldset > *,
html body.an-co.an-co--s2 #company-info > * { grid-column: 1 / -1; min-width: 0; }
html body.an-co.an-co--s2 .co-contact-information > h2 { grid-column: 1 / 5; }
html body.an-co.an-co--s2 .co-contact-information > .form-legend { grid-column: 5 / -1; align-self: center; text-align: right; margin: 0 0 18px !important; }
html body.an-co.an-co--s2 .an-f-email { grid-column: 1 / 4 !important; }
html body.an-co.an-co--s2 .an-f-phone { grid-column: 4 / -1 !important; }
html body.an-co.an-co--s2 .an-f-billCity { grid-column: 1 / 5 !important; }
html body.an-co.an-co--s2 .an-f-billZip { grid-column: 5 / -1 !important; }
html body.an-co.an-co--s2 .an-f-companyId { grid-column: 1 / 4 !important; }
html body.an-co.an-co--s2 .an-f-vatId { grid-column: 4 / -1 !important; }
html body.an-co.an-co--s2 #company-info.js-hidden:not(.visible) { display: none !important; }

html body.an-co.an-co--s2 .form-legend,
html body.an-co.an-co--s2 .form-legend span { font: 400 12px/1.3 var(--an-font) !important; color: var(--an-ink-3) !important; }

html body.an-co.an-co--s2 #checkoutContent .form-group {
  display: block !important; margin: 0 !important; padding: 0 !important; width: auto !important; float: none !important;
}
html body.an-co.an-co--s2 #checkoutContent .form-group--inline > label,
html body.an-co.an-co--s2 #checkoutContent .form-group--inline > p.label,
html body.an-co.an-co--s2 #checkoutContent .smart-label-wrapper > label {
  position: static !important; transform: none !important; display: block !important;
  width: auto !important; float: none !important; margin: 0 0 6px !important; padding: 0 !important;
  font: 600 13px/1.3 var(--an-font) !important; color: var(--an-ink-2) !important; text-align: left !important;
  background: none !important; opacity: 1 !important; pointer-events: auto;
}
html body.an-co.an-co--s2 #checkoutContent .form-group--inline > .form-control-wrapper { width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; }
/* Shoptet schovává výběr země (mění se v kroku 1) — nezobrazovat jeho popisek znovu */
html body.an-co.an-co--s2 #checkoutContent .js-location--hidden { display: none !important; }
html body.an-co.an-co--s2 #checkoutContent .form-control-wrapper--with-note strong { font: 600 15px/1.3 var(--an-font) !important; color: var(--an-ink) !important; }
html body.an-co.an-co--s2 #checkoutContent .form-control-wrapper--with-note .helpNote { display: block; margin-top: 2px; font: 400 13px/1.4 var(--an-font) !important; font-style: normal !important; color: var(--an-ink-3) !important; }
html body.an-co.an-co--s2 #checkoutContent .form-control-wrapper--with-note .helpNote a { color: var(--an-ink-2) !important; text-decoration: underline !important; }
html body.an-co.an-co--s2 .required-asterisk::after { color: var(--an-coral) !important; }

html body.an-co .co-box .form-control,
html body.an-co .co-box select.form-control,
html body.an-co #note textarea.form-control {
  width: 100% !important; max-width: none !important; height: 50px !important; padding: 0 16px !important; margin: 0 !important;
  background: #fff !important; border: 1.5px solid var(--an-line-2) !important; border-radius: 12px !important; box-shadow: none !important;
  font: 500 15px/1.2 var(--an-font) !important; color: var(--an-ink) !important;
  transition: border-color .15s var(--an-ease), box-shadow .15s var(--an-ease);
}
html body.an-co .co-box select.form-control { padding-right: 40px !important; }
html body.an-co #note textarea.form-control { height: 110px !important; padding: 12px 16px !important; line-height: 1.5 !important; resize: vertical; }
html body.an-co .co-box .form-control:hover { border-color: var(--an-ink-3) !important; }
html body.an-co .co-box .form-control:focus,
html body.an-co #note textarea.form-control:focus { border-color: var(--an-coral) !important; box-shadow: 0 0 0 4px var(--an-coral-soft) !important; outline: none !important; }
html body.an-co .co-box .js-validated-element-wrapper.error .form-control,
html body.an-co .co-box .form-control.error,
html body.an-co .co-box .form-control[aria-invalid="true"] { border-color: var(--an-bad) !important; }
html body.an-co .co-box .js-validated-element-wrapper.valid .form-control:not(:focus) { border-color: var(--an-ok) !important; }
html body.an-co .co-box .js-validator-msg,
html body.an-co .co-box .msg-error { font: 500 12px/1.3 var(--an-font) !important; color: var(--an-bad) !important; margin-top: 6px !important; }

html body.an-co .co-box .form-group-tooltip {
  background: var(--an-soft) !important; color: var(--an-ink-2) !important; border: 0 !important;
  font: 700 11px/18px var(--an-font) !important; width: 18px !important; height: 18px !important; border-radius: 50% !important; text-align: center;
}

/* telefon s předvolbou */
html body.an-co .co-box .phone-combined-input { display: flex !important; align-items: stretch; width: 100% !important; max-width: none !important; }
html body.an-co .co-box .phone-combined-input .country-flags { flex: none; height: 50px !important; border-radius: 12px 0 0 12px !important; border-color: var(--an-line-2) !important; }
html body.an-co .co-box .phone-combined-input .form-control { flex: 1 1 auto; min-width: 0; max-width: none !important; border-radius: 0 12px 12px 0 !important; }

/* přihlášení */
html body.an-co.an-co--s2 #checkoutContent .form-group.an-login {
  display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: space-between !important;
  flex-wrap: wrap; gap: 10px 16px; text-align: left !important;
  padding: 14px 16px !important; margin: 0 0 4px !important;
  background: var(--an-soft) !important; border-radius: 14px;
}
html body.an-co.an-co--s2 .an-login p.label { margin: 0 !important; font: 400 14px/1.4 var(--an-font) !important; color: var(--an-ink-2) !important; width: auto !important; float: none !important; }
html body.an-co.an-co--s2 .an-login p.label b { color: var(--an-ink); font-weight: 600; }
html body.an-co.an-co--s2 .an-login > * { flex: 0 1 auto !important; }
html body.an-co.an-co--s2 .an-login > div { margin: 0 !important; width: auto !important; float: none !important; }
html body.an-co.an-co--s2 .an-login .login-button {
  display: inline-flex !important; align-items: center; height: 40px !important; padding: 0 18px !important; margin: 0 !important;
  border-radius: 999px !important; background: #fff !important; color: var(--an-ink) !important; border: 1px solid var(--an-line-2) !important;
  font: 600 14px/1 var(--an-font) !important; text-transform: none !important; box-shadow: none !important; width: auto !important;
}
html body.an-co.an-co--s2 .an-login .login-button:hover { border-color: var(--an-ink) !important; }

/* doplňující volby (poznámka, newsletter, registrace) */
html body.an-co.an-co--s2 .co-box-additional {
  display: grid; gap: 12px; padding: 20px 24px !important;
  background: #fff !important; border: 1px solid var(--an-line) !important; border-radius: var(--an-r) !important;
}
html body.an-co.an-co--s2 .co-box-additional .form-group,
html body.an-co.an-co--s2 .co-box-additional fieldset.stay-in-touch { margin: 0 !important; padding: 0 !important; border: 0 !important; }
html body.an-co.an-co--s2 #checkoutContent .co-box-additional > fieldset.stay-in-touch {
  display: grid !important; gap: 12px; padding: 0 !important; margin: 0 !important;
  background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
html body.an-co.an-co--s2 #note > fieldset { box-shadow: none !important; padding: 0 !important; border: 0 !important; background: none !important; }

/* ---- Zaškrtávátka (údaje, souhlasy) -------------------------------- */
html body.an-co.an-co--s2 input[type="checkbox"] + label {
  position: relative !important; display: inline-block !important;
  min-height: 22px; padding: 1px 0 0 34px !important; margin: 0 !important;
  font: 500 14px/1.45 var(--an-font) !important; color: var(--an-ink) !important; cursor: pointer; text-transform: none !important;
}
html body.an-co.an-co--s2 input[type="checkbox"] + label::before {
  content: "" !important; position: absolute !important; left: 0 !important; top: 0 !important; transform: none !important;
  width: 22px !important; height: 22px !important; margin: 0 !important;
  border: 1.5px solid var(--an-line-2) !important; border-radius: 7px !important; background: #fff !important; box-shadow: none !important;
  transition: background-color .15s var(--an-ease), border-color .15s var(--an-ease);
}
html body.an-co.an-co--s2 input[type="checkbox"]:checked + label::before {
  background: var(--an-coral) var(--an-ico-check) center/15px no-repeat !important; border-color: var(--an-coral) !important;
}
html body.an-co.an-co--s2 input[type="checkbox"] + label::after { display: none !important; content: none !important; }
html body.an-co.an-co--s2 input[type="checkbox"]:focus-visible + label::before { box-shadow: 0 0 0 4px var(--an-coral-soft) !important; }
html body.an-co.an-co--s2 .js-validated-element-wrapper.error input[type="checkbox"] + label::before { border-color: var(--an-bad) !important; }

/* souhlasy u tlačítka */
.an-consents { display: grid; gap: 12px; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--an-line); }
html body.an-co .an-consents .consents { margin: 0 !important; padding: 0 !important; }
html body.an-co .an-consents .consents label { font: 400 13px/1.45 var(--an-font) !important; color: var(--an-ink-2) !important; }
html body.an-co .an-consents .consents label a { color: var(--an-ink) !important; text-decoration: underline !important; text-underline-offset: 3px; }

/* ==================================================================
   PRÁZDNÝ KOŠÍK
   ================================================================== */
body.an-co-empty .cart-inner > :not(.an-co-emptybox),
body.an-co-empty .content-inner > :not(.an-co-emptybox),
body.an-co-empty .an-co-steps,
body.an-co-empty .an-co-eyebrow { display: none !important; }
body.an-co-empty .an-co-hero { justify-content: center; align-items: center; }
body.an-co-empty .an-co-hero__title { justify-content: center; }
body.an-co .an-co-emptybox {
  max-width: 560px; margin: 8px auto 0; padding: 48px 32px !important; text-align: center;
}
.an-co-emptybox__ico {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 22px; display: grid; place-items: center;
  background: var(--an-coral-soft); color: var(--an-cta);
}
body.an-co .an-co-emptybox__ico .an-ico { width: 34px; height: 34px; }
html body.an-co .an-co-emptybox h2 { margin: 0 0 8px !important; font: 700 26px/1.15 var(--an-display) !important; color: var(--an-ink) !important; text-transform: none !important; }
html body.an-co .an-co-emptybox p { margin: 0 0 24px !important; font: 400 15px/1.5 var(--an-font) !important; color: var(--an-ink-2) !important; }
.an-co-emptybox__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
html body.an-co .an-co-emptybox .an-btn--primary { width: auto !important; min-height: 50px; }
.an-btn--ghost {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--an-line-2); color: var(--an-ink) !important; text-decoration: none !important;
  font: 600 15px/1 var(--an-font); background: #fff;
}
.an-btn--ghost:hover { border-color: var(--an-ink); }

/* ==================================================================
   MOBILNÍ LIŠTA
   ================================================================== */
.an-co-mbar { display: none; }

/* ==================================================================
   RESPONZIVITA
   ================================================================== */
@media (max-width: 1100px) {
  body.an-co { --an-side: 340px; }
  html body.an-co .cart-row { gap: 24px; }
}

@media (max-width: 991px) {
  html body.an-co .cart-row { grid-template-columns: minmax(0, 1fr); }
  html body.an-co .cart-row > .col-md-4,
  html body.an-co #checkoutSidebar.col-md-4 { position: static !important; }
  .an-co-hero { flex-direction: column; align-items: flex-start; padding: 24px 0 20px; }

  .an-co-mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 990;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--an-line);
    box-shadow: 0 -10px 30px rgba(30,27,25,.08);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transition: transform .25s var(--an-ease);
  }
  .an-co-mbar[hidden] { display: none; }
  .an-co-mbar.is-off { transform: translateY(110%); }
  .an-co-mbar__sum { display: grid; gap: 2px; margin-right: auto; min-width: 0; }
  .an-co-mbar__sum span { font: 500 11px/1.2 var(--an-font); color: var(--an-ink-3); }
  .an-co-mbar__sum b { font: 700 20px/1.1 var(--an-display); color: var(--an-ink); white-space: nowrap; }
  .an-co-mbar__btn {
    display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px; border: 0; border-radius: 999px;
    background: var(--an-cta); color: #fff; font: 600 15px/1 var(--an-font); cursor: pointer;
    box-shadow: 0 8px 20px rgba(212,54,88,.28);
  }
  .an-co-mbar__btn .an-ico { width: 18px; height: 18px; }
  body.an-co { padding-bottom: 76px; }
}

@media (max-width: 767px) {
  html body.an-co .cart-table tr.removeable {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    grid-template-areas:
      "img name  name"
      "img avail avail"
      "img qty   total"
      "img rm    unit";
    padding: 16px !important; gap: 6px 14px;
  }
  body.an-co .cart-table td.cart-p-image a { width: 76px; height: 76px; border-radius: 12px; }
  html body.an-co .cart-table td.p-name .main-link { font-size: 15px !important; }
  html body.an-co .cart-table td.p-total > .price-final { align-self: center; }
  body.an-co .cart-table td.p-quantity { margin-top: 4px !important; }
  html body.an-co .cart-table .quantity { height: 40px; }
  html body.an-co .cart-table .quantity button.increase,
  html body.an-co .cart-table .quantity button.decrease { width: 32px !important; height: 32px !important; }

  html body.an-co .an-svc__lbl { grid-template-columns: 22px 44px minmax(0, 1fr); gap: 12px; padding: 14px 16px !important; }
  .an-svc__ico { width: 44px; height: 44px; border-radius: 12px; }
  body.an-co .an-svc__ico .an-ico { width: 22px; height: 22px; }
  .an-svc__price { grid-column: 3; margin-top: -4px; }
  .an-svc__tip { left: 16px; right: 16px; }

  html body.an-co .shipping-billing-table .radio-wrapper > input[type="radio"] + label {
    grid-template-columns: 22px 52px minmax(0, 1fr); gap: 12px; padding: 14px 16px !important;
  }
  html body.an-co .shipping-billing-table .payment-logo { width: 52px !important; height: 38px !important; }
  html body.an-co .shipping-billing-table .payment-shipping-price { grid-column: 3; text-align: left !important; }

  html body.an-co.an-co--s2 .co-contact-information,
  html body.an-co.an-co--s2 .co-billing-address > fieldset,
  html body.an-co.an-co--s2 #company-info { grid-template-columns: minmax(0, 1fr); }
  html body.an-co.an-co--s2 [class*="an-f-"],
  html body.an-co.an-co--s2 .co-contact-information > h2,
  html body.an-co.an-co--s2 .co-contact-information > .form-legend { grid-column: 1 / -1 !important; text-align: left; }
  html body.an-co.an-co--s2 .co-contact-information > .form-legend { margin: -10px 0 4px !important; }
  html body.an-co.an-co--s2 #checkoutContent .co-box > fieldset,
  html body.an-co.an-co--s2 #checkoutContent fieldset.co-box { padding: 18px !important; }

  .an-co-head__in { gap: 12px; padding: 10px 16px; }
  html body.an-co .an-co-head__logo img { height: 30px !important; }
  .an-co-head__secure span { display: none; }
  .an-co-head__secure { padding: 8px; }
  .an-co-head__help small { display: none; }
  .an-co-head__help b { font-size: 14px; }

  .an-co-step + .an-co-step::before { width: 18px; margin: 0 8px; }
  .an-co-step:not(.is-active) .an-co-step__l { display: none; }
}

@media (max-width: 380px) {
  .an-co-head__help b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.an-co *, body.an-co *::before, body.an-co *::after { transition: none !important; animation-duration: .001ms !important; }
}

/* ==================================================================
   PANEL KOŠÍKU (celý web) — po vložení zboží a po kliknutí na košík
   v hlavičce. Nahrazuje okno Shoptetu „Přidáno do košíku" (Miranda Joy)
   i malé okénko košíku po najetí myší.
   ================================================================== */
html.an-dr-lock { overflow: hidden !important; }
html.an-dr-lock body { padding-right: var(--an-sbw, 0px) !important; }
/* dřívější potvrzení „Přidáno" (detail produktu, kategorie) panel nahrazuje */
html.an-dr-on .xm-pdp-toast,
html.an-dr-on #artnest-category-root #an-toast { display: none !important; }

.an-dr { position: fixed; inset: 0; z-index: 10050; }
.an-dr[hidden] { display: none !important; }
.an-dr__backdrop {
  position: absolute; inset: 0; background: rgba(30,27,25,.45);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .25s var(--an-ease); cursor: pointer;
}
.an-dr.is-open .an-dr__backdrop { opacity: 1; }
html .an-dr .an-dr__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw);
  display: flex; flex-direction: column; background: #fff; outline: none;
  box-shadow: -24px 0 60px rgba(30,27,25,.18);
  transform: translateX(104%); transition: transform .3s var(--an-ease);
  font-family: var(--an-font); color: var(--an-ink);
}
.an-dr.is-open .an-dr__panel { transform: none; }
html .an-dr .an-ico { width: 20px; height: 20px; flex: none; display: block; }

/* hlavička */
html .an-dr .an-dr__head {
  display: flex; align-items: center; gap: 12px; margin: 0;
  padding: 18px 20px 16px 24px; border-bottom: 1px solid var(--an-line); background: #fff;
}
html .an-dr .an-dr__ok {
  display: none; width: 30px; height: 30px; border-radius: 50%; flex: none;
  place-items: center; background: var(--an-ok); color: #fff;
  animation: an-dr-pop .35s var(--an-ease);
}
html .an-dr.is-added .an-dr__ok { display: grid; }
html .an-dr .an-dr__ok .an-ico { width: 16px; height: 16px; stroke-width: 2.8; }
@keyframes an-dr-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
html .an-dr .an-dr__title {
  flex: 1; margin: 0 !important; padding: 0 !important; border: 0 !important;
  font: 700 21px/1.2 var(--an-display) !important; letter-spacing: -.01em; color: var(--an-ink) !important; text-transform: none !important;
}
html .an-dr .an-dr__title::before, html .an-dr .an-dr__title::after { display: none !important; }
html .an-dr .an-dr__x {
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--an-soft); color: var(--an-ink); cursor: pointer;
  transition: background-color .15s var(--an-ease);
}
html .an-dr .an-dr__x:hover { background: var(--an-line); }
html .an-dr .an-dr__x .an-ico { width: 18px; height: 18px; }

/* obsah */
html .an-dr .an-dr__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px 24px; }
html .an-dr .an-dr-sec { margin-top: 24px; }
html .an-dr .an-dr-sec__t {
  margin: 0 0 10px !important; padding: 0 !important;
  font: 700 12px/1 var(--an-font) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--an-ink-3) !important;
}
html .an-dr .an-dr-sec__t--list { margin: 22px 0 0 !important; }

/* položky košíku */
html .an-dr .an-dr-list { display: grid; }
html .an-dr .an-dr-item {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 4px 14px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--an-line);
}
html .an-dr .an-dr-list > .an-dr-item:last-child { border-bottom: 0; }
html .an-dr .an-dr-item.is-added {
  margin-top: 16px; padding: 14px; border: 1px solid var(--an-coral-soft); border-radius: 16px; background: var(--an-coral-bg);
}
html .an-dr .an-dr-item__img {
  display: block; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: var(--an-soft);
}
html .an-dr .an-dr-item.is-added .an-dr-item__img { background: #fff; }
html .an-dr .an-dr-item__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; display: block; }
html .an-dr .an-dr-item__main { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
html .an-dr .an-dr-item__flag { font: 700 11px/1 var(--an-font); letter-spacing: .08em; text-transform: uppercase; color: var(--an-cta); }
html .an-dr .an-dr-item__name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font: 600 14px/1.35 var(--an-font) !important; color: var(--an-ink) !important; text-decoration: none !important;
}
html .an-dr .an-dr-item__name:hover { color: var(--an-cta) !important; }
html .an-dr .an-dr-item__avail { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1.2 var(--an-font); color: var(--an-ok); }
html .an-dr .an-dr-item__avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
html .an-dr .an-dr-item__ctl { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
html .an-dr .an-dr-qty {
  display: inline-flex; align-items: center; height: 36px; padding: 0 3px;
  border: 1px solid var(--an-line-2); border-radius: 999px; background: #fff;
}
html .an-dr .an-dr-qty button {
  width: 30px; height: 30px; padding: 0; margin: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: transparent; color: var(--an-ink);
  font: 500 18px/1 var(--an-font); cursor: pointer; transition: background-color .15s var(--an-ease);
}
html .an-dr .an-dr-qty button:hover:not(:disabled) { background: var(--an-soft); }
html .an-dr .an-dr-qty button:disabled { opacity: .3; cursor: not-allowed; }
html .an-dr .an-dr-qty span { min-width: 26px; text-align: center; font: 700 14px/1 var(--an-font); }
html .an-dr .an-dr-item__rm {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 0; margin: 0; border: 0; background: none;
  font: 500 12px/1 var(--an-font); color: var(--an-ink-3); cursor: pointer;
}
html .an-dr .an-dr-item__rm .an-ico { width: 15px; height: 15px; }
html .an-dr .an-dr-item__rm:hover { color: var(--an-bad); }
html .an-dr .an-dr-item__price { padding-top: 2px; font: 700 15px/1.2 var(--an-display); white-space: nowrap; color: var(--an-ink); }

/* doporučené */
html .an-dr .an-dr-sg {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  margin: 0 0 8px; padding: 10px; border: 1px solid var(--an-line); border-radius: 14px;
}
html .an-dr .an-dr-sg__img { display: block; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--an-soft); }
html .an-dr .an-dr-sg__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; display: block; }
html .an-dr .an-dr-sg__main { min-width: 0; }
html .an-dr .an-dr-sg__name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font: 600 13px/1.3 var(--an-font) !important; color: var(--an-ink) !important; text-decoration: none !important;
}
html .an-dr .an-dr-sg__price { display: block; margin-top: 3px; font: 700 13px/1.2 var(--an-font); }
html .an-dr .an-dr-sg__add {
  width: 38px; height: 38px; padding: 0; border: 1px solid var(--an-line-2); border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--an-ink) !important; cursor: pointer;
  transition: background-color .15s var(--an-ease), color .15s var(--an-ease);
}
html .an-dr .an-dr-sg__add:hover { background: var(--an-ink); color: #fff !important; border-color: var(--an-ink); }
html .an-dr .an-dr-sg__add .an-ico { width: 18px; height: 18px; }

/* doplňkové služby */
html .an-dr .an-dr-svc__row {
  position: relative; display: grid; grid-template-columns: 22px 36px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  margin: 0 0 8px; padding: 10px 12px; border: 1.5px solid var(--an-line); border-radius: 14px;
  background: #fff; cursor: pointer; user-select: none;
  transition: border-color .15s var(--an-ease), background-color .15s var(--an-ease);
}
html .an-dr .an-dr-svc__row::before, html .an-dr .an-dr-svc__row::after { display: none !important; content: none !important; }
html .an-dr .an-dr-svc__row:hover { border-color: var(--an-line-2); }
html .an-dr .an-dr-svc__row.is-on { border-color: var(--an-coral); background: var(--an-coral-bg); }
html .an-dr .an-dr-svc__cb { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; margin: 0 !important; pointer-events: none; }
html .an-dr .an-dr-svc__box {
  width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  border: 1.5px solid var(--an-line-2); background: #fff; color: transparent;
}
html .an-dr .an-dr-svc__box .an-ico { width: 14px; height: 14px; stroke-width: 3; }
html .an-dr .an-dr-svc__row.is-on .an-dr-svc__box { background: var(--an-coral); border-color: var(--an-coral); color: #fff; }
html .an-dr .an-dr-svc__cb:focus-visible + .an-dr-svc__box { box-shadow: 0 0 0 4px var(--an-coral-soft); border-color: var(--an-coral); }
html .an-dr .an-dr-svc__ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--an-soft); color: var(--an-ink); }
html .an-dr .an-dr-svc__row.is-on .an-dr-svc__ico { background: var(--an-coral-soft); color: var(--an-cta); }
html .an-dr .an-dr-svc__txt { min-width: 0; }
html .an-dr .an-dr-svc__txt b { display: block; font: 600 13px/1.3 var(--an-font); color: var(--an-ink); }
html .an-dr .an-dr-svc__txt small { display: block; margin-top: 2px; font: 400 12px/1.35 var(--an-font); color: var(--an-ink-2); }
html .an-dr .an-dr-svc__price { font: 700 13px/1 var(--an-font); color: var(--an-ok); white-space: nowrap; }

/* patička */
html .an-dr .an-dr__foot {
  display: grid; gap: 14px; padding: 16px 24px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--an-line); background: #fff;
}
html .an-dr .an-dr__foot:empty { display: none; }
html .an-dr .an-dr__sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
html .an-dr .an-dr__sum span { font: 600 15px/1.3 var(--an-font); color: var(--an-ink); }
html .an-dr .an-dr__sum small { display: block; font: 400 12px/1.3 var(--an-font); color: var(--an-ink-3); }
html .an-dr .an-dr__sum b { font: 700 26px/1 var(--an-display); letter-spacing: -.02em; color: var(--an-ink); white-space: nowrap; }
html .an-dr .an-dr__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
html .an-dr .an-dr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; margin: 0; padding: 0 14px; border: 1px solid transparent; border-radius: 999px;
  font: 600 14px/1.2 var(--an-font) !important; white-space: nowrap; text-decoration: none !important; text-transform: none; cursor: pointer;
  transition: background-color .18s var(--an-ease), border-color .18s var(--an-ease), transform .18s var(--an-ease);
}
html .an-dr .an-dr-btn .an-ico { width: 18px; height: 18px; }
html .an-dr .an-dr-btn--primary { background: var(--an-cta); color: #fff !important; box-shadow: 0 10px 22px rgba(212,54,88,.26); }
html .an-dr .an-dr-btn--primary:hover { background: var(--an-cta-hover); transform: translateY(-1px); }
html .an-dr .an-dr-btn--ghost { background: #fff; color: var(--an-ink) !important; border-color: var(--an-line-2); }
html .an-dr .an-dr-btn--ghost:hover { border-color: var(--an-ink); }
html .an-dr button:focus-visible, html .an-dr a:focus-visible { outline: 3px solid var(--an-coral-soft); outline-offset: 2px; }

/* hláška (např. „omezený počet kusů") */
html .an-dr .an-dr__note {
  display: none; margin: 0 24px 12px; padding: 10px 14px; border-radius: 12px;
  background: var(--an-ok-soft); color: var(--an-ok); font: 500 13px/1.4 var(--an-font);
}
html .an-dr .an-dr__note.is-on { display: block; }
html .an-dr .an-dr__note.is-bad { background: #FDECEA; color: var(--an-bad); }

/* stavy */
html .an-dr.is-busy .an-dr__body { cursor: progress; }
html .an-dr .is-spin { position: relative; color: transparent !important; pointer-events: none; }
html .an-dr .is-spin > * { visibility: hidden; }
html .an-dr .is-spin::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; border: 2px solid var(--an-coral); border-right-color: transparent;
  animation: an-spin .7s linear infinite;
}
html .an-dr .an-dr-svc__row.is-spin { color: inherit !important; }
html .an-dr .an-dr-svc__row.is-spin > * { visibility: visible; }
html .an-dr .an-dr-svc__row.is-spin::after { left: 23px; top: 50%; }
html .an-dr .an-dr-svc__row.is-spin .an-dr-svc__box { visibility: hidden; }
@keyframes an-spin { to { transform: rotate(360deg); } }

html .an-dr .an-dr-skel { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 18px 0; }
html .an-dr .an-dr-skel i, html .an-dr .an-dr-skel b {
  display: block; border-radius: 8px;
  background: linear-gradient(90deg, var(--an-soft) 0%, #fbf7f1 50%, var(--an-soft) 100%) 0 0 / 200% 100%;
  animation: an-shimmer 1.2s linear infinite;
}
html .an-dr .an-dr-skel i { width: 84px; height: 84px; border-radius: 14px; }
html .an-dr .an-dr-skel b { height: 12px; margin: 6px 0 12px; }
html .an-dr .an-dr-skel b:nth-child(2) { width: 60%; }
html .an-dr .an-dr-skel b:nth-child(3) { width: 40%; height: 30px; border-radius: 999px; }
@keyframes an-shimmer { to { background-position: -200% 0; } }

html .an-dr .an-dr-empty { padding: 48px 8px; text-align: center; display: grid; justify-items: center; gap: 8px; }
html .an-dr .an-dr-empty__ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--an-coral-soft); color: var(--an-cta); margin-bottom: 8px; }
html .an-dr .an-dr-empty__ico .an-ico { width: 30px; height: 30px; }
html .an-dr .an-dr-empty__t { margin: 0 !important; font: 700 19px/1.25 var(--an-display) !important; color: var(--an-ink) !important; }
html .an-dr .an-dr-empty__s { margin: 0 0 14px !important; font: 400 14px/1.5 var(--an-font) !important; color: var(--an-ink-2) !important; max-width: 300px; }

@media (max-width: 520px) {
  html .an-dr .an-dr__panel { width: 100vw; }
  html .an-dr .an-dr__head { padding: 14px 14px 12px 16px; }
  html .an-dr .an-dr__body { padding: 0 16px 20px; }
  html .an-dr .an-dr__foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
  html .an-dr .an-dr__note { margin: 0 16px 10px; }
  html .an-dr .an-dr-item { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 4px 12px; }
  html .an-dr .an-dr-item__img { width: 72px; height: 72px; }
  html .an-dr .an-dr__btns { grid-template-columns: 1fr; }
  html .an-dr .an-dr__btns .an-dr-btn--primary { order: -1; }
  html .an-dr .an-dr-btn { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .an-dr *, .an-dr *::before, .an-dr *::after { transition: none !important; animation-duration: .001ms !important; }
}
