/*
 * lfabra-checkout.css — точно за макетом
 */

/* ═══════════════════════════════════════════
   1. ТОКЕНИ
   ═══════════════════════════════════════════ */
:root {
  --lf-bg:            #f0f0f0;
  --lf-surface:       #ffffff;
  --lf-border:        #e8e8e8;
  --lf-border-input:  #e0e0e0;

  --lf-text:          #1a1a1a;
  --lf-text-sec:      #6b6b6b;
  --lf-text-muted:    #aaaaaa;

  --lf-accent:        #f07800;
  --lf-accent-h:      #d66a00;
  --lf-accent-light:  #fff3e0;
  --lf-accent-shadow: rgba(240,120,0,0.28);

  --lf-error:         #e53935;
  --lf-notice-bg:     #fdeee0;
  --lf-notice-text:   #bf5000;

  --lf-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  /* Макет: великі заокруглення */
  --lf-r-input:  10px;
  --lf-r-card:   16px;
  --lf-r-pill:   999px;

  --lf-shadow:   0 2px 16px rgba(0,0,0,0.06);
  --lf-focus:    0 0 0 3px rgba(240,120,0,0.18);

  --lf-t: 160ms ease;

  /* Макет: майже повна ширина */
  --lf-max-w: 1200px;
}

/* ═══════════════════════════════════════════
   2. BASE / RESET
   ═══════════════════════════════════════════ */
#lf-checkout,
#checkout-checkout {
  background: var(--lf-bg);
  font-family: var(--lf-font);
  color: var(--lf-text);
  min-height: 70vh;
  padding-bottom: 60px;
}

/* Ховаємо Bootstrap breadcrumb і container padding */
#checkout-checkout .breadcrumb { display: none !important; }
#checkout-checkout > .container {
  max-width: 1200px !important;
  padding: 0 16px !important;
}

/* ═══════════════════════════════════════════
   3. WRAPPER
   ═══════════════════════════════════════════ */
.lf-page-bg { background: var(--lf-bg); }

.lf-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

/* ═══════════════════════════════════════════
   4. BREADCRUMB
   ═══════════════════════════════════════════ */
.lf-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 0 14px;
  font-size: 13px;
  color: var(--lf-text-sec);
}
.lf-breadcrumb__link { color: var(--lf-text-sec); transition: color var(--lf-t); }
.lf-breadcrumb__link:hover { color: var(--lf-accent); text-decoration: none; }
.lf-breadcrumb__sep  { color: var(--lf-text-muted); }
.lf-breadcrumb__current { color: var(--lf-text); font-weight: 500; }

/* ═══════════════════════════════════════════
   5. ALERTS
   ═══════════════════════════════════════════ */
.lf-alert {
  padding: 12px 16px;
  border-radius: var(--lf-r-input);
  font-size: 14px;
  margin-bottom: 16px;
}
.lf-alert--info    { background: #e8f4fd; color: #1565c0; border: 1px solid #b3d4fb; }
.lf-alert--success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.lf-alert--danger  { background: #fdecea; color: #b71c1c; border: 1px solid #ef9a9a; }

/* ═══════════════════════════════════════════
   6. CART ITEMS — як в макеті: білі картки
   ═══════════════════════════════════════════ */
.lf-cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.lf-cart-item {
  background: var(--lf-surface);
  border-radius: var(--lf-r-card);
  box-shadow: var(--lf-shadow);
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto auto auto;
  align-items: center;
  gap: 16px;
}

/* Image */
.lf-cart-item__image { width: 80px; height: 64px; flex-shrink: 0; }
.lf-cart-item__image a, .lf-cart-item__image img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }

/* Info */
.lf-cart-item__info { min-width: 0; }
.lf-cart-item__name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--lf-text);
  line-height: 1.35;
  margin-bottom: 3px;
  text-decoration: none;
}
.lf-cart-item__name:hover { color: var(--lf-accent); }
.lf-cart-item__model { font-size: 12px; color: var(--lf-text-muted); margin: 0; }
.lf-cart-item__option { font-size: 12px; color: var(--lf-text-sec); margin-top: 2px; }
.lf-cart-item__option span { color: var(--lf-text); }

