﻿:root {
    --brand-red: #C10206;
    --brand-red-dark: #a00003;
    --brand-gray: #6b7280;
    --brand-light-gray: #f9fafb;
    --brand-border: #d1d5db;
    --brand-text: #1f2937;
    --brand-success: #10b981;
    --brand-error: #dc2626;
    --brand-blue: #3b82f6;
}

/* Container scroll compact */
.checkout-scroll-container {
    flex-grow: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 80px;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-border) transparent;
}

    .checkout-scroll-container::-webkit-scrollbar {
        width: 5px;
    }

    .checkout-scroll-container::-webkit-scrollbar-thumb {
        background-color: var(--brand-border);
        border-radius: 3px;
    }

/* Tranziții între view-uri */
#checkout-view, #confirmation-view {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    padding: 0 14px;
}

#cart-view {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

#cosLateral.checkout-active #cart-view,
#cosLateral.confirmation-active #cart-view,
#cosLateral.confirmation-active #checkout-view {
    opacity: 0;
    transform: translateX(-30px);
    pointer-events: none;
    position: absolute;
    width: 100%;
}

#cosLateral.checkout-active #checkout-view,
#cosLateral.confirmation-active #confirmation-view {
    opacity: 1;
    transform: translateX(0);
    position: static;
    pointer-events: auto;
}

/* ===== PERSOANĂ FIZICĂ / JURIDICĂ ===== */
.person-type-selection {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 10px 0 15px 0;
    border-bottom: 1px solid var(--brand-border);
    padding-bottom: 10px;
}

.person-type-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--brand-gray);
    transition: color 0.2s ease;
}

    .person-type-option input[type="radio"] {
        margin-right: 5px;
        width: 15px;
        height: 15px;
        accent-color: var(--brand-success);
        cursor: pointer;
    }

        .person-type-option input[type="radio"]:checked + span {
            color: var(--brand-text);
            font-weight: 700;
        }

/* ===== FLOATING LABELS & FORM ===== */
.person-form {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .person-form[hidden] {
        display: none;
    }

.form-group {
    position: relative;
    margin-bottom: 6px;
}

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 0.6rem 0.7rem 0.1rem 0.7rem;
        font-size: 0.9rem;
        font-family: inherit;
        color: var(--brand-text);
        background-color: #fff;
        border: 1px solid var(--brand-border);
        border-radius: 5px;
        box-sizing: border-box;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
        resize: vertical;
        min-height: 38px;
    }

    .form-group select {
        padding: 0.6rem 0.7rem;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 0.7rem center;
        background-size: 1em;
        cursor: pointer;
    }

        .form-group select:invalid {
            color: var(--brand-gray);
        }

#checkout-county,
#checkout-city {
    appearance: none;
    background: none;
    padding: 0.6rem 0.7rem 0.1rem 0.7rem;
}

    #checkout-county:focus,
    #checkout-city:focus {
        outline: none;
        border-color: var(--brand-success);
        box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
    }

.form-group textarea {
    padding-top: 1.1rem;
    line-height: 1.3;
}

    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: transparent;
    }

/* Label */
.form-group label {
    position: absolute;
    top: 0.1rem;
    left: 0.75rem;
    font-size: 0.9rem;
    color: var(--brand-gray);
    pointer-events: none;
    transition: all 0.2s ease;
    background-color: #fff;
    padding: 0 2px;
    z-index: 1;
    line-height: 1.3;
}

/* Label urcă la focus / completat */
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group.has-value label {
    top: -0.45rem;
    left: 0.6rem;
    font-size: 0.7rem;
    color: #374151;
    font-weight: 500;
}

/* Focus — verde, nu roșu */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-success);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
}

/* ===== VALIDARE ERORI ===== */
.validation-error {
    color: var(--brand-error);
    font-size: 0.7rem;
    font-weight: 500;
    margin-top: 1px;
    padding-left: 4px;
    display: none;
    min-height: 1em;
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    border-color: var(--brand-error);
    background-color: #fef2f2;
}

.form-group.has-error .validation-error {
    display: block;
}

.form-group.has-error label {
    color: var(--brand-error);
}

/* ===== ACORDEON SUMAR COMANDĂ ===== */
.order-summary-accordion {
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    margin: 12px 0 10px 0;
    background-color: var(--brand-light-gray);
    flex-shrink: 0;
}

.order-summary-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--brand-border);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
}

    .order-summary-toggle[aria-expanded="true"] {
        border-bottom-color: transparent;
    }

