/*
 * Cart and checkout in the redesign's look (21.11.2026). Only looks: the markup, the Vue
 * components, the order logic, payments and tracking stay as they are (checkout/cart/index.blade.php,
 * checkout/onepage*.blade.php, checkout/total/*.blade.php). Loaded on every page by styles.blade.php.
 */

/* ---- Page frame: the header's 5% margin, the whole width ---- */
body .container:has(> .cart-details),
body .container:has(> .checkout-process) { max-width: none; width: 100%; padding-left: 5% !important; padding-right: 5% !important; }
body .container > .checkout-process { max-width: none; flex: 0 0 100%; margin-left: 0 !important; padding: 0; }
body .cart-details { margin: 0 !important; padding: 0; font-family: var(--mc-font); color: var(--mc-ink); }
body .cart-details > h2.col-12, body .checkout-process > h1.col-12 { margin: 22px 0 24px; padding: 0; color: var(--mc-ink); font: 700 clamp(2rem, 3.4vw, 2.75rem)/1.15 var(--mc-font) !important; letter-spacing: -.035em; }

/* ---- Cart: the items on the left, the summary on the right ---- */
body .cart-details > .cart-details-header { padding-left: 0; }
body .cart-details .cart-header { margin: 0 0 4px !important; padding: 0 0 10px !important; border-bottom: 1px solid var(--mc-line-soft); color: var(--mc-muted); }
body .cart-details .cart-header span { color: var(--mc-muted); font: 600 13px/1.4 var(--mc-font) !important; letter-spacing: .06em; text-transform: uppercase; }
body .cart-details .cart-content { padding: 0 !important; }
body .cart-details .cart-item-list { padding: 18px 0 !important; border-bottom: 1px solid var(--mc-line-soft); }
body .cart-details .cart-item-list > .row { align-items: flex-start; margin: 0 !important; padding: 0 !important; }
body .cart-details .cart-item-list .product-image-container { flex: 0 0 104px; max-width: 104px; padding: 0 !important; }
body .cart-details .cart-item-list .product-image-container img { width: 96px; height: 96px; border-radius: 8px; border: 1px solid var(--mc-line-soft); background: #fff; object-fit: cover; }
body .cart-details .product-details-content { flex: 1 1 0; max-width: none; padding-left: 16px !important; }
body .cart-details .item-title a span { color: var(--mc-ink) !important; font: 600 17px/1.4 var(--mc-font) !important; }
body .cart-details .item-title a:hover span { color: var(--mc-green-dark) !important; text-decoration: underline; text-underline-offset: 3px; }
body .cart-details .item-price .product-price, body .cart-details .item-price .product-price span { margin-top: 4px; color: #35453a !important; font: 400 15px/1.5 var(--mc-font) !important; }
body .cart-details .item-actions { margin-top: 8px; }
body .cart-details .item-actions a, body .cart-details .item-actions span { color: var(--mc-muted) !important; font: 400 14px/1.4 var(--mc-font) !important; vertical-align: middle; }
body .cart-details .item-actions a:hover span { color: #b03a2e !important; }
body .cart-details .item-actions .rango-delete { font-size: 18px !important; }
body .cart-details .product-quantity { flex: 0 0 auto; max-width: none; }
body .cart-details .cart-item-list .product-price.col-1 { flex: 0 0 auto; max-width: none; min-width: 110px; padding: 10px 0 0 !important; text-align: right; }
body .cart-details .card-current-price { margin: 0 !important; color: var(--mc-ink); font: 700 17px/1.3 var(--mc-font) !important; font-variant-numeric: tabular-nums; }
body .cart-details .misc { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }
body .cart-details .misc .theme-btn { min-height: 44px; padding: 10px 18px !important; border: 1px solid #cfd9cb !important; border-radius: 8px !important; background: #fff !important; color: var(--mc-ink) !important; font: 600 15px/1.3 var(--mc-font) !important; text-transform: none !important; box-shadow: none !important; }
body .cart-details .misc .theme-btn:hover { border-color: var(--mc-green) !important; color: var(--mc-green-dark) !important; }
body .cart-details .empty-cart-message { margin: 8px 0 16px; padding: 0; color: #35453a; font-size: 18px; }

/* ---- Order summary (cart and checkout) ---- */
body .order-summary-container { position: sticky; top: 150px; align-self: flex-start; padding: 0 !important; }
body .order-summary { padding: 24px !important; border: 1px solid var(--mc-line-soft) !important; border-radius: 10px; background: #f6f8f3 !important; box-shadow: none !important; font: 400 16px/1.5 var(--mc-font) !important; color: #35453a; }
body .order-summary h3 { margin: 0 0 16px !important; color: var(--mc-ink); font: 700 20px/1.3 var(--mc-font) !important; text-align: left !important; }
body .order-summary > .row { margin: 0 !important; padding: 6px 0; }
body .order-summary > .row > span { padding: 0 !important; font-variant-numeric: tabular-nums; }
body .order-summary .payable-amount { margin-top: 10px !important; padding: 14px 0 !important; border-top: 1px solid #d8e2d3; }
body .order-summary .payable-amount span { color: var(--mc-ink); font: 700 20px/1.3 var(--mc-font) !important; }
body .order-summary .theme-btn, body .order-summary proceed-to-checkout + *, body .order-summary a.theme-btn { width: 100%; min-height: 52px; margin-top: 12px; border-radius: 8px !important; font: 700 17px/1.3 var(--mc-font) !important; text-transform: none !important; letter-spacing: 0; }
body .order-summary .free-shipping-progress { margin: 0 0 14px !important; padding: 12px 14px !important; border-radius: 8px; background: #fff; }
body .order-summary .free-shipping-progress > div:first-child { color: #35453a; font-size: 14px !important; }
body .order-summary .free-shipping-progress > div:nth-child(2) { height: 8px !important; border-radius: 4px !important; background: #e3eadf !important; }
body .order-summary .free-shipping-progress > div:nth-child(2) > div { height: 8px !important; background: var(--mc-green) !important; }

/* ---- Checkout steps: each section a card ---- */
body .checkout-process > .col-lg-7 { padding-left: 0 !important; }
body .checkout-process .step-content { margin: 0 0 18px; padding: 0 !important; }
body .checkout-process .form-container { padding: 0 !important; }
body .checkout-process .accordian { margin: 0 !important; border: 1px solid var(--mc-line-soft) !important; border-radius: 10px; background: #fff; box-shadow: none !important; overflow: hidden; }
body .checkout-process .accordian-header { padding: 18px 22px !important; border: 0 !important; background: #fff !important; cursor: pointer; }
body .checkout-process .accordian-header h3 { margin: 0 !important; color: var(--mc-ink); font: 700 19px/1.3 var(--mc-font) !important; }
body .checkout-process .accordian-header .rango-arrow { color: var(--mc-green-dark); }
body .checkout-process .accordian-content { padding: 4px 22px 22px !important; border: 0 !important; }
body .checkout-process .form-field { margin-bottom: 14px !important; padding: 0 !important; }
body .checkout-process .form-field label { margin: 0 0 6px; color: var(--mc-ink); font: 600 15px/1.4 var(--mc-font) !important; }
body .checkout-process .form-field label.mandatory::after, body .checkout-process .form-field label.required::after { color: #b03a2e; }
body .checkout-process .form-field .control,
body .checkout-process .form-field input[type="text"],
body .checkout-process .form-field input[type="email"],
body .checkout-process .form-field input[type="tel"],
body .checkout-process .form-field select,
body .checkout-process .form-field textarea { width: 100% !important; min-height: 48px; padding: 10px 14px !important; border: 1px solid #cfd9cb !important; border-radius: 8px !important; background-color: #fff !important; box-shadow: none !important; color: var(--mc-ink); font: 400 16px/1.5 var(--mc-font) !important; }
body .checkout-process .form-field .control:focus { border-color: var(--mc-green) !important; outline: 3px solid #28734033; outline-offset: 0; }
body .checkout-process .has-error .control { border-color: #b03a2e !important; }
body .checkout-process .control-error { color: #b03a2e; font-size: 14px; }
@media (min-width: 768px) {
    /* Two fields to a row; long ones (street, notes) across */
    body .checkout-process .accordian-content > .col-12.no-padding:has(> .form-field),
    body .checkout-process .accordian-content > div > .col-12.no-padding:has(> .form-field) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
    body .checkout-process .accordian-content .col-12.no-padding:has(> .form-field) > * { grid-column: 1 / -1; width: auto; max-width: none; }
    body .checkout-process .accordian-content .col-12.no-padding:has(> .form-field) > .form-field:not(:has(textarea)):not(:has([name*="address"])) { grid-column: auto; }
}

/* Shipping and payment: each method a card that shows when it is chosen */
body .checkout-process :is(.shipping-methods, .payment-methods) { display: grid; gap: 10px; }
body .checkout-process :is(.shipping-methods, .payment-methods) > .row.col-12 { position: relative; margin: 0 !important; padding: 14px 16px 14px 48px !important; border: 1px solid #cfd9cb; border-radius: 10px; background: #fff; }
body .checkout-process :is(.shipping-methods, .payment-methods) > .row.col-12:has(input:checked) { border-color: var(--mc-green); background: #f3f7f0; box-shadow: 0 0 0 1px var(--mc-green) inset; }
body .checkout-process :is(.shipping-methods, .payment-methods) .radio-container { position: absolute !important; left: 16px; top: 16px; margin: 0; }
body .checkout-process :is(.shipping-methods, .payment-methods) :is(.pl30, .pl40) { padding-left: 0 !important; }
body .checkout-process :is(.shipping-methods, .payment-methods) .row { margin: 0; color: #35453a; font: 400 15px/1.5 var(--mc-font); }
body .checkout-process :is(.shipping-methods, .payment-methods) b { color: var(--mc-ink); font-weight: 700; }
body .checkout-process .radio-container .checkmark { border-color: var(--mc-green) !important; }
body .checkout-process .radio-container input:checked ~ .checkmark { background: var(--mc-green) !important; border-color: var(--mc-green) !important; }
body .checkout-process .instructions { margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: #fff; font-size: 14px; }

/* Review and the order button */
body .checkout-process .review-section, body .checkout-process #summary-section { margin: 0 0 18px; }
body .checkout-process .theme-btn:not(.light) { min-height: 52px; border-radius: 8px !important; font: 700 17px/1.3 var(--mc-font) !important; text-transform: none !important; letter-spacing: 0; }

/* ---- Phones ---- */
@media (max-width: 992px) {
    body .container:has(> .cart-details), body .container:has(> .checkout-process) { padding-left: 16px !important; padding-right: 16px !important; }
    body .order-summary-container { position: static; margin: 24px 0 0 !important; }
    body .checkout-process .accordian-header { padding: 16px !important; }
    body .checkout-process .accordian-content { padding: 4px 16px 16px !important; }
}
@media (max-width: 600px) {
    body .cart-details .cart-item-list .product-image-container { flex-basis: 76px; max-width: 76px; }
    body .cart-details .cart-item-list .product-image-container img { width: 72px; height: 72px; }
    body .cart-details .cart-item-list .product-price.col-1 { min-width: 0; padding-top: 0 !important; }
}

/* Cart row: picture, name and actions, quantity, line total side by side (Bootstrap's cols are 100% wide) */
body .cart-details .cart-item-list > .row > * { width: auto !important; }
body .cart-details .cart-item-list .product-quantity, body .cart-details .cart-item-list .product-price.col-1 { flex: 0 0 auto !important; }
@media (min-width: 601px) { body .cart-details .cart-item-list > .row { flex-wrap: nowrap !important; gap: 0 16px; } }
@media (max-width: 600px) {
    body .cart-details .cart-item-list > .row { gap: 12px 0; }
    body .cart-details .cart-item-list .product-details-content { flex: 1 1 calc(100% - 76px); }
    body .cart-details .cart-item-list .product-quantity { margin-left: 76px; }
    body .cart-details .cart-item-list .product-price.col-1 { margin-left: auto; padding-top: 10px !important; }
}

/* "Produse complementare" under the cart: a section heading across the column */
body .cart-details .carousel-products-header > .col-4.no-padding { flex: 1 1 auto; max-width: none; width: auto !important; }
body .cart-details .carousel-products-header { margin-top: 28px; }
body .cart-details .carousel-products-header h2.fs20 { margin: 0 0 14px; color: var(--mc-ink); font: 700 clamp(1.4rem, 2.2vw, 1.75rem)/1.25 var(--mc-font) !important; letter-spacing: -.02em; }

/* Last step (review): the chosen delivery and payment side by side, then a full-width order button.
   Its own copy of the totals shows only where the summary column is not beside it (phones). */
body .checkout-process .order-description { display: block; margin: 8px 0 0 !important; }
body .checkout-process .order-description > .col-lg-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; flex: none; width: 100% !important; max-width: none; padding: 0 !important; }
body .checkout-process .order-description > .col-lg-4 > :is(.shipping, .payment) { display: flex; gap: 12px; align-items: center; margin: 0 !important; padding: 14px 16px; border: 1px solid var(--mc-line-soft); border-radius: 10px; background: #f6f8f3; }
body .checkout-process .order-description > .col-lg-4 > :is(.shipping, .payment) h4 { margin: 0; color: var(--mc-ink); font: 700 17px/1.3 var(--mc-font) !important; }
body .checkout-process .order-description > .col-lg-4 > :is(.shipping, .payment) :is(.info, span) { color: var(--mc-muted); font-size: 14px; }
body .checkout-process .order-description > .col-lg-4 > div:last-child { grid-column: 1 / -1; }
body .checkout-process #checkout-place-order-button { width: 100%; min-height: 56px; font-size: 18px !important; }
body .checkout-process .ml-1.form-field { margin-left: 0 !important; padding: 0 !important; }
@media (min-width: 993px) {
    body .checkout-process .order-description > .order-summary-container.bottom { display: none !important; }
}
@media (max-width: 992px) {
    body .checkout-process:has(.order-summary-container.bottom) > .order-summary-container.top { display: none !important; }
    body .checkout-process .order-description > .order-summary-container.bottom { position: static; width: 100% !important; max-width: none; margin-top: 16px !important; }
}
@media (max-width: 600px) {
    body .checkout-process .order-description > .col-lg-4 { grid-template-columns: minmax(0, 1fr); }
}

/* Cart on phones: name, price and "Șterge" line up beside the picture; the delete glyph (missing in
   this icon font) is left out, the word stays */
body .cart-details .item-actions .rango-delete { display: none !important; }
@media (max-width: 600px) {
    body .cart-details .product-details-content { padding-left: 12px !important; }
    body .cart-details .product-details-content > * { margin-left: 0 !important; padding-left: 0 !important; }
    body .cart-details .item-title a span { font-size: 16px !important; }
}
