/* Nath's Cakes — Checkout page redesign */

/* ---------- Page base ---------- */
body#checkout { background: #faf5f6; font-family: 'DM Sans', Arial, sans-serif; }
body#checkout #wrapper { background: transparent; }
body#checkout #main { padding-top: 48px; padding-bottom: 48px; }

body#checkout .row { margin-left: -12px; margin-right: -12px; }
body#checkout .row > [class*="col-"] { padding-left: 12px; padding-right: 12px; }

/* Hide reassurance */
body#checkout #hook-reassurance,
body#checkout .block-reassurance,
body#checkout .blockreassurance,
body#checkout [id*="reassurance"],
body#checkout [class*="reassurance"] { display: none !important; }

/* ---------- Left column ---------- */
body#checkout .cart-grid-body { padding-bottom: 0; }

/* ---------- Checkout steps ---------- */
body#checkout .checkout-step {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 12px rgba(26,11,14,.06);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
}

body#checkout .checkout-step.-current {
  box-shadow: 0 4px 24px rgba(242,96,116,.13);
}

/* Step title bar */
body#checkout .checkout-step .step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  margin: 0;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #b09298;
  border-bottom: none;
  cursor: default;
  letter-spacing: .3px;
  text-transform: uppercase;
}

body#checkout .checkout-step.-current .step-title {
  color: #1a0b0e;
  border-bottom: 1px solid #f5eaeb;
  padding-bottom: 16px;
}

body#checkout .checkout-step.-complete .step-title {
  color: #7a5560;
  cursor: pointer;
}

body#checkout .checkout-step.-complete .step-title:hover { color: #f26074; }

/* Step number badge */
body#checkout .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background: #f1d8db;
  color: #b09298;
  transition: background .2s, color .2s;
}

body#checkout .checkout-step.-current .step-number {
  background: #f26074;
  color: #fff;
}

body#checkout .checkout-step.-complete .step-number {
  background: #f26074;
  color: #fff;
}

/* Checkmark icon on complete */
body#checkout .checkout-step .step-title i.done {
  display: none;
  color: #f26074;
  font-size: 18px;
}

body#checkout .checkout-step.-complete .step-title i.done { display: block; }
body#checkout .checkout-step.-complete .step-number { display: none; }

/* Edit link */
body#checkout .step-edit {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  color: #f26074;
  text-transform: none;
  letter-spacing: 0;
  display: none;
  align-items: center;
  gap: 2px;
}

body#checkout .checkout-step.-complete .step-edit { display: flex; }

body#checkout .step-edit i.material-icons { font-size: 14px; }

/* Step content */
body#checkout .checkout-step .content {
  padding: 20px;
  display: none;
}

body#checkout .checkout-step.-current .content { display: block; }

/* Complete step summary (collapsed view) */
body#checkout .checkout-step.-complete .content {
  display: none;
}

/* ---------- Personal info tabs (guest/login) ---------- */
body#checkout .nav.nav-inline {
  display: flex;
  align-items: center;
  gap: 0;
  background: #faf5f6;
  border-radius: 50px;
  padding: 3px;
  width: fit-content;
  margin-bottom: 24px;
  border: none;
}

body#checkout .nav.nav-inline .nav-item { list-style: none; }

body#checkout .nav.nav-inline .nav-separator { display: none; }

body#checkout .nav.nav-inline .nav-link {
  display: block;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: #7a5560;
  text-decoration: none;
  border: none;
  background: transparent;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

body#checkout .nav.nav-inline .nav-link.active {
  background: #f26074;
  color: #fff;
}

body#checkout .nav.nav-inline .nav-link:hover:not(.active) {
  background: #f9eced;
  color: #f26074;
}

/* ---------- Form fields ---------- */
body#checkout .form-group {
  margin-bottom: 16px;
}

body#checkout .form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #7a5560;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 6px;
}

body#checkout .form-control {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #f1d8db;
  border-radius: 10px;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 14px;
  color: #1a0b0e;
  background: #fff;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  -webkit-appearance: none;
}

body#checkout .form-control:focus {
  border-color: #f26074;
  box-shadow: 0 0 0 3px rgba(242,96,116,.12);
}

body#checkout .form-control::placeholder { color: #d9c0c4; }

body#checkout .form-control.is-invalid { border-color: #f26074; }

body#checkout textarea.form-control {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}

body#checkout select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b09298' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Field help text */
body#checkout .form-text { font-size: 11px; color: #b09298; margin-top: 4px; }

/* ---------- Radio buttons (gender, carriers, payment) ---------- */
body#checkout .custom-radio {
  display: inline-flex;
  align-items: center;
  position: relative;
}

body#checkout .custom-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

body#checkout .custom-radio span:last-child {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #f1d8db;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  position: relative;
  flex-shrink: 0;
}