.summary-toggle-left {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--brand-text);
}

    .summary-toggle-left .cart-icon-summary {
        width: 16px;
        height: 16px;
        color: var(--brand-gray);
    }

.summary-toggle-right {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--brand-text);
    font-weight: 700;
    flex-shrink: 0;
}

    .summary-toggle-right .chevron-icon {
        transition: transform 0.3s ease;
        color: var(--brand-gray);
        width: 14px;
        height: 14px;
    }

.order-summary-toggle[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
}

.order-summary-content {
    padding: 0 14px;
    background-color: #fff;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s 0.1s ease-out, padding 0.4s ease-out;
}

    .order-summary-content.active {
        max-height: 500px;
        opacity: 1;
        padding: 14px;
    }

#summary-items-list .summary-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
    font-size: 0.85rem;
}

    #summary-items-list .summary-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    #summary-items-list .summary-item img {
        width: 45px;
        height: 45px;
        object-fit: cover;
        border-radius: 4px;
        border: 1px solid #eee;
    }

#summary-items-list .summary-item-details {
    flex-grow: 1;
}

#summary-items-list .summary-item-name {
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
    color: #333;
}

#summary-items-list .summary-item-price-qty {
    color: #666;
    font-size: 0.75rem;
}

#summary-items-list .summary-item-total {
    font-weight: 600;
    white-space: nowrap;
    color: #333;
    align-self: center;
}

.summary-totals {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
}

    .summary-totals div {
        display: flex;
        justify-content: space-between;
        margin-bottom: 4px;
        color: #444;
    }

    .summary-totals span:last-child {
        font-weight: 600;
    }

    .summary-totals #summary-shipping {
        color: var(--brand-success);
    }

/* ===== SECȚIUNEA EXPANDABILĂ (Cod Promo, Mențiuni) ===== */
.optional-details-section {
    margin-top: 10px;
    border-top: 1px dashed var(--brand-border);
    padding-top: 10px;
}

.optional-details-toggle {
    background: none;
    border: none;
    color: var(--brand-blue);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    text-align: left;
}

    .optional-details-toggle .toggle-icon {
        width: 16px;
        height: 16px;
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }

    .optional-details-toggle[aria-expanded="true"] .toggle-icon {
        transform: rotate(45deg);
    }

.optional-details-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.2s ease-out, margin-top 0.3s ease-out;
    margin-top: 0;
}

    .optional-details-content.expanded {
        max-height: 400px;
        opacity: 1;
        margin-top: 4px;
    }

#optional-content .form-group {
    margin-bottom: 10px;
}

    #optional-content .form-group:last-child {
        margin-bottom: 0;
    }

.promo-code-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 10px 0 6px 0;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-input-group {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

    .promo-input-group input {
        flex-grow: 1;
        padding: 0.5rem 0.6rem 0.1rem 0.6rem;
        font-size: 0.85rem;
        min-height: 36px;
        font-family: inherit;
        color: var(--brand-text);
        background-color: #fff;
        border: 1px solid var(--brand-border);
        border-radius: 5px;
        box-sizing: border-box;
        transition: border-color 0.2s ease;
    }

        .promo-input-group input::placeholder {
            color: var(--brand-gray);
        }

        .promo-input-group input:focus {
            outline: none;
            border-color: var(--brand-success);
            box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
        }

.btn-apply-promo {
    padding: 0 0.9rem;
    height: 36px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    background-color: var(--brand-blue);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
    text-transform: uppercase;
    line-height: 36px;
}

    .btn-apply-promo:hover {
        background-color: #2563eb;
    }

    .btn-apply-promo:disabled {
        background-color: var(--brand-gray);
        cursor: not-allowed;
        opacity: 0.7;
    }

#promo-feedback {
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 4px;
    min-height: 1.1em;
    color: var(--brand-gray);
}

    #promo-feedback.success {
        color: var(--brand-success);
    }

    #promo-feedback.error {
        color: var(--brand-error);
    }

