/*
 * Alenda Checkout CSS
 * Groza lapa, progresa josla, checkout soļi.
 * Versija: 1.0 · 2026-05-29
 */

/* ═══════════════════════════════════════════════════════════════
   CSS mainīgie — Alenda brends
   ═══════════════════════════════════════════════════════════════ */
:root {
  --ale-blue:      #1457A6;
  --ale-blue-dark: #0E3F7A;
  --ale-blue-tint: #EAF1F9;
  --ale-teal:      #16B8A6;
  --ale-teal-tint: #E4F6F4;
  --ale-white:     #FFFFFF;
  --ale-mist:      #F4F7FA;
  --ale-line:      #E3E9F0;
  --ale-ink:       #1B2A3A;
  --ale-slate:     #5E6E7E;
  --ale-success:   #1E9E63;
  --ale-warning:   #E8A300;
  --ale-error:     #D6493F;
  --ale-gold:      #d4a820;
  --ale-radius-sm: 8px;
  --ale-radius-md: 12px;
  --ale-radius-lg: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   PROGRESA JOSLA — groza lapa
   Vienmēr tikai VIENA josla. CSS klase nosaka krāsu.
   ═══════════════════════════════════════════════════════════════ */

.progress-bar-wrap {
  background: var(--ale-white);
  border: 1.5px solid var(--ale-line);
  border-radius: var(--ale-radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: border-color .25s, background .25s;
}

/* Stāvoklis A — virzāmies uz bezmaksas piegādi / lētāku cenu (zilā) */
.progress-bar-wrap.pb-shipping { border-color: var(--ale-line); }
.progress-bar-wrap.pb-shipping .pb-icon { color: var(--ale-blue); }
.progress-bar-wrap.pb-shipping .pb-fill  { background: var(--ale-blue); }
.progress-bar-wrap.pb-shipping strong    { color: var(--ale-blue); }

/* Stāvoklis B — tuvu nākamajam tier (zeltaina) */
.progress-bar-wrap.pb-discount { border-color: #d4a820; }
.progress-bar-wrap.pb-discount .pb-icon { color: #b37d00; }
.progress-bar-wrap.pb-discount .pb-fill {
  background: linear-gradient(90deg, var(--ale-blue) 0%, #d4a820 100%);
}
.progress-bar-wrap.pb-discount strong { color: #b37d00; }
.progress-bar-wrap.pb-discount .pb-track { background: #fef3d0; }

/* Stāvoklis C — pēdējais mērķis sasniegts (zaļā) */
.progress-bar-wrap.pb-done {
  border-color: var(--ale-success);
  background: #f0fbf5;
}
.progress-bar-wrap.pb-done .pb-icon { color: var(--ale-success); }
.progress-bar-wrap.pb-done .pb-fill {
  background: var(--ale-success);
  width: 100% !important;
}
.progress-bar-wrap.pb-done strong { color: var(--ale-success); }

/* Joslas komponentes */
.pb-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.pb-icon {
  font-size: 1rem;
  flex-shrink: 0;
}
.pb-text {
  font-size: .8125rem;
  color: var(--ale-ink);
  flex: 1;
  line-height: 1.4;
}
.pb-milestone {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .6875rem;
  font-weight: 700;
  color: var(--ale-slate);
  white-space: nowrap;
}
.pb-track {
  height: 7px;
  background: var(--ale-line);
  border-radius: 4px;
  overflow: hidden;
}
.pb-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .4s ease;
}

/* ═══════════════════════════════════════════════════════════════
   CHECKOUT PROGRESA SOĻI (4 soļi: Grozs → Piegāde → Apmaksa → Apstiprinājums)
   ═══════════════════════════════════════════════════════════════ */

.alenda-checkout-progress {
  background: var(--ale-white);
  border-bottom: 1px solid var(--ale-line);
  padding: 14px 0;
}
.alenda-progress-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.alenda-prog-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  font-weight: 600;
}
.alenda-prog-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.alenda-prog-step.active .alenda-prog-num  { background: var(--ale-blue); color: #fff; }
.alenda-prog-step.active .alenda-prog-label { color: var(--ale-ink); }
.alenda-prog-step.done   .alenda-prog-num  { background: var(--ale-success); color: #fff; }
.alenda-prog-step.done   .alenda-prog-label { color: var(--ale-slate); }
.alenda-prog-step.pending .alenda-prog-num  { background: var(--ale-line); color: var(--ale-slate); }
.alenda-prog-step.pending .alenda-prog-label { color: var(--ale-slate); }
.alenda-prog-label { white-space: nowrap; }

.alenda-prog-line {
  width: 48px;
  height: 2px;
  background: var(--ale-line);
  margin: 0 8px;
  flex-shrink: 0;
  transition: background .3s;
}
.alenda-prog-line.done { background: var(--ale-success); }

@media (max-width: 480px) {
  .alenda-prog-label { display: none; }
  .alenda-prog-line { width: 24px; margin: 0 4px; }
}

/* ═══════════════════════════════════════════════════════════════
   PVN TOGGLE — galvenē
   ═══════════════════════════════════════════════════════════════ */

.alenda-pvn-toggle {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--ale-line);
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
}
.alenda-pvn-toggle button {
  padding: 4px 11px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--ale-slate);
  font-family: inherit;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.6;
  transition: background .15s, color .15s;
}
.alenda-pvn-toggle button.active {
  background: var(--ale-blue);
  color: var(--ale-white);
  border-radius: 18px;
}

/* ═══════════════════════════════════════════════════════════════
   GROZA LAPA — izkārtojums
   ═══════════════════════════════════════════════════════════════ */

body.woocommerce-cart .woocommerce {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 96px;
}

/* 2 kolonnas: preces (flex:1) + kopsavilkums (360px) */
.woocommerce-cart-form-wrapper {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .woocommerce-cart-form-wrapper { grid-template-columns: 1fr; }
  body.woocommerce-cart .woocommerce { padding-bottom: 96px; }
}
@media (max-width: 640px) {
  body.woocommerce-cart .woocommerce { padding: 16px 16px 96px; }
}

/* ── Groza virsraksts ── */
.alenda-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.alenda-cart-header h1 {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--ale-ink);
  margin: 0;
}
.alenda-cart-count {
  font-size: .875rem;
  color: var(--ale-slate);
  margin-left: 6px;
}

/* ── Preces grozā ── */
.alenda-cart-item {
  background: var(--ale-white);
  border: 1.5px solid var(--ale-line);
  border-radius: var(--ale-radius-md);
  padding: 16px;
  margin-bottom: 10px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color .15s;
}
.alenda-cart-item:hover { border-color: #ccd6e0; }

.alenda-ci-img {
  width: 88px; height: 88px;
  flex-shrink: 0;
  background: var(--ale-mist);
  border-radius: var(--ale-radius-sm);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.alenda-ci-img img { width: 85%; height: 85%; object-fit: contain; }

.alenda-ci-body { flex: 1; min-width: 0; }
.alenda-ci-name {
  font-size: .9375rem; font-weight: 700;
  color: var(--ale-ink); line-height: 1.3;
  margin-bottom: 4px;
}
.alenda-ci-meta { font-size: .75rem; color: var(--ale-slate); margin-bottom: 10px; }

.alenda-ci-chip {
  display: inline-block;
  font-size: .6875rem; font-weight: 600;
  padding: 2px 8px;
  background: var(--ale-mist); border: 1px solid var(--ale-line);
  border-radius: 5px; color: var(--ale-slate);
  margin: 0 4px 4px 0;
}

.alenda-ci-bottom {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px; flex-wrap: wrap;
}

/* Daudzuma stepper */
.alenda-ci-qty {
  display: flex; align-items: center;
  border: 1.5px solid var(--ale-line);
  border-radius: var(--ale-radius-sm);
  overflow: hidden;
}
.alenda-ci-qty button {
  width: 30px; height: 30px; border: none;
  background: var(--ale-white); color: var(--ale-ink);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.alenda-ci-qty button:hover { background: var(--ale-mist); }
.alenda-ci-qty input {
  width: 40px; height: 30px; border: none;
  border-left: 1px solid var(--ale-line);
  border-right: 1px solid var(--ale-line);
  text-align: center; font-family: inherit;
  font-size: .875rem; font-weight: 700;
  color: var(--ale-ink); outline: none;
}

/* Cenas */
.alenda-ci-price { text-align: right; flex-shrink: 0; }
.alenda-ci-price-pvn { font-size: 1rem; font-weight: 800; color: var(--ale-ink); }
.alenda-ci-price-bez { font-size: .75rem; color: var(--ale-slate); }

/* Dzēšanas poga */
.alenda-ci-delete {
  width: 28px; height: 28px;
  border: 1px solid var(--ale-line);
  border-radius: 6px; background: var(--ale-white);
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; color: var(--ale-slate);
  font-size: .875rem; flex-shrink: 0;
  transition: border-color .15s, color .15s;
}
.alenda-ci-delete:hover { border-color: var(--ale-error); color: var(--ale-error); }

@media (max-width: 480px) {
  .alenda-cart-item { padding: 12px; gap: 12px; }
  .alenda-ci-img { width: 72px; height: 72px; }
  .alenda-ci-name { font-size: .875rem; }
}

/* ── Piegādes paziņojums ── */
.alenda-delivery-notice {
  background: var(--ale-teal-tint);
  border: 1.5px solid #b2e8e2;
  border-radius: var(--ale-radius-md);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: .8125rem; color: var(--ale-ink);
  margin-bottom: 10px;
}
.alenda-delivery-notice .dn-icon { color: var(--ale-teal); font-size: 1.1rem; flex-shrink: 0; }
.alenda-delivery-notice strong { color: var(--ale-teal); }

/* ═══════════════════════════════════════════════════════════════
   KOPSAVILKUMA KOLONNA
   ═══════════════════════════════════════════════════════════════ */

.alenda-cart-summary {
  background: var(--ale-white);
  border: 1.5px solid var(--ale-line);
  border-radius: var(--ale-radius-lg);
  padding: 24px;
  position: sticky;
  top: 80px;
}
.alenda-summary-title {
  font-size: 1rem; font-weight: 700;
  color: var(--ale-ink); margin-bottom: 20px;
}
.alenda-sum-rows {
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px;
}
.alenda-sum-row {
  display: flex; justify-content: space-between;
  align-items: center; font-size: .875rem;
}
.alenda-sum-label { color: var(--ale-slate); }
.alenda-sum-val   { font-weight: 600; color: var(--ale-ink); }
.alenda-sum-val.green { color: var(--ale-success); }
.alenda-sum-divider { height: 1px; background: var(--ale-line); margin: 6px 0; }

.alenda-sum-total-row {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 6px;
}
.alenda-sum-total-label { font-size: .875rem; font-weight: 700; color: var(--ale-ink); }
.alenda-sum-total-val   { font-size: 1.5rem; font-weight: 800; color: var(--ale-ink); }
.alenda-sum-total-sub   {
  text-align: right; font-size: .75rem;
  color: var(--ale-slate); margin-bottom: 20px;
}

/* ── Promo koda lauks ── */
.alenda-promo-section { margin-bottom: 20px; }
.alenda-promo-label {
  font-size: .75rem; font-weight: 700; color: var(--ale-slate);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px;
  display: block;
}
.alenda-promo-row { display: flex; gap: 8px; }
.alenda-promo-input {
  flex: 1; height: 38px; padding: 0 12px;
  border: 1.5px solid var(--ale-line);
  border-radius: var(--ale-radius-sm);
  font-family: inherit; font-size: .8125rem;
  color: var(--ale-ink); outline: none;
  transition: border-color .15s;
}
.alenda-promo-input:focus { border-color: var(--ale-blue); }
.alenda-promo-input::placeholder { color: var(--ale-slate); opacity: .6; }
.alenda-btn-promo {
  height: 38px; padding: 0 14px;
  background: var(--ale-mist); border: 1.5px solid var(--ale-line);
  border-radius: var(--ale-radius-sm); font-family: inherit;
  font-size: .8125rem; font-weight: 700; color: var(--ale-ink);
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.alenda-btn-promo:hover { background: var(--ale-line); }

/* ── Piegādes izvēle ── */
.alenda-delivery-section { margin-bottom: 20px; }
.alenda-delivery-label {
  font-size: .75rem; font-weight: 700; color: var(--ale-slate);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 10px; display: block;
}
.alenda-delivery-opt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--ale-line);
  border-radius: var(--ale-radius-sm);
  margin-bottom: 6px; cursor: pointer;
  transition: border-color .15s;
}
.alenda-delivery-opt.active {
  border-color: var(--ale-blue);
  background: var(--ale-blue-tint);
}
.alenda-delivery-opt input[type="radio"] {
  margin-top: 2px; accent-color: var(--ale-blue); flex-shrink: 0;
}
.alenda-do-body { flex: 1; }
.alenda-do-name { font-size: .8125rem; font-weight: 700; color: var(--ale-ink); }
.alenda-do-desc { font-size: .75rem; color: var(--ale-slate); margin-top: 1px; }
.alenda-do-price {
  font-size: .8125rem; font-weight: 700; color: var(--ale-ink);
  white-space: nowrap; flex-shrink: 0;
}
.alenda-do-price.free { color: var(--ale-success); }

/* ── Checkout pogas ── */
.alenda-btn-checkout {
  width: 100%; height: 52px;
  background: var(--ale-blue); color: #fff;
  border: none; border-radius: var(--ale-radius-md);
  cursor: pointer; font-family: inherit;
  font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, transform .1s;
  margin-bottom: 10px;
  text-decoration: none;
}
.alenda-btn-checkout:hover {
  background: var(--ale-blue-dark);
  transform: translateY(-1px);
  color: #fff;
}

.alenda-btn-checkout-b2b {
  width: 100%; height: 44px;
  background: var(--ale-white); color: var(--ale-blue);
  border: 1.5px solid var(--ale-blue);
  border-radius: var(--ale-radius-md); cursor: pointer;
  font-family: inherit; font-size: .875rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s; margin-bottom: 16px;
  text-decoration: none;
}
.alenda-btn-checkout-b2b:hover { background: var(--ale-blue-tint); }

.alenda-secure-note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: .75rem; color: var(--ale-slate);
}
.alenda-secure-note i { color: var(--ale-success); }

/* ═══════════════════════════════════════════════════════════════
   MOBILĀ STICKY KOPSUMMA
   ═══════════════════════════════════════════════════════════════ */

.alenda-mobile-sticky {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--ale-white);
  border-top: 1px solid var(--ale-line);
  padding: 12px 16px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.1);
}
.alenda-mcs-inner { display: flex; align-items: center; gap: 12px; }
.alenda-mcs-price { flex: 1; }
.alenda-mcs-pvn  { font-size: 1.125rem; font-weight: 800; color: var(--ale-ink); }
.alenda-mcs-bez  { font-size: .75rem; color: var(--ale-slate); }
.alenda-btn-mcs  {
  flex: 1; height: 48px;
  background: var(--ale-blue); color: #fff;
  border: none; border-radius: var(--ale-radius-md);
  font-family: inherit; font-size: .9375rem; font-weight: 700;
  cursor: pointer; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
}
.alenda-btn-mcs:hover { background: var(--ale-blue-dark); color: #fff; }

@media (max-width: 900px) {
  .alenda-mobile-sticky { display: block; }
}

/* ═══════════════════════════════════════════════════════════════
   ALE-* GROZA LAPA IZKĀRTOJUMS (cart.php v2 override)
   ═══════════════════════════════════════════════════════════════ */

/* Resetē WC noklusēto cart stilu */
.woocommerce-page .woocommerce table.cart { display: none !important; }
.woocommerce-page table.shop_table { border: none; width: 100%; }

/* ── Groza lapa galvenais wrapper ── */
.woocommerce-cart .woocommerce { width: 100%; max-width: 1280px; margin: 0 auto; padding: 28px 24px 80px; }
@media (max-width: 640px) { .woocommerce-cart .woocommerce { padding: 20px 16px 96px; } }

.ale-cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) { .ale-cart-layout { grid-template-columns: 1fr; } }

/* ── Cart galvene ── */
.ale-cart-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.ale-cart-title { font-size: 1.375rem; font-weight: 800; color: var(--ale-ink); }
.ale-item-count { font-size: .875rem; color: var(--ale-slate); margin-top: 2px; display: block; }
.ale-clear-cart {
  font-size: .8125rem; font-weight: 600; color: var(--ale-slate);
  background: none; border: none; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.ale-clear-cart:hover { color: var(--ale-error); }

/* ── Prece grozā ── */
.ale-cart-item {
  background: var(--ale-white);
  border: 1.5px solid var(--ale-line);
  border-radius: var(--ale-radius-md);
  padding: 16px;
  margin-bottom: 10px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color .15s;
}
.ale-cart-item:hover { border-color: #ccd6e0; }

.ci-img-wrap {
  width: 88px; height: 88px; flex-shrink: 0;
  background: var(--ale-mist); border-radius: var(--ale-radius-sm);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-decoration: none;
}
.ci-img-wrap img,
.ci-img-tag { width: 100%; height: 100%; object-fit: contain; }

.ci-body { flex: 1; min-width: 0; }
.ci-name-link { text-decoration: none; display: block; }
.ci-name {
  font-size: .9375rem; font-weight: 700; color: var(--ale-ink);
  line-height: 1.3; margin-bottom: 6px;
}
.ci-name-link:hover .ci-name { color: var(--ale-blue); }

/* Variācijas chips */
.ci-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ci-chip {
  font-size: .6875rem; font-weight: 600; padding: 2px 8px;
  background: var(--ale-mist); border: 1px solid var(--ale-line);
  border-radius: 5px; color: var(--ale-slate);
}

/* Apakšrinda: daudzums + cena + dzēst */
.ci-bottom {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px; flex-wrap: wrap;
}

/* Daudzums */
.ci-qty-wrap {
  display: flex; align-items: center;
  border: 1.5px solid var(--ale-line);
  border-radius: var(--ale-radius-sm);
  overflow: hidden;
}
.ci-qty-btn {
  width: 32px; height: 32px;
  border: none; background: var(--ale-white);
  color: var(--ale-ink); font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background .15s;
  flex-shrink: 0;
}
.ci-qty-btn:hover { background: var(--ale-mist); }
.ci-qty-input {
  width: 38px; height: 32px;
  border: none; border-left: 1px solid var(--ale-line);
  border-right: 1px solid var(--ale-line);
  text-align: center; font-family: inherit;
  font-size: .875rem; font-weight: 700; color: var(--ale-ink);
  outline: none;
  -moz-appearance: textfield;
}
.ci-qty-input::-webkit-inner-spin-button,
.ci-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Cena + dzēšana */
.ci-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ci-price { text-align: right; }
.ci-price-ar  { font-size: 1rem; font-weight: 800; color: var(--ale-ink); }
.ci-price-bez { font-size: .75rem; color: var(--ale-slate); }
.ci-price-unit { font-size: .7rem; color: var(--ale-slate); }

.ci-delete {
  width: 30px; height: 30px;
  border: 1.5px solid var(--ale-line);
  border-radius: var(--ale-radius-sm);
  background: var(--ale-white);
  display: flex; align-items: center; justify-content: center;
  color: var(--ale-slate); font-size: .875rem;
  cursor: pointer; transition: border-color .15s, color .15s;
  text-decoration: none; flex-shrink: 0;
}
.ci-delete:hover { border-color: var(--ale-error); color: var(--ale-error); }

@media (max-width: 480px) {
  .ale-cart-item { padding: 12px; gap: 10px; }
  .ci-img-wrap  { width: 68px; height: 68px; }
  .ci-name { font-size: .875rem; }
}

/* ── Piegādes paziņojums ── */
.ale-delivery-notice {
  background: var(--ale-teal-tint);
  border: 1.5px solid #b2e8e2;
  border-radius: var(--ale-radius-md);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: .8125rem; color: var(--ale-ink);
  margin-top: 10px;
}
.ale-dn-icon { color: var(--ale-teal); font-size: 1.1rem; flex-shrink: 0; }
.ale-delivery-notice strong { color: var(--ale-teal); }

/* ── Kopsavilkuma kolonna ── */
.ale-cart-summary {
  background: var(--ale-white);
  border: 1.5px solid var(--ale-line);
  border-radius: var(--ale-radius-lg);
  padding: 24px;
  position: sticky;
  top: 88px;
}

/* Galvene + PVN toggle */
.ale-summary-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 20px; gap: 8px;
}
.ale-summary-title { font-size: 1rem; font-weight: 700; color: var(--ale-ink); }

.ale-pvn-toggle {
  display: flex; align-items: center;
  border: 1.5px solid var(--ale-line);
  border-radius: 20px; overflow: hidden; flex-shrink: 0;
}
.ale-pvn-btn {
  padding: 4px 10px; border: none; cursor: pointer;
  background: transparent; color: var(--ale-slate);
  font-family: inherit; font-size: .75rem; font-weight: 600;
  transition: background .15s, color .15s;
}
.ale-pvn-btn.active { background: var(--ale-blue); color: #fff; }

/* Rindas */
.ale-sum-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.ale-sum-row  { display: flex; justify-content: space-between; align-items: center; font-size: .875rem; }
.ale-sum-label { color: var(--ale-slate); }
.ale-sum-val   { font-weight: 600; color: var(--ale-ink); }
.ale-free-shipping { color: var(--ale-success); display: flex; align-items: center; gap: 4px; font-weight: 600; }
.ale-sum-divider { height: 1px; background: var(--ale-line); margin: 6px 0; }

.ale-sum-total-row {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 4px;
}
.ale-sum-total-label { font-size: .875rem; font-weight: 700; color: var(--ale-ink); }
.ale-sum-total-val   { font-size: 1.5rem; font-weight: 800; color: var(--ale-ink); }
.ale-sum-total-sub   {
  text-align: right; font-size: .75rem;
  color: var(--ale-slate); margin-bottom: 20px;
}

/* Promo kods */
.ale-promo-section { margin-bottom: 20px; }
.ale-promo-label {
  font-size: .75rem; font-weight: 700; color: var(--ale-slate);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 8px; display: block;
}
.ale-promo-row { display: flex; gap: 8px; }
.ale-promo-input {
  flex: 1; height: 38px; padding: 0 12px;
  border: 1.5px solid var(--ale-line);
  border-radius: var(--ale-radius-sm);
  font-family: inherit; font-size: .8125rem;
  color: var(--ale-ink); outline: none;
  transition: border-color .15s;
}
.ale-promo-input:focus { border-color: var(--ale-blue); }
.ale-promo-input::placeholder { color: var(--ale-slate); opacity: .6; }
.ale-btn-promo {
  height: 38px; padding: 0 14px;
  background: var(--ale-mist); border: 1.5px solid var(--ale-line);
  border-radius: var(--ale-radius-sm); font-family: inherit;
  font-size: .8125rem; font-weight: 700; color: var(--ale-ink);
  cursor: pointer; white-space: nowrap;
  transition: background .15s;
}
.ale-btn-promo:hover { background: var(--ale-line); }

/* Piegādes izvēle */
.ale-delivery-section { margin-bottom: 20px; }
.ale-delivery-label {
  font-size: .75rem; font-weight: 700; color: var(--ale-slate);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 10px; display: block;
}
.ale-delivery-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--ale-line);
  border-radius: var(--ale-radius-sm);
  margin-bottom: 6px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.ale-delivery-opt.active {
  border-color: var(--ale-blue);
  background: var(--ale-blue-tint);
}
.ale-delivery-opt input[type="radio"] { accent-color: var(--ale-blue); flex-shrink: 0; }
.ale-do-icon { font-size: 1.1rem; color: var(--ale-slate); flex-shrink: 0; }
.ale-delivery-opt.active .ale-do-icon { color: var(--ale-blue); }
.ale-do-body { flex: 1; }
.ale-do-name { font-size: .8125rem; font-weight: 700; color: var(--ale-ink); }
.ale-do-desc { font-size: .75rem; color: var(--ale-slate); margin-top: 1px; }
.ale-do-price { font-size: .8125rem; font-weight: 700; color: var(--ale-ink); white-space: nowrap; }
.ale-do-price.ale-free { color: var(--ale-success); }

/* Checkout pogas */
.ale-btn-checkout {
  width: 100%; height: 52px;
  background: var(--ale-blue); color: #fff;
  border: none; border-radius: var(--ale-radius-md);
  font-family: inherit; font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, transform .1s;
  margin-bottom: 10px; text-decoration: none; cursor: pointer;
}
.ale-btn-checkout:hover { background: var(--ale-blue-dark); transform: translateY(-1px); color: #fff; }

.ale-btn-checkout-b2b {
  width: 100%; height: 44px;
  background: var(--ale-white); color: var(--ale-blue);
  border: 1.5px solid var(--ale-blue);
  border-radius: var(--ale-radius-md);
  font-family: inherit; font-size: .875rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s; margin-bottom: 16px; text-decoration: none;
}
.ale-btn-checkout-b2b:hover { background: var(--ale-blue-tint); color: var(--ale-blue); }

.ale-secure-note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: .75rem; color: var(--ale-slate);
}
.ale-secure-note .ti { color: var(--ale-success); }

/* PVN show/hide klases */
.ale-show-ar { display: initial; }
.ale-show-bez { display: none; }
body.pvn-bez .ale-show-ar { display: none; }
body.pvn-bez .ale-show-bez { display: initial; }

/* ── Mobilā sticky josla ── */
.ale-mobile-sticky {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--ale-white);
  border-top: 1px solid var(--ale-line);
  padding: 12px 16px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.1);
}
.ale-mcs-inner { display: flex; align-items: center; gap: 12px; }
.ale-mcs-price { flex: 1; }
.ale-mcs-total { font-size: 1.125rem; font-weight: 800; color: var(--ale-ink); }
.ale-mcs-sub   { font-size: .75rem; color: var(--ale-slate); }
.ale-btn-mcs {
  flex: 1; height: 48px;
  background: var(--ale-blue); color: #fff;
  border: none; border-radius: var(--ale-radius-md);
  font-family: inherit; font-size: .9375rem; font-weight: 700;
  cursor: pointer; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
}
.ale-btn-mcs:hover { background: var(--ale-blue-dark); color: #fff; }
@media (max-width: 900px) {
  .ale-mobile-sticky { display: block; }
  .woocommerce-cart .woocommerce { padding-bottom: 96px; }
}

/* ── Tukšs grozs ── */
.ale-empty-cart {
  text-align: center; padding: 60px 24px;
}
.ale-empty-icon { font-size: 3.5rem; color: var(--ale-slate); margin-bottom: 16px; }
.ale-empty-cart h2 { font-size: 1.375rem; font-weight: 700; margin-bottom: 10px; color: var(--ale-ink); }
.ale-empty-cart p  { color: var(--ale-slate); margin-bottom: 24px; }
.ale-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 24px;
  background: var(--ale-blue); color: #fff;
  border-radius: var(--ale-radius-md); font-weight: 700;
  text-decoration: none; font-family: inherit; font-size: .9375rem;
}
.ale-btn-primary:hover { background: var(--ale-blue-dark); color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   BLOCK D — WC BLOCKS CHECKOUT STILI (Alenda brends)
   .wc-block-checkout, .wc-block-components-*
   ═══════════════════════════════════════════════════════════════ */

/* Checkout lapa izkārtojums */
.woocommerce-checkout .woocommerce,
body.woocommerce-checkout .wc-block-checkout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  font-family: 'Manrope', sans-serif;
}

/* 2 kolonnas: forma (1fr) + kopsavilkums (380px) */
.wc-block-checkout .wc-block-checkout__inner-wrapper {
  gap: 32px;
}
@media (min-width: 960px) {
  .wc-block-checkout .wc-block-checkout__main { flex: 1; }
  .wc-block-checkout .wc-block-checkout__sidebar { width: 380px; flex-shrink: 0; }
}

/* ── Sekciju virsraksti ── */
.wc-block-checkout h2,
.wc-block-checkout .wc-block-components-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ale-ink);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ale-line);
}