body#checkout .custom-radio input[type="radio"]:checked + span {
  border-color: #f26074;
  background: #f26074;
  box-shadow: inset 0 0 0 3px #fff;
}

/* Gender row */
body#checkout .custom-radio + label,
body#checkout label.radio-inline {
  font-size: 14px;
  font-weight: 400;
  color: #1a0b0e;
  cursor: pointer;
  margin-left: 6px;
  text-transform: none;
  letter-spacing: 0;
}

/* ---------- Checkboxes ---------- */
body#checkout .form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }

body#checkout .form-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid #f1d8db;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: border-color .15s, background .15s;
  margin-top: 1px;
}

body#checkout .form-check input[type="checkbox"]:checked {
  background: #f26074;
  border-color: #f26074;
}

body#checkout .form-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 1px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

body#checkout .form-check label {
  font-size: 13px;
  font-weight: 400;
  color: #7a5560;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  line-height: 1.5;
}

body#checkout .form-check label a { color: #f26074; text-decoration: underline; }

/* ---------- "Créez votre compte" optional section ---------- */
body#checkout .js-customer-form .form-group .form-control-label + small,
body#checkout .js-customer-form fieldset .form-group:last-of-type { font-size: 12px; color: #b09298; }

/* ---------- Identity (logged in state) ---------- */
body#checkout .identity {
  font-size: 14px;
  color: #1a0b0e;
  margin-bottom: 8px;
}

body#checkout .identity a { color: #f26074; text-decoration: none; }

/* ---------- Continue button ---------- */
body#checkout .btn.btn-primary.continue,
body#checkout .btn.btn-primary[name="controller"] {
  display: block;
  width: 100%;
  background: #f26074;
  border: none;
  border-radius: 50px;
  color: #fff;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .4px;
  padding: 13px 24px;
  text-align: center;
  cursor: pointer;
  transition: background .15s;
  box-shadow: 0 4px 14px rgba(242,96,116,.22);
  margin-top: 8px;
}

body#checkout .btn.btn-primary.continue:hover,
body#checkout .btn.btn-primary[name="controller"]:hover { background: #d94d62; }

/* ---------- Carriers (shipping step) ---------- */
body#checkout .delivery-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

body#checkout .delivery-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid #f1d8db;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  margin: 0;
}

body#checkout .delivery-option:has(input:checked) {
  border-color: #f26074;
  background: #fff8f9;
}

body#checkout .delivery-option .col-sm-1 { flex: 0 0 auto; padding: 0; }
body#checkout .delivery-option .col-xs-9 { flex: 1; padding: 0; }
body#checkout .delivery-option-2 .row { display: flex; align-items: center; gap: 8px; margin: 0; }

body#checkout .carrier-name {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1a0b0e;
  display: block;
}

body#checkout .carrier-delay { font-size: 12px; color: #7a5560; }
body#checkout .carrier-price { font-size: 14px; font-weight: 700; color: #f26074; }

body#checkout .carrier-logo img { max-height: 32px; width: auto; }

/* ---------- Payment options ---------- */
body#checkout .payment-options { display: flex; flex-direction: column; gap: 8px; }

body#checkout .payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid #f1d8db;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

body#checkout .payment-option:has(input:checked) {
  border-color: #f26074;
  background: #fff8f9;
}

body#checkout .payment-option label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #1a0b0e;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  flex: 1;
}

body#checkout .payment-option label img { max-height: 28px; width: auto; }

body#checkout .payment-additional-information {
  padding: 12px 16px;
  background: #faf5f6;
  border-radius: 0 0 12px 12px;
  border: 1.5px solid #f1d8db;
  border-top: none;
  margin-top: -8px;
  font-size: 13px;
  color: #7a5560;
}

/* Order button */
body#checkout #payment-confirmation button[type="submit"],
body#checkout #payment-confirmation .btn-primary {
  display: block;
  width: 100%;
  background: #f26074;
  border: none;
  border-radius: 50px;
  color: #fff;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 15px 24px;
  cursor: pointer;
  transition: background .15s;
  box-shadow: 0 4px 18px rgba(242,96,116,.3);
  margin-top: 16px;
  text-align: center;
}

body#checkout #payment-confirmation button[type="submit"]:hover { background: #d94d62; }

/* ---------- Address form ---------- */
body#checkout .add-address a,
body#checkout a[data-link-action] {
  color: #f26074;
  font-size: 13px;
  text-decoration: none;
}

body#checkout .add-address a:hover { text-decoration: underline; }

body#checkout .address-selector .address-item {
  border: 1.5px solid #f1d8db;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .15s;
}

body#checkout .address-selector .address-item.selected { border-color: #f26074; background: #fff8f9; }

/* ---------- Right panel: cart summary ---------- */
body#checkout .cart-grid-right { position: sticky; top: 20px; }

body#checkout #js-checkout-summary {
  background: #fff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 1px 12px rgba(26,11,14,.07);
  overflow: hidden;
  padding: 0;
}

/* Summary header */
body#checkout .cart-summary-products {
  padding: 16px 20px;
  border-bottom: 1px solid #f5eaeb;
}

body#checkout .cart-summary-products p:first-child {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1a0b0e;
  margin: 0 0 6px;
}

body#checkout .cart-summary-products .js-show-details {
  font-size: 12px;
  color: #f26074;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

body#checkout .cart-summary-products .js-show-details i { font-size: 16px; }
body#checkout .cart-summary-products p { margin: 0 0 4px; }

/* Product list (collapsed) */
body#checkout #cart-summary-product-list {
  margin-top: 10px;
}

body#checkout .cart-summary-product-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #faf5f6;
}

body#checkout .cart-summary-product-line:last-child { border-bottom: none; }

body#checkout .cart-summary-product-line .media-body {
  flex: 1;
  min-width: 0;
}

body#checkout .cart-summary-product-line .product-name {
  font-size: 12px;
  font-weight: 500;
  color: #1a0b0e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

body#checkout .cart-summary-product-line .product-price {
  font-size: 12px;
  color: #7a5560;
}

/* Subtotals */
body#checkout .cart-summary-subtotals-container {
  padding: 12px 20px 0;
}

body#checkout .cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
  font-size: 13px;
  color: #7a5560;
}

body#checkout .cart-summary-line .label { font-weight: 400; }
body#checkout .cart-summary-line .value { font-weight: 500; color: #1a0b0e; }

/* Total row */
body#checkout .cart-summary-totals {
  padding: 0;
}

body#checkout .cart-summary-totals .cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 20px;
  background: #fdf6f7;
  border-top: 1px solid #f1d8db;
  margin-top: 8px;
}

body#checkout .cart-summary-totals .cart-total .label {
  font-size: 12px;
  font-weight: 600;
  color: #7a5560;
  text-transform: uppercase;
  letter-spacing: .5px;
}

body#checkout .cart-summary-totals .cart-total .value {
  font-size: 20px;
  font-weight: 700;
  color: #1a0b0e;
}

/* Voucher */
body#checkout .cart-voucher { padding: 12px 20px; }

body#checkout .cart-voucher .collapse-button {
  font-size: 12px;
  color: #b09298;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Alerts & errors ---------- */
body#checkout .alert { border-radius: 10px; font-size: 13px; padding: 10px 14px; border: none; }
body#checkout .alert-danger { background: #fde8ea; color: #c03050; }
body#checkout .alert-warning { background: #fff3cd; color: #856404; }

body#checkout .has-error .form-control { border-color: #f26074; }
body#checkout .has-error .help-block { font-size: 11px; color: #f26074; margin-top: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  body#checkout .cart-grid-right { position: static; margin-top: 16px; }
  body#checkout #main { padding-top: 24px; }
}

@media (max-width: 575px) {
  body#checkout .checkout-step .content { padding: 16px; }
  body#checkout .nav.nav-inline { width: 100%; }
  body#checkout .nav.nav-inline .nav-link { flex: 1; text-align: center; }
}






/* ===== FIX 2026-06-05 v6 : liens sidebar + radio dot via SVG inline ===== */

/* Liens et prix dans le récap panier */
body#checkout .cart-summary-products a,
body#checkout #cart-summary-product-list a,
body#checkout .cart-summary-products .media a,
body#checkout .cart-summary-products .product-name a {
  color: #1a0b0e !important;
  text-decoration: none !important;
}
body#checkout .cart-summary-products a:hover,
body#checkout #cart-summary-product-list a:hover,
body#checkout .cart-summary-products .media a:hover,
body#checkout .cart-summary-products .product-name a:hover {
  color: #f26074 !important;
}
body#checkout .cart-summary-products .js-show-details,
body#checkout .cart-summary-products .js-show-details:hover {
  color: #f26074 !important;
}
body#checkout .cart-summary-products .product-price {
  color: #7a5560 !important;
}

/* Radio dot via SVG inline en background (centrage natif par background-position) */
body#checkout .custom-radio span:last-child {
  box-sizing: border-box !important;
  width: 18px !important;
  height: 18px !important;
}
body#checkout .custom-radio input[type="radio"]:checked + span {
  border-color: #f26074 !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><circle cx='5' cy='5' r='4' fill='%23f26074'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 8px 8px !important;
  box-shadow: none !important;
}
body#checkout .custom-radio input[type="radio"]:checked + span::after {
  content: none !important;
}