/* ===== PLATĂ / LIVRARE / TOTAL — info compact ===== */
.payment-shipping-total-info {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.payment-shipping-compact {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 0;
}

.compact-info-item {
    font-size: 0.7rem;
    color: var(--brand-gray);
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 3px;
}

    .compact-info-item strong {
        color: var(--brand-text);
    }

.order-total-compact {
    padding: 0;
    margin-bottom: 0;
    text-align: right;
    border-top: none;
    padding-top: 0;
}

    .order-total-compact span:first-child {
        display: block;
        font-size: 0.75rem;
        color: var(--brand-gray);
        font-weight: 500;
        margin-bottom: -3px;
    }

/* Total — negru bold, nu roșu */
.total-amount {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
}

/* ===== FOOTER STICKY + BUTON PLASEAZĂ COMANDA ===== */
.checkout-footer-sticky {
    padding: 10px 14px;
    border-top: 1px solid var(--brand-border);
    background-color: #ffffff;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
    margin-top: auto;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

/* Butonul PLASEAZĂ COMANDA — singurul element ROȘU din checkout */
.place-order-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--brand-red);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    user-select: none;
    -webkit-user-select: none;
}

    .place-order-btn:hover {
        background-color: var(--brand-red-dark);
        transform: scale(1.01);
    }

    .place-order-btn:active {
        transform: scale(0.99);
    }

    .place-order-btn:disabled {
        background-color: #d1d5db;
        color: #6b7280;
        cursor: not-allowed;
        opacity: 0.7;
        transform: none;
    }

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== CONFIRMARE COMANDĂ ===== */
.confirmation-container {
    padding: 2rem 14px;
    text-align: center;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
    font-family: 'Inter', sans-serif;
}

#cosLateral.confirmation-active .confirmation-container {
    opacity: 1;
    transform: scale(1);
}

.confirmation-icon {
    margin-bottom: 1rem;
}

    .confirmation-icon svg {
        width: 42px;
        height: 42px;
    }

.confirmation-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Teko', sans-serif;
    color: var(--brand-text);
}

.confirmation-container p {
    color: #374151;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.confirmation-container strong#order-number {
    color: var(--brand-success);
    font-weight: 700;
}

#confirmation-email-form {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: var(--brand-light-gray);
    border-radius: 8px;
    border: 1px solid var(--brand-border);
}

    #confirmation-email-form p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
        color: #4b5563;
        font-weight: 500;
    }

    #confirmation-email-form .form-group {
        display: flex;
        gap: 8px;
        margin-bottom: 0.5rem;
        align-items: stretch;
    }

    #confirmation-email-form input {
        flex-grow: 1;
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        border: 1px solid var(--brand-border);
        border-radius: 5px;
    }

    #confirmation-email-form button {
        padding: 0.6rem 1rem;
        background-color: #4b5563;
        color: white;
        border: none;
        border-radius: 5px;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.2s;
        font-size: 0.85rem;
    }

        #confirmation-email-form button:hover {
            background-color: #374151;
        }

        #confirmation-email-form button:disabled {
            background-color: #9ca3af;
            cursor: not-allowed;
        }

#confirmation-email-feedback {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    min-height: 1.1em;
    font-weight: 500;
}

    #confirmation-email-feedback.success {
        color: var(--brand-success);
    }

    #confirmation-email-feedback.error {
        color: var(--brand-error);
    }

.confirmation-summary {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    text-align: left;
    font-size: 0.9rem;
}

    .confirmation-summary h4 {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 1rem;
        text-align: center;
        color: #374151;
    }

    .confirmation-summary div:not(.confirmation-total) {
        display: flex;
        justify-content: space-between;
        margin-bottom: 0.5rem;
        color: #4b5563;
    }

    .confirmation-summary span:last-child {
        font-weight: 600;
        color: var(--brand-text);
    }

.confirmation-total {
    margin-top: 1rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--brand-border);
    font-size: 1.1rem !important;
    color: var(--brand-text) !important;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
}

    .confirmation-total strong {
        color: var(--brand-text) !important;
        font-weight: 700;
    }

.btn-back-to-shop {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    background-color: #e5e7eb;
    color: #374151;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

    .btn-back-to-shop:hover {
        background-color: #d1d5db;
        transform: scale(1.03);
    }

    .btn-back-to-shop:active {
        transform: scale(0.97);
    }

/* ===== FOOTER STICKY VISIBILITY ===== */
#checkout-sticky-footer {
    display: none;
}

#cosLateral.checkout-active #checkout-sticky-footer {
    display: block;
}

.sidebar.active ~ .fab-whatsapp-wrapper,
.fab-whatsapp-wrapper[data-sidebar-open="true"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* =============================================================================
   DELIVERY METHOD — CLEAN CARD DESIGN
   Filosofie: toate cardurile arată la fel (border gri, fond alb).
   Selectatul primește border verde + checkmark verde. Zero roșu. Zero dimming.
   ============================================================================= */
.delivery-method-selection {
    margin: 12px 0 8px 0;
}

.delivery-method-title,
.payment-method-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #111 !important;
    margin-bottom: 10px !important;
    letter-spacing: 0.2px !important;
}

