/* ================================================
   KOŠÍK & ORDERING PROCESS
   Styly výhradně pro stránky košíku a objednávky.
   Neprovlastní se na jiné stránky webu.
================================================= */

/* ---------- Kroky objednávky (cart-header) ---------- */

.cart-header {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
}

/* Oddělovače | → červená */
.cart-header::before,
.cart-header::after {
  color: #D61118 ;
}

/* Odstranění bílého overlaye */
.cart-header .step strong,
.cart-header .step a {
  background: transparent !important;
}

/* Aktivní krok – tmavý text */
.cart-header .step.active strong,
.cart-header .step.active span {
  color: #1D1D1B !important;
}

/* Neaktivní kroky – světle šedá */
.cart-header .step:not(.active) strong,
.cart-header .step:not(.active) span,
.cart-header .step:not(.active) a {
  color: #909090 !important;
  font-weight: 400;
  text-decoration: none;
}

/* Aktivní krok – bold */
.cart-header .step.active strong,
.cart-header .step.active span {
  font-weight: 700 !important;
}

/* Hover na klikatelných krocích → červená */
.cart-header .step a:hover,
.cart-header .step a:hover span {
  color: #D61118 !important;
}

/* ---------- Sidebar na checkout stránkách ---------- */

/* Zobrazit sidebar na checkout stránkách (in-krok-1, in-krok-2) na desktopu/tabletu */
@media (min-width: 768px) {
  body.in-krok-1 aside.sidebar.sidebar-left[data-testid="sidebarMenu"],
  body.in-krok-2 aside.sidebar.sidebar-left[data-testid="sidebarMenu"] {
    display: block !important;
  }
}

/* ---------- Navigační tlačítka v checkoutu ---------- */

/* Zpět do obchodu – pouze text, žádné efekty rámu/outline/scale */
a.btn.next-step-back,
a.btn.next-step-back:hover,
a.btn.next-step-back:focus,
a.btn.next-step-back:active {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
}

a.btn.next-step-back {
  color: #1D1D1B;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

a.btn.next-step-back:hover,
a.btn.next-step-back:hover .continue-shopping {
  color: #D61118 !important;
}

/* Pokračovat – výchozí: červený rámeček, průhledné pozadí, červený text */
a.btn.next-step-forward {
  background: transparent !important;
  border: 2px solid #D61118 !important;
  color: #D61118 !important;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border-radius: 5px;
}

/* Pokračovat – hover/klik: bílé pozadí, černý text, bez rámečku */
a.btn.next-step-forward:hover,
a.btn.next-step-forward:active,
a.btn.next-step-forward:focus {
  background: #ffffff !important;
  border-color: transparent !important;
  color: #1D1D1B !important;
  outline: none !important;
  box-shadow: none !important;
  
}

.order-button-text {
  transition: color 0.3s ease;
}

/* ---------- Zpět do obchodu ---------- */

.btn.toggle-window-arr {
  color: #1D1D1B;
}

.btn.toggle-window-arr:hover {
  color: #D61118 !important;
}

/* ---------- Price wrapper – souhrn cen ---------- */

/* Popisky (Celkem za zboží, Cena bez DPH) – tmavé */
.price-wrap[data-testid="tableCart"] .price-label {
  color: #1D1D1B;
}

/* Ceny – červené (bold zachován díky <strong>) */
.price-wrap[data-testid="tableCart"] .price {
  color: #D61118 !important;
}

/* ---------- Košík – tabulka produktů ---------- */

table.cart-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
}

body.ordering-process table.cart-table {
  border: none !important;
}

@media (min-width: 992px) {
  table.cart-table {
    border-radius: 4px !important;
  }

  table.cart-table tr:first-child td:first-child { border-top-left-radius: 4px !important; }
  table.cart-table tr:first-child td:last-child  { border-top-right-radius: 4px !important; }
  table.cart-table tr:last-child td:first-child  { border-bottom-left-radius: 4px !important; }
  table.cart-table tr:last-child td:last-child   { border-bottom-right-radius: 4px !important; }
}

.cart-p-availability {
  display: none !important;
}

