/* Checkout legacy — preluat din _themes/theme1/theme.css (.checkout-*) */
/* ==========================================
   CHECKOUT PAGE STYLES (New Design)
   ========================================== */

.checkout-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--shop-padding-y) var(--shop-padding-x);
    background: var(--shop-primary-soft);
    border-radius: 12px;
}
.checkout-section {
    background: #fff;
    border-radius: var(--shop-radius);
    margin-bottom: var(--shop-margin-y);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: var(--shop-padding-y) var(--shop-padding-x);
}
.checkout-section-header {
    background: transparent;
    color: #333;
    padding: 0px 0px 5px 0px;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: none;
    border-bottom: 1px solid var(--bs-border-color);
    margin: 0;
}
.checkout-section-body {
    padding-top: var(--shop-padding-y);
}
.checkout-product {
    display: flex;
    gap: 15px;
    padding: var(--shop-padding-y) 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}
.checkout-product:last-child {
    border-bottom: none;
}
.checkout-product-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: calc(var(--shop-radius) / 2);
    background: #f8f8f8;
    flex-shrink: 0;
}
.checkout-product-info {
    flex: 1;
    min-width: 0;
}
.checkout-product-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.95rem;
    line-height: 1.3;
}
.checkout-product-title a {
    color: inherit;
    text-decoration: none;
}
.checkout-product-title a:hover {
    color: var(--bs-primary);
}
.checkout-product-code {
    font-size: 0.85rem;
    color: #888;
}
.checkout-product-meta {
    font-size: 0.85rem;
    color: #666;
    margin-top: 3px;
}
.checkout-product-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.checkout-product-price {
    text-align: right;
}
.checkout-price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
}
.checkout-price-current {
    font-weight: 700;
    color: var(--bs-primary);
    font-size: 1.1rem;
}
.checkout-qty-selector {
    display: inline-flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 3px;
}
.checkout-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.checkout-qty-btn:hover {
    background: #e0e0e0;
    border-radius: 50%;
}
.checkout-qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: var(--bs-primary);
    color: #fff;
    border-radius: 15px;
    font-weight: 600;
    padding: 4px;
    font-size: 0.9rem;
}
.checkout-delete-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    padding: 0;
    transition: all 0.2s;
}
.checkout-delete-btn:hover {
    border-color: var(--bs-danger);
    color: var(--bs-danger);
    background: rgba(244, 101, 56, 0.1);
}
.checkout-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #e8f4fc 0%, #d9eef9 100%);
    border-radius: var(--shop-radius);
    margin: 15px 0 0 0;
}
.checkout-subtotal-label {
    font-weight: 600;
    font-size: 1.1rem;
}
.checkout-subtotal-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--bs-primary);
}
.checkout-savings {
    color: #e74c3c;
    font-size: 0.9rem;
    text-align: right;
}
/* Radio/Checkbox groups */
.checkout-radio-group {
    padding: 0;
}
.checkout-radio-item {
    padding: 0px 0;
    /* border-bottom: 1px solid #f0f0f0; */
    margin-bottom: 0.5rem;
}
.checkout-radio-item:last-child {
    border-bottom: none;
    margin-bottom: 0px;
}
.checkout-radio-item label {
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
}
/* Logo procesator (Netopia): stă lângă text cât încape, altfel trece pe rândul 2. */
.checkout-radio-item .payment-option-text {
    white-space: nowrap;
}
.checkout-radio-item .payment-logo {
    flex: 0 0 auto;
    max-width: 100%;
    width: auto;
    height: 22px;
    object-fit: contain;
    object-position: left center;
}
/* Pe mobil nu încape niciodată: rând nou dedicat, aliniat cu textul (18px radio + 10px gap). */
@media (max-width: 575.98px) {
    .checkout-radio-item .payment-logo {
        flex-basis: 100%;
        height: 18px;
        margin-left: 28px;
    }
}
.checkout-radio-item input[type="radio"],
.checkout-radio-item input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--bs-primary);
}
/* Form fields */
.checkout-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    /* margin-bottom: 15px; */
}
.checkout-form-row.full-width {
    grid-template-columns: 1fr;
}
.checkout-form-group {
    margin-bottom: 15px;
}
.checkout-form-group label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}
.checkout-form-group input,
.checkout-form-group select,
.checkout-form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: calc(var(--shop-radius) / 2);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.checkout-form-group input:focus,
.checkout-form-group select:focus,
.checkout-form-group textarea:focus {
    border-color: var(--bs-primary);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--shop-primary, var(--shop-primary, #00a651)) 10%, transparent);
}
/* Shipping methods */
.checkout-shipping-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 12px 15px; */
    /* border: 1px solid #eee; */
    /* border-radius: calc(var(--shop-radius) / 2); */
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.checkout-shipping-option:hover {
    /* background: #f9f9f9; */
    /* border-color: #ddd; */
}
.checkout-shipping-option.active,
.checkout-shipping-option:has(input:checked) {
    /* border-color: var(--bs-primary); */
    /* background: color-mix(in srgb, var(--shop-primary, var(--shop-primary, #00a651)) 5%, transparent); */
}
.checkout-shipping-price {
    font-weight: 600;
    color: var(--bs-primary);
}
.checkout-shipping-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--bs-primary);
}
/* Rândul cu costul transportului, sub opțiunile de livrare (bară gri, ca pe live). */
.checkout-shipping-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: calc(var(--shop-radius) / 2);
    background: var(--bs-gray-100, #f7f9ff);
    color: #333;
    font-size: 0.95rem;
}
.checkout-shipping-summary strong {
    font-weight: 700;
    color: #333;
}
/* Payment methods */
.checkout-payment-option {
    padding: 10px 0;
}
/* Summary section */
.checkout-summary {
    background: #f8f9fa;
    border-radius: var(--shop-radius);
    padding: 20px;
}
.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
}
.checkout-summary-total {
    font-size: 1.3rem;
    font-weight: 700;
    border-top: 2px solid #ddd;
    padding-top: 15px;
    margin-top: 10px;
}
.checkout-summary-total .value {
    color: var(--bs-primary);
}
/* Voucher section */
.checkout-voucher {
    display: flex;
    gap: 10px;
    align-items: center;
}
.checkout-voucher input {
    flex: 1;
}
.checkout-voucher button {
    white-space: nowrap;
}
/* Voucher applied */
.checkout-voucher-applied {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(6, 178, 106, 0.1);
    border-radius: calc(var(--shop-radius) / 2);
    border: 1px solid var(--bs-success);
}
.checkout-voucher-info {
    color: var(--bs-success);
    font-weight: 600;
}
/* Terms checkboxes */
.checkout-terms {
    padding: 10px 0;
}
.checkout-terms label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
    font-size: 0.9rem;
}
.checkout-terms input {
    margin-top: 3px;
    flex-shrink: 0;
}
/* Global checkbox styling for checkout */
.checkout-section input[type="checkbox"],
.checkout-checkbox input[type="checkbox"],
.checkout-terms input[type="checkbox"],
#sameAddress {
    width: 18px !important;
    height: 18px !important;
    accent-color: var(--bs-primary) !important;
    cursor: pointer;
    flex-shrink: 0;
}
.checkout-checkbox {
    margin-top: 1rem;
}
.checkout-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}
/* Submit button */
.checkout-submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: var(--bs-primary);
    color: #fff;
    border: none;
    border-radius: var(--shop-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.checkout-submit-btn:hover {
    background: var(--bs-primary);
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--shop-primary, var(--shop-primary, #00a651)) 30%, transparent);
}
/* Login section for existing clients */
.checkout-login-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: calc(var(--shop-radius) / 2);
    margin-top: 15px;
}
/* WhatsApp help */
.checkout-help {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--shop-radius);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.checkout-help:hover {
    background: #f0f0f0;
    color: inherit;
}
.checkout-help-icon {
    width: 50px;
    height: 50px;
    background: var(--shop-whatsapp, #25d366);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}
/* Address list */
.checkout-address-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}
.checkout-address-item {
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: calc(var(--shop-radius) / 2);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.checkout-address-item:hover {
    border-color: #ddd;
    background: #fafafa;
}
.checkout-address-item:has(input:checked) {
    border-color: var(--bs-primary);
    background: color-mix(in srgb, var(--shop-primary, var(--shop-primary, #00a651)) 5%, transparent);
}
.checkout-address-item label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    width: 100%;
}
.checkout-address-item input {
    margin-top: 3px;
}
.checkout-address-content {
    flex: 1;
}
.checkout-address-main {
    font-weight: 600;
    color: #333;
}
.checkout-address-detail {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
}
/* Free shipping progress */
.checkout-free-shipping {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    padding: 12px 15px;
    border-radius: calc(var(--shop-radius) / 2);
    font-size: 0.9rem;
    margin-top: 15px;
}
.checkout-free-shipping strong {
    color: var(--bs-primary);
}
/* Locker selection */
.checkout-locker-section {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: calc(var(--shop-radius) / 2);
}
/* Tinute discount */
.checkout-discount-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(6, 178, 106, 0.1);
    border-radius: calc(var(--shop-radius) / 2);
    margin-bottom: 10px;
}
.checkout-discount-info {
    color: var(--bs-success);
}
/* Mobile responsive */
@media (max-width: 768px) {
    
    :root, [data-bs-theme=light] {
        --bs-padding-x: 15px;
        --bs-padding-y: 15px;
    }

    .checkout-wrapper {
        padding: 14px;
    }

    .checkout-section-body {
        padding: var(--shop-padding-y) 0px 0px;
    }

    .checkout-form-row {
        grid-template-columns: 1fr;
    }

    .checkout-product {
        flex-wrap: wrap;
    }

    .checkout-product-info {
        flex: 1 1 calc(100% - 95px);
    }

    .checkout-product-actions {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
    }

    .checkout-product-price {
        text-align: left;
    }

    .checkout-subtotal-row {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .checkout-voucher {
        flex-direction: column;
    }

    .checkout-voucher button {
        width: 100%;
    }
}
/* Compact Products Summary - New Layout (white card) */
.checkout-products-compact-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 0 20px 20px 20px;
    cursor: pointer;
}
.checkout-products-left {
    flex: 1;
}
.checkout-products-label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    margin-bottom: 5px;
}
.checkout-products-count {
    color: var(--bs-primary);
    font-weight: 600;
    margin-bottom: 10px;
}
.checkout-products-thumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.checkout-products-thumbs img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #eee;
}
.checkout-products-more {
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #666;
}
.checkout-products-right {
    text-align: right;
    min-width: 160px;
}
.checkout-products-oldprice {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
}
.checkout-products-subtotal {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}
.checkout-products-savings {
    color: #e74c3c;
    font-size: 0.85rem;
}
.checkout-products-arrow {
    color: var(--bs-primary);
    align-self: center;
    font-size: 0.8rem;
}
/* Products Modal */
.checkout-modal-products .modal-body {
    max-height: 60vh;
    overflow-y: auto;
}
.checkout-modal-products .checkout-product {
    padding: 12px 0;
}
.checkout-modal-subtotal {
    background: #f8f9fa;
    padding: 15px;
    border-radius: var(--shop-radius);
    margin-top: 15px;
}
@media (max-width: 768px) {
    .checkout-products-compact-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout-products-right {
        text-align: left;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(0,0,0,0.1);
    }

    .checkout-products-thumbs img {
        width: 45px;
        height: 45px;
    }

    .checkout-products-more {
        width: 45px;
        height: 45px;
    }
}
/* --- Cart Mobile Responsive --- */
@media (max-width: 740px) {
    .cart-summary__row {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-summary__right {
        justify-content: space-between;
    }

    .cart-summary__total {
        text-align: left;
        min-width: 0;
    }

    .cart-summary__total-line {
        justify-content: flex-start;
    }

    .cart-drawer {
        border-radius: 18px;
    }

    /* Cart Item - 2 rows layout (Option B) */
    .cart-item {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .cart-item__thumb {
        flex: 0 0 auto;
    }

    .cart-item__info {
        flex: 1 1 calc(100% - 70px); /* Full width minus thumb */
        max-width: none;
    }

    /* Row 2: Controls + Delete + Price - full width */
    .cart-item__controls {
        order: 3;
    }

    .cart-item__price {
        order: 4;
        margin-left: auto;
        min-width: auto;
        text-align: right;
    }

    .cart-item__qty {
        padding: 4px 6px;
    }

    .cart-item__iconbtn {
        width: 28px;
        height: 28px;
    }

    /* Minicart Grid - 2 row layout on mobile */
    .cart-group__items .cart-item,
    [data-minicart-items] .cart-item {
        grid-template-columns: 40px 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "thumb info"
            "controls price";
        row-gap: 8px;
    }

    .cart-group__items .cart-item__thumb,
    [data-minicart-items] .cart-item__thumb {
        grid-area: thumb;
        width: 40px;
        height: 40px;
    }

    .cart-group__items .cart-item__info,
    [data-minicart-items] .cart-item__info {
        grid-area: info;
    }

    .cart-group__items .cart-item__controls,
    [data-minicart-items] .cart-item__controls {
        grid-area: controls;
        justify-self: start;
    }

    .cart-group__items .cart-item__price,
    [data-minicart-items] .cart-item__price {
        grid-area: price;
        justify-self: end;
    }

    .cart-item__info{
        /* max-width: ; */
    }
    .checkout-form-group{
        width: 100%;
    }
}
.checkout-section.coupon {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin-bottom: 0;
    border: none;
    transition: max-height .25s ease, opacity .2s ease, margin .25s ease, padding .25s ease, border .25s ease;
}
.checkout-section.coupon .checkout-section-body {
    padding: 0;
    transition: padding .25s ease;
}
.checkout-section.coupon.is-open {
    max-height: 150px;
    opacity: 1;
    margin-bottom: 15px;
    /* border: 1px solid #dee2e6; */
}
.checkout-section.coupon.is-open .checkout-section-body {
    padding: var(--shop-padding-y) var(--shop-padding-x);
}
.checkout-section.no-wrp-padding {
    padding: 0px;
}
.checkout-section.no-wrp-padding .checkout-section-header {
    margin: var(--shop-padding-y) var(--shop-padding-x) 0px;
}
.checkout-section.no-wrp-padding .cart-summary {
    padding: 0px var(--shop-padding-x) var(--shop-padding-y);
}
/* mobile */
@media screen and (max-width: 576px) {
    
    div#carouselBlog .carousel-item {
        padding: 0px calc(var(--bs-gutter-x) * .5);
    }
    
    body{
        --bs-body-line-height:1.2;
    }

    div .shop-body {
        padding-bottom: 0px;
    }

    div .shop-card img{
        height: 190px;
    }

    div .shop-title {
        font-size: 14px;
        height: 34px;
    }

    div .shop-brand {
        font-size: 12px;
    }

     div .shop-price {
        font-size: 16px;
        margin-bottom: 0px;
    }

    div .shop-rating-count {
        font-size: 12px;
        display: none;
    }

    div .shop-like-btn{
        font-size: 12px;
    }

    .shop-price-section {
        display: flex;
        flex-direction: column;
        align-content: center;
        align-items: baseline;
        justify-content: flex-start;
        gap: 5px;
        margin-bottom: 5px;
    }

    div .shop-rating-like{
        margin-bottom: 3px;
    }


    div .shop-product-name a{
        height: 30px;
        overflow: elipsis;
    }

    .support-card .item {
        align-items: flex-start;
        display: flex;
    }

    .support-card .item .txt {
        text-align: left;
    }

    div .footer-logo {
        height: 30px;
    }

    .footer-logos-row{
        margin-top: var(--shop-margin-y);
        gap: var(--shop-gap);
    }

    ul.pagination{
        max-width: calc(100vw - var(--bs-gutter-x));
    }

    div .support-card .item {
        grid-template-columns: 24px 1fr;
    }

    .shop-similar-products-title {
        font-size: 1.4rem;
    }

    div .benefits-box{
        background-color: transparent;
        padding: 0px;
        box-shadow: none;
    }

    div .benefits-row {
        flex-direction: column;
        gap: calc(var(--bs-gutter-x) * .5);
    }

    div .benefit-item {
        background-color: #fff;
        width: 100%;
        padding: var(--shop-padding-y) var(--shop-padding-x);
        border-radius: var(--shop-radius);
        box-shadow: var(--shop-shadow);
    }

    .checkout-terms label {
        display: inline-block;
    }

    .shop-installments-content ul li {
        text-align: left;
    }

    .order-success-page .minicart-panel.order-products.mb-3 {
        height: auto;
    }
    
}

/* ==========================================================================
   Erori de validare la checkout
   Panoul de sus (sumarul erorilor) + mesajele inline sub câmpuri + marcarea
   în roșu a câmpurilor greșite. Erorile vin din CheckoutValidator (render
   server-side) sau din validarea de la submit din checkout.js.
   ========================================================================== */
.checkout-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 14px 16px;
    border-radius: var(--shop-radius, 16px);
    font-size: 14px;
    line-height: 1.5;
}
.checkout-alert-error {
    border: 1px solid rgba(220, 80, 80, .35);
    background: rgba(220, 80, 80, .08);
    color: #b02a2a;
}
.checkout-alert-icon {
    display: flex;
    flex: 0 0 auto;
    margin-top: 1px;
}
.checkout-alert-body {
    min-width: 0;
}
.checkout-alert-title {
    margin: 0;
    font-weight: 600;
}
.checkout-alert-list {
    margin: 6px 0 0;
    padding-left: 18px;
}
.checkout-alert-list li + li {
    margin-top: 2px;
}

/* Mesajul de sub câmp (server-side sau adăugat de checkout.js). */
.checkout-field-error {
    margin: 6px 0 0;
    color: #b02a2a;
    font-size: 12.5px;
    line-height: 1.4;
}

/* Eroarea inline (termeni) — aceleași culori ca panoul de sus. */
.checkout-inline-error {
    padding: 10px 14px;
    border: 1px solid rgba(220, 80, 80, .35);
    border-radius: 10px;
    background: rgba(220, 80, 80, .08);
    color: #b02a2a;
    font-size: 13px;
    line-height: 1.5;
}
.checkout-inline-error.is-hidden {
    display: none;
}

/* Câmpurile greșite: doar bordură roșie (fără iconița Bootstrap, care se
   suprapune peste chevron-ul de select și peste colțul textarea-ului). */
.checkout-section .form-control.is-invalid,
.checkout-section .form-select.is-invalid {
    border-color: rgba(220, 80, 80, .65);
    background-image: none;
    padding-right: .75rem;
}
.checkout-section .form-control.is-invalid:focus,
.checkout-section .form-select.is-invalid:focus {
    border-color: rgba(220, 80, 80, .85);
    box-shadow: 0 0 0 3px rgba(220, 80, 80, .12);
}
/* Select2 înlocuiește <select>-ul de județ/localitate cu propriul container. */
.checkout-section .form-control.is-invalid + .select2-container .select2-selection,
.checkout-section .form-select.is-invalid + .select2-container .select2-selection {
    border-color: rgba(220, 80, 80, .65);
}

/* Grupuri fără câmp propriu (plată, rate, termeni): ramă roșie pe tot blocul. */
.checkout-radio-group.is-invalid,
.rate-options-box.is-invalid,
.checkout-terms.is-invalid {
    padding: 12px;
    border: 1px solid rgba(220, 80, 80, .45);
    border-radius: 12px;
    background: rgba(220, 80, 80, .05);
}

/* Numărul de rate (apare sub metodele de plată când e bifat „în rate").
   Dezvăluirea se face din CSS, nu doar din checkout.js: markup-ul vine cu
   `style="display:none"` inline, iar `!important` de aici îl bate. Dacă JS-ul
   crapă undeva mai devreme, opțiunile rămân totuși accesibile. */
.checkout-section-body:has(#plata5:checked) .rate-options-box {
    display: block !important;
}
.rate-options-box {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    background: rgba(0, 0, 0, .02);
    margin: 10px 0 10px 0px;
}
.rate-options-box .rate-info-text {
    margin: 0 0 10px;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #6c757d;
}
.rate-options-box .rate-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 8px 8px 0;
    padding: 7px 14px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 999px;
    background: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.rate-options-box .rate-option:hover {
    border-color: var(--bs-primary);
}
.rate-options-box .rate-option:has(input:checked) {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), .15);
}
.rate-options-box .rate-option input[type="radio"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--bs-primary);
}