/* Qty — як в макеті: великі заокруглення, сірий бордер */
.lf-cart-item__qty {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--lf-border-input);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--lf-surface);
  height: 40px;
}
.lf-qty-btn {
  width: 38px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 18px;
  font-weight: 300;
  color: var(--lf-text-sec) !important;
  cursor: pointer;
  transition: color var(--lf-t);
  user-select: none;
  padding: 0 !important;
  line-height: 1;
  outline: none !important;
}
.lf-qty-btn:hover { color: var(--lf-accent) !important; background: transparent !important; }
.lf-qty-value {
  min-width: 38px; height: 40px;
  text-align: center;
  border: none !important;
  border-left: 1.5px solid var(--lf-border-input) !important;
  border-right: 1.5px solid var(--lf-border-input) !important;
  border-radius: 0 !important;
  font-size: 15px;
  font-weight: 600;
  color: var(--lf-text);
  background: transparent;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 10px;
  line-height: 40px;
  display: inline-block;
}

/* Prices */
.lf-cart-item__price-unit {
  font-size: 13px;
  color: var(--lf-text-sec);
  white-space: nowrap;
  flex-shrink: 0;
}
.lf-tax-price {
  display: block;
  white-space: nowrap;
}
.lf-tax-price + .lf-tax-price { margin-top: 3px; }
.lf-tax-price small {
  display: inline-block;
  min-width: 58px;
  margin-right: 5px;
  color: var(--lf-text-muted);
  font-size: 10px;
  font-weight: 400;
}
.lf-tax-price--included { color: var(--lf-text); font-weight: 700; }
.lf-tax-price--excluded { color: var(--lf-text-sec); font-size: 13px; font-weight: 400; }
.lf-cart-item__price-total {
  font-size: 18px;
  font-weight: 700;
  color: var(--lf-text);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 56px;
  text-align: right;
}

/* Remove */
.lf-cart-item__remove {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--lf-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: color var(--lf-t), background var(--lf-t);
}
.lf-cart-item__remove:hover { color: var(--lf-error); background: #fef2f2; }

/* Empty cart */
.lf-empty-cart { padding: 24px; text-align: center; color: var(--lf-text-muted); font-size: 14px; }

/* ═══════════════════════════════════════════
   7. CHECKOUT BOTTOM LAYOUT
   ═══════════════════════════════════════════ */
.lf-checkout-bottom {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items: start;
  margin-top: 0;
}

/* ═══════════════════════════════════════════
   8. FORM SECTION
   ═══════════════════════════════════════════ */
.lf-checkout-form-section {
  background: var(--lf-surface);
  border-radius: var(--lf-r-card);
  box-shadow: var(--lf-shadow);
  padding: 24px 28px 32px;
}

.lf-form-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.lf-form-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--lf-text);
}
.lf-form-login-hint { font-size: 13px; color: var(--lf-text-sec); }
.lf-form-login-link {
  color: var(--lf-accent);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--lf-t);
}
.lf-form-login-link:hover { color: var(--lf-accent-h); text-decoration: underline; }

/* ── Mode switcher ── */
.lf-checkout-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.lf-mode-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--lf-border);
  border-radius: var(--lf-r-card);
  cursor: pointer;
  transition: border-color var(--lf-t), background var(--lf-t);
  user-select: none;
}
.lf-mode-option input[type="radio"] { display: none; }
.lf-mode-option:hover { border-color: var(--lf-accent); background: var(--lf-accent-light); }
.lf-mode-option--active {
  border-color: var(--lf-accent) !important;
  background: var(--lf-accent-light) !important;
}
.lf-mode-option__icon { font-size: 16px; color: var(--lf-accent); flex-shrink: 0; width: 20px; text-align: center; }
.lf-mode-option__text { display: flex; flex-direction: column; gap: 2px; }
.lf-mode-option__text strong { font-size: 14px; font-weight: 600; color: var(--lf-text); }
.lf-mode-option__text small  { font-size: 12px; color: var(--lf-text-muted); line-height: 1.3; }