/* Card shared style — delivery + payment */
.delivery-method-option,
.payment-method-option {
    display: block;
    cursor: pointer;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    background: #fff;
}

    .delivery-method-option:hover,
    .payment-method-option:hover {
        border-color: #bbb;
        background: #fafafa;
    }

    /* SELECTED — verde subtil + check */
    .delivery-method-option.selected,
    .payment-method-option.selected {
        border-color: var(--brand-success);
        background: #f0fdf4;
        box-shadow: 0 0 0 1px var(--brand-success);
    }

        /* Checkmark cerc verde */
        .delivery-method-option.selected::after,
        .payment-method-option.selected::after {
            content: '✓';
            position: absolute;
            top: 10px;
            right: 12px;
            width: 20px;
            height: 20px;
            background: var(--brand-success);
            color: white;
            border-radius: 50%;
            font-size: 11px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

    /* Hide radio inputs */
    .delivery-method-option input[type="radio"],
    .payment-method-option input[type="radio"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

/* Headers — spațiu pentru checkmark */
.dm-header, .pm-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    padding-right: 28px;
}

.dm-icon, .pm-icon {
    font-size: 16px;
}

.dm-name, .pm-name {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

.dm-subtitle, .pm-subtitle {
    font-size: 11px;
    color: #666;
    margin-bottom: 2px;
}

/* Price info row */
.dm-price-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    flex-wrap: wrap;
}

.dm-price {
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

.dm-threshold {
    font-size: 10px;
    color: #999;
}

.dm-free-badge {
    background: var(--brand-success);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-left: auto;
}

/* ===== FANBOX — Recomandat badge ===== */
.dm-recommended {
    border-color: #e0e0e0;
    background: #fff;
}

    .dm-recommended.selected {
        border-color: var(--brand-success);
        background: #f0fdf4;
        box-shadow: 0 0 0 1px var(--brand-success);
    }

.dm-recommended-badge {
    background: var(--brand-success);
    color: white;
    font-size: 8px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== PICKUP — Depozit ===== */
.dm-pickup-option {
    border-color: #e0e0e0;
    border-style: solid;
    background: #fff;
}

    .dm-pickup-option.selected {
        border-color: var(--brand-success) !important;
        border-style: solid;
        background: #f0fdf4 !important;
        box-shadow: 0 0 0 1px var(--brand-success);
    }

.dm-pickup-badge {
    background: #059669;
    color: white;
    font-size: 8px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.dm-pickup-address {
    font-size: 10px;
    color: #555;
    margin-top: 4px;
    line-height: 1.3;
    padding: 4px 6px;
    background: #f9fafb;
    border-radius: 4px;
}

.dm-pickup-schedule {
    font-size: 10px;
    color: #059669;
    font-weight: 600;
    margin-top: 2px;
}

.dm-pickup-savings {
    font-size: 11px;
    color: #059669;
    font-weight: 600;
    margin-top: 6px;
    padding: 4px 8px;
    background: #ecfdf5;
    border-radius: 6px;
    border: 1px solid #a7f3d0;
    text-align: center;
}

/* FanBox dezactivat (cocos în coș) */
.delivery-method-option.disabled-fanbox {
    opacity: 0.4;
    pointer-events: none;
}

/* ===== FANBOX MAP SELECTOR ===== */
.fanbox-selector {
    margin-top: 8px;
    padding: 10px;
    background: #f0f7ff;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
}

.fanbox-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #555;
    padding: 8px;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid #e0e0e0;
    border-top-color: var(--brand-success);
    border-radius: 50%;
    animation: spinSmall 0.8s linear infinite;
}

@keyframes spinSmall {
    to {
        transform: rotate(360deg);
    }
}

.fanbox-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    color: #111;
    margin-bottom: 8px;
    appearance: auto;
}

    .fanbox-select:disabled {
        background: #f3f4f6;
        color: #999;
    }

.fanbox-info {
    background: white;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--brand-success);
    margin-top: 6px;
}

.fanbox-info-name {
    font-weight: 700;
    font-size: 13px;
    color: #111;
    margin-bottom: 2px;
}

.fanbox-info-address {
    font-size: 11px;
    color: #555;
    margin-bottom: 2px;
}

.fanbox-info-schedule {
    font-size: 10px;
    color: var(--brand-success);
    font-weight: 600;
}

.fanbox-unavailable {
    padding: 8px;
    background: #fff3cd;
    border-radius: 6px;
    font-size: 11px;
    color: #856404;
    text-align: center;
    margin-top: 8px;
}

.fanbox-map-btn {
    width: 100%;
    padding: 10px;
    background: #1a56db;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 8px;
}

    .fanbox-map-btn:hover {
        background: #1e40af;
    }

#fanbox-map-container {
    min-height: 0;
    border-radius: 8px;
    overflow: hidden;
}