/* ── Ievades lauki ── */
.wc-block-components-text-input input,
.wc-block-components-select select,
.wc-block-components-country-input input,
.wc-block-checkout input[type="text"],
.wc-block-checkout input[type="email"],
.wc-block-checkout input[type="tel"] {
  height: 48px;
  border: 1.5px solid var(--ale-line) !important;
  border-radius: var(--ale-radius-sm) !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: .9375rem !important;
  color: var(--ale-ink) !important;
  padding: 0 14px !important;
  background: var(--ale-white) !important;
  transition: border-color .15s !important;
  outline: none !important;
  box-shadow: none !important;
}
.wc-block-components-text-input input:focus,
.wc-block-checkout input[type="text"]:focus,
.wc-block-checkout input[type="email"]:focus,
.wc-block-checkout input[type="tel"]:focus {
  border-color: var(--ale-blue) !important;
  box-shadow: 0 0 0 3px rgba(20,87,166,.1) !important;
}

/* Floating label korekcija */
.wc-block-components-text-input.is-active label,
.wc-block-components-text-input label {
  font-family: 'Manrope', sans-serif;
  font-size: .8125rem;
  color: var(--ale-slate);
}

/* Select */
.wc-block-components-select .components-combobox-control__suggestions-container,
.wc-block-components-select select {
  border: 1.5px solid var(--ale-line) !important;
  border-radius: var(--ale-radius-sm) !important;
}

