/* Clasico Next 1.1.15 — checkout step continuity + quantity button order.
   Presentation only. Keeps native PrestaShop forms, validators, payment hooks. */

/* Consistent visual rhythm for personal info, addresses, delivery and payment. */
#checkout .checkout-step,
#order .checkout-step {
  box-sizing:border-box;
  overflow:visible;
  border:1px solid #e0e9f5;
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 22px rgba(29,61,101,.045);
  margin-bottom:18px;
}
#checkout .checkout-step.-current,
#order .checkout-step.-current {
  border-color:#a7c5f7;
  box-shadow:0 10px 26px rgba(41,95,188,.08);
}
#checkout .checkout-step > .step-title,
#order .checkout-step > .step-title {
  box-sizing:border-box;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  flex-wrap:wrap;
  gap:12px;
  min-height:78px;
  margin:0!important;
  padding:17px 24px!important;
  background:#fbfcff;
  color:#233754;
  border-radius:17px 17px 0 0;
  font-size:18px!important;
  line-height:1.35!important;
  font-weight:800;
  text-transform:none;
}
#checkout .checkout-step.-current > .step-title,
#order .checkout-step.-current > .step-title {
  background:#eef4ff;
  color:#2252a4;
}
#checkout .checkout-step > .step-title .step-number,
#order .checkout-step > .step-title .step-number {
  box-sizing:border-box!important;
  display:inline-flex!important;
  flex:0 0 39px!important;
  width:39px!important;
  min-width:39px!important;
  max-width:39px!important;
  height:39px!important;
  min-height:39px!important;
  max-height:39px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  float:none!important;
  position:static!important;
  inset:auto!important;
  align-items:center!important;
  justify-content:center!important;
  vertical-align:middle!important;
  text-align:center!important;
  text-indent:0!important;
  white-space:nowrap!important;
  border-radius:50%!important;
  background:#e7eef9;
  color:#335a91;
  font:800 17px/1 Arial,sans-serif!important;
  font-variant-numeric:tabular-nums;
  box-shadow:none;
}
#checkout .checkout-step.-current > .step-title .step-number,
#order .checkout-step.-current > .step-title .step-number {background:#326bf1;color:#fff}
#checkout .checkout-step.-complete > .step-title .step-number,
#order .checkout-step.-complete > .step-title .step-number {background:#e7f6ed;color:#237647}
#checkout .checkout-step > .step-title .step-edit,
#order .checkout-step > .step-title .step-edit {
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:13px;
  white-space:nowrap;
}
#checkout .checkout-step > .content,
#order .checkout-step > .content {
  box-sizing:border-box;
  padding:24px 27px 29px!important;
  min-width:0;
  margin:0!important;
  background:#fff;
  border-top:1px solid #ecf1f8;
  border-radius:0 0 17px 17px;
}
/* Shipping/payment can have nested wrappers with their own negative margins.
   Leave form semantics untouched; add reliable separation at every layer. */
