/**
 * Moderní Guided Checkout & Zákaznická zóna – Bylík.cz
 * Postaveno na moderním design systému bez zastaralého Bootstrap 3 gridu.
 */

/* ==========================================================================
   Základní layout dvousloupcového Guided Checkoutu
   ========================================================================== */

.checkout-page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Stejne pismo a barva jako nadpisy ostatnich stranek (Jost, #496f38) */
.checkout-main-title {
  font-family: "Jost", "PT Sans Narrow", sans-serif;
  font-size: 34px;
  font-weight: 500;
  color: #496f38;
  margin-top: 8px;
  margin-bottom: 24px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  margin-bottom: 3rem;
}

@media (max-width: 991px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.checkout-main {
  min-width: 0;
}

/* ==========================================================================
   Očíslované karty kroků (1, 2, 3)
   ========================================================================== */

.checkout-step-card {
  background: #ffffff;
  border: 1px solid #e2e8dd;
  border-radius: 3px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2ec;
}

.checkout-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #4c703b;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(76, 112, 59, 0.25);
}

.checkout-step-title {
  font-family: var(--font-sans, "Jost", -apple-system, sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: #222222;
  margin: 0;
}

.checkout-subhead {
  font-size: 19px;
  font-weight: 600;
  color: #304725;
  margin: 0 0 14px 0;
}

.checkout-section-subhead {
  font-size: 18px;
  font-weight: 600;
  color: #222222;
  margin-top: 0;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e2e8dd;
}

/* ==========================================================================
   Ukazatel dopravy zdarma
   ========================================================================== */

.free-shipping-card {
  background: #f4faee;
  border: 1px solid #c7dfcb;
  border-radius: 3px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.free-shipping-text {
  font-size: 15px;
  color: #304725;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.free-shipping-text.is-complete {
  color: #2e7d32;
  font-weight: 600;
}

.free-shipping-text i {
  font-size: 16px;
  color: #4c703b;
}

.free-shipping-text.is-complete i {
  color: #2e7d32;
}

.free-shipping-bar {
  height: 8px;
  background: #e0ebd9;
  border-radius: 2px;
  overflow: hidden;
}

.free-shipping-fill {
  height: 100%;
  background: linear-gradient(90deg, #4c703b, #70a055);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.free-shipping-fill.is-complete {
  background: #2e7d32;
}

/* ==========================================================================
   Tabulka položek košíku (.scart-full)
   ========================================================================== */

.scart-full {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-bottom: 16px;
}

.scart-full tr.item td {
  padding: 14px 8px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.scart-full td.img {
  width: 68px;
  text-align: center;
  padding: 8px 4px !important;
}

.scart-full td.img img {
  max-width: 58px;
  max-height: 58px;
  border-radius: 2px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #f0f0f0;
}

.scart-full td.nazev {
  font-size: 15px;
  line-height: 1.4;
  color: #222222;
}

.scart-full td.nazev a {
  color: #222222;
  text-decoration: none;
  font-weight: 600;
}

.scart-full td.nazev a:hover {
  color: #4c703b;
  text-decoration: underline;
}

.scart-full td.nazev .druh {
  display: block;
  font-size: 15px;
  font-weight: normal;
  color: #575757;
  margin-top: 2px;
}

.scart-full td.nazev .farma {
  display: inline-block;
  background: #eaf5e6;
  color: #2e7d32;
  font-size: 13px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 2px;
  margin-left: 6px;
}

.scart-full td.dostupnost {
  font-size: 15px;
  color: #4c703b;
  text-align: center;
  white-space: nowrap;
}

.scart-full td.pocet {
  width: 90px;
  text-align: center;
}

.scart-full td.pocet input {
  width: 65px;
  text-align: center;
  font-weight: 600;
  border-radius: 3px;
  border: 1px solid #cccccc;
  padding: 6px 4px;
}

.scart-full td.prepocitat {
  width: 36px;
  text-align: center;
}

.scart-full .local-remove {
  background: transparent;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  color: #666666;
  padding: 6px 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scart-full .local-remove:hover {
  color: #d9534f;
  border-color: #d9534f;
  background: #fff5f5;
}

.scart-full .local-recount {
  background: transparent;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  color: #666666;
  padding: 6px 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scart-full .local-recount:hover {
  color: #4c703b;
  border-color: #4c703b;
  background: #fbfdf9;
}

.scart-full td.cenacelkem {
  text-align: right;
  white-space: nowrap;
  font-size: 15px;
}

.scart-full td.cenacelkem strong {
  display: block;
  font-size: 17px;
  color: #222222;
}

.scart-full td.cenacelkem .ks {
  display: block;
  font-size: 14px;
  color: #5c5c5c;
}

.scart-full tr.separator h4 {
  font-size: 15px;
  color: #4c703b;
  margin: 14px 0 6px 0;
  border-bottom: 1px solid #e2e8dd;
  padding-bottom: 4px;
}

.scart-full .sleva {
  background: #fbf3e6;
  border: 1px solid #fae1c3;
  border-radius: 3px;
  padding: 10px 14px;
  color: #995c00;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scart-full .sleva form {
  display: inline;
}

.scart-full .cart-totals {
  display: flex;
  flex-flow: row-reverse wrap;
  align-items: center;
  gap: 16px 24px;
  width: 100%;
  background: #f8faf6;
  border: 1px solid #e2e8dd;
  border-radius: 3px;
  padding: 18px 22px;
}

#step-cart .scart-full tr.cart-totals-row > td {
  padding: 12px 0 0 !important;
}

.scart-full .cart-totals-meta {
  flex: 1 1 260px;
  min-width: 0;
  text-align: left;
}

.scart-full .total-price {
  flex: 1 1 310px;
  min-width: 0;
  text-align: right;
}

.scart-full .total-price .bezdph {
  font-size: 15px;
  color: #575757;
}

.scart-full .total-price .sdph {
  font-size: 16px;
  font-weight: 600;
  color: #304725;
  line-height: 1.25;
  margin-top: 7px;
}

.scart-full .total-price .sdph strong {
  display: block;
  margin-top: 4px;
  font-size: 30px;
  line-height: 1.1;
  white-space: nowrap;
}

.scart-full .weightinfo {
  font-size: 15px;
  color: #666666;
  line-height: 1.4;
}

.scart-full .pts-info {
  font-size: 15px;
  color: #4c703b;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .scart-full .cart-totals { padding: 14px 16px; }
  .scart-full .total-price { text-align: left; }
  .scart-full .total-price .sdph { font-size: 16px; }
  .scart-full .total-price .sdph strong { font-size: 25px; }
}

.scart-full .recount {
  display: none;
}

/* Mobilní responzivita položek košíku */
@media (max-width: 600px) {
  .scart-full tr.item {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
  }
  .scart-full tr.item td {
    border-bottom: none;
    padding: 4px 6px;
  }
  .scart-full td.img {
    width: 60px;
  }
  .scart-full td.nazev {
    flex: 1 1 calc(100% - 100px);
  }
  .scart-full td.dostupnost {
    display: none;
  }
  .scart-full td.pocet {
    width: auto;
    margin-left: 60px;
  }
  .scart-full td.cenacelkem {
    flex: 1;
    text-align: right;
  }
  .scart-full td.prepocitat:last-child {
    position: absolute;
    top: 10px;
    right: 0;
  }
}

/* ==========================================================================
   Patička Kroku 1 (Slevový kód a pokračování k dopravě)
   ========================================================================== */

.checkout-cart-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eef2ec;
}

.checkout-salecode-box {
  flex: 1;
  min-width: 260px;
}

.salecode-group {
  display: flex;
  max-width: 320px;
}

.salecode-group input.form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border: 1px solid #cccccc;
}

.salecode-group .btn-primary {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.checkout-to-delivery-box .vyriditobj {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* ==========================================================================
   Samostatná volba registrace mezi košíkem a dopravou
   ========================================================================== */

.checkout-login-step {
  margin-bottom: 24px;
  scroll-margin-top: 24px;
}

.checkout-login-options,
.scart-hider-control.loginner,
.ShoppingCart .scart-hider-control.loginner {
  float: none !important;
  clear: both !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  position: static !important;
  background: #f7faf4 !important;
  border: 1px solid #e2e8dd !important;
  border-radius: 3px !important;
  padding: 16px 18px !important;
  margin: 0 !important;
  text-align: left !important;
}

.checkout-login-title {
  font-family: var(--font-sans, "Jost", -apple-system, sans-serif);
  font-size: 16px !important;
  font-weight: 600;
  color: #304725;
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

.checkout-login-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 !important;
  width: 100% !important;
}

/* Bootstrap .row pseudo-elementy (clearfix) by v gridu zabiraly bunky */
.checkout-login-grid::before,
.checkout-login-grid::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 768px) {
  .checkout-login-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

.checkout-login-grid > div {
  float: none !important;
  padding: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
}

.checkout-login-grid .buybutton,
.scart-hider-control .buybutton {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 3px !important;
  background: #ffffff !important;
  border: 1.5px solid #d9e4d5 !important;
  color: #304725 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

.checkout-login-grid .buybutton:hover,
.scart-hider-control .buybutton:hover {
  background: #f4faee !important;
  border-color: #4c703b !important;
  color: #213518 !important;
  box-shadow: 0 2px 6px rgba(76, 112, 59, 0.12) !important;
}

.checkout-login-grid .buybutton i {
  color: #4c703b;
  font-size: 15px;
}

/* ==========================================================================
   Karta „Doprava a platba jako minule“
   ========================================================================== */

.lastdelivery-card {
  margin-bottom: 22px;
}

.order-as-last-btn {
  display: block;
  background: #f7faf3;
  border: 2px dashed #4c703b;
  border-radius: 3px;
  padding: 16px 20px;
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.order-as-last-btn:hover {
  background: #eef7e8;
  border-style: solid;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 112, 59, 0.12);
}

.lastdelivery-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  color: #304725;
  margin-bottom: 10px;
}

.lastdelivery-header i {
  color: #4c703b;
  font-size: 18px;
}

.lastdelivery-hint {
  font-size: 14px;
  color: #575757;
  margin-left: auto;
  font-weight: normal;
}

@media (max-width: 600px) {
  .lastdelivery-hint {
    display: none;
  }
}

.lastdelivery-body {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.lastdelivery-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lastdelivery-img {
  max-height: 28px;
  max-width: 50px;
  object-fit: contain;
}

.lastdelivery-img.lastdelivery-icon {
  width: 32px;
  height: 32px;
  max-height: none;
  flex-shrink: 0;
}

.lastdelivery-label {
  font-size: 15px;
  color: #666666;
}

/* ==========================================================================
   Mřížka dopravy a platby & výběrové karty (.choice-list)
   ========================================================================== */

/* Vertikální rozložení: Doprava na celou šířku a pod ní Platba na celou šířku */
.checkout-delivery-payment-stack {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
}

.checkout-delivery-block,
.checkout-payment-block {
  width: 100%;
}

.checkout-subhead {
  font-size: 19px;
  font-weight: 700;
  color: #222222;
  margin: 0 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #eef2ec;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-subhead i {
  color: #4c703b;
  font-size: 18px;
}

/* Prázdný stav platby (když ještě není vybrána doprava) */
.checkout-empty-choice-hint {
  padding: 16px 20px;
  background: #f9fafb;
  border: 1.5px dashed #d1d5db;
  border-radius: 3px;
  color: #6b7280;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-empty-choice-hint i {
  color: #9ca3af;
  font-size: 16px;
}

.choice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   Režimy zobrazení voleb: Sbaleno (1 karta) vs. Rozbaleno (všechny možnosti)
   ========================================================================== */

/* 1. Sbalený režim (collapsed-view): po výběru se zobrazí jen 1 vybraná karta */
.choice-list-wrap.collapsed-view .choice-list li.choice-item:not(.cur),
.choice-list-wrap.collapsed-view .choice-list li.choice-heading,
.choice-list-wrap.collapsed-view .choice-list li.heading {
  display: none !important;
}

.choice-list-wrap.collapsed-view .choice-list li.choice-item.cur {
  display: block !important;
  border: 2px solid #4c703b;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(76, 112, 59, 0.12);
}

.choice-list-wrap.collapsed-view .choice-list li.choice-item.cur .choice-radio-wrap input[type="radio"] {
  display: none !important;
}

.choice-list-wrap.collapsed-view .choice-list li.choice-item.cur .choice-check-badge {
  display: flex !important;
}

.choice-list-wrap.collapsed-view .choice-list li.choice-item.cur .choice-change-bar {
  display: block !important;
}

/* 2. Rozbalený režim (expanded-view): zobrazení všech možností pod sebou */
.choice-list-wrap.expanded-view .choice-list li.choice-item,
.choice-list-wrap.expanded-view .choice-list li.choice-heading,
.choice-list-wrap.expanded-view .choice-list li.heading {
  display: block !important;
}

.choice-list-wrap.expanded-view .choice-check-badge {
  display: none !important;
}

.choice-list-wrap.expanded-view .choice-radio-wrap input[type="radio"] {
  display: block !important;
}

.choice-list-wrap.expanded-view .choice-change-bar {
  display: none !important;
}

/* Zelené kolečko s fajfkou pro potvrzenou volbu */
.choice-check-badge {
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  font-size: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(34, 197, 94, 0.4);
}

/* Spodní lišta se změnou volby (< Změnit dopravu / < Změnit platbu) */
.choice-change-bar {
  display: none;
  padding: 10px 16px;
  border-top: 1px solid #eef2ec;
  background: #fbfdf9;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

.btn-change-choice {
  background: transparent;
  border: none;
  color: #222222;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 3px;
  transition: all 0.15s ease;
  text-decoration: underline;
}

.btn-change-choice:hover {
  color: #4c703b;
  background: #eef7e8;
  text-decoration: none;
}

.btn-change-choice i {
  font-size: 12px;
  color: #4c703b;
}

/* Nadpisy sekcí uvnitř seznamu (např. Balíkovna, Zásilkovna, Hotovost) */
.choice-list li.choice-heading,
.choice-list li.heading {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 12px 2px 4px 2px !important;
  margin: 0 !important;
  cursor: default !important;
}

.choice-list li.choice-heading:first-child,
.choice-list li.heading:first-child {
  padding-top: 2px !important;
}

.choice-list li.choice-heading h3,
.choice-list li.heading h3,
.choice-list li h3.druh-dopravy {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #5c7450;
  margin: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #eef2ec;
}

/* Položka / karta volby */
.choice-list li.choice-item {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #e2e8dd;
  border-radius: 3px;
  padding: 0;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.choice-list li.choice-item:hover {
  border-color: #70a055;
  background: #fbfdf9;
  box-shadow: 0 2px 8px rgba(76, 112, 59, 0.08);
}

/* Vybrana polozka: jen zeleny ramecek, bez podbarveni */
.choice-list li.choice-item.cur,
.choice-list li.choice-item.cur:hover {
  border-color: #4c703b;
  background: #ffffff;
  box-shadow: 0 0 0 1px #4c703b;
}

/* Prebiti stareho eshop.css (sede pozadi vybrane volby, zluty hover, zaoblene rohy) */
.choice-list li.choice-item .price,
.choice-list li.choice-item .price:hover,
.choice-list li.choice-item.cur .price,
.choice-list li.choice-item.cur .info-opened {
  background-color: transparent;
  border-radius: 0;
}

.choice-list li.choice-item.cur .price {
  margin-top: 0;
}

.choice-list li.choice-item.cur .info-opened {
  margin: 0;
  padding: 0 14px 14px 98px;
  font-size: 15px;
  line-height: 1.55;
  color: #444444;
  border-top: 0;
}

.choice-list li.choice-item.cur .info-opened p {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 6px;
}

@media (max-width: 520px) {
  .choice-list li.choice-item.cur .info-opened {
    padding-left: 14px;
  }
}

.choice-list li.choice-item.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f9f9f9;
  border-color: #e5e7eb;
}

/* Label fungující jako klikatelná oblast celé karty */
.choice-card-label,
.choice-list li label.price {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0 !important;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: normal;
  cursor: pointer;
  background-image: none !important; /* potlačení starého inline style background */
  box-sizing: border-box;
}

/* Stary styl plateb pridava 80 px vlevo a posouva radio mimo radu. */
#oparea-payment .choice-list li label.price {
  padding: 12px 14px;
}

/* Radio button vlevo */
.choice-radio-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.choice-radio-wrap input[type="radio"],
.choice-list li input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  accent-color: #4c703b;
  flex-shrink: 0;
}

/* SVG Logo dopravce / platební metody */
.choice-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 40px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-sizing: border-box;
  box-shadow: none;
}

.choice-logo-carrier {
  width: 40px;
  height: 40px;
}

.choice-logo-bank {
  width: 40px;
  height: 40px;
}

.choice-logo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Hlavní informace o dopravě / platbě */
.choice-main-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.choice-name {
  font-size: 17px;
  font-weight: 600;
  color: #222222;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.choice-item.cur .choice-name {
  color: #213518;
}

.choice-name .mytooltip {
  color: #575757;
  font-size: 13px;
  cursor: pointer;
}

.choice-name .mytooltip:hover {
  color: #4c703b;
}

/* Upozorneni u dobirky pri doprave na vydejni misto / box */
.choice-cod-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 14px 12px;
  padding: 10px 12px;
  background: #fff8e6;
  border: 1px solid #f1d48a;
  border-left: 3px solid #d99a00;
  border-radius: 3px;
  font-size: 15px;
  line-height: 1.5;
  color: #5c4500;
  cursor: default;
}

.choice-cod-warning > .fa {
  flex-shrink: 0;
  margin-top: 2px;
  color: #d99a00;
  font-size: 15px;
}

.choice-cod-warning strong {
  color: #3f2f00;
}

/* Informace o hmotnosti a pobočce */
.choice-main-info .weightinfo {
  font-size: 14px;
  color: #5c5c5c;
}

.choice-main-info .info {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  font-size: 15px;
  color: #304725;
  font-weight: 500;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 3px;
  border: 1px solid #c7dfcb;
}

.choice-main-info .info i.fa-map-marker {
  color: #4c703b;
  font-size: 14px;
}

.choice-main-info .open-pobocky {
  color: #4c703b;
  font-weight: 600;
  text-decoration: underline;
  margin-left: 4px;
  cursor: pointer;
}

.choice-main-info .open-pobocky:hover {
  color: #2e7d32;
}

/* Zvolena pobocka ma vlastni radek pod dopravcem, mimo klikaci label. */
#oparea-delivery .choice-list li.choice-item.cur,
#oparea-delivery .choice-list li.choice-item.cur > label.price,
#oparea-delivery .choice-list li.choice-item.cur > .info-opened,
#oparea-delivery .choice-list li.choice-item.cur > .choice-change-bar {
  background: #fff;
}

#oparea-delivery .choice-list li.choice-item.cur > label.price {
  margin-top: 0 !important;
}

#oparea-delivery .choice-list li.choice-item.cur > .info-opened {
  padding: 6px 18px 16px;
  margin: 0;
  border-top: 0;
  font-size: 15px;
}

.choice-branch-details {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 18px 10px;
  padding: 10px 12px;
  border-left: 3px solid #4c703b;
  color: #304725;
  line-height: 1.45;
}

.choice-branch-details > .fa-map-marker {
  margin-top: 3px;
  flex: 0 0 auto;
}

.choice-branch-details strong {
  flex: 1 1 220px;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.choice-branch-details .open-pobocky {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: -3px;
  padding: 6px 14px;
  background: #4c703b;
  border: 1px solid #4c703b;
  border-radius: 999px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(48, 71, 37, 0.25);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.choice-branch-details .open-pobocky:hover,
.choice-branch-details .open-pobocky:focus-visible {
  background: #304725;
  border-color: #304725;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(48, 71, 37, 0.3);
  outline: none;
}

.choice-branch-details .open-pobocky .fa {
  font-size: 12px;
}

@media (max-width: 520px) {
  .choice-branch-details { margin: 0 12px 10px; }
  .choice-branch-details .open-pobocky { margin-left: 24px; margin-top: 2px; }
}

/* Cenovka vpravo */
.choice-price-tag {
  font-size: 17px;
  font-weight: 700;
  color: #304725;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

.choice-item.cur .choice-price-tag {
  color: #2e7d32;
  font-size: 18px;
}

/* Rozbalený popis vybrané volby */
.info-opened {
  padding: 8px 14px 12px 98px;
  font-size: 15px;
  color: #555555;
  line-height: 1.4;
  border-top: 1px dashed #e2e8dd;
  margin-top: -2px;
}

@media (max-width: 520px) {
  .choice-card-label {
    padding: 10px 10px;
    gap: 10px;
  }
  .choice-logo {
    width: 80px;
    height: 32px;
  }
  .choice-logo-carrier,
  .choice-logo-bank {
    width: 32px;
    height: 32px;
  }
  .info-opened {
    padding-left: 14px;
  }
}

/* ==========================================================================
   Formulář osobních a dodacích údajů (Krok 3)
   ========================================================================== */

.checkout-personal-fields {
  margin-top: 8px;
}

.checkout-personal-fields .form-group {
  margin-bottom: 14px;
}

.checkout-personal-fields label {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  margin-bottom: 6px !important;
  display: block;
}

.checkout-personal-fields .form-control {
  height: 44px;
  padding: 9px 13px;
  font-size: 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 2px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.checkout-personal-fields .form-control:focus {
  border-color: #4c703b;
  box-shadow: 0 0 0 3px rgba(76, 112, 59, 0.15);
  outline: none;
}

.checkout-personal-fields select.form-control {
  height: 44px;
  padding-right: 28px;
  cursor: pointer;
}

.checkout-personal-fields textarea.form-control {
  min-height: 75px;
  resize: vertical;
  height: auto;
}

/* Telefonní pole (intl-tel-input) */
.checkout-personal-fields .iti {
  width: 100% !important;
  display: block;
}

.checkout-personal-fields .iti__tel-input {
  height: 44px !important;
}

/* Doplňující možnosti (přepínače doručovací adresy a firmy) */
.checkout-additional-options {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #eef2ec;
}

.checkout-toggles-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 16px;
}

@media (max-width: 680px) {
  .checkout-toggles-grid {
    gap: 10px;
  }
}

.checkout-toggle-wrapper {
  margin-bottom: 4px;
  width: 100%;
}

.checkout-toggle-btn {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  background: #fbfdf9 !important;
  border: 1.5px solid #d9e4d5 !important;
  border-radius: 3px !important;
  cursor: pointer;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #304725 !important;
  margin: 0 !important;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.checkout-toggle-btn:hover {
  background: #f4faee !important;
  border-color: #4c703b !important;
}

.checkout-toggle-btn input[type="checkbox"] {
  position: static !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  accent-color: #4c703b;
  flex-shrink: 0;
  cursor: pointer;
}

.checkout-collapse-body {
  background: #fbfdf9;
  border: 1.5px solid #dce8d9;
  border-radius: 3px;
  padding: 16px;
  margin-top: 10px;
  margin-bottom: 12px;
}

.checkout-toggles-grid {
  overflow-anchor: none;
}

.checkout-toggle-wrapper .collapsing {
  transition: none;
}

/* Poznámka a souhlasy */
.checkout-notes-consents {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #eef2ec;
}

.checkout-checkbox {
  margin: 10px 0 !important;
}

.checkout-checkbox label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #4b5563 !important;
  line-height: 1.45 !important;
  cursor: pointer !important;
  margin: 0 !important;
}

.checkout-checkbox input[type="checkbox"].chk-left {
  width: 18px !important;
  height: 18px !important;
  margin: 2px 0 0 0 !important;
  accent-color: #4c703b;
  flex-shrink: 0;
  position: static !important;
}

.has-error .form-control {
  border: 1.5px solid #d9534f !important;
  background-color: #fff9f9;
}

.has-error .help-inline {
  color: #d9534f;
  font-size: 14px;
  display: block;
  margin-top: 4px;
}

/* ==========================================================================
   Pravý plovoucí sloupec – Rekapitulace objednávky (.checkout-sidebar)
   ========================================================================== */

.checkout-sidebar {
  position: sticky;
  top: 85px;
  z-index: 15;
}

@media (max-width: 991px) {
  .checkout-sidebar {
    position: static;
    top: auto;
  }
}

.checkout-summary-card {
  background: #ffffff;
  border: 1px solid #e2e8dd;
  border-radius: 3px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.checkout-summary-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2ec;
}

.checkout-summary-title {
  font-family: var(--font-sans, "Jost", -apple-system, sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: #222222;
  margin: 0;
}

.checkout-summary-table {
  width: 100%;
  margin-bottom: 18px;
}

.checkout-summary-table td {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
  color: #444444;
}

.checkout-summary-table td.price {
  text-align: right;
  font-weight: 600;
  color: #222222;
  white-space: nowrap;
}

.summary-shipping-desc {
  font-size: 14px;
  color: #575757;
  margin-top: 2px;
}

.checkout-summary-table tr.total td {
  padding-top: 16px;
  font-size: 18px;
  font-weight: 700;
  color: #222222;
  border-top: 2px solid #304725;
  border-bottom: none;
}

.checkout-summary-table tr.total td.price {
  font-size: 26px;
  color: #4c703b;
}

.checkout-summary-table tr.total .bezdph {
  font-size: 14px;
  font-weight: normal;
  color: #5c5c5c;
  margin-top: 2px;
}

.tip-heart-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.summary-tip-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 100%;
  line-height: 1.3;
  vertical-align: top;
}

/* Spropitné baličům */
.tip-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.tip-selector .label {
  width: 100%;
  font-size: 15px;
  font-weight: 600;
  color: #444444;
  margin-bottom: 4px;
}

.tip-selector .tip-selector-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  white-space: normal;
  line-height: 1.35;
}

.tip-selector-label .tip-heart-icon {
  width: 24px;
  height: 24px;
}

.tip-selector .quick-tip {
  padding: 6px 10px;
  font-size: 15px;
  border: 1px solid #d0dcd0;
  border-radius: 3px;
  background: #ffffff;
  color: #333333;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tip-selector .quick-tip:hover {
  border-color: #4c703b;
  background: #fbfdf9;
}

.tip-selector .quick-tip.selected {
  background: #4c703b;
  color: #ffffff;
  border-color: #4c703b;
  font-weight: 600;
}

.tip-selector .custom-value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tip-selector .custom-value input {
  width: 52px;
  padding: 5px 6px;
  font-size: 15px;
  border: 1px solid #d0dcd0;
  border-radius: 3px;
  text-align: center;
}

.tip-selector .custom-value button.accept {
  display: none;
}

/* Hlavní submit tlačítko v pravém sloupci */
.checkout-submit-btn {
  width: 100%;
  min-height: 76px;
  padding: 12px 16px;
  font-size: 17px;
  font-weight: 700;
  background: #4c703b;
  border: none;
  border-radius: 3px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: normal;
  line-height: 1.25;
  box-shadow: 0 4px 12px rgba(76, 112, 59, 0.25);
  animation: checkout-submit-attention 20s ease-in-out infinite;
}

.checkout-submit-text {
  display: block;
  max-width: 225px;
  white-space: normal;
  text-align: center;
}

.checkout-submit-btn:hover {
  background: #39552b;
  box-shadow: 0 6px 16px rgba(76, 112, 59, 0.35);
  transform: translateY(-1px);
  animation-play-state: paused;
}

@keyframes checkout-submit-attention {
  0%, 95%, 100% { transform: translateX(0); }
  96%, 98% { transform: translateX(-2px); }
  97%, 99% { transform: translateX(2px); }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-submit-btn { animation: none; }
}

/* V kosiku nerusi plovouci kontaktni odkaz. */
body.obsah-ShoppingCart .overlay-box.bottomright { display: none; }

/* Nacitani jednotlivych casti kosiku. */
#opareas .load-placeholder {
  position: relative;
  min-height: 90px;
  background: none;
}

#opareas .load-placeholder::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  box-sizing: border-box;
}

#opareas .load-placeholder::before {
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
  border: 3px solid #e8efdf;
  border-top-color: #e6ad00;
  border-right-color: #4c703b;
  border-radius: 50%;
  animation: cart-loader-spin 1.15s linear infinite;
}

