/*** HEADER ***/
#elementor-menu-cart__toggle_button {
    background-color: transparent !important;
    border: none;
    padding: 0;
}


/*** Product ***/
.single_variation_wrap {
    margin-top: 1em !important;
}

.woocommerce-price-suffix {
    color: #1c3e8f;
}

.woocommerce-variation-add-to-cart .quantity {
    flex-basis: auto !important;
    display: grid !important;
    height: 50px;

}

.bdt-add-to-cart-qty-minus,
.bdt-add-to-cart-qty-plus {
    display: none;
}

.variations .uicore-swatches-wrp {
    margin: 0px;
}

/*** Panier ***/
/* Masquer la 2ème occurrence de "Couleur" dans le même item */
.woocommerce-cart .wc-block-components-product-metadata .wc-block-components-product-details:nth-child(2),
.wc-block-components-product-metadata .wc-block-components-product-details:nth-child(n+2) {
    display: none !important;
}

.woocommerce-cart .wc-block-components-totals-wrapper {
    padding: 15px !important;
}

.woocommerce-cart .wp-block-woocommerce-cart-order-summary-totals-block {
    padding-bottom: 0;
}

/**** order-received ****/
.woocommerce-order-received .woocommerce-table__product-name a {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 24px;
    color: #0040C1;
}

.woocommerce-order-received .wc-item-meta {
    padding-left: 0;
    font-size: 14px;
}

.woocommerce table.shop_table td {
    font-weight: 400 !important;
}

/* Bloc configuration dans order-details-item.php */
.nfc-configuration-block {
    margin-top: 12px;
    padding: 30px;
    background: var(--uicore-light-color);
    border-left: 3px solid #0040C1;
}

.nfc-configuration-block>strong {
    display: block;
    margin-bottom: 8px;
    color: #0040C1;
    font-weight: 600;
}

.nfc-config-item {
    margin-bottom: 4px;
    font-size: 14px;
}

.nfc-label {
    font-weight: 500;
    color: #666;
}

.nfc-value {
    color: #333;
}

/* Classes couleurs pour styling */
.nfc-color-blanc {
    color: #333;
}

.nfc-color-noir {
    color: #000;
    font-weight: 600;
}

.nfc-color-bleu {
    color: #0040C1;
    font-weight: 600;
}

.nfc-color-rouge {
    color: #e62e26;
    font-weight: 600;
}

.nfc-screenshot-item {
    margin-top: 8px;
}

.nfc-screenshot-container {
    margin-top: 4px;
}