/* ===== PAYMENT METHOD ===== */
.payment-method-selection {
    margin: 8px 0 8px 0;
}

.pm-secure-badge {
    background: var(--brand-success);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-left: auto;
}

/* ===== SUGGESTION BANNER ===== */
.dm-suggestion-banner {
    font-size: 11px;
    color: #0369a1;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 6px;
    text-align: center;
    line-height: 1.3;
}

/* ===== DISCOUNT ROW (pickup) ===== */
.dm-discount-applied {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #059669;
    font-weight: 600;
    padding: 4px 0;
}

/* ===== MOBILE ===== */
@media (max-width: 375px) {
    #checkout-view, #confirmation-view {
        padding: 0 10px;
    }

    .checkout-footer-sticky {
        padding: 8px 10px;
    }

    .form-group input, .form-group textarea, .form-group select, .promo-inline input, .promo-input-group input {
        padding: 0.5rem 0.6rem 0.1rem 0.6rem;
        font-size: 0.85rem;
        min-height: 36px;
    }

    .form-group label {
        top: 0.3rem;
        font-size: 0.85rem;
    }

    .form-group input:focus + label,
    .form-group input:not(:placeholder-shown) + label,
    .form-group textarea:focus + label,
    .form-group textarea:not(:placeholder-shown) + label,
    .form-group.has-value label {
        font-size: 0.65rem;
        top: -0.4rem;
    }

    .person-type-selection {
        gap: 15px;
    }

    .person-type-option {
        font-size: 0.85rem;
    }

    .place-order-btn {
        font-size: 0.9rem;
        padding: 10px;
    }

    .optional-details-toggle {
        font-size: 0.8rem;
    }

    .promo-input-group input {
        font-size: 0.8rem;
    }

    .btn-apply-promo {
        font-size: 0.75rem;
        height: 36px;
        line-height: 36px;
        padding: 0 0.8rem;
    }

    .payment-shipping-total-info {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .payment-shipping-compact {
        align-self: flex-start;
    }

    .order-total-compact {
        align-self: flex-end;
    }
}

/* =============================================================================
   DELIVERY METHOD — Threshold Visibility & Pickup Fixes
   Adaugă în _checkout-rapid.css sau inline în _Sidebars.cshtml
   ============================================================================= */

/* --- PRAG TRANSPORT: vizibil și clar pe fiecare opțiune de livrare --- */
.dm-threshold {
    display: block !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #c10206 !important;
    margin-top: 6px !important;
    padding: 5px 10px !important;
    background: rgba(193, 2, 6, 0.06) !important;
    border: 1px dashed rgba(193, 2, 6, 0.25) !important;
    border-radius: 6px !important;
    line-height: 1.4 !important;
    letter-spacing: 0.2px !important;
}

    .dm-threshold strong {
        color: #c10206 !important;
        font-weight: 800 !important;
        font-size: 14px !important;
    }

/* --- FREE BADGE: cand pragul e atins --- */
.dm-free-badge {
    display: inline-block;
    background: #10b981 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    letter-spacing: 0.5px !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    text-transform: uppercase !important;
}

/* --- PICKUP SCHEDULE: fara verde, neutral/dark --- */
.dm-pickup-schedule {
    color: #555 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin-top: 4px !important;
    /* Eliminat orice verde */
}

/* --- PICKUP ADDRESS: neutral styling --- */
.dm-pickup-address {
    color: #333 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin-top: 4px !important;
    padding: 6px 8px !important;
    background: #f5f5f5 !important;
    border-radius: 6px !important;
}