/* ── Customer type radio ── */
.lf-customer-type {
  display: flex;
  gap: 28px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.lf-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  color: var(--lf-text-sec);
  user-select: none;
}
.lf-radio-label input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.lf-radio-custom {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--lf-border-input);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--lf-t);
  position: relative;
}
.lf-radio-custom::after {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--lf-accent);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity var(--lf-t), transform var(--lf-t);
}
.lf-radio-label input:checked ~ .lf-radio-custom { border-color: var(--lf-accent); }
.lf-radio-label input:checked ~ .lf-radio-custom::after { opacity: 1; transform: scale(1); }
.lf-radio-label--active, .lf-radio-label:has(input:checked) { color: var(--lf-text); font-weight: 500; }

/* ── Form grid ── */
.lf-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.lf-form-row--full { grid-template-columns: 1fr; }
.lf-form-group { display: flex; flex-direction: column; gap: 6px; }
.lf-form-group--full { grid-column: 1 / -1; }

/* ── Labels ── */
.lf-form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--lf-text-sec);
  display: block;
}

/* ── Inputs — великі заокруглення як в макеті ── */
.lf-form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--lf-border-input);
  border-radius: var(--lf-r-input);
  font-family: var(--lf-font);
  font-size: 15px;
  color: var(--lf-text);
  background: var(--lf-surface);
  box-shadow: none;
  transition: border-color var(--lf-t), box-shadow var(--lf-t);
  -webkit-appearance: none;
}
.lf-form-input::placeholder { color: var(--lf-text-muted); }
.lf-form-input:focus {
  border-color: var(--lf-accent);
  box-shadow: var(--lf-focus);
  outline: none;
}
.lf-form-textarea { height: auto; padding: 12px 16px; resize: vertical; }

/* ── Selects ── */
.lf-select-wrapper { position: relative; }
.lf-select-wrapper::after {
  content: '';
  pointer-events: none;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--lf-text-muted);
}
.lf-form-select {
  width: 100%;
  height: 48px;
  padding: 0 40px 0 16px;
  border: 1.5px solid var(--lf-border-input);
  border-radius: var(--lf-r-input);
  font-family: var(--lf-font);
  font-size: 15px;
  color: var(--lf-text-muted);
  background: var(--lf-surface);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-shadow: none;
  transition: border-color var(--lf-t), box-shadow var(--lf-t);
}
.lf-form-select:focus {
  border-color: var(--lf-accent);
  box-shadow: var(--lf-focus);
  outline: none;
  color: var(--lf-text);
}
.lf-form-select.has-value { color: var(--lf-text); }

/* ── Error ── */
.lf-form-error { display: block; font-size: 12px; color: var(--lf-error); margin-top: 2px; min-height: 16px; }
.lf-input--error { border-color: var(--lf-error) !important; box-shadow: 0 0 0 3px rgba(229,57,53,.12) !important; }