@media (max-width: 767px) {
  aside.sidebar.sidebar-left[data-testid="sidebarMenu"] {
    display: none !important;
  }
  /* Bílý box z CDN – potlačení (pouze mobil) */
  table.cart-table td.p-name {
    background: transparent !important;
  }

  table.cart-table td.cart-p-image {
    align-self: flex-start;
    margin-top: 9.8px;
  }

  table.cart-table,
  table.cart-table tbody,
  table.cart-table tr.removeable,
  table.cart-table tr.removeable td {
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
  }

  table.cart-table td.p-name {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 4.5px !important;
    padding-left: 8px !important;
  }

  table.cart-table td.p-name a.main-link {
    color: #1D1D1B !important;
    font-weight: 700 !important;
  }

  /* Popelnice – SVG ikona, tmavá výchozí, červená hover */
  table.cart-table td.p-name button.remove-item {
    background: transparent !important;
    border: 1px solid #1D1D1B !important;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    padding: 4px;
    position: relative;
    margin-right: 35px;
    top: -5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231D1D1B'%3E%3Cpath d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z'/%3E%3C/svg%3E") !important;
    background-size: 16px 16px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    transition: border-color 0.2s ease, background-image 0.2s ease;
    cursor: pointer;
  }

  table.cart-table td.p-name button.remove-item::before {
    content: none !important;
  }

  table.cart-table td.p-name button.remove-item:hover,
  table.cart-table td.p-name button.remove-item:active {
    border-color: #D61118 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D61118'%3E%3Cpath d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z'/%3E%3C/svg%3E") !important;
  }

  /* Zaoblení obrázku produktu */
  table.cart-table td.cart-p-image img {
    border-radius: 8px;
    overflow: hidden !important;
  }

  /* Wrapper: cena vlevo, křížek vpravo */
  table.cart-table td.p-name .cart-price-delete-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    margin-top: 20px;
  }

  table.cart-table td.p-name .price-final-mobile {
    color: #D61118;
    font-weight: 700;
    text-align: left !important;
  }

  table.cart-table td.p-price,
  table.cart-table td.p-total {
    display: none !important;
  }

  table.cart-table td.p-quantity,
  table.cart-table td.p-quantity > div,
  table.cart-table td.p-quantity .quantity-form {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  table.cart-table td.p-quantity {
    text-align: center !important;
  }

  table.cart-table td.p-quantity .quantity-form {
    display: flex;
    justify-content: center;
    margin-top: 8px;
  }

  table.cart-table td.p-quantity .quantity {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    padding: 0 30px;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    text-align: center;
    order: 1;
    border: none !important;
    border-style: none !important;
    border-width: 0 !important;
    border-radius: 8px;
    overflow: hidden;
  }

  table.cart-table td.p-quantity .amount {
    width: 39px;
    color: #1D1D1B !important;
    background: transparent !important;
  }

  table.cart-table td.p-quantity .amount:focus {
    outline: none !important;
    box-shadow: none !important;
  }

  table.cart-table td.p-quantity .increase,
  table.cart-table td.p-quantity .decrease {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 42px;
    border: 1.5px solid #1D1D1B;
    border-radius: 5px;
    color: #1D1D1B !important;
    background: transparent !important;
    cursor: pointer;
    outline: none;
    box-shadow: none !important;
  }

  table.cart-table td.p-quantity .increase__sign,
  table.cart-table td.p-quantity .decrease__sign {
    color: #1D1D1B !important;
  }

  table.cart-table td.p-quantity .increase:hover,
  table.cart-table td.p-quantity .decrease:hover,
  table.cart-table td.p-quantity .increase:active,
  table.cart-table td.p-quantity .decrease:active,
  table.cart-table td.p-quantity .increase:focus,
  table.cart-table td.p-quantity .decrease:focus {
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
  }

  /* Skrýt původní delete z td.p-total na mobilu */
  table.cart-table td.p-total form.inline {
    display: none !important;
  }
}

/* ---------- Prázdný košík ---------- */

.cart-inner.cart-empty h1.cart-heading {
  color: #1D1D1B;
}

.cart-inner.cart-empty h3 {
  color: #1D1D1B;
}

/* Kategorie – links: červené, hover tmavé */
.cart-inner.cart-empty .empty-cart ul li a {
  color: #D61118;
  font-weight: 700;
}

.cart-inner.cart-empty .empty-cart ul li a:hover {
  color: #1D1D1B;
}

/* ---------- Dárky a slevy ---------- */

/* Nadpis – tmavý */
div:has(> .discounts-wrap) > h4 {
  color: #1D1D1B;
}