@keyframes cart-loader-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  #opareas .load-placeholder::before { animation: none; }
}

.checkout-trust-note {
  display: block;
  text-align: center;
  font-size: 14px;
  color: #666666;
  margin-top: 10px;
  margin-bottom: 0;
  font-weight: 500;
}

.checkout-trust-note i {
  color: #4c703b;
  margin-right: 4px;
}

/* Mobilní tlačítko odeslání */
.checkout-mobile-submit {
  display: none;
}

@media (max-width: 991px) {
  .checkout-mobile-submit {
    display: block;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eef2ec;
  }
}

/* Prázdný košík */
.checkout-empty-wrap {
  background: #ffffff;
  border: 1px solid #e2e8dd;
  border-radius: 3px;
  padding: 36px;
  text-align: center;
  margin: 24px auto;
  max-width: 800px;
}

/* ==========================================================================
   Potvrzení objednávky (Content/Order.php) & Klientská zóna (Content/Personal.php)
   ========================================================================== */

.order-confirmation-wrapper,
.personal-page-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

.order-confirmation-card,
.personal-card {
  background: #ffffff;
  border: 1px solid #e2e8dd;
  border-radius: 3px;
  padding: 32px;
  margin: 24px 0 40px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.order-payment-card {
  background: #fbfdf9;
  border: 1px solid #c7dfcb;
  border-radius: 3px;
  padding: 20px 24px;
  margin: 24px 0;
}

.order-payment-title {
  font-size: 20px;
  font-weight: 700;
  color: #304725;
  margin-top: 0;
  margin-bottom: 12px;
}

.order-gateway-actions {
  margin-top: 16px;
}

.order-gateway-actions .pay-order-button {
  background: #fcb302;
  color: #222222;
  border: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 3px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.order-gateway-actions .pay-order-button:hover {
  background: #e5a100;
}

.personal-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #304725;
  margin-top: 0;
  margin-bottom: 6px;
}

.personal-section-subtitle {
  font-size: 15px;
  color: #575757;
  margin-bottom: 16px;
}

.personal-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 3px;
  background: #f8faf6;
  border: 1px solid #d0dcd0;
  cursor: pointer;
  margin-bottom: 10px;
}