/* ── Company fields ── */
#lf-company-fields { margin-bottom: 4px; }
.lf-company-notice {
  display: flex; align-items: center; gap: 10px;
  background: #fff8e1; border: 1.5px solid #ffe082;
  border-radius: var(--lf-r-input);
  padding: 10px 16px;
  font-size: 14px; font-weight: 500; color: #795548;
  margin-bottom: 16px;
}
.lf-company-notice__icon { font-size: 15px; color: #f07800; }
.lf-required { color: var(--lf-error); font-weight: 400; margin-left: 2px; }
.lf-form-group--mt { margin-top: 8px; }

/* ── Password row ── */
#lf-password-row { margin-bottom: 16px; }

/* ── Form section title ── */
.lf-form-section-title {
  font-size: 14px; font-weight: 600; color: var(--lf-text-sec);
  margin: 22px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--lf-border);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Methods (shipping / payment) ── */
.lf-method-list { display: flex; flex-direction: column; gap: 8px; }
.lf-method-group-title {
  font-size: 12px; font-weight: 600; color: var(--lf-text-muted);
  text-transform: uppercase; letter-spacing: 0.05em; margin: 14px 0 6px;
}
.lf-method-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--lf-border-input);
  border-radius: var(--lf-r-input);
  cursor: pointer;
  transition: border-color var(--lf-t), background var(--lf-t);
  user-select: none;
}
.lf-method-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.lf-method-option:hover { border-color: var(--lf-accent); background: var(--lf-accent-light); }
.lf-method-option--active { border-color: var(--lf-accent) !important; background: var(--lf-accent-light) !important; }
.lf-method-option__radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--lf-border-input); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--lf-t); position: relative;
}
.lf-method-option__radio::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--lf-accent); opacity: 0; transform: scale(0.4);
  transition: opacity var(--lf-t), transform var(--lf-t);
}
.lf-method-option--active .lf-method-option__radio { border-color: var(--lf-accent); }
.lf-method-option--active .lf-method-option__radio::after { opacity: 1; transform: scale(1); }
.lf-method-option__label { font-size: 14px; font-weight: 500; color: var(--lf-text); }
.lf-method-option__price { font-weight: 600; color: var(--lf-accent); margin-left: 8px; }
.lf-method-option__terms { font-size: 12px; color: var(--lf-text-muted); font-weight: 400; }
.lf-method__desc { font-size: 14px; color: var(--lf-text-sec); margin-bottom: 12px; }

/* ── Logged notice ── */
.lf-logged-notice {
  background: #f0fdf4; border: 1.5px solid #a5d6a7;
  border-radius: var(--lf-r-input); padding: 12px 16px;
  font-size: 14px; color: #2e7d32; margin-bottom: 20px;
}

/* ═══════════════════════════════════════════
   9. ORDER SUMMARY SIDEBAR — як в макеті
   ═══════════════════════════════════════════ */
.lf-order-summary {
  background: var(--lf-surface);
  border-radius: var(--lf-r-card);
  box-shadow: var(--lf-shadow);
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 16px;
}

/* Мінімальна сума */
.lf-order-summary__min-notice {
  background: var(--lf-notice-bg);
  color: var(--lf-notice-text);
  border-radius: var(--lf-r-input);
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 18px;
}

/* Рядки підсумку — з лінією між ними як в макеті */
.lf-order-summary__lines {
  display: flex;
  flex-direction: column;
  border-bottom: 1.5px solid var(--lf-border);
  padding-bottom: 14px;
  margin-bottom: 14px;
  gap: 0;
}
.lf-order-summary__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--lf-border);
}
.lf-order-summary__line:last-child { border-bottom: none; }
.lf-order-summary__label { font-size: 13px; color: var(--lf-text-sec); }
.lf-order-summary__value { font-size: 13px; font-weight: 500; color: var(--lf-text); }

/* Итого — великий помаранчевий */
.lf-order-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.lf-order-summary__total-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--lf-text);
}
.lf-order-summary__total-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--lf-accent);
}

/* Мета */
.lf-order-summary__meta {
  font-size: 12px;
  color: var(--lf-text-sec);
  line-height: 1.7;
  margin-bottom: 16px;
}
.lf-order-summary__meta p { margin: 0; }

/* ═══════════════════════════════════════════
   10. BUTTONS
   ═══════════════════════════════════════════ */
.lf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--lf-r-pill);
  font-family: var(--lf-font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background var(--lf-t), box-shadow var(--lf-t), transform 80ms ease;
  white-space: nowrap;
  -webkit-appearance: none;
}
.lf-btn--primary {
  background: var(--lf-accent);
  color: #fff !important;
  box-shadow: 0 4px 16px var(--lf-accent-shadow);
}
.lf-btn--primary:hover {
  background: var(--lf-accent-h);
  box-shadow: 0 6px 22px var(--lf-accent-shadow);
  color: #fff !important;
  text-decoration: none;
}
.lf-btn--primary:active { transform: translateY(1px); }
.lf-btn--ghost {
  background: var(--lf-surface);
  color: var(--lf-text-sec);
  border: 1.5px solid var(--lf-border-input);
}
.lf-btn--ghost:hover { border-color: var(--lf-accent); color: var(--lf-text); text-decoration: none; }
.lf-btn--wide { width: 100%; height: 52px; font-size: 15px; margin-bottom: 14px; }