/* ==========================================================================
   Coșul din checkout, desfășurat în pagină (fără drawer)
   --------------------------------------------------------------------------
   `cart.drawer` e randat inline în „Produse comandate". Aceleași reguli ca varianta
   secretbox (secret-box-cart.css), dar gate-ul e clasa wrapper, nu clasa de pe <body>:
   comportamentul „inline" ține de locul unde e pus componenta, nu de temă.
   Categoriile rămân mereu deschise — `hidden` e pus înapoi de app.min.js la fiecare
   re-randare a listei, așa că îl întrecem din CSS în loc să ne luptăm cu el din JS.
   ========================================================================== */
.checkout-cart-inline .cart-drawer-overlay {
    position: static;
    inset: auto;
    display: block !important;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: auto;
}
.checkout-cart-inline .cart-drawer {
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    animation: none;
    transform: none;
    opacity: 1;
}
/* Capul (titlu + „×") și piciorul („Restrânge" / „Extinde") n-au rost fără drawer. */
.checkout-cart-inline .cart-drawer__head,
.checkout-cart-inline .cart-drawer__foot { display: none; }
.checkout-cart-inline .cart-drawer__body {
    padding: 0;
    overflow: visible;
    gap: 14px;
}
/* Rândul de categorie rămâne doar titlu: fără cursor de buton, fără chevron, fără
   miniaturi (produsele se văd oricum dedesubt). */