.personal-collapse-body {
  background: #fafbfa;
  border: 1px solid #eef2ec;
  border-radius: 3px;
  padding: 16px;
  margin-top: 8px;
}

.personal-actions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eef2ec;
}

/* Mapy dopravcu vyuziji vysku okna bez nadbytecneho nadpisu a paticky. */
:is(#balikovna-popup, #wedo-popup, #ppl-popup, #gls-popup, #dpd-popup) .modal-dialog {
  width: calc(100vw - 24px);
  max-width: 1800px;
  min-width: 0 !important;
  height: calc(100vh - 24px);
  height: calc(100dvh - 24px);
  margin: 12px auto;
}

:is(#balikovna-popup, #wedo-popup, #ppl-popup, #gls-popup, #dpd-popup) .modal-content {
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
}

:is(#balikovna-popup, #wedo-popup, #ppl-popup, #gls-popup, #dpd-popup) .modal-header {
  height: 0;
  min-height: 0;
  padding: 0;
  border: 0;
}

:is(#balikovna-popup, #wedo-popup, #ppl-popup, #gls-popup, #dpd-popup) .modal-title,
:is(#balikovna-popup, #wedo-popup, #ppl-popup, #gls-popup, #dpd-popup) .modal-footer {
  display: none;
}

:is(#balikovna-popup, #wedo-popup, #ppl-popup, #gls-popup) .modal-header .close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  color: #35502d;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
  font-size: 30px;
  line-height: 36px;
  opacity: 1;
}

:is(#balikovna-popup, #wedo-popup, #ppl-popup, #gls-popup, #dpd-popup) .modal-body {
  height: 100%;
  padding: 0 !important;
}

:is(#balikovna-popup, #wedo-popup, #ppl-popup, #gls-popup, #dpd-popup) .modal-body iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

@media (max-width: 767px) {
  :is(#balikovna-popup, #wedo-popup, #ppl-popup, #gls-popup, #dpd-popup) .modal-dialog {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
    height: calc(100dvh - 12px);
    margin: 6px auto;
  }
}

/* Pomocné čistící styly */
.cleaner {
  clear: both;
}

/* ==========================================================================
   Mobilni zobrazeni kosiku (doladeni 2026-11)
   - jednoduche odsazeni od kraje (drive wrapper 15px + karta 24px)
   - obrazek produktu, slevovy kod, nazvy voleb zarovnane vlevo
   - podekovani za baleni az na konci souhrnu, plovouci lista s celkovou cenou
   ========================================================================== */

/* Nazvy dopravy/platby vzdy vlevo (stary eshop.css dava .price text-align:right) */
.choice-list li label.price {
  text-align: left;
}

/* Plovouci lista s celkovou cenou - jen na mobilu, zobrazuje ji JS */
.checkout-mobile-bar {
  display: none;
}

@media (max-width: 767px) {
  .checkout-page-wrapper {
    padding: 0;
  }

  .checkout-main-title {
    font-size: 28px;
    margin: 4px 15px 16px;
  }

  .checkout-layout {
    gap: 14px;
    margin-bottom: 24px;
  }

  /* karty kroku a souhrnu pres celou sirku displeje (rodic ma 15px odsazeni), bez bocnich okraju */
  .checkout-step-card,
  .checkout-summary-card {
    padding: 18px 15px;
    margin: 0 -15px 14px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  }

  .checkout-step-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .checkout-step-num {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .checkout-step-title {
    font-size: 20px;
  }

  .checkout-login-step {
    margin: 0 -15px 14px;
  }

  .checkout-login-options,
  .scart-hider-control.loginner,
  .ShoppingCart .scart-hider-control.loginner {
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    padding: 16px 15px !important;
  }

  /* polozky voleb - mene vnitrniho odsazeni */
  .choice-list li label.price,
  #oparea-payment .choice-list li label.price {
    padding: 12px 10px;
    gap: 10px;
  }

  .choice-info-card,
  .choice-cod-warning {
    margin-left: 10px;
    margin-right: 10px;
  }

  /* slevovy kod + pokracovat */
  .checkout-cart-footer {
    gap: 12px;
  }

  .checkout-salecode-box,
  .checkout-to-delivery-box {
    flex: 1 1 100%;
    min-width: 0;
  }

  .checkout-salecode-box .salecode-form,
  .salecode-group {
    display: flex !important;
    width: 100%;
    max-width: none;
  }

  .salecode-group input.form-control {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    height: 44px;
    font-size: 16px;
  }

  .salecode-group .input-group-btn {
    display: block;
    width: auto;
  }

  .salecode-group .input-group-btn .btn {
    float: none !important;
    position: static !important;
    margin: 0 !important;
    height: 44px;
    padding: 0 18px;
    font-size: 16px;
  }

  .checkout-to-delivery-box .btn,
  .checkout-to-delivery-box .vyriditobj {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 !important;
    float: none;
    box-sizing: border-box;
    text-align: center;
  }

  /* duplicitni odesilaci tlacitko v kroku 3 - na mobilu je jedno az pod souhrnem */
  .checkout-mobile-submit {
    display: none !important;
  }

  /* souhrn: podekovani za baleni az na konci (pod celkovou cenou) */
  #oparea-summary {
    display: flex;
    flex-direction: column;
  }

  #oparea-summary .checkout-summary-table {
    order: 1;
  }

  #oparea-summary .tip-selector {
    order: 2;
    margin: 4px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid #eef2ec;
    border-bottom: 0;
  }

  .checkout-sidebar-actions {
    margin-top: 16px;
  }
}

@media (max-width: 600px) {
  /* obrazek produktu (res.css ho na mobilu skryva) */
  .scart-full td.img {
    width: 56px;
    padding: 4px 0 !important;
  }

  .scart .img img,
  .scart-full td.img img {
    display: block !important;
    width: 50px;
    height: 50px;
    max-width: 50px;
    max-height: 50px;
  }

  .scart-full tr.item {
    padding: 10px 40px 10px 0;
  }

  .scart-full tr.item td {
    padding: 2px 4px;
  }

  .scart-full td.nazev {
    flex: 1 1 calc(100% - 60px);
    font-size: 16px;
  }

  .scart-full td.pocet {
    flex: 0 0 auto;
    width: auto;
    margin-left: 56px;
  }

  .scart-full td.pocet input {
    width: 58px !important;
    height: 40px;
    font-size: 16px;
  }

  .scart-full .local-recount {
    height: 40px;
  }

  .scart-full td.prepocitat:last-child {
    top: 8px;
  }
}

@media (max-width: 991px) {
  body.has-checkout-mobile-bar {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  .checkout-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    border-top: 1px solid #dfe6da;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(110%);
    transition: transform 0.2s ease;
  }

  .checkout-mobile-bar[hidden] {
    display: none;
  }

  .checkout-mobile-bar.is-visible {
    transform: none;
  }

  .checkout-mobile-bar .cmb-total {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.2;
  }

  .checkout-mobile-bar .cmb-label {
    display: block;
    font-size: 14px;
    color: #666666;
  }

  .checkout-mobile-bar .cmb-price {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #304725;
    white-space: nowrap;
  }

  .checkout-mobile-bar .cmb-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #4c703b;
    border-radius: 3px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
  }

  .checkout-mobile-bar .cmb-btn:hover,
  .checkout-mobile-bar .cmb-btn:focus {
    background: #304725;
    color: #ffffff;
    text-decoration: none;
  }
}

@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
  .checkout-mobile-bar { transition: none; }
}

/* Polozka kosiku na mobilu - mrizka:
   [obrazek] [nazev ............... ✕]
   [       ] [pocet][↻] ....... cena  */
@media (max-width: 600px) {
  .scart-full tr.item {
    display: grid !important;
    grid-template-columns: 56px auto auto 1fr auto;
    grid-template-areas:
      "img name name name remove"
      "img qty recount price price";
    column-gap: 8px;
    row-gap: 10px;
    align-items: center;
    position: static;
    padding: 14px 0;
    border-bottom: 1px solid #eef2ec;
  }

  .scart-full tr.item td {
    display: block;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    background: transparent;
  }

  .scart-full tr.item td.img {
    grid-area: img;
    align-self: start;
  }

  .scart-full tr.item td.nazev {
    grid-area: name;
    align-self: start;
    min-width: 0;
    padding-top: 2px !important;
  }

  .scart-full tr.item td.dostupnost {
    display: none !important;
  }

  .scart-full tr.item td.pocet {
    grid-area: qty;
  }

  .scart-full tr.item td.prepocitat {
    grid-area: recount;
  }

  .scart-full tr.item td.prepocitat:last-child {
    grid-area: remove;
    position: static;
    align-self: start;
  }

  .scart-full tr.item td.cenacelkem {
    grid-area: price;
    text-align: right;
  }

  .scart-full tr.item td.pocet input {
    width: 56px !important;
    height: 40px;
    padding: 0 !important;
    text-align: center !important;
    font-size: 16px;
  }

  .scart-full .local-recount,
  .scart-full .local-remove {
    width: 40px;
    height: 40px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .scart-full td.cenacelkem .ks {
    font-size: 13px;
  }

  .scart-full td.cenacelkem strong {
    font-size: 18px;
  }
}

/* Jednosloupcove zobrazeni (tablet i mobil, do 991px):
   jedno odesilaci tlacitko az pod souhrnem, podekovani za baleni na konci souhrnu */
@media (max-width: 991px) {
  .checkout-mobile-submit {
    display: none !important;
  }

  #oparea-summary {
    display: flex;
    flex-direction: column;
  }

  #oparea-summary .checkout-summary-table {
    order: 1;
  }

  #oparea-summary .tip-selector {
    order: 2;
    margin: 4px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid #eef2ec;
    border-bottom: 0;
  }

  .checkout-sidebar-actions {
    margin-top: 16px;
  }
}

/* Dva sloupce na mensi obrazovce (992-1199px): tabulka kosiku je uzka - bez sloupce "skladem",
   uzsi pocet, at se nazev nelame a krizek nepreteka z karty */
@media (min-width: 992px) and (max-width: 1199px) {
  .scart-full td.dostupnost {
    display: none;
  }

  .scart-full td.pocet {
    width: 66px;
  }

  .scart-full td.pocet input {
    width: 58px;
  }

  .scart-full tr.item td {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* Pocet kusu vzdy na stred */
.scart-full td.pocet input {
  text-align: center;
}

/* Popis vybrane dopravy i platby zarovnany stejne - pod nazvem */
#oparea-delivery .choice-list li.choice-item.cur > .info-opened,
.choice-list li.choice-item.cur .info-opened {
  padding: 0 16px 14px 98px;
}

@media (max-width: 520px) {
  #oparea-delivery .choice-list li.choice-item.cur > .info-opened,
  .choice-list li.choice-item.cur .info-opened {
    padding-left: 14px;
  }
}

/* Lista "Zmenit dopravu / platbu" bila (bez podbarveni) */
.choice-list li.choice-item.cur .choice-change-bar {
  background: #ffffff;
}

/* ==========================================================================
   Pokladna - vylepseni 2026-11 (doprava zdarma, -/+, prihlaseni, duvera, ETA)
   ========================================================================== */

/* Pocet kusu: - / + */
.scart-full td.pocet {
  width: 128px;
}

.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  height: 40px;
  border: 1px solid #c9d4c4;
  border-radius: 3px;
  background: #ffffff;
  overflow: hidden;
}

.qty-stepper .qty-btn {
  flex: 0 0 34px;
  width: 34px;
  padding: 0;
  border: 0;
  background: #f4f7f2;
  color: #304725;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.qty-stepper .qty-btn:hover,
.qty-stepper .qty-btn:focus-visible {
  background: #e3ecdd;
  outline: none;
}

.scart-full td.pocet .qty-stepper input.qty-input {
  width: 44px !important;
  height: 100%;
  padding: 0 !important;
  border: 0 !important;
  border-left: 1px solid #e0e6dc !important;
  border-right: 1px solid #e0e6dc !important;
  border-radius: 0;
  box-shadow: none;
  font-size: 16px;
  font-weight: 600;
  text-align: center !important;
  -moz-appearance: textfield;
}

.qty-stepper input.qty-input::-webkit-outer-spin-button,
.qty-stepper input.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Mobilni mrizka polozky: bez sloupce "prepocitat" */
@media (max-width: 600px) {
  .scart-full tr.item {
    grid-template-columns: 56px auto 1fr auto;
    grid-template-areas:
      "img name name remove"
      "img qty price price";
  }

  .scart-full tr.item td.pocet {
    grid-area: qty;
    width: auto !important;
  }

  .scart-full tr.item td.prepocitat.odebrat,
  .scart-full tr.item td.prepocitat:last-child {
    grid-area: remove;
  }
}

/* Doprava zdarma: na desktopu v souhrnu (je videt vedle kosiku), na mobilu/tabletu v kroku 1 */
.scart-free-shipping:empty,
.summary-free-shipping:empty {
  display: none;
}

.scart-free-shipping .free-shipping-card {
  margin: 0 0 14px;
}

.summary-free-shipping .free-shipping-card {
  margin: 0 0 14px;
}

.free-shipping-text strong {
  white-space: nowrap;
}

@media (min-width: 992px) {
  .scart-free-shipping {
    display: none;
  }
}

@media (max-width: 991px) {
  .summary-free-shipping {
    display: none;
  }
}

/* Slevovy kod: na mobilu pod odkazem */
.salecode-toggle {
  display: none;
}

@media (max-width: 767px) {
  .salecode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: #3f6230;
    font-size: 16px;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
  }

  .checkout-salecode-box .salecode-form {
    display: none !important;
  }

  .checkout-salecode-box.is-open .salecode-form {
    display: flex !important;
    margin-top: 8px;
  }

  .checkout-salecode-box.is-open .salecode-toggle {
    display: none;
  }
}

/* Prihlaseni - nenapadny odkaz v kroku 3 (misto 3 tlacitek) */
.checkout-login-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 14px;
  background: #f6f9f4;
  border: 1px solid #e2e8dd;
  border-radius: 3px;
  color: #3d3d3d;
  font-size: 15px;
  line-height: 1.5;
}