/* Submit button in sidebar */
#lf-submit-btn {
  width: 100%;
  height: 52px;
  border-radius: var(--lf-r-pill);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* ═══════════════════════════════════════════
   11. AGREEMENT CHECKBOX
   ═══════════════════════════════════════════ */
.lf-agreement-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.lf-agreement-checkbox { position: absolute; opacity: 0; width: 0; height: 0; }
.lf-agreement-custom {
  width: 18px; height: 18px;
  border: 1.5px solid var(--lf-border-input);
  border-radius: 4px;
  flex-shrink: 0; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--lf-t), border-color var(--lf-t);
}
.lf-agreement-custom::after {
  content: ''; width: 5px; height: 9px;
  border: 2px solid #fff; border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0; transition: opacity var(--lf-t);
}
.lf-agreement-checkbox:checked ~ .lf-agreement-custom { background: var(--lf-accent); border-color: var(--lf-accent); }
.lf-agreement-checkbox:checked ~ .lf-agreement-custom::after { opacity: 1; }
.lf-agreement-text { font-size: 13px; color: var(--lf-text-sec); line-height: 1.5; }
.lf-agreement-link { color: var(--lf-accent); font-weight: 600; text-decoration: underline; }

/* ── Checkbox general ── */
.lf-checkbox-label {
  display: flex; align-items: flex-start; gap: 8px;
  cursor: pointer; font-size: 14px; color: var(--lf-text-sec); user-select: none;
}
.lf-checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.lf-checkbox-custom {
  width: 17px; height: 17px; border: 1.5px solid var(--lf-border-input);
  border-radius: 4px; flex-shrink: 0; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--lf-t), border-color var(--lf-t);
}
.lf-checkbox-custom::after {
  content: ''; width: 4px; height: 8px;
  border: 2px solid #fff; border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px); opacity: 0; transition: opacity var(--lf-t);
}
.lf-checkbox-label input:checked ~ .lf-checkbox-custom { background: var(--lf-accent); border-color: var(--lf-accent); }
.lf-checkbox-label input:checked ~ .lf-checkbox-custom::after { opacity: 1; }

/* ── intl-tel-input — телефонне поле ── */
.iti { width: 100% !important; }
.iti__selected-dial-code { font-size: 13px; color: var(--lf-text-sec); }
.iti__country-list {
  border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  border: 1.5px solid var(--lf-border); max-height: 220px;
}
.iti__country.iti__highlight { background: var(--lf-accent-light); }

/* Відступ зліва залежить від ширини прапора + коду (+371 = ~70px) */
.iti--separate-dial-code input[type="tel"] {
  padding-left: 90px !important;
}

/* ═══════════════════════════════════════════
   13. CART TOTALS (cart page)
   ═══════════════════════════════════════════ */
.lf-cart-footer {
  display: flex; justify-content: space-between;
  align-items: flex-end; flex-wrap: wrap; gap: 16px; padding: 8px 0 0;
}
.lf-cart-totals {
  background: var(--lf-surface); border-radius: var(--lf-r-card);
  box-shadow: var(--lf-shadow); padding: 20px 24px; min-width: 280px;
}
.lf-cart-total-line {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 7px 0; border-bottom: 1px solid var(--lf-border);
}
.lf-cart-total-line:last-child { border-bottom: none; }
.lf-cart-total-line--grand .lf-cart-total-line__label { font-weight: 700; font-size: 16px; }
.lf-cart-total-line--grand .lf-cart-total-line__value { font-weight: 700; font-size: 18px; color: var(--lf-accent); }
.lf-cart-total-line__label { font-size: 13px; color: var(--lf-text-sec); }
.lf-cart-total-line__value { font-size: 13px; font-weight: 500; color: var(--lf-text); }
.lf-cart-actions { display: flex; gap: 12px; align-items: center; }