.checkout-cart-inline .cart-group__row { cursor: default; }
.checkout-cart-inline .cart-group__chev,
.checkout-cart-inline .cart-group__thumbs { display: none; }
.checkout-cart-inline .cart-group__panel { display: block !important; }

/* Contorul „N produse în M categorii", lângă titlul secțiunii. */
.checkout-section-header .cart-summary__meta {
    margin-left: .5rem;
    font-weight: 400;
    font-size: .875rem;
    color: var(--shop-text-muted, #6b7280);
}

/* Lista stă în corpul secțiunii, care e `no-wrp-padding` (fără padding, ca vechiul card
   „Selecția ta" să atingă marginile). Fără padding lateral, bordura fiecărei categorii ar
   cădea exact peste bordura secțiunii — border în border. Doar lateral și jos: sus vine
   deja din `.checkout-section-body`. */
.checkout-section.no-wrp-padding .checkout-cart-inline {
    padding-inline: var(--shop-padding-x);
    padding-bottom: var(--shop-padding-y);
}

/* Totalurile produselor, sub lista pe categorii. Aceleași rânduri ca „Sumar comandă",
   doar mai discrete: aici e totalul produselor, nu al comenzii (transportul se adaugă jos).
   Padding-ul lateral e al lor, ca la listă — corpul secțiunii e `no-wrp-padding`. */
.checkout-section.no-wrp-padding .checkout-cart-totals {
    padding-inline: var(--shop-padding-x);
    padding-bottom: var(--shop-padding-y);
}
.checkout-cart-totals .checkout-summary-total {
    font-size: 1.1rem;
    padding-top: 12px;
}

/* ==========================================================================
   Butonul de finalizare, în timpul trimiterii
   Comanda pleacă printr-un POST clasic, deci pagina rămâne pe loc câteva
   secunde bune. Fără un semn vizibil, clientul crede că n-a mers și trimite
   din nou — de acolo vin comenzile duplicate. Starea o pune
   CheckoutSubmitGuardComponent.
   ========================================================================== */
.checkout-submit-btn.is-submitting,
body.sb-checkout .checkout-submit-btn.is-submitting {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    pointer-events: none;
}

/* Comanda trimisă de două ori: a doua oară a fost recunoscută ca duplicat și
   nu s-a creat una nouă. Mesajul apare deasupra cardului de succes. */
.order-dedup-notice {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 193, 7, .45);
    background: rgba(255, 193, 7, .12);
    color: #6b4e00;
    font-size: 14px;
    text-align: center;
}