/* Input – bez focus overlaye (Bootstrap box-shadow) */
[data-testid="inputDiscountCoupon"]:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: #cccccc !important;
}

/* Tlačítko Přidat – styl jako Pokračovat */
button[data-testid="buttonSubmitDiscountCoupon"] {
  background: transparent !important;
  border: 2px solid #D61118 !important;
  color: #D61118 !important;
  font-weight: 400 !important;
  border-radius: 5px;
  margin-left: 8px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

button[data-testid="buttonSubmitDiscountCoupon"]:hover,
button[data-testid="buttonSubmitDiscountCoupon"]:active,
button[data-testid="buttonSubmitDiscountCoupon"]:focus {
  background: #ffffff !important;
  border-color: transparent !important;
  color: #1D1D1B !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ---------- Ordering process – utility ---------- */

/* Skrytí prázdného rotating-products-container */
body.ordering-process #rotating-products-container {
  display: none !important;
}

/* Logo v košíku – mobilní velikost 140×140px */
@media (max-width: 767px) {
  .logo-container img {
    width: 140px !important;
    height: 140px !important;
    object-fit: contain !important;
  }
}

@media (max-width: 767px) {
  table.cart-table tr.removeable {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
  }

  table.cart-table td.p-quantity .quantity-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    width: min(100%, 210px);
    margin: 25px auto 0;
  }

  table.cart-table td.cart-p-image {
    width: 100%;
    text-align: center;
    align-self: center;
    margin-top: 0;
    margin-bottom: 10px;
  }

  table.cart-table td.cart-p-image a {
    display: inline-flex;
    justify-content: center;
  }

  table.cart-table td.p-name {
    width: 100%;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    padding-left: 0 !important;
    margin-bottom: 10px;
  }

  table.cart-table td.p-name a.main-link {
    text-align: center;
    max-width: 320px;
    font-size: 16px !important;
    line-height: 1.35;
  }

  table.cart-table td.p-quantity {
    width: 100%;
  }

  table.cart-table td.p-quantity .quantity {
    margin-left: auto;
  }

  table.cart-table td.p-quantity .cart-quantity-delete-row,
  table.cart-table td.p-quantity form.inline.delete-btn-mobile {
    display: inline-flex;
    align-items: center;
    order: 2;
    margin: 0 0 0 auto;
  }

  table.cart-table td.p-quantity button.remove-item {
    background: transparent !important;
    border: 1px solid #1D1D1B !important;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    padding: 6px;
    position: static;
    margin: 0;
    top: auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231D1D1B'%3E%3Cpath d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z'/%3E%3C/svg%3E") !important;
    background-size: 20px 20px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    transition: border-color 0.2s ease, background-image 0.2s ease;
    cursor: pointer;
  }

  table.cart-table td.p-quantity button.remove-item::before {
    content: none !important;
  }

  table.cart-table td.p-quantity button.remove-item:hover,
  table.cart-table td.p-quantity button.remove-item:active,
  table.cart-table td.p-quantity button.remove-item:focus {
    border-color: #D61118 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D61118'%3E%3Cpath d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z'/%3E%3C/svg%3E") !important;
    outline: none !important;
    box-shadow: none !important;
  }

  table.cart-table td.p-quantity .quantity {
    order: 1;
    margin-left: 0;
  }
}

/* ================================================
   KROK 1 – Doprava & Platba (body.in-krok-1)
   Scope: výhradně checkout krok 1 (kosik3.html)
================================================= */

/* --- Nadpisy sekcí – červené --- */
body.in-krok-1 h4.order-icon {
  color: #D51119;
}

/* --- Label "Země doručení" – bílý --- */
body.in-krok-1 label.select-label {
  color: #ffffff;
}

/* --- Select #deliveryCountryId: tmavý styl, bez focus overlaye --- */
body.in-krok-1 select#deliveryCountryId {
  background-color: #2d2d2d;
  color: #ffffff;
  border-color: #555555;
}
body.in-krok-1 select#deliveryCountryId:focus,
body.in-krok-1 select#deliveryCountryId:focus-visible,
body.in-krok-1 select#deliveryCountryId:active {
  outline: none;
  box-shadow: none;
  border-color: #555555;
}

/* --- Radio buttony: custom render přes ::before (kroužek) + ::after (tečka) ---
   ::before = vnější kroužek – vždy bílý
   ::after  = vnitřní tečka – transparentní / červená když vybraný             */

/* Vnější kroužek – vždy bílý, nikdy červený */
body.in-krok-1 .shipping-billing-table .radio-wrapper label::before,
body.in-krok-1 .shipping-billing-table .radio-wrapper.active label::before {
  background: transparent;
  border-color: #ffffff;
}

/* Vnitřní tečka – skrytá ve výchozím stavu */
body.in-krok-1 .shipping-billing-table .radio-wrapper label::after {
  background: transparent;
}

/* Vnitřní tečka – červená ve vybraném stavu */
body.in-krok-1 .shipping-billing-table .radio-wrapper.active label::after {
  background: #D51119;
}

/* --- Shipping & Billing: texty bílé --- */
body.in-krok-1 .shipping-billing-table .radio-wrapper b.shipping-billing-name {
  color: #ffffff;
}

/* Vybraná možnost – bold bílá */
body.in-krok-1 .shipping-billing-table .radio-wrapper.active b.shipping-billing-name {
  font-weight: 700;
  color: #ffffff;
}

/* Nevybraná možnost – normální váha */
body.in-krok-1 .shipping-billing-table .radio-wrapper:not(.active) b.shipping-billing-name {
  font-weight: 400;
}

/* --- Ceny u dopravy: numerické červené, ZDARMA zelená --- */
body.in-krok-1 #order-shipping-methods .payment-shipping-price:not(.for-free) {
  color: #D51119;
}
body.in-krok-1 #order-shipping-methods .payment-shipping-price.for-free {
  color: #39b54a;
}

/* --- Ceny u platby: ZDARMA zelená, numerická bílá --- */
body.in-krok-1 #order-billing-methods .payment-shipping-price.for-free {
  color: #39b54a;
}
body.in-krok-1 #order-billing-methods .payment-shipping-price:not(.for-free) {
  color: #ffffff;
}

/* --- Odkaz "Zvolte odběrné místo" – červený --- */
body.in-krok-1 .sublabel.new-gen-choose a {
  color: #D51119;
  text-decoration: none;
}
body.in-krok-1 .sublabel.new-gen-choose a:hover {
  color: #D51119;
  opacity: 0.8;
}

/* --- not-possible-info: čitelný, nenápadný --- */
body.in-krok-1 .not-possible-info {
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}

/* --- Rekapitulace: heading bílý --- */
body.in-krok-1 .order-summary-inner > h4 {
  color: #ffffff;
}

/* --- Order summary items: text bílý --- */
body.in-krok-1 .order-summary-item {
  color: #ffffff;
}
body.in-krok-1 .order-summary-item strong {
  color: #ffffff;
}

/* --- Produkt: odkaz červený --- */
body.in-krok-1 .order-summary-item a {
  color: #D51119;
}
body.in-krok-1 .order-summary-item a:hover {
  opacity: 0.85;
}

/* --- Ceny produktu a souhrnu: červené --- */
body.in-krok-1 .order-summary-item [data-testid="recapItemPrice"],
body.in-krok-1 .order-summary-item [data-testid="recapItemTotalPrice"] {
  color: #D51119;
}

/* --- Rekapitulace shipping/billing: bílý text --- */
body.in-krok-1 .order-recapitulation {
  color: #ffffff;
}
body.in-krok-1 .order-recapitulation .recapitulation-shipping-billing-label {
  color: #ffffff;
}
body.in-krok-1 .order-recapitulation .recapitulation-shipping-billing-info {
  color: #ffffff;
}

/* ZDARMA v rekapitulaci – zelená (třída .for-free přidána přes JS) */
body.in-krok-1 .order-recapitulation .recapitulation-shipping-billing-info [data-testid="recapItemPrice"].for-free {
  color: #39b54a;
}
/* Numerická cena v rekapitulaci – červená */
body.in-krok-1 .order-recapitulation .recapitulation-shipping-billing-info [data-testid="recapItemPrice"]:not(.for-free) {
  color: #D51119;
}

/* --- Price wrapper: Celkem k úhradě + Cena bez DPH --- */
body.in-krok-1 .price-wrapper .price-label {
  color: #ffffff;
}
body.in-krok-1 .price-wrapper .price {
  color: #D51119;
}
body.in-krok-1 .price-wrapper .price.price-primary {
  font-weight: 700;
}

/* --- Tlačítko #orderFormButton: stejný styl jako btn-conversion v kosik2.html --- */
body.in-krok-1 #orderFormButton {
  background: transparent;
  color: #D51119;
  border: 2px solid #D51119;
  border-radius: 5px;
  text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
body.in-krok-1 #orderFormButton:hover {
  background: #ffffff;
  color: #1D1D1B;
  border-color: transparent;
}
body.in-krok-1 #orderFormButton:focus,
body.in-krok-1 #orderFormButton:focus-visible {
  outline: none;
  box-shadow: none;
}
body.in-krok-1 #orderFormButton:active {
  background: #ffffff;
  color: #1D1D1B;
  border-color: transparent;
}

/* ================================================
   KROK 2 – Informace o vás (body.in-krok-2)
   Scope: výhradně checkout krok 2 (kosik4.html)
================================================= */

/* --- Text v blocích – bílý --- */
body.in-krok-2 .co-contact-information,
body.in-krok-2 .co-billing-address,
body.in-krok-2 .co-box-additional,
body.in-krok-2 .order-summary {
  color: #ffffff;
}

/* --- Všechny texty a labely – bílé --- */
body.in-krok-2 .co-contact-information label,
body.in-krok-2 .co-billing-address label,
body.in-krok-2 .co-box-additional label,
body.in-krok-2 .order-summary-item {
  color: #ffffff;
}

/* --- Bold texty zůstávají bílé (Celkem za zboží, Osobní odběr, atd.) --- */
body.in-krok-2 .co-contact-information strong,
body.in-krok-2 .co-billing-address strong,
body.in-krok-2 .co-box-additional strong,
body.in-krok-2 .order-summary-item strong {
  color: #ffffff;
  font-weight: 700;
}

/* --- Ceny – červené --- */
body.in-krok-2 .co-contact-information .price,
body.in-krok-2 .co-billing-address .price,
body.in-krok-2 .co-box-additional .price,
body.in-krok-2 .order-summary [data-testid="recapItemPrice"],
body.in-krok-2 .order-summary [data-testid="recapItemTotalPrice"],
body.in-krok-2 .price-wrapper .price {
  color: #D61118 !important;
}

/* --- Rekapitulace – heading bílý --- */
body.in-krok-2 .order-summary-inner > h4 {
  color: #ffffff;
}

/* --- Odkazy – červené --- */
body.in-krok-2 .co-contact-information a,
body.in-krok-2 .co-billing-address a,
body.in-krok-2 .co-box-additional a,
body.in-krok-2 .order-summary a {
  color: #D61118;
  text-decoration: none;
}

body.in-krok-2 .co-contact-information a:hover,
body.in-krok-2 .co-billing-address a:hover,
body.in-krok-2 .co-box-additional a:hover,
body.in-krok-2 .order-summary a:hover {
  color: #D61118;
  opacity: 0.85;
}

/* --- Input fieldy: bez modrého overlaye --- */
body.in-krok-2 input[type="text"],
body.in-krok-2 input[type="email"],
body.in-krok-2 input[type="tel"],
body.in-krok-2 input[type="password"] {
  background-color: #ffffff !important;
  color: #1D1D1B !important;
  border: 1px solid #cccccc !important;
  border-radius: 4px;
  padding: 8px 12px;
}

/* Odebrání modrého focus overlaye */
body.in-krok-2 input[type="text"]:focus,
body.in-krok-2 input[type="email"]:focus,
body.in-krok-2 input[type="tel"]:focus,
body.in-krok-2 input[type="password"]:focus,
body.in-krok-2 input[type="text"]:focus-visible,
body.in-krok-2 input[type="email"]:focus-visible,
body.in-krok-2 input[type="tel"]:focus-visible,
body.in-krok-2 input[type="password"]:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: #888888 !important;
  background-color: #ffffff !important;
}

/* Autofill Chrome – bez modrého/světlého pozadí */
body.in-krok-2 input[type="text"]:-webkit-autofill,
body.in-krok-2 input[type="email"]:-webkit-autofill,
body.in-krok-2 input[type="tel"]:-webkit-autofill,
body.in-krok-2 input[type="password"]:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #1D1D1B !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
}

body.in-krok-2 input[type="text"]:-webkit-autofill:focus,
body.in-krok-2 input[type="email"]:-webkit-autofill:focus,
body.in-krok-2 input[type="tel"]:-webkit-autofill:focus,
body.in-krok-2 input[type="password"]:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #1D1D1B !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
}