/* --- PICKUP BADGE: gold, nu verde --- */
.dm-pickup-badge {
    display: inline-block;
    background: linear-gradient(135deg, #b8860b, #daa520) !important;
    color: #000 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    margin-left: 6px !important;
}

/* --- PICKUP SAVINGS: gold/brown, nu verde --- */
.dm-pickup-savings {
    color: #8b6914 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-top: 8px !important;
    padding: 6px 10px !important;
    background: rgba(184, 134, 11, 0.08) !important;
    border: 1px solid rgba(184, 134, 11, 0.2) !important;
    border-radius: 6px !important;
}

/* =============================================================================
   PATCH CSS — Adaugă la sfârșitul _checkout-rapid.css sau inline în _Sidebars
   ============================================================================= */

/* =============================================================================
   1. TRUST SIGNALS BUYATF — Forțat orizontal pe TOATE mobilele
   ============================================================================= */
.trust-signals-buyAtf {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    gap: 6px !important;
    width: 100% !important;
}

    .trust-signals-buyAtf > * {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        text-align: center !important;
    }

/* Pe ecrane foarte mici, reducem font-ul */
@media (max-width: 380px) {
    .trust-signals-buyAtf {
        gap: 4px !important;
    }

        .trust-signals-buyAtf * {
            font-size: 9px !important;
        }
}

/* =============================================================================
   2. DELIVERY METHOD — Praguri vizibile + Pickup neutru
   ============================================================================= */

/* --- PRAG TRANSPORT: vizibil și clar pe fiecare opțiune de livrare --- */
.dm-threshold {
    display: block !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #c10206 !important;
    margin-top: 6px !important;
    padding: 5px 10px !important;
    background: rgba(193, 2, 6, 0.06) !important;
    border: 1px dashed rgba(193, 2, 6, 0.25) !important;
    border-radius: 6px !important;
    line-height: 1.4 !important;
    letter-spacing: 0.2px !important;
}

    .dm-threshold strong {
        color: #c10206 !important;
        font-weight: 800 !important;
        font-size: 13px !important;
    }

/* --- FREE BADGE: când pragul e atins --- */
.dm-free-badge {
    display: inline-block;
    background: #10b981 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    letter-spacing: 0.5px !important;
    margin-top: 6px !important;
    text-transform: uppercase !important;
}

/* --- PICKUP SCHEDULE: fără verde, neutru --- */
.dm-pickup-schedule {
    color: #555 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin-top: 4px !important;
}

/* --- PICKUP ADDRESS: neutru --- */
.dm-pickup-address {
    color: #333 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin-top: 4px !important;
    padding: 6px 8px !important;
    background: #f5f5f5 !important;
    border-radius: 6px !important;
}

/* --- PICKUP BADGE: gold, nu verde --- */
.dm-pickup-badge {
    display: inline-block;
    background: linear-gradient(135deg, #b8860b, #daa520) !important;
    color: #000 !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    margin-left: 6px !important;
}

/* --- PICKUP SAVINGS: gold/brown, nu verde --- */
.dm-pickup-savings {
    color: #8b6914 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-top: 8px !important;
    padding: 6px 10px !important;
    background: rgba(184, 134, 11, 0.08) !important;
    border: 1px solid rgba(184, 134, 11, 0.2) !important;
    border-radius: 6px !important;
}

/* =============================================================================
   3. FANBOX SOCIAL PROOF — mai concret
   ============================================================================= */
.dm-social-proof {
    font-size: 10px !important;
    color: #10b981 !important;
    font-weight: 600 !important;
    margin-top: 4px !important;
    line-height: 1.2 !important;
}

/* =============================================================================
   4. ELIMINARE dm-fanbox-suggestion — ascuns permanent
   ============================================================================= */
.dm-suggestion-banner, kadane
#dm-fanbox-suggestion {
    display: none !important;
}

/* Progress bar impunător */
.cart-shipping-progress {
    margin: 8px 0 !important;
    padding: 8px 10px !important;
    background: #f0f0f0 !important;
    border-radius: 10px !important;
    border: 1.5px solid #e0e0e0 !important;
}

    .cart-shipping-progress .progress-text-content {
        font-size: 11px !important;
        font-weight: 700 !important;
        gap: 6px !important;
        margin-bottom: 6px !important;
    }

    .cart-shipping-progress .progress-track {
        height: 8px !important;
        border-radius: 4px !important;
    }

#cosLateral .cart-shipping-progress .progress-text-content {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

#cartProgressText {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: clamp(9px, 2.6vw, 11px) !important;
    flex: 1 !important;
    min-width: 0 !important;
    line-height: 1.2 !important;
}

#cosLateral .cart-shipping-progress .progress-text-content svg {
    flex-shrink: 0 !important;
    width: 14px !important;
    height: auto !important;
}

/* ============================================================================
   PATCH FINAL — 17 aprilie 2026 — varianta funcțională, fără conflicte
   ============================================================================ */