.nfc-screenshot-thumb {
    max-width: 200px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

/* Section globale dans order-details.php */
.nfc-order-summary {
    margin-top: 30px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.nfc-summary-data>h3 {
    background: #0040C1;
    color: white;
    margin: 0;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
}

.nfc-order-meta {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
}

.nfc-order-meta span {
    color: #666;
}

.nfc-order-status[data-status="completed"],
.nfc-order-status[data-status="processing"] {
    color: #28a745;
    font-weight: 600;
}

.nfc-order-paid[data-paid="true"] {
    color: #28a745;
    font-weight: 600;
}

.nfc-order-paid[data-paid="false"] {
    color: #ffc107;
    font-weight: 600;
}

.nfc-configurations-list {
    padding: 20px;
}

.nfc-config-summary {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.nfc-config-summary:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.nfc-config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.nfc-card-number {
    font-weight: 600;
    color: #0040C1;
}

.nfc-product-name {
    color: #666;
    font-size: 14px;
}

.nfc-config-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.nfc-detail {
    display: flex;
    font-size: 14px;
}

.nfc-detail-label {
    font-weight: 500;
    color: #666;
    min-width: 80px;
    flex-shrink: 0;
}

.nfc-detail-value {
    color: #333;
}

.nfc-config-screenshot {
    text-align: center;
}

.nfc-config-screenshot .nfc-screenshot-thumb {
    max-width: 150px;
}

/* Responsive */
@media (max-width: 768px) {
    .nfc-order-meta {
        flex-direction: column;
        gap: 8px;
    }

    .nfc-config-details {
        grid-template-columns: 1fr;
    }

    .nfc-config-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Classes utilitaires pour le JavaScript */
.nfc-config-data {
    display: none !important;
}

#nfc-order-data {
    display: none !important;
}


/***** PRODUCT *****/

.woocommerce div.product .product_title {
    margin-bottom: 0 !important;
}

.woocommerce-price-suffix {
    font-size: 0.7rem;
}

.elementor-add-to-cart .quantity {
    display: grid !important;
    height: 50px;
    margin-bottom: 1rem;
    flex-basis: auto !important;
}


.nfc-bulk-pricing-table {
    margin: 30px 0 0;
    font-family: inherit;
}

.nfc-bulk-title {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2em;
}

.nfc-bulk-title i {
    color: #1c3e8f;
    margin-right: 8px;
}

.nfc-bulk-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    font-size: 0.75em;
}

.nfc-bulk-table th,
.nfc-bulk-table td {
    padding: 4px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.nfc-bulk-table th {
    background: #d8d8e5;
    color: #131329;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nfc-bulk-table .base-price {
    background: #fff;
}

.nfc-bulk-table .bulk-tier {
    background: white;
}

.nfc-bulk-table .quote-tier {
    background: white;
}

.nfc-bulk-table .discounted-price {
    color: #e62e26;
}

.nfc-bulk-table .savings {
    color: #e62e26;
    font-weight: 600;
}

.nfc-bulk-table .text-info {
    color: #131329 !important;
}

.nfc-bulk-note {
    margin-top: 15px;
    padding: 5px 15px;
    background: white;
    border-left: 4px solid #d8d8e5;
    border-radius: 4px;
    font-size: 0.7rem;
    font-style: italic;
}

.nfc-bulk-note p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {

    .nfc-bulk-table th,
    .nfc-bulk-table td {
        padding: 8px 10px;
        font-size: 0.9em;
    }

    .nfc-bulk-pricing-table {
        padding: 15px;
    }
}


/***** PANIER *****/
.elementor-menu-cart__main .elementor-menu-cart__products { 
    flex-wrap: wrap;
}

.elementor-menu-cart__main .elementor-button--view-cart, .elementor-menu-cart__main .elementor-button--checkout {
    padding: 10px 15px!important;
    font-size: 0.9rem!important;
}

.elementor-menu-cart__main .elementor-button--checkout {
    border: 1px solid #131329!important;
    background: white!important;
    color: #131329!important;
}

.elementor-menu-cart__main .variation {
    font-size: 0.7rem!important;
    line-height: 1rem!important;
}

.elementor-menu-cart__product .variation dd { 
    margin: 0!important;
    margin-left: 5px!important; 
}

.elementor-menu-cart__product { padding-bottom: 10px!important; }



/***** CHECKOUT *****/
.woocommerce-checkout { 
    display: block!important;
}

.woocommerce-checkout #place_order { 
    padding: 10px 40px!important;
    width: 100%!important;
    height: auto!important;
}

.woocommerce-checkout #order_review table {
    background: #FFF!important;
    padding: 0;
    color: #131329!important;
}

.woocommerce-checkout #order_review td, .woocommerce-checkout #order_review th {
    color: #131329!important;
}

.woocommerce-checkout #order_review tr:not(.order-total) td, .woocommerce-checkout #order_review tr:not(.order-total) th {
    border-bottom: 1px solid #d5d8dc!important;
}

.woocommerce-checkout #order_review .tax-rate td { text-align: right!important; }

.woocommerce-checkout .e-login-wrap-end .form-row, .woocommerce-checkout .e-coupon-anchor .form-row { width: 100%!important; }
.woocommerce-checkout .woocommerce-form-login__submit { padding: 7px 15px!important; }

.woocommerce-checkout #billing_company_field { width: 100%; clear: both; }