/* HF60: premium checkout ergonomics + cleaner Cathedis estimated-delivery state. */
:root{
  --as-premium-bg:#fcf7f4;
  --as-premium-card:#ffffff;
  --as-premium-line:#ead9d3;
  --as-premium-line-strong:#d9b7c1;
  --as-premium-text:#302329;
  --as-premium-muted:#7b6a72;
  --as-premium-soft:#fff8fa;
  --as-premium-accent:#b4516a;
  --as-premium-shadow:0 18px 45px rgba(57,24,34,.08);
  --as-premium-shadow-soft:0 8px 22px rgba(57,24,34,.05);
}

body#checkout .as-opc-shell,
body.page-order .as-opc-shell{background:linear-gradient(180deg,#fffdfa 0%, var(--as-premium-bg) 100%)}
body#checkout .as-opc-intro{margin-bottom:20px}
body#checkout .as-opc-intro__copy,
body#checkout .as-opc-intro__back,
body#checkout .one-page-checkout__section,
body#checkout #opc-delivery-methods,
body#checkout #opc-payment-methods,
body#checkout .checkout__summary-accordion-item,
body#checkout .checkout__summary-accordion-wrapper,
body#checkout .payment-options,
body#checkout .delivery-options__container,
body#checkout .checkout-grid__aside-wrapper > *{
  background:var(--as-premium-card);
  border:1px solid var(--as-premium-line);
  border-radius:24px;
  box-shadow:var(--as-premium-shadow-soft);
}
body#checkout .as-opc-intro__copy{padding:24px 28px}
body#checkout .as-opc-intro__back{display:inline-flex;align-items:center;gap:8px;padding:14px 18px;text-decoration:none}
body#checkout .one-page-checkout__section,
body#checkout #opc-delivery-methods,
body#checkout #opc-payment-methods{padding:26px 28px;margin-bottom:18px}
body#checkout .checkout-grid__aside-wrapper{position:sticky;top:20px}
body#checkout .checkout__summary-accordion-item{overflow:hidden}
body#checkout .checkout__summary-accordion-header{padding:18px 22px;border-bottom:1px solid var(--as-premium-line);background:linear-gradient(180deg,#fff 0%, #fff8f8 100%)}
body#checkout .checkout__summary-accordion-wrapper{padding:18px 22px;border:none;border-radius:0;box-shadow:none;background:transparent}
body#checkout .one-page-checkout__title,
body#checkout .block-header h2,
body#checkout h2.h3,
body#checkout .checkout-step-title{font-size:1.55rem;line-height:1.15;color:var(--as-premium-text);margin-bottom:16px}
body#checkout .form-control,
body#checkout .form-select,
body#checkout select,
body#checkout input[type="text"],
body#checkout input[type="email"],
body#checkout input[type="tel"],
body#checkout textarea{
  min-height:58px;
  border-radius:16px;
  border:1px solid var(--as-premium-line);
  background:#fff;
  box-shadow:none;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
body#checkout textarea{min-height:92px}
body#checkout .form-control:focus,
body#checkout .form-select:focus,
body#checkout select:focus,
body#checkout input:focus,
body#checkout textarea:focus{
  border-color:var(--as-premium-line-strong);
  box-shadow:0 0 0 4px rgba(180,81,106,.10);
  background:#fffdfd;
}
body#checkout label.form-control-label,
body#checkout .form-label{font-weight:700;color:var(--as-premium-text);margin-bottom:9px}
body#checkout .form-group{margin-bottom:18px}
body#checkout .as-ma-locked-display{display:flex;align-items:center;min-height:58px;border-radius:16px;background:#faf5f3}
body#checkout .as-hf50-address-note,
body#checkout .as-cathedis-estimate,
body#checkout .form-text,
body#checkout .text-muted{color:var(--as-premium-muted)!important}
body#checkout .as-cat-field .form-control-label span[aria-hidden="true"]{color:var(--as-premium-accent)}