/* ═══════════════════════════════════════════
   14. CONFIRM TABLE
   ═══════════════════════════════════════════ */
.lf-confirm-table-wrap { overflow-x: auto; margin-bottom: 20px; border-radius: 10px; border: 1.5px solid var(--lf-border); }
.lf-confirm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lf-confirm-table thead tr { background: #fafafa; border-bottom: 1.5px solid var(--lf-border); }
.lf-confirm-table th { padding: 12px 16px; font-size: 12px; font-weight: 600; color: var(--lf-text-muted); text-transform: uppercase; letter-spacing: 0.04em; text-align: left; }
.lf-confirm-table td { padding: 14px 16px; color: var(--lf-text); border-bottom: 1px solid var(--lf-border); vertical-align: top; }
.lf-confirm-table tbody tr:last-child td { border-bottom: none; }
.lf-confirm-table tfoot td { border-top: 1.5px solid var(--lf-border); border-bottom: none; padding: 12px 16px; }
.lf-confirm-table__right { text-align: right !important; }
.lf-confirm-table__grand td { background: #fafafa; }
.lf-confirm-table__grand .lf-confirm-table__right:last-child { font-size: 17px; font-weight: 700; color: var(--lf-accent); }

/* ═══════════════════════════════════════════
   15. RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .lf-checkout-bottom { grid-template-columns: 1fr; }
  .lf-order-summary { position: static; order: -1; }
  .lf-checkout-form-section { padding: 20px 18px; }
}

@media (max-width: 768px) {
  .lf-cart-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 14px 16px;
  }
  .lf-cart-item__image {
    grid-column: 1;
    grid-row: 1;
    width: 64px;
    height: 52px;
  }
  .lf-cart-item__info {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }
  .lf-cart-item__remove {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
  }
  .lf-cart-item__qty {
    grid-column: 1 / 3;
    grid-row: 2;
    justify-self: start;
    width: max-content;
    max-width: 100%;
  }
  /* The unit price is redundant on narrow screens and previously overlapped the counter. */
  .lf-cart-item__price-unit { display: none; }
  .lf-cart-item__price-total {
    grid-column: 3;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    align-self: center;
  }
  .lf-cart-item__price-total .lf-tax-price { width: 100%; text-align: right; }
  .lf-checkout-mode { grid-template-columns: 1fr; }
  .lf-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .lf-wrapper { padding: 0 12px 48px; }
  .lf-cart-item { padding: 12px; gap: 10px; }
  .lf-cart-item__qty, .lf-qty-btn, .lf-qty-value { height: 36px; }
  .lf-qty-btn { width: 34px; }
  .lf-qty-value {
    min-width: 36px;
    padding: 0 8px;
    line-height: 36px;
  }
  .lf-cart-item__price-total { font-size: 17px; min-width: 0; }
  .lf-form-input, .lf-form-select { height: 44px; }
  .lf-order-summary { padding: 18px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; }
}

/* ═══════════════════════════════════════════
   EMPTY CART PAGE
   ═══════════════════════════════════════════ */
.lf-empty-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: var(--lf-surface);
  border-radius: var(--lf-r-card);
  box-shadow: var(--lf-shadow);
  margin-top: 8px;
}

.lf-empty-page__icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--lf-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.lf-empty-page__icon .fa {
  font-size: 42px;
  color: var(--lf-accent);
}

.lf-empty-page__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--lf-text);
  margin-bottom: 12px;
}

.lf-empty-page__sub {
  font-size: 15px;
  color: var(--lf-text-sec);
  margin-bottom: 32px;
  max-width: 360px;
  line-height: 1.6;
}

.lf-empty-page__actions .lf-btn {
  padding: 0 36px;
  height: 52px;
  font-size: 15px;
}