/* ── Piegādes opcijas (WC Blocks) ── */
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__option,
.wc-block-components-shipping-rates-control__package .wc-block-components-radio-control__option {
  border: 1.5px solid var(--ale-line);
  border-radius: var(--ale-radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
  transition: border-color .15s, background .15s;
  background: var(--ale-white);
}
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__option:hover {
  border-color: #ccd6e0;
}
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__option.is-selected,
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__option input:checked + * {
  border-color: var(--ale-blue);
  background: var(--ale-blue-tint);
}

/* Radio ikona */
.wc-block-components-radio-control__input {
  accent-color: var(--ale-blue);
  width: 18px;
  height: 18px;
}

/* Piegādes opcijas teksts */
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__label {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--ale-ink);
  font-family: 'Manrope', sans-serif;
}
.wc-block-components-shipping-rates-control .wc-block-components-shipping-rates-control__package-items {
  gap: 0;
}

/* Piegādes cena */
.wc-block-components-radio-control__description,
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__option .wc-block-components-formatted-money-amount {
  font-weight: 700;
  color: var(--ale-ink);
  font-size: .9375rem;
}

/* ── Checkout poga ── */
.wc-block-components-checkout-place-order-button,
.wc-block-checkout .wc-block-checkout__actions .wc-block-components-checkout-place-order-button {
  background: var(--ale-blue) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--ale-radius-md) !important;
  height: 52px !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: background .15s !important;
}
.wc-block-components-checkout-place-order-button:hover {
  background: var(--ale-blue-dark) !important;
}