/* --- Select fieldy – tmavý styl --- */
body.in-krok-2 select {
  background-color: #ffffff !important;
  color: #1D1D1B !important;
  border: 1px solid #cccccc !important;
  border-radius: 4px;
  padding: 8px 12px;
}

body.in-krok-2 select:focus,
body.in-krok-2 select:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: #888888 !important;
}

/* --- Checkboxy v step 2: plná neutralizace nativního inputu ---
   Nativní input je neviditelný (opacity 0, absolutní pozice, pointer-events none).
   appearance: none + border: 0 zabraňují jakémukoli nativnímu vykreslení.
   Veškerý vizuál je výhradně přes label::before (unified níže). */
body.in-krok-2 input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  position: absolute !important;
  opacity: 0 !important;
  width: 18px !important;
  height: 18px !important;
  pointer-events: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 0 !important;
}

/* --- Přihlášení link – červený --- */
body.in-krok-2 .login-info a {
  color: #D61118;
}

body.in-krok-2 .login-info a:hover {
  opacity: 0.85;
}

/* --- Submit tlačítko: červený rámeček, bez pozadí, červený text (jako v kosik2.html) --- */
body.in-krok-2 #submit-order,
body.in-krok-2 button[type="submit"] {
  background: transparent !important;
  color: #D61118 !important;
  border: 2px solid #D61118 !important;
  border-radius: 5px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 12px 24px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Hover: bílé pozadí, černý text */
body.in-krok-2 #submit-order:hover,
body.in-krok-2 button[type="submit"]:hover {
  background: #ffffff !important;
  color: #1D1D1B !important;
  border-color: transparent !important;
}

/* Focus a active */
body.in-krok-2 #submit-order:focus,
body.in-krok-2 button[type="submit"]:focus,
body.in-krok-2 #submit-order:focus-visible,
body.in-krok-2 button[type="submit"]:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

body.in-krok-2 #submit-order:active,
body.in-krok-2 button[type="submit"]:active {
  background: #ffffff !important;
  color: #1D1D1B !important;
  border-color: transparent !important;
}

/* --- Back button (Zpět) – bílý text, bez rámce --- */
body.in-krok-2 a.next-step-back {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

body.in-krok-2 a.next-step-back:hover {
  color: #D61118 !important;
}

/* --- Consent a ostatní linky – všechny červené --- */
body.in-krok-2 .consents a,
body.in-krok-2 .agreement a,
body.in-krok-2 .consent a {
  color: #D61118 !important;
  text-decoration: none;
}

body.in-krok-2 .consents a:hover,
body.in-krok-2 .agreement a:hover,
body.in-krok-2 .consent a:hover {
  color: #D61118 !important;
  opacity: 0.85;
}

/* ================================================
   Doplňující opravy dark theme – helper, headings, flagy, checkbox
================================================= */

/* --- Helper text pod nadpisem kroku – bílý text, červené linky --- */
body.in-krok-2 .helper {
  color: #ffffff !important;
}

body.in-krok-2 .helper a {
  color: #D61118 !important;
  text-decoration: none;
}

body.in-krok-2 .helper a:hover,
body.in-krok-2 .helper a:focus {
  color: #D61118 !important;
  opacity: 0.85;
}

/* --- H4 nadpisy – bílý text (včetně bold) --- */
body.in-krok-2 h4,
body.in-krok-2 .co-contact-information h4,
body.in-krok-2 .co-billing-address h4,
body.in-krok-2 .header-billing {
  color: #ffffff !important;
  font-weight: bold !important;
}

/* --- Country flag label (telefonní pole) – bílý text (zavřený selektor) --- */
body.in-krok-2 .shp-flag-label,
body.in-krok-2 .shp-flag-label .shp-flag-name {
  color: #ffffff !important;
}

/* Šipka – explicitně černá (border triangle na ::before) */
body.in-krok-2 .shp-flag-label::before {
  border-top-color: #ffffff !important;
}

/* Otevřený dropdown – název státu + předvolba černá
   (.country-flag:not(.selected) je display:none v zavřeném stavu → bezpečné) */
body.in-krok-2 .country-flags-inner .country-flag:not(.selected) .shp-flag-name,
body.in-krok-2 .country-flags-inner .country-flag:not(.selected) .shp-flag-label {
  color: #1D1D1B !important;
}

/* ================================================
   CHECKOUT STEP 2 – Unified custom checkbox indikátory
   Nativní input je plně neutralizován (viz výše).
   Veškerý vizuál pouze přes label::before + radial-gradient.
   Scope: body.in-krok-2 .form-group input[type="checkbox"] + label.whole-width
================================================= */

/* Positioning context pro absolutně umístěný input */
body.in-krok-2 .form-group {
  position: relative;
}

/* Label: flex layout, bílý text, klikací plocha */
body.in-krok-2 .form-group input[type="checkbox"] + label.whole-width {
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  cursor: pointer !important;
  color: #ffffff !important;
  gap: 10px;
  user-select: none;
}

/* Vlastní kolečko – label::before */
body.in-krok-2 .form-group input[type="checkbox"] + label.whole-width::before {
  content: '' !important;
  flex-shrink: 0 !important;
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  border-radius: 50% !important;
  border: 2px solid #ffffff !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}

/* Checked: červená tečka uvnitř kolečka pomocí radial-gradient */
body.in-krok-2 .form-group input[type="checkbox"]:checked + label.whole-width::before {
  border-color: #ffffff !important;
  background: radial-gradient(circle at center, #D61118 44%, transparent 45%) !important;
}

/* Explicitně zrušit ::after – nesmí přidávat druhý marker */
body.in-krok-2 .form-group input[type="checkbox"] + label.whole-width::after {
  content: none !important;
  display: none !important;
}

/* Focus ring pro accessibility */
body.in-krok-2 .form-group input[type="checkbox"]:focus-visible + label.whole-width::before {
  border-color: #D61118 !important;
  box-shadow: 0 0 0 2px rgba(214, 17, 24, 0.25) !important;
}

/* Additional-information span (u set-registration) – světlejší text */
body.in-krok-2 label.whole-width .additional-information {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875em;
}

/* ------------------------------------------------
   Consent label (consents4 – input type=hidden, žádný checkbox)
   Žádný circle indikátor. Bílý text, červené linky.
------------------------------------------------ */

body.in-krok-2 .form-group.consents label.whole-width::before,
body.in-krok-2 .form-group.consents label.whole-width::after {
  content: none !important;
  display: none !important;
}

body.in-krok-2 .form-group.consents label.whole-width {
  display: block !important;
  color: #ffffff !important;
  cursor: default;
}

body.in-krok-2 .form-group.consents label.whole-width a {
  color: #D61118 !important;
  text-decoration: none;
}

body.in-krok-2 .form-group.consents label.whole-width a:hover,
body.in-krok-2 .form-group.consents label.whole-width a:focus {
  color: #D61118 !important;
  text-decoration: underline;
  outline: none;
}

/* ------------------------------------------------
   Warning box – preauthorization-box
   Červené pozadí, bílý text, zaoblené rohy.
   Scope: body.in-krok-2 (checkout step 2 only)
------------------------------------------------ */

body.in-krok-2 .preauthorization-box {
  background: #D61118 !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  border: none !important;
  box-shadow: none !important;
  margin-top: 8px;
}

body.in-krok-2 .preauthorization-box,
body.in-krok-2 .preauthorization-box * {
  color: #ffffff !important;
}

/* ---------- Shipping address box – step 2 styling ---------- */

body.in-krok-2 .co-box.co-shipping-address,
body.in-krok-2 .co-box.co-shipping-address p,
body.in-krok-2 .co-box.co-shipping-address span,
body.in-krok-2 .co-box.co-shipping-address label,
body.in-krok-2 .co-box.co-shipping-address li,
body.in-krok-2 .co-box.co-shipping-address h1,
body.in-krok-2 .co-box.co-shipping-address h2,
body.in-krok-2 .co-box.co-shipping-address h3,
body.in-krok-2 .co-box.co-shipping-address h4,
body.in-krok-2 .co-box.co-shipping-address h5,
body.in-krok-2 .co-box.co-shipping-address h6 {
  color: #fff;
}

body.in-krok-2 .co-box.co-shipping-address strong,
body.in-krok-2 .co-box.co-shipping-address b {
  color: #fff;
  font-weight: 700;
}

body.in-krok-2 .co-box.co-shipping-address a {
  color: #e30613;
  text-decoration: none;
}

body.in-krok-2 .co-box.co-shipping-address a:hover,
body.in-krok-2 .co-box.co-shipping-address a:focus,
body.in-krok-2 .co-box.co-shipping-address a:active,
body.in-krok-2 .co-box.co-shipping-address a:visited {
  color: #e30613;
}

/* ---------- Textarea remark – step 2 styling ---------- */

body.in-krok-2 #remark,
body.in-krok-2 textarea#remark.form-control {
  background: #fff;
  color: #1d1d1b;
  border: 1px solid #fff;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

body.in-krok-2 #remark:focus,
body.in-krok-2 #remark:active,
body.in-krok-2 #remark:focus-visible,
body.in-krok-2 textarea#remark.form-control:focus,
body.in-krok-2 textarea#remark.form-control:active,
body.in-krok-2 textarea#remark.form-control:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: #e30613;
}

body.in-krok-2 #remark::placeholder,
body.in-krok-2 textarea#remark.form-control::placeholder {
  color: #666;
  opacity: 1;
}

/* ================================================
   DĚKUJEME – Potvrzení objednávky (body.in-dekujeme)
   Scope: thank-you / order confirmation page
================================================= */

/* 1. Zpět do obchodu – zobrazit sidebar na tabletu/desktopu
   Extra třída .ordering-process zvyšuje specificitu nad dkfilter.css !important */
@media (min-width: 768px) {
  body.in-dekujeme.ordering-process aside.sidebar.sidebar-left[data-testid="sidebarMenu"] {
    display: block !important;
  }
}

/* 2. Nadpis objednávky */
body.in-dekujeme .order-summary-heading {
  color: #ffffff;
}

/* 3. Číslo objednávky */
body.in-dekujeme .reca-number {
  color: #ffffff;
}
body.in-dekujeme .reca-number strong {
  color: #ffffff;
  font-weight: 700;
}

/* 4. Sekční nadpisy ikon */
body.in-dekujeme h4.order-icon {
  color: #D61118;
}

/* 5. Rekapitulace tabulka dopravy/platby/ceny */
body.in-dekujeme .recapitulation-table th,
body.in-dekujeme .recapitulation-table td {
  color: #ffffff;
}
body.in-dekujeme .recapitulation-table strong {
  color: #ffffff;
  font-weight: 700;
}
body.in-dekujeme .recapitulation-table [data-testid="orderTotalPrice"] {
  color: #D61118 !important;
  font-weight: 700;
}

/* 6. Řádek množství a ceny u položky */
body.in-dekujeme td.p-quantity.p-cell {
  color: #39b54a;
}
body.in-dekujeme td.p-quantity.p-cell span {
  color: #39b54a;
}
body.in-dekujeme td.p-quantity.p-cell strong {
  color: #D61118 !important;
  font-weight: 700;
}

/* 7. Cena položky */
body.in-dekujeme td.p-price.p-cell {
  color: #D61118;
}

/* 8. Informační text pod rekapitulací */
body.in-dekujeme .order-summary-item.total {
  color: #ffffff;
}

/* 9. Button „Moje nákupy" – styl jako CTA Pokračovat */
body.in-dekujeme .order-complete-links .btn.btn-primary {
  background: transparent !important;
  border: 2px solid #D61118 !important;
  color: #D61118 !important;
  border-radius: 5px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 12px 24px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
}
body.in-dekujeme .order-complete-links .btn.btn-primary:hover,
body.in-dekujeme .order-complete-links .btn.btn-primary:active,
body.in-dekujeme .order-complete-links .btn.btn-primary:focus {
  background: #ffffff !important;
  border-color: transparent !important;
  color: #1D1D1B !important;
  outline: none !important;
  box-shadow: none !important;
}

/* 10. Odkazy pod stránkou účtu */
body.in-dekujeme .order-complete-links p {
  color: #ffffff;
  font-weight: 700;
}
body.in-dekujeme .order-complete-links p a {
  color: #ffffff;
  font-weight: 400;
  text-decoration: none;
}
body.in-dekujeme .order-complete-links p a:hover,
body.in-dekujeme .order-complete-links p a:active {
  color: #D61118 !important;
}

/* 11. Mobilní odsazení a styl názvu produktu – matches cart td.p-name a.main-link */
@media (max-width: 767px) {
  body.in-dekujeme table.cart-table td.p-name span[data-testid="recapItemName"] {
    color: #ffffff;
    display: block;
    text-align: center;
    max-width: 320px;
    font-size: 16px;
    line-height: 1.35;
  }
}