/* --- [1] PELEȚI BRAD = identic cu PELEȚI FAG --- */
.bento-cell.bento-peleti-fag,
.bento-cell.bento-peleti-brad {
    background: #0d0d0d !important;
}

    .bento-cell.bento-peleti-fag img,
    .bento-cell.bento-peleti-brad img {
        object-fit: cover !important;
        object-position: center center !important;
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
        mix-blend-mode: normal !important;
        background: transparent !important;
        filter: none !important;
    }

/* --- [2] CONFIG-CARD-IMG (Brichete Lemn) încadrat ca restul --- */
.config-card .config-card-img,
.config-card[data-group] .config-card-img,
label[for="optiune-brichete-lemn"].config-card .config-card-img {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
}

/* --- [3] DESKTOP — imagini coș mai mici + progress bar mai mare + buton mare --- */
@media (min-width: 769px) {
    #cosLateral .cart-items-container .cart-item-image {
        width: 72px !important;
        height: 72px !important;
        min-width: 72px !important;
    }

        #cosLateral .cart-items-container .cart-item-image img {
            padding: 3px !important;
        }

    #cosLateral .cart-shipping-progress {
        margin-top: 20px !important;
        padding: 12px 14px !important;
    }

    #cosLateral #cartProgressText {
        font-size: 17px !important;
        line-height: 1.35 !important;
        font-weight: 600 !important;
    }

    #cosLateral #go-to-checkout-btn.checkout-button {
        font-size: 17px !important;
        padding: 14px !important;
        letter-spacing: 0.6px !important;
    }
}

/* --- [4] dm-threshold / dm-free-badge — reguli clare, fără !important de ascundere --- */
/* Stare implicită: ambele pornesc vizibile/invizibile pe baza markup-ului inițial.
   JS-ul de mai jos controlează display-ul — nu îl forțăm din CSS. */
.dm-threshold[data-hidden="true"],
.dm-free-badge[data-hidden="true"] {
    display: none !important;
}

/* --- [5] MOBILE — buy-card-buyAtf fără padding-bottom + dm-pickup-address mai mic --- */
@media (max-width: 768px) {
    .buy-card-buyAtf,
    .buy-card.buy-card-buyAtf {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

        .buy-card-buyAtf .trust-signals-buyAtf {
            padding: 6px 4px 0 !important;
            margin: 0 !important;
        }

        .buy-card-buyAtf > *:last-child {
            margin-bottom: 0 !important;
            padding-bottom: 0 !important;
        }

    .dm-pickup-address {
        font-size: 10.5px !important;
        line-height: 1.3 !important;
        padding: 5px 7px !important;
    }
}

/* ============================================================================
   PERSON TYPE — 2 carduri mari, bold, impunătoare (fără titlu)
   ============================================================================ */
.person-type-selection {
    display: flex !important;
    gap: 10px !important;
    margin: 18px 0 12px 0 !important;
    padding-top: 14px !important;
    border-top: 1px solid #e5e7eb !important;
    border-bottom: none !important;
}

.person-type-option {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 14px 12px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    background: #fff !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #333 !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    letter-spacing: 0.2px !important;
}

    .person-type-option:hover {
        border-color: #bbb !important;
        background: #fafafa !important;
    }

    /* Selectat = verde, consistent cu delivery/payment */
    .person-type-option:has(input[type="radio"]:checked) {
        border-color: #10b981 !important;
        background: #f0fdf4 !important;
        color: #111 !important;
        font-weight: 800 !important;
        box-shadow: 0 0 0 1px #10b981 !important;
    }

    .person-type-option input[type="radio"] {
        accent-color: #10b981 !important;
        width: 18px !important;
        height: 18px !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
    }

/* Pe ecrane mici, păstrează textul complet — are loc pentru că sunt doar 2 butoane */
@media (max-width: 375px) {
    .person-type-option {
        font-size: 14px !important;
        padding: 12px 8px !important;
        gap: 6px !important;
    }
}

/* ============================================================================
   SEPARATOARE BOLD — delimitează clar secțiunile checkout
   ============================================================================ */

/* Linia deasupra "Persoană Fizică/Juridică" — bold 2px */
.person-type-selection {
    border-top: 2px solid #d1d5db !important;
    padding-top: 16px !important;
    margin-top: 20px !important;
}

/* Aceeași linie ÎNTRE delivery și payment */
.payment-method-selection {
    border-top: 2px solid #d1d5db !important;
    padding-top: 16px !important;
    margin-top: 18px !important;
}

/* ============================================================================
   PICKUP — badge galben, nume + adresă pe o singură linie
   ============================================================================ */

/* Badge "GRATUIT + 10% DISCOUNT" — galben vibrant, împins la dreapta */
.dm-pickup-badge {
    background: linear-gradient(135deg, #fde047, #facc15) !important;
    color: #422006 !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    padding: 3px 9px !important;
    border-radius: 12px !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    margin-left: auto !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-shadow: 0 1px 3px rgba(250, 204, 21, 0.4) !important;
    border: 1px solid #eab308 !important;
}

/* Header pickup — forțează pe 1 linie: icon + nume + badge */
#dm-opt-pickup .dm-header {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    padding-right: 28px !important;
    width: 100% !important;
}

/* "Ridicare de la depozit" — 1 linie, cu ellipsis dacă e cazul */
#dm-opt-pickup .dm-name {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
    font-size: 14px !important;
}