.checkout-login-hint > .fa {
  margin-top: 3px;
  color: #4c703b;
  font-size: 18px;
}

.checkout-login-hint .open-login {
  color: #3f6230;
  font-weight: 600;
  text-decoration: underline;
}

/* Vydejni misto: misto adresy jen informace */
.checkout-branch-address-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 16px;
  padding: 10px 12px;
  background: #f6f9f4;
  border-left: 3px solid #4c703b;
  border-radius: 3px;
  color: #304725;
  font-size: 15px;
}

.checkout-branch-address-note[hidden],
.checkout-address-fields[hidden] {
  display: none !important;
}

/* Rychle doruceni u dopravy */
.choice-delivery-eta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: #2e7d32;
  font-size: 14px;
  font-weight: 600;
}

/* Duvera nad odesilacim tlacitkem */
.checkout-trust-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 !important;
  color: #3d3d3d;
  font-size: 15px !important;
  line-height: 1.4 !important;
}

.checkout-trust-list li::before {
  display: none !important;
}

.checkout-trust-list .fa {
  width: 18px;
  text-align: center;
  color: #4c703b;
}

/* Podekovani za baleni: 4 castky + vlastni hodnota na jeden radek */
.tip-selector {
  flex-wrap: wrap;
  gap: 6px;
}

.tip-selector .cleaner {
  display: none;
}

.tip-selector .quick-tip {
  flex: 1 1 0;
  min-width: 0;
  padding: 7px 4px;
  font-size: 15px;
  white-space: nowrap;
}

.tip-selector .custom-value {
  flex: 1.3 1 0;
  min-width: 0;
  justify-content: center;
}

.tip-selector .custom-value .hideable {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
}

.tip-selector .custom-value input {
  width: 100%;
  max-width: 64px;
  min-width: 40px;
  padding: 7px 4px;
}

.tip-selector .tip-selector-label small {
  font-size: 14px;
  font-weight: 500;
  color: #4a4a4a;
}