/* ── Kopsavilkuma panelis (sidebar) ── */
.wc-block-checkout .wc-block-checkout__sidebar {
  background: var(--ale-white);
  border: 1.5px solid var(--ale-line);
  border-radius: var(--ale-radius-lg);
  padding: 24px;
}
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary {
  border: none;
  padding: 0;
  background: transparent;
}
.wc-block-components-order-summary__toggle {
  font-weight: 700;
  color: var(--ale-ink);
}

/* Totālu rindas */
.wc-block-components-totals-item {
  font-size: .875rem;
  color: var(--ale-ink);
  padding: 8px 0;
  border-bottom: 1px solid var(--ale-line);
}
.wc-block-components-totals-item:last-child { border-bottom: none; }
.wc-block-components-totals-item__label { color: var(--ale-slate); }
.wc-block-components-totals-item__value { font-weight: 700; }

/* Kopsumma */
.wc-block-components-totals-footer-item {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ale-ink);
}

/* ── Checkbox stils ── */
.wc-block-checkout input[type="checkbox"] {
  accent-color: var(--ale-blue);
  width: 18px;
  height: 18px;
}

/* ── Kļūdas paziņojums ── */
.wc-block-components-notice-banner.is-error {
  border-left: 4px solid var(--ale-error);
  background: #fff5f5;
  border-radius: var(--ale-radius-sm);
  font-size: .875rem;
}

/* ── Responsīvs ── */
@media (max-width: 900px) {
  .woocommerce-checkout .woocommerce,
  body.woocommerce-checkout .wc-block-checkout {
    padding: 20px 16px 48px;
  }
  .wc-block-checkout .wc-block-checkout__sidebar {
    border: none;
    padding: 0;
    background: transparent;
  }
}