#checkout #checkout-delivery-step > .content,
#order #checkout-delivery-step > .content,
#checkout #checkout-payment-step > .content,
#order #checkout-payment-step > .content {
  padding-top:27px!important;
}
#checkout #checkout-delivery-step .delivery-options-list,
#order #checkout-delivery-step .delivery-options-list,
#checkout #checkout-payment-step .payment-options,
#order #checkout-payment-step .payment-options {
  margin-top:10px!important;
  padding-top:8px!important;
  min-width:0;
}
#checkout #checkout-delivery-step .delivery-options,
#order #checkout-delivery-step .delivery-options,
#checkout #checkout-payment-step .payment-options,
#order #checkout-payment-step .payment-options {
  display:flex;
  flex-direction:column;
  gap:14px;
}
#checkout #checkout-delivery-step .delivery-option,
#order #checkout-delivery-step .delivery-option {
  width:100%;
  box-sizing:border-box;
  margin:0!important;
  padding:18px 20px!important;
  min-height:84px;
  border:1px solid #dce7f5;
  border-radius:16px;
  background:#fdfefe;
  gap:16px;
  align-items:center;
  box-shadow:none;
}
#checkout #checkout-delivery-step .delivery-option:has(input:checked),
#order #checkout-delivery-step .delivery-option:has(input:checked) {
  border-color:#7caaf0;
  background:#f5f9ff;
}
#checkout #checkout-delivery-step .delivery-option label,
#order #checkout-delivery-step .delivery-option label {
  min-width:0;
  margin:0;
  line-height:1.55;
}
#checkout #checkout-delivery-step .delivery-option .carrier-logo img,
#order #checkout-delivery-step .delivery-option .carrier-logo img {
  max-width:100px;
  max-height:48px;
  object-fit:contain;
}
#checkout #checkout-delivery-step .delivery-option .carrier-name,
#order #checkout-delivery-step .delivery-option .carrier-name {font-weight:750;line-height:1.4}
#checkout #checkout-delivery-step .carrier-extra-content,
#order #checkout-delivery-step .carrier-extra-content {box-sizing:border-box;margin:0 0 9px;padding:7px 12px;max-width:100%}
#checkout #checkout-payment-step .payment-option,
#order #checkout-payment-step .payment-option {
  box-sizing:border-box;
  width:100%;
  padding:17px 20px!important;
  border:1px solid #dce7f5;
  border-radius:15px;
  margin:0!important;
  background:#fdfefe;
}
#checkout #checkout-payment-step .payment-option:has(input:checked),
#order #checkout-payment-step .payment-option:has(input:checked) {
  border-color:#7caaf0;
  background:#f5f9ff;
}
#checkout #checkout-payment-step .payment-option label,
#order #checkout-payment-step .payment-option label {display:inline-flex;gap:10px;align-items:center;flex-wrap:wrap;line-height:1.45}
#checkout #checkout-payment-step .payment-option label img,
#order #checkout-payment-step .payment-option label img {max-height:46px;max-width:130px;object-fit:contain}
#checkout #checkout-payment-step .additional-information,
#order #checkout-payment-step .additional-information {box-sizing:border-box;margin:11px 0 16px;padding:16px;border:1px solid #e5edf7;border-radius:13px;background:#f8fbff;max-width:100%}
#checkout #checkout-payment-step #conditions-to-approve,
#order #checkout-payment-step #conditions-to-approve {margin-top:24px;padding-top:18px;border-top:1px solid #edf1f7}
#checkout #checkout-payment-step #payment-confirmation,
#order #checkout-payment-step #payment-confirmation {margin-top:22px}

/* Expanded 'show details': a separator and predictable reading order for each item. */
#checkout #js-checkout-summary #cart-summary-product-list,
#order #js-checkout-summary #cart-summary-product-list {width:100%;max-width:100%;}
#checkout #js-checkout-summary #cart-summary-product-list .media-list,
#order #js-checkout-summary #cart-summary-product-list .media-list {
  display:block;
  list-style:none;
  width:100%;
  padding:0;
  margin:6px 0 3px;
}
#checkout #js-checkout-summary #cart-summary-product-list .media,
#order #js-checkout-summary #cart-summary-product-list .media {
  box-sizing:border-box;
  display:flex;
  align-items:flex-start;
  width:100%;
  min-width:0;
  gap:10px;
  padding:15px 0;
  margin:0;
  border-bottom:1px solid #e0e8f3;
  background:transparent;
}
#checkout #js-checkout-summary #cart-summary-product-list .media:first-child,
#order #js-checkout-summary #cart-summary-product-list .media:first-child {border-top:1px solid #e0e8f3;}
#checkout #js-checkout-summary #cart-summary-product-list .media:last-child,
#order #js-checkout-summary #cart-summary-product-list .media:last-child {border-bottom:0;}
#checkout #js-checkout-summary #cart-summary-product-list .media-left,
#order #js-checkout-summary #cart-summary-product-list .media-left {flex:0 0 48px;float:none;min-width:0;margin:0;}
#checkout #js-checkout-summary #cart-summary-product-list .media-left img,
#order #js-checkout-summary #cart-summary-product-list .media-left img {display:block;width:48px;max-height:62px;height:auto;object-fit:contain;border-radius:7px}
#checkout #js-checkout-summary #cart-summary-product-list .media-body,
#order #js-checkout-summary #cart-summary-product-list .media-body {
  display:block;
  flex:1;
  min-width:0;
  width:auto;
  overflow-wrap:anywhere;
  color:#22344d;
  line-height:1.5;
  font-size:13px;
}
#checkout #js-checkout-summary #cart-summary-product-list .product-name,
#order #js-checkout-summary #cart-summary-product-list .product-name {display:block;font-weight:700;line-height:1.45;margin-bottom:5px}
#checkout #js-checkout-summary #cart-summary-product-list .product-quantity,
#order #js-checkout-summary #cart-summary-product-list .product-quantity {display:inline-block;color:#6a7890;font-size:12px}
#checkout #js-checkout-summary #cart-summary-product-list .product-price,
#order #js-checkout-summary #cart-summary-product-list .product-price {
  display:inline-block;
  float:right;
  font-weight:800;
  color:#285ed6;
  margin:0 0 3px 8px;
  white-space:nowrap;
}
#checkout #js-checkout-summary #cart-summary-product-list .product-line-info-secondary,
#order #js-checkout-summary #cart-summary-product-list .product-line-info-secondary {margin:4px 0 0;color:#6b7890;line-height:1.45;font-size:12px}

/* Make sure + is the top touch target and – is below; both keep their JS data values. */
#product #main .cn-quantity-picker .cn-quantity-step[data-cn-qty-step="1"],
.quickview .cn-quantity-picker .cn-quantity-step[data-cn-qty-step="1"] {order:0}
#product #main .cn-quantity-picker .cn-quantity-step[data-cn-qty-step="-1"],
.quickview .cn-quantity-picker .cn-quantity-step[data-cn-qty-step="-1"] {order:1}

@media(max-width:991px) {
  #checkout .checkout-step > .step-title,#order .checkout-step > .step-title {padding:16px 18px!important;min-height:68px;font-size:16px!important}
  #checkout .checkout-step > .content,#order .checkout-step > .content {padding:19px 20px 24px!important}
  #checkout #checkout-delivery-step > .content,#order #checkout-delivery-step > .content,
  #checkout #checkout-payment-step > .content,#order #checkout-payment-step > .content {padding-top:22px!important}
}
@media(max-width:600px) {
  #checkout .checkout-step > .step-title,#order .checkout-step > .step-title {gap:9px;min-height:61px;padding:11px 13px!important;font-size:14px!important}
  #checkout .checkout-step > .step-title .step-number,#order .checkout-step > .step-title .step-number {flex-basis:34px!important;width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;max-height:34px!important;font-size:14px!important}
  #checkout .checkout-step > .content,#order .checkout-step > .content {padding:16px 13px 22px!important}
  #checkout #checkout-delivery-step > .content,#order #checkout-delivery-step > .content,
  #checkout #checkout-payment-step > .content,#order #checkout-payment-step > .content {padding-top:19px!important}
  #checkout #checkout-delivery-step .delivery-option,#order #checkout-delivery-step .delivery-option {padding:15px 12px!important;gap:7px;flex-wrap:wrap}
  #checkout #checkout-delivery-step .delivery-option label,#order #checkout-delivery-step .delivery-option label {flex:1 1 210px;width:auto}
  #checkout #checkout-payment-step .payment-option,#order #checkout-payment-step .payment-option {padding:13px 12px!important}
  #checkout #js-checkout-summary #cart-summary-product-list .media-left,#order #js-checkout-summary #cart-summary-product-list .media-left {flex-basis:38px}
  #checkout #js-checkout-summary #cart-summary-product-list .media-left img,#order #js-checkout-summary #cart-summary-product-list .media-left img {width:38px}
}
@media(prefers-reduced-motion:reduce){
  #checkout .checkout-step *,#order .checkout-step * {transition:none!important}
}
