body.in-krok-1 {
  --am-gold: #a9702f;
  --am-brown: #3b2a21;
  --am-text: #6b5545;
  --am-muted: #9a8470;
  --am-cream: #f9f4ec;
  --am-line: #eadfce;
}

/* ---------- Karty ---------- */
body.in-krok-1 .co-box {
  background: #fff;
  border: 1px solid var(--am-line);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: none;
}

/* ---------- Krajina a mena (horné boxy) ---------- */
body.in-krok-1 .co-basic-information {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
body.in-krok-1 .co-basic-information > h2 { display: none; }
body.in-krok-1 .co-basic-information .row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}
body.in-krok-1 .co-basic-information .row > [class*="col-"] {
  flex: 1 1 220px;
  width: auto;
  max-width: none;
  float: none;
  padding: 0;
}
body.in-krok-1 .co-basic-information .form-group.form-group-wrapped,
body.in-krok-1 .co-basic-information .form-group {
  position: relative;
  margin: 0;
  min-height: 70px !important;
  padding: 12px 16px 12px 66px !important;
  background: #fff !important;
  border: 1px solid var(--am-line) !important;
  border-radius: 14px !important;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}
body.in-krok-1 .co-basic-information .form-group:hover,
body.in-krok-1 .co-basic-information .form-group:focus-within {
  border-color: var(--am-gold) !important;
  box-shadow: 0 2px 10px rgba(169, 112, 47, .12);
}
body.in-krok-1 .co-basic-information label {
  position: static !important;
  display: block;
  transform: none !important;
  margin: 0 0 3px;
  padding: 0;
  background: none;
  font-size: 12.5px !important;
  font-weight: 400;
  color: var(--am-muted);
}
body.in-krok-1 .co-basic-information select.form-control {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: auto !important;
  padding: 0 24px 0 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23a9702f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 2px center !important;
  font-size: 17px;
  font-weight: 600;
  color: var(--am-brown);
  cursor: pointer;
}
body.in-krok-1 .am-flag {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--am-cream);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(59, 42, 33, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--am-gold);
}