/* Adresa depozit — 1 linie, font mic, scroll orizontal subtil dacă depășește */
.dm-pickup-address {
    white-space: nowrap !important;
    overflow-x: auto !important;
    text-overflow: clip !important;
    font-size: 11px !important;
    padding: 5px 8px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
}

    .dm-pickup-address::-webkit-scrollbar {
        display: none !important;
    }

/* Pe mobile foarte mic — reduce și mai mult ca să încapă tot */
@media (max-width: 375px) {
    #dm-opt-pickup .dm-name {
        font-size: 13px !important;
    }

    .dm-pickup-badge {
        font-size: 8px !important;
        padding: 2px 7px !important;
    }

    .dm-pickup-address {
        font-size: 10px !important;
    }
}

@media (min-width: 769px) {
    .bento-cell.bento-peleti-brad img {
        object-fit: contain !important;
        padding: 10px !important;
        padding-top: 0px !important;
        transform: scale(0.85) !important;
    }
}

.cart-package-group {
    border: 1.5px solid rgba(218, 165, 32, 0.4);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(218,165,32,0.04) 0%, transparent 100%);
}

.cart-package-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: linear-gradient(135deg, rgba(218,165,32,0.12) 0%, rgba(218,165,32,0.04) 100%);
    border-bottom: 1px solid rgba(218,165,32,0.15);
    font-size: 12px;
    font-weight: 700;
    color: #b8860b;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease;
}

    .cart-package-header:hover {
        background: linear-gradient(135deg, rgba(218,165,32,0.18) 0%, rgba(218,165,32,0.08) 100%);
    }

.cart-package-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.cart-package-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-package-chevron {
    font-size: 12px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    color: #b8860b;
    margin-left: 2px;
}

.cart-package-group.collapsed .cart-package-chevron {
    transform: rotate(-90deg);
}

.cart-package-total {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 13px;
    flex-shrink: 0;
}

/* Quantity selector pe header pachet */
.cart-package-qty {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    margin-left: 4px;
}

.cart-package-qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(184, 134, 11, 0.3);
    background: #fff;
    color: #b8860b;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    line-height: 1;
    padding: 0;
}

    .cart-package-qty-btn:first-child {
        border-radius: 4px 0 0 4px;
    }

    .cart-package-qty-btn:last-child {
        border-radius: 0 4px 4px 0;
    }

    .cart-package-qty-btn:hover {
        background: #b8860b;
        color: #fff;
        border-color: #b8860b;
    }

.cart-package-qty-val {
    width: 26px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
    background: #fff;
    border-top: 1px solid rgba(184, 134, 11, 0.3);
    border-bottom: 1px solid rgba(184, 134, 11, 0.3);
}

/* Collapse animat */
.cart-package-items {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    opacity: 1;
}

.cart-package-group.collapsed .cart-package-items {
    max-height: 0;
    opacity: 0;
}

.cart-package-items .cart-item {
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

    .cart-package-items .cart-item:last-child {
        border-bottom: none;
    }

/* Imaginile din pachet — mai în dreapta */
/* Prețul total din pachete — mai în stânga */
.item-in-package .cart-item-total {
    padding-right: 0;
    margin-right: -10px;
}

.item-in-package .item-total-price {
    font-size: 12px;
    margin-right: 4px;
}

/* Buton remove pachet */
.cart-package-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    padding: 2px;
    opacity: 0.5;
    transition: opacity 0.2s;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

    .cart-package-remove:hover {
        opacity: 1;
    }
