/* ============================================
   PAGE PAIEMENT COMMANDE - Order Pay
   Quality CBD ByNiko
   Version corrigee / optimisee
   ============================================ */

body.woocommerce-order-pay,
body.woocommerce-order-pay #site-content {
    background: #0d0d0d !important;
    color: #f5ecd6 !important;
}

body.woocommerce-order-pay #site-content .container-xxl,
body.woocommerce-order-pay article.page,
body.woocommerce-order-pay .woocommerce {
    min-height: auto !important;
    overflow: visible !important;
    background: transparent !important;
    color: #f5ecd6 !important;
}

body.woocommerce-order-pay form#order_review {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto 70px !important;
    padding: clamp(18px, 3vw, 34px) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr) !important;
    gap: 28px !important;
    align-items: start !important;
    overflow: visible !important;
    background: #111111 !important;
    border: 1px solid #252525 !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42) !important;
    box-sizing: border-box !important;
}

/* ============================================
   Tableau commande
   ============================================ */

body.woocommerce-order-pay table.shop_table,
body.woocommerce-order-pay table.shop_table thead,
body.woocommerce-order-pay table.shop_table tbody,
body.woocommerce-order-pay table.shop_table tfoot,
body.woocommerce-order-pay table.shop_table tr,
body.woocommerce-order-pay table.shop_table th,
body.woocommerce-order-pay table.shop_table td {
    box-sizing: border-box !important;
}

body.woocommerce-order-pay form#order_review table.shop_table {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
    background: #0d0d0d !important;
    border: 1px solid #252525 !important;
    border-radius: 18px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    color: #f5ecd6 !important;
    table-layout: fixed !important;
}

@media (min-width: 1025px) {
    body.woocommerce-order-pay table.shop_table,
    body.woocommerce-order-pay form#order_review table.shop_table {
        padding-right: 0 !important;
    }
}

body.woocommerce-order-pay table.shop_table thead th {
    padding: 16px 18px !important;
    background: #181818 !important;
    border: 0 !important;
    border-bottom: 1px solid #252525 !important;
    color: #ddab2c !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

body.woocommerce-order-pay table.shop_table thead tr:first-child th:first-child {
    border-top-left-radius: 18px !important;
}

body.woocommerce-order-pay table.shop_table thead tr:first-child th:last-child {
    border-top-right-radius: 18px !important;
}

body.woocommerce-order-pay table.shop_table tbody td,
body.woocommerce-order-pay table.shop_table tbody th {
    padding: 18px !important;
    background: #111111 !important;
    border: 0 !important;
    border-bottom: 1px solid #252525 !important;
    color: #f5ecd6 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
}

body.woocommerce-order-pay table.shop_table .product-name {
    max-width: 100% !important;
    color: #f5ecd6 !important;
    font-weight: 500 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}

body.woocommerce-order-pay table.shop_table .product-quantity,
body.woocommerce-order-pay table.shop_table strong.product-quantity {
    color: #aea899 !important;
    font-weight: 500 !important;
}

body.woocommerce-order-pay table.shop_table .product-subtotal,
body.woocommerce-order-pay table.shop_table .product-total,
body.woocommerce-order-pay table.shop_table .amount,
body.woocommerce-order-pay table.shop_table bdi,
body.woocommerce-order-pay table.shop_table .woocommerce-Price-currencySymbol {
    color: #f5ecd6 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}

body.woocommerce-order-pay table.shop_table th.product-name,
body.woocommerce-order-pay table.shop_table td.product-name {
    width: 58% !important;
}

body.woocommerce-order-pay table.shop_table th.product-quantity,
body.woocommerce-order-pay table.shop_table td.product-quantity {
    width: 14% !important;
    text-align: center !important;
}

body.woocommerce-order-pay table.shop_table th.product-total,
body.woocommerce-order-pay table.shop_table td.product-subtotal,
body.woocommerce-order-pay table.shop_table td.product-total {
    width: 28% !important;
    text-align: right !important;
}

body.woocommerce-order-pay table.shop_table tfoot th,
body.woocommerce-order-pay table.shop_table tfoot td {
    padding: 17px 18px !important;
    background: #0d0d0d !important;
    border: 0 !important;
    border-top: 1px solid #252525 !important;
    color: #f5ecd6 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 0.94rem !important;
    font-weight: 600 !important;
}

body.woocommerce-order-pay table.shop_table tfoot tr:last-child th,
body.woocommerce-order-pay table.shop_table tfoot tr:last-child td,
body.woocommerce-order-pay table.shop_table tfoot tr:last-child .amount {
    color: #ddab2c !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
}

/* ============================================
   Bloc paiement
   ============================================ */

body.woocommerce-order-pay form#order_review #payment {
    grid-column: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    position: sticky !important;
    top: 120px !important;
    align-self: start !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #f5ecd6 !important;
}

body.woocommerce-order-pay #payment ul.payment_methods {
    margin: 0 0 24px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #0d0d0d !important;
    border: 1px solid #252525 !important;
    border-radius: 18px !important;
    list-style: none !important;
}

body.woocommerce-order-pay #payment ul.payment_methods li.wc_payment_method {
    margin: 0 !important;
    padding: 18px !important;
    background: #111111 !important;
    border: 0 !important;
    border-bottom: 1px solid #252525 !important;
    color: #f5ecd6 !important;
}

body.woocommerce-order-pay #payment ul.payment_methods li.wc_payment_method:last-child {
    border-bottom: 0 !important;
}

body.woocommerce-order-pay #payment input.input-radio {
    width: 18px !important;
    height: 18px !important;
    margin: 0 12px 0 0 !important;
    accent-color: #ddab2c !important;
    vertical-align: middle !important;
}

body.woocommerce-order-pay #payment label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #f5ecd6 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

body.woocommerce-order-pay #payment .syde-gateway-icons {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

body.woocommerce-order-pay #payment .syde-gateway-icons img {
    width: auto !important;
    max-height: 24px !important;
    padding: 4px 7px !important;
    background: #ffffff !important;
    border-radius: 8px !important;
}

body.woocommerce-order-pay #payment .payment_box {
    margin: 14px 0 0 30px !important;
    padding: 14px 16px !important;
    background: #181818 !important;
    border: 1px solid #252525 !important;
    border-radius: 14px !important;
    color: #aea899 !important;
}

body.woocommerce-order-pay #payment .payment_box::before,
body.woocommerce-order-pay #payment .payment_box::after {
    content: none !important;
    display: none !important;
}

body.woocommerce-order-pay #payment .payment_box p {
    margin: 0 !important;
    color: #aea899 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

/* ============================================
   Confidentialite + bouton
   ============================================ */

body.woocommerce-order-pay .woocommerce-terms-and-conditions-wrapper,
body.woocommerce-order-pay .woocommerce-privacy-policy-text {
    margin: 0 0 22px !important;
    padding: 0 !important;
    color: #aea899 !important;
}

body.woocommerce-order-pay .woocommerce-privacy-policy-text p {
    margin: 0 !important;
    color: #aea899 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 0.84rem !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

body.woocommerce-order-pay .woocommerce-privacy-policy-text a {
    color: #ddab2c !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(221, 171, 44, 0.45) !important;
}

body.woocommerce-order-pay .woocommerce-privacy-policy-text a:hover {
    color: #f5ecd6 !important;
    border-color: #f5ecd6 !important;
}

body.woocommerce-order-pay #place_order,
body.woocommerce-order-pay button#place_order.button.alt {
    width: 100% !important;
    min-height: 54px !important;
    padding: 0 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ddab2c !important;
    border: 1px solid #ddab2c !important;
    border-radius: 999px !important;
    color: #000000 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    box-shadow: none !important;
    outline: 0 !important;
    cursor: pointer !important;
    transform: none !important;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

body.woocommerce-order-pay #place_order:hover,
body.woocommerce-order-pay button#place_order.button.alt:hover {
    background: #f5ecd6 !important;
    border-color: #f5ecd6 !important;
    color: #000000 !important;
    transform: none !important;
}

body.woocommerce-order-pay #place_order::before,
body.woocommerce-order-pay #place_order::after {
    content: none !important;
    display: none !important;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
    body.woocommerce-order-pay form#order_review {
        display: block !important;
        max-width: 100% !important;
        margin: 0 0 50px !important;
        padding: 16px !important;
        border-radius: 18px !important;
    }

    body.woocommerce-order-pay form#order_review table.shop_table {
        margin-bottom: 24px !important;
    }

    body.woocommerce-order-pay form#order_review #payment {
        position: relative !important;
        top: auto !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    body.woocommerce-order-pay form#order_review {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px !important;
        margin: 0 0 44px !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-order-pay table.shop_table {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 22px !important;
        border-radius: 16px !important;
        table-layout: auto !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-order-pay table.shop_table thead {
        display: none !important;
    }

    body.woocommerce-order-pay table.shop_table tbody,
    body.woocommerce-order-pay table.shop_table tfoot {
        display: block !important;
        width: 100% !important;
    }

    body.woocommerce-order-pay table.shop_table tbody tr.order_item {
        width: 100% !important;
        max-width: 100% !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas: "name name" "qty price" !important;
        gap: 10px 14px !important;
        padding: 16px !important;
        background: #111111 !important;
        border-bottom: 1px solid #252525 !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-order-pay table.shop_table tbody td {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: block !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-order-pay table.shop_table tbody td.product-name {
        grid-area: name !important;
        width: 100% !important;
        color: #f5ecd6 !important;
        font-size: 0.9rem !important;
        line-height: 1.45 !important;
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    body.woocommerce-order-pay table.shop_table tbody td.product-quantity {
        grid-area: qty !important;
        width: auto !important;
        color: #aea899 !important;
        text-align: left !important;
        white-space: nowrap !important;
    }

    body.woocommerce-order-pay table.shop_table tbody td.product-subtotal {
        grid-area: price !important;
        width: auto !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    body.woocommerce-order-pay table.shop_table tfoot tr {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 14px !important;
        background: #0d0d0d !important;
        border-top: 1px solid #252525 !important;
    }

    body.woocommerce-order-pay table.shop_table tfoot th,
    body.woocommerce-order-pay table.shop_table tfoot td {
        width: auto !important;
        max-width: 100% !important;
        display: block !important;
        padding: 15px 14px !important;
        border: 0 !important;
        background: transparent !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-order-pay table.shop_table tfoot th {
        text-align: left !important;
    }

    body.woocommerce-order-pay table.shop_table tfoot td {
        text-align: right !important;
    }

    body.woocommerce-order-pay table.shop_table th.product-name,
    body.woocommerce-order-pay table.shop_table td.product-name,
    body.woocommerce-order-pay table.shop_table th.product-quantity,
    body.woocommerce-order-pay table.shop_table td.product-quantity,
    body.woocommerce-order-pay table.shop_table th.product-total,
    body.woocommerce-order-pay table.shop_table td.product-subtotal,
    body.woocommerce-order-pay table.shop_table td.product-total {
        width: auto !important;
    }

    body.woocommerce-order-pay #payment ul.payment_methods li.wc_payment_method {
        padding: 16px !important;
    }

    body.woocommerce-order-pay #payment label {
        font-size: 0.9rem !important;
    }

    body.woocommerce-order-pay #payment .payment_box {
        margin-left: 0 !important;
    }

    body.woocommerce-order-pay #place_order,
    body.woocommerce-order-pay button#place_order.button.alt {
        min-height: 52px !important;
        font-size: 0.84rem !important;
        letter-spacing: 0.06em !important;
    }
}