/* nazev volby nesmi plavat (stary eshop.css: .choice-list .price .title {float:left}) - termin doruceni pod nazvem */
.choice-list li label.price .choice-name.title {
  float: none;
}

.choice-main-info .choice-delivery-eta {
  display: flex;
}

/* nadpis stranky jen pro ctecky (#content h1 jinak prepisuje position/margin) */
.checkout-main-title.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Souhrn se po odscrolovani hlavicky drzi u horniho okraje (web nema pevnou hlavicku) */
.checkout-sidebar {
  top: 16px;
}

/* Cislo v poli poctu opticky na stred (pismo Jost ma velky spodni prostor) */
.scart-full td.pocet .qty-stepper input.qty-input {
  line-height: 1;
  padding: 0 0 3px !important;
}

/* Kratky popis vydejniho mista (nazev + ulice, mesto) */
.branch-short {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
}

.branch-short-place {
  font-size: 0.92em;
  font-weight: 400;
  color: #5c5c5c;
}

.choice-branch-details .branch-short-name {
  font-weight: 600;
}

/* Podrobnosti vybraneho vydejniho mista (z DB pobocek) */
.choice-branch-details .branch-details {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 4px;
  padding-left: 22px;
  font-size: 15px;
  color: #3d3d3d;
}

.branch-details .bd-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.branch-details .bd-row > .fa {
  flex: 0 0 16px;
  margin-top: 3px;
  color: #4c703b;
  text-align: center;
}

.branch-details .bd-row a {
  color: #3f6230;
  font-weight: 600;
  text-decoration: underline;
}

.branch-details .bd-where {
  color: #4a4a4a;
  font-size: 14px;
}

.branch-details .bd-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.branch-details .bd-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  background: #eef4ea;
  border-radius: 999px;
  color: #304725;
  font-size: 13.5px;
  font-weight: 500;
}

.branch-details .bd-badge.bd-ok {
  background: #e3f3e3;
  color: #1f6b25;
}

.branch-details .bd-badge.bd-no {
  background: #fdecea;
  color: #a12a1f;
}

.branch-details .bd-hours summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  line-height: 1.45;
}

.branch-details .bd-hours summary::-webkit-details-marker {
  display: none;
}

.branch-details .bd-hours summary > .fa {
  width: 16px;
  color: #4c703b;
  text-align: center;
}

.branch-details .bd-hours-more {
  color: #3f6230;
  font-size: 14px;
  text-decoration: underline;
}

.branch-details .bd-hours[open] .bd-hours-more {
  text-decoration: none;
}

.branch-details .bd-hours table {
  margin: 8px 0 2px 24px;
  border-collapse: collapse;
  font-size: 14px;
}

.branch-details .bd-hours th,
.branch-details .bd-hours td {
  padding: 2px 14px 2px 0;
  font-weight: 400;
  text-align: left;
  border: 0;
}

.branch-details .bd-hours tr.is-today th,
.branch-details .bd-hours tr.is-today td {
  font-weight: 700;
  color: #213518;
}

@media (max-width: 520px) {
  .choice-branch-details .branch-details {
    padding-left: 0;
  }
}

/* Souhrn: popis dopravy / vydejniho mista / platby na sirku obou sloupcu, s ikonami */
.checkout-summary-table tr.summary-row-shipping.has-desc td {
  border-bottom: 0 !important;
  padding-bottom: 2px !important;
}

.checkout-summary-table tr.summary-row-shipping-desc td {
  padding-top: 0 !important;
  border-top: 0 !important;
}

.checkout-summary-table .summary-shipping-desc {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #4a4a4a;
}

.summary-shipping-desc .ssd-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.summary-shipping-desc .ssd-row > .fa {
  flex: 0 0 16px;
  margin-top: 2px;
  color: #4c703b;
  text-align: center;
}

.summary-shipping-desc .branch-short-name {
  color: #333333;
  font-weight: 500;
}

/* "Kde to najdete" - radky + rozbalovaci zbytek */
.branch-details .bd-where-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.branch-details .bd-line {
  display: block;
}

.branch-details .bd-more summary {
  display: inline;
  color: #3f6230;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  list-style: none;
}

.branch-details .bd-more summary::-webkit-details-marker {
  display: none;
}

.branch-details .bd-more[open] summary {
  display: block;
  margin-bottom: 2px;
  text-decoration: none;
  color: #304725;
  font-weight: 600;
}

/* Souhrn: poradi je dane HTML (castky -> duvera -> podekovani -> tlacitko), bez preskupovani */
#oparea-summary {
  display: block !important;
}

#oparea-summary .checkout-trust-list {
  margin: 14px 0 0;
}

/* podekovani za baleni tesne nad tlacitkem Dokoncit objednavku */
#oparea-summary .tip-selector {
  margin: 16px 0 0 !important;
  padding: 14px 0 0 !important;
  border-top: 1px solid #eef2ec !important;
  border-bottom: 0 !important;
}

.checkout-sidebar-actions {
  margin-top: 16px;
}

/* Podekovani za baleni - poletujici srdicka a kratke podekovani */
.tip-hearts-layer {
  position: fixed;
  inset: 0;
  z-index: 3000;
  pointer-events: none;
  overflow: hidden;
}

.tip-heart-fly {
  position: fixed;
  display: block;
  opacity: 0;
  filter: drop-shadow(0 2px 3px rgba(180, 30, 60, 0.25));
  animation: tipHeartFly 1.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes tipHeartFly {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.3) rotate(0deg); }
  15%  { opacity: 1; transform: translate(calc(var(--dx) * 0.2), calc(var(--dy) * 0.2)) scale(1.15) rotate(calc(var(--rot) * 0.3)); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.8) rotate(var(--rot)); }
}

.tip-thanks-toast {
  position: fixed;
  transform: translate(-50%, -100%);
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #f3c6cf;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(180, 30, 60, 0.18);
  color: #b0243f;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  animation: tipThanks 2.4s ease forwards;
}

@keyframes tipThanks {
  0%   { opacity: 0; transform: translate(-50%, -80%) scale(0.9); }
  12%  { opacity: 1; transform: translate(-50%, -100%) scale(1); }
  80%  { opacity: 1; transform: translate(-50%, -110%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -125%) scale(0.98); }
}

@media (prefers-reduced-motion: reduce) {
  .tip-thanks-toast { animation: tipThanksStill 2.4s linear forwards; }
  @keyframes tipThanksStill { 0%, 85% { opacity: 1; transform: translate(-50%, -100%); } 100% { opacity: 0; transform: translate(-50%, -100%); } }
}

/* Duvera v souhrnu vycentrovana */
#oparea-summary .checkout-trust-list {
  align-items: center;
  text-align: center;
}

#oparea-summary .checkout-trust-list li {
  justify-content: center;
}