/* Cathedis preview block */
body#checkout .as-cat-estimated-carrier{
  border:1px solid #efc9d3;
  border-radius:24px;
  background:linear-gradient(180deg,#fff 0%, #fff7f9 100%);
  box-shadow:0 16px 36px rgba(180,81,106,.10);
  padding:22px;
  gap:18px;
  margin-bottom:16px;
}
body#checkout .as-cat-estimated-logo{width:160px;max-height:58px}
body#checkout .as-cat-estimated-info strong{font-size:1.55rem;line-height:1.15;color:var(--as-premium-text)}
body#checkout .as-cat-estimated-price{font-size:1.7rem;line-height:1.1;font-weight:800;color:#2f2328}
body#checkout .as-cat-estimated-help{font-size:.96rem;color:var(--as-premium-muted)}
body#checkout .as-cathedis-estimate{font-size:.96rem;margin-top:8px}
body#checkout .as-cathedis-estimate--error{color:#bb3048!important;font-weight:600}

/* Hide the misleading native alert while the Cathedis estimate card is shown */
body:is(#order,#checkout) #opc-delivery-methods .as-cat-no-carrier-temporary{display:none!important}

/* Delivery/payment options */
body#checkout .delivery-option__item,
body#checkout .payment-option{
  border:1px solid var(--as-premium-line);
  border-radius:18px;
  padding:16px 18px;
  background:#fff;
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
body#checkout .delivery-option__item + .delivery-option__item,
body#checkout .payment-option + .payment-option{margin-top:12px}
body#checkout .delivery-option__item:hover,
body#checkout .payment-option:hover{
  border-color:#ddb7c2;
  box-shadow:0 10px 24px rgba(57,24,34,.06);
  transform:translateY(-1px);
}
body#checkout .delivery-option__item:has(input:checked),
body#checkout .payment-option:has(input:checked){
  border-color:var(--as-premium-accent);
  box-shadow:0 12px 28px rgba(180,81,106,.12);
  background:#fffafb;
}
body#checkout .payment-options,
body#checkout .delivery-options__list{display:grid;gap:12px}
body#checkout .payment-option label,
body#checkout .delivery-option__label{width:100%}
body#checkout .payment-option .payment-option-label,
body#checkout .delivery-option__carrier-name{font-weight:700;color:var(--as-premium-text)}
body#checkout .delivery-option__price,
body#checkout .payment-option .h6{font-weight:800;color:#2d2328}
body#checkout .as-cathedis-carrier-logo{width:130px!important;max-height:44px}

/* Summary panel */
body#checkout .cart-summary, body#checkout .block-promo{background:transparent}
body#checkout .cart-summary-line{padding:14px 0;border-bottom:1px solid #f0e4df}
body#checkout .cart-summary-line:last-child{border-bottom:none}
body#checkout .cart-summary-products .media-list__item,
body#checkout .cart-summary-product-line{padding:10px 0}
body#checkout .cart-summary-subtotals-container,
body#checkout .cart-summary-totals{padding-top:8px}
body#checkout .cart-summary-line.cart-summary-total,
body#checkout .cart-summary-line.total-value{
  margin-top:10px;
  padding:18px 0 0;
  font-size:1.1rem;
  border-top:2px solid #ead9d3;
}
body#checkout .cart-summary-line.cart-summary-total .value,
body#checkout .cart-summary-line.total-value .value,
body#checkout .cart-summary-line.cart-summary-total .cart-summary__value{font-size:1.7rem;font-weight:800;color:#2f2328}

body#checkout .btn,
body#checkout button.btn{
  min-height:54px;
  border-radius:16px;
  font-weight:700;
  letter-spacing:.01em;
}
body#checkout .btn-primary{box-shadow:0 12px 30px rgba(180,81,106,.18)}
body#checkout .form-check-input{width:1.15rem;height:1.15rem;border-color:#ccb5bc}
body#checkout .form-check-input:checked{background-color:var(--as-premium-accent);border-color:var(--as-premium-accent)}
body#checkout .alert{border-radius:18px}

@media (max-width: 991px){
  body#checkout .checkout-grid__aside-wrapper{position:static}
  body#checkout .one-page-checkout__section,
  body#checkout #opc-delivery-methods,
  body#checkout #opc-payment-methods,
  body#checkout .as-opc-intro__copy{padding:22px 20px}
}
@media (max-width: 767px){
  body#checkout .as-opc-intro{display:grid;gap:12px}
  body#checkout .as-cat-estimated-carrier{padding:18px;gap:12px}
  body#checkout .as-cat-estimated-logo{width:126px;max-height:46px}
  body#checkout .as-cat-estimated-info strong{font-size:1.25rem}
  body#checkout .as-cat-estimated-price{font-size:1.35rem}
}