/* ---------- Doprava a platba: jemné karty bez hrubého orámovania ---------- */
body.in-krok-1 .shipping-billing-table .radio-wrapper,
body.in-krok-1 .shipping-billing-table .radio-wrapper.active {
  border: 1px solid var(--am-line) !important;
  border-radius: 14px;
  margin: 0 0 10px;
  background: #fff;
  box-shadow: none !important;
  outline: 0 !important;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
body.in-krok-1 .shipping-billing-table .radio-wrapper:hover {
  border-color: #d9c3a5 !important;
  box-shadow: 0 2px 8px rgba(59, 42, 33, .06) !important;
}
body.in-krok-1 .shipping-billing-table .radio-wrapper.active,
body.in-krok-1 .shipping-billing-table .radio-wrapper:has(input:checked) {
  background: var(--am-cream);
  border-color: #dcc19a !important;
}
body.in-krok-1 .shipping-billing-table .radio-wrapper label {
  padding: 15px 18px;
  cursor: pointer;
  border: 0 !important;
}
body.in-krok-1 .shipping-billing-name {
  color: var(--am-brown);
  font-weight: 600;
}
body.in-krok-1 .payment-shipping-price {
  font-weight: 700;
  color: var(--am-brown);
  white-space: nowrap;
}
body.in-krok-1 .payment-shipping-price.for-free { color: #2f7d4f; }
body.in-krok-1 .payment-logo img { max-height: 24px; width: auto; border-radius: 4px; }

/* ---------- Zhrnutie s fotkou ---------- */
body.in-krok-1 #checkoutSidebar .order-summary-inner {
  background: #fff;
  border: 1px solid var(--am-line);
  border-radius: 16px;
  padding: 22px 24px;
}
@media (min-width: 992px) {
  body.in-krok-1 #checkoutSidebar .cart-content { position: sticky; top: 16px; }
}
body.in-krok-1 .cart-items .cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
body.in-krok-1 .cart-items .cart-item .am-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--am-cream);
}
body.in-krok-1 .cart-items .cart-item .cart-item-name { flex: 1 1 auto; }
body.in-krok-1 .am-stock {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 12px;
  line-height: 1.5;
}
body.in-krok-1 .am-stock--yes { background: #e8f3ec; color: #2f7d4f; }
body.in-krok-1 .am-stock--no  { background: #f6ebdc; color: #8a5a22; }
body.in-krok-1 .order-summary-item.price .price-primary {
  font-size: 1.35em;
  color: var(--am-brown);
}

/* ---------- Tlačidlo ---------- */
body.in-krok-1 .next-step .btn-conversion {
  background: var(--am-brown);
  border-color: var(--am-brown);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .03em;
}
body.in-krok-1 .next-step .btn-conversion:hover {
  background: var(--am-gold);
  border-color: var(--am-gold);
}

/* ---------- Dôvody dôverovať ---------- */
.am-trust {
  list-style: none;
  margin: 16px 0 0;
  padding: 14px 16px;
  background: var(--am-cream);
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--am-text);
}
.am-trust li { display: flex; gap: 10px; margin: 0 0 6px; }
.am-trust li:last-child { margin: 0; }
.am-trust li::before { content: "✓"; color: var(--am-gold); font-weight: 700; }

.am-country-note { margin: 10px 0 0; font-size: 13px; color: var(--am-text); }

/* ---------- Lišta „do dopravy zadarmo" ---------- */
.am-free-bar {
  margin: 0 0 14px;
  padding: 14px 18px;
  background: var(--am-cream);
  border: 1px solid var(--am-line);
  border-radius: 14px;
  color: var(--am-brown);
  font-size: 14px;
}
.am-free-bar.am-free-done { background: #e8f3ec; border-color: #cfe5d7; color: #2f7d4f; }
.am-free-bar .am-free-track {
  height: 7px;
  margin-top: 9px;
  background: #fff;
  border-radius: 99px;
  overflow: hidden;
}
.am-free-bar .am-free-fill {
  height: 100%;
  background: var(--am-gold);
  border-radius: 99px;
  transition: width .3s;
}
.am-free-done .am-free-fill { background: #2f7d4f; }

/* odsadenie obsahu od menu krokov */
body.in-krok-1 ol.cart-header { margin-bottom: 20px !important; }

/* ---------- vlastný dropdown (krajina / mena) ---------- */
body.in-krok-1 .co-basic-information select.form-control { pointer-events: none; }
body.in-krok-1 .co-basic-information .form-group { cursor: pointer; }
body.in-krok-1 .co-basic-information .row > [class*="col-"] { position: relative; }
body.in-krok-1 .co-basic-information .form-group.am-open { border-color: var(--am-gold) !important; box-shadow: 0 2px 10px rgba(169,112,47,.15); }
body.in-krok-1 .am-dd {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50;
  background: #fff; border: 1px solid var(--am-line); border-radius: 14px; padding: 6px;
  box-shadow: 0 12px 32px rgba(59,42,33,.16); max-height: 320px; overflow-y: auto; cursor: default;
}
body.in-krok-1 .am-open > .am-dd { display: block; }
body.in-krok-1 .am-dd-item {
  display: flex !important; align-items: center; justify-content: flex-start !important; gap: 12px; width: 100%; text-align: left !important;
  padding: 9px 12px !important; margin: 0; border: 0 !important; border-radius: 10px !important;
  background: transparent !important; color: var(--am-brown); font-size: 15px; font-weight: 500; line-height: 1.2;
  cursor: pointer; box-shadow: none !important; text-transform: none; letter-spacing: 0;
}
body.in-krok-1 .am-dd-item:hover { background: var(--am-cream) !important; }
body.in-krok-1 .am-dd-item.is-active { background: var(--am-cream) !important; font-weight: 700; }
body.in-krok-1 .am-dd-item.is-active::after { content: "✓"; margin-left: auto; color: var(--am-gold); font-weight: 700; }
body.in-krok-1 .am-dd-ico {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background-color: var(--am-cream);
  background-size: cover; background-position: center; box-shadow: 0 0 0 1px rgba(59,42,33,.1);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--am-gold);
}
body.in-krok-1 .am-dd-txt { flex: 1 1 auto; text-align: left !important; }

/* ---------- krajší dropdown (v2) ---------- */
body.in-krok-1 .am-dd { padding: 8px !important; border-radius: 18px !important; border: 1px solid #eadfd2 !important; box-shadow: 0 18px 44px rgba(59,42,33,.18) !important; top: calc(100% + 8px) !important; animation: amDdIn .16s ease-out; }
@keyframes amDdIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
body.in-krok-1 .am-dd-item { padding: 11px 14px !important; gap: 14px !important; border-radius: 12px !important; font-size: 16px !important; }
body.in-krok-1 .am-dd-ico { flex: 0 0 34px !important; width: 34px !important; height: 34px !important; font-size: 12px !important; }
body.in-krok-1 .am-dd-item.is-active { background: linear-gradient(90deg, #fbf1e0, #fbf6ee) !important; color: #8a5a17; }
body.in-krok-1 .am-dd::-webkit-scrollbar { width: 8px; }
body.in-krok-1 .am-dd::-webkit-scrollbar-thumb { background: #e0cfb6; border-radius: 8px; }

/* ---------- kolieska výberu dopravy a platby: viditeľné, nie „vysivené“ ---------- */
body.in-krok-1 .shipping-billing-table .radio-wrapper label::before {
  background: #fff !important; border: 2px solid #b9966a !important; box-sizing: border-box; box-shadow: none !important;
  transition: border-color .15s, box-shadow .15s;
}
body.in-krok-1 .shipping-billing-table .radio-wrapper:hover label::before { border-color: var(--am-gold) !important; box-shadow: 0 0 0 3px rgba(169,112,47,.15) !important; }
body.in-krok-1 .shipping-billing-table .radio-wrapper:has(input:checked) label::before { border-color: #20bf6b !important; }

/* ---------- zhrnutie objednávky na mobile ---------- */
body.in-krok-1 .am-stock { white-space: nowrap; }
@media (max-width: 767px) {
  body.in-krok-1 .cart-items .cart-item {
    display: grid !important; grid-template-columns: 84px minmax(0, 1fr) auto;
    grid-template-areas: "img name name" "img amt price"; gap: 6px 14px; align-items: center; padding: 14px 0 !important;
  }
  body.in-krok-1 .cart-items .cart-item .am-thumb { grid-area: img; width: 84px !important; height: 84px !important; flex: none; border-radius: 12px; }
  body.in-krok-1 .cart-items .cart-item .cart-item-name { grid-area: name; align-self: end; }
  body.in-krok-1 .cart-items .cart-item .cart-item-name a { font-size: 15px !important; line-height: 1.35 !important; }
  body.in-krok-1 .cart-items .cart-item .cart-item-amount { grid-area: amt; align-self: start; font-size: 14px !important; color: var(--am-muted); text-align: left !important; width: auto !important; }
  body.in-krok-1 .cart-items .cart-item .cart-item-price { grid-area: price; align-self: start; font-size: 16px !important; font-weight: 700; text-align: right !important; white-space: nowrap; width: auto !important; }
  body.in-krok-1 .am-stock { margin-top: 6px; padding: 3px 11px; font-size: 12px; }
}

/* ---------- miesto dole, aby chat a ďalšie plávajúce prvky neprekrývali tlačidlá ---------- */
@media (max-width: 767px) {
  body.in-krok-1 { padding-bottom: 110px !important; }
}

/* ---------- v9: zhrnutie na mobile – názov na celú šírku, značka na vlastnom riadku, doprava/platba prehľadne ---------- */
@media (max-width: 767px) {
  body.in-krok-1 .cart-items .cart-item .cart-item-name {
    width: auto !important; max-width: none !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important; justify-self: stretch !important;
  }
  body.in-krok-1 .cart-items .cart-item .am-stock { display: block; width: fit-content; }
  body.in-krok-1 .recapitulation-single { display: grid !important; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 12px; align-items: baseline; padding: 8px 0 !important; }
  body.in-krok-1 .recapitulation-single .recapitulation-shipping-billing-label { font-size: 13px; color: var(--am-muted); }
  body.in-krok-1 .recapitulation-single .recapitulation-shipping-billing-info { display: flex !important; justify-content: space-between; align-items: baseline; gap: 10px; text-align: left !important; font-size: 14px; font-weight: 500; }
  body.in-krok-1 .recapitulation-single .recapitulation-shipping-billing-info span { order: 2; margin-left: auto; font-weight: 700; white-space: nowrap; }
}
