/* ================================================================
   AllezGo – Mini Checkout 2027
   Palette : Anthracite #1F2430 · Coral #FF4365 · Saffron #FFC233
   Scope strict : .agmc-checkout-2027
   ================================================================ */

.agmc-checkout-2027 {
    --ag-dark: #1F2430;
    --ag-coral: #FF4365;
    --ag-saffron: #FFC233;
    --ag-bg: #FBFAF8;
    --ag-card: #FFFFFF;
    --ag-muted: #7A8191;
    --ag-line: #E9E7E4;
    --ag-input: #FCFCFB;
    --ag-shadow: 0 18px 55px rgba(31, 36, 48, .07);
    --ag-shadow-soft: 0 8px 28px rgba(31, 36, 48, .05);
}

/* -------- Nettoyage MyListing / anciens plugins -------- */
.agmc-checkout-2027 .wpa-test-msg,
.agmc-checkout-2027 #order_review_heading,
.agmc-checkout-2027 .woocommerce-additional-fields,
.agmc-checkout-2027 .col2-set .col-2 {
    display: none !important;
}

.agmc-checkout-2027 .ts-billing-details,
.agmc-checkout-2027 .ts-billing-details.element,
.agmc-checkout-2027 .woocommerce .element,
.agmc-checkout-2027 .woocommerce .pf-body {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.agmc-checkout-2027 .ts-billing-details,
.agmc-checkout-2027 .ts-billing-details.element {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
}

/* -------- Structure desktop : deux cartes équilibrées -------- */
.agmc-checkout-2027 form.woocommerce-checkout {
    display: grid !important;
    grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr);
    gap: 30px;
    align-items: start;
    width: min(1080px, calc(100% - 40px)) !important;
    max-width: 1080px !important;
    margin: 52px auto 80px !important;
    font-family: Poppins, GlacialIndifference, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.agmc-checkout-2027 #customer_details,
.agmc-checkout-2027 #order_review {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.agmc-checkout-2027 #customer_details,
.agmc-checkout-2027 .woocommerce-checkout-review-order {
    background: var(--ag-card) !important;
    border: 1px solid var(--ag-line) !important;
    border-radius: 22px !important;
    box-shadow: var(--ag-shadow-soft) !important;
    padding: 28px !important;
}

.agmc-checkout-2027 .col2-set,
.agmc-checkout-2027 .col2-set .col-1,
.agmc-checkout-2027 #customer_details {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

/* -------- Titres -------- */
.agmc-checkout-2027 .woocommerce-billing-fields h3 {
    margin: 0 0 24px !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--ag-dark) !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
    font-weight: 750 !important;
    letter-spacing: -.02em;
}

.agmc-checkout-2027 .woocommerce-billing-fields h3::after {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    margin-top: 10px;
    background: var(--ag-coral);
    border-radius: 99px;
}

/* -------- Champs -------- */
.agmc-checkout-2027 .woocommerce form .form-row {
    margin: 0 0 17px !important;
    padding: 0 !important;
}

.agmc-checkout-2027 #billing_first_name_field,
.agmc-checkout-2027 #billing_last_name_field {
    width: calc(50% - 7px) !important;
    clear: none !important;
}

.agmc-checkout-2027 #billing_first_name_field { float: left !important; }
.agmc-checkout-2027 #billing_last_name_field  { float: right !important; }
.agmc-checkout-2027 #billing_email_field      { clear: both !important; width: 100% !important; }

.agmc-checkout-2027 .woocommerce-billing-fields__field-wrapper::after {
    content: "";
    display: table;
    clear: both;
}

.agmc-checkout-2027 .woocommerce form .form-row label {
    display: block !important;
    margin: 0 0 7px !important;
    color: var(--ag-dark) !important;
    font-size: 12px !important;
    font-weight: 650 !important;
}

.agmc-checkout-2027 .woocommerce form .form-row input.input-text,
.agmc-checkout-2027 .woocommerce form .form-row select,
.agmc-checkout-2027 .woocommerce form .form-row textarea {
    width: 100% !important;
    min-height: 48px !important;
    padding: 11px 14px !important;
    box-sizing: border-box !important;
    color: var(--ag-dark) !important;
    background: var(--ag-input) !important;
    border: 1px solid #E0E2E7 !important;
    border-radius: 11px !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 14px !important;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease !important;
}

.agmc-checkout-2027 .woocommerce form .form-row input.input-text:focus,
.agmc-checkout-2027 .woocommerce form .form-row select:focus,
.agmc-checkout-2027 .woocommerce form .form-row textarea:focus {
    background: #fff !important;
    border-color: var(--ag-coral) !important;
    box-shadow: 0 0 0 4px rgba(255, 67, 101, .10) !important;
}

/* -------- Récapitulatif commande -------- */
.agmc-checkout-2027 .woocommerce-checkout-review-order-table {
    width: 100% !important;
    margin: 0 0 20px !important;
    border: 0 !important;
    border-collapse: collapse !important;
}

.agmc-checkout-2027 .woocommerce-checkout-review-order-table thead,
.agmc-checkout-2027 .woocommerce-checkout-review-order-table tfoot .cart-subtotal {
    display: none !important;
}

.agmc-checkout-2027 .woocommerce-checkout-review-order-table td,
.agmc-checkout-2027 .woocommerce-checkout-review-order-table th {
    border: 0 !important;
}

.agmc-checkout-2027 .woocommerce-checkout-review-order-table tbody td {
    padding: 5px 0 18px !important;
    color: var(--ag-dark) !important;
    font-size: 14px !important;
    vertical-align: top !important;
}

.agmc-checkout-2027 .woocommerce-checkout-review-order-table .product-name {
    font-weight: 650 !important;
    padding-right: 20px !important;
}

.agmc-checkout-2027 .woocommerce-checkout-review-order-table .product-total {
    text-align: right !important;
    white-space: nowrap;
    font-weight: 650 !important;
}

.agmc-checkout-2027 .order-total {
    display: block !important;
    margin: 4px 0 24px !important;
    padding: 20px 0 4px !important;
    border-top: 1px solid var(--ag-line) !important;
}

.agmc-checkout-2027 .order-total th {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    color: var(--ag-muted) !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
}

.agmc-checkout-2027 .order-total td {
    display: block !important;
    width: auto !important;
    padding: 2px 0 0 !important;
    text-align: center !important;
}

.agmc-checkout-2027 .order-total .amount {
    color: var(--ag-coral) !important;
    font-size: 34px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    letter-spacing: -.04em !important;
}

/* -------- Paiements -------- */
.agmc-checkout-2027 #payment {
    background: transparent !important;
    border-radius: 0 !important;
}

.agmc-checkout-2027 #payment ul.payment_methods {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    list-style: none !important;
}

.agmc-checkout-2027 #payment ul.payment_methods > li {
    margin: 0 0 10px !important;
    padding: 15px 16px !important;
    background: #FBFBFA !important;
    border: 1px solid var(--ag-line) !important;
    border-radius: 13px !important;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease !important;
}

.agmc-checkout-2027 #payment ul.payment_methods > li:has(input:checked) {
    background: #FFF !important;
    border-color: rgba(255, 67, 101, .45) !important;
    box-shadow: 0 0 0 3px rgba(255, 67, 101, .07) !important;
}

.agmc-checkout-2027 #payment ul.payment_methods li > label {
    color: var(--ag-dark) !important;
    font-weight: 650 !important;
    font-size: 13px !important;
}

.agmc-checkout-2027 #payment div.payment_box {
    margin: 14px 0 0 !important;
    padding: 16px !important;
    background: #F7F7F6 !important;
    border-radius: 10px !important;
    color: var(--ag-muted) !important;
    font-size: 12px !important;
}

.agmc-checkout-2027 #payment div.payment_box::before {
    display: none !important;
}

/* Radios / checkbox : ne jamais hériter d'un input 100% */
.agmc-checkout-2027 input[type="checkbox"],
.agmc-checkout-2027 input[type="radio"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    margin: 0 8px 0 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    accent-color: var(--ag-coral) !important;
}

.agmc-checkout-2027 p.form-row.woocommerce-SavedPaymentMethods-saveNew {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

.agmc-checkout-2027 p.form-row.woocommerce-SavedPaymentMethods-saveNew label {
    width: auto !important;
    margin: -1px 0 0 !important;
    line-height: 1.45 !important;
    font-weight: 450 !important;
}

/* -------- Vie privée, CGU, bouton -------- */
.agmc-checkout-2027 .woocommerce-privacy-policy-text {
    margin: 20px 0 14px !important;
    color: var(--ag-muted) !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
    text-align: center !important;
}

.agmc-checkout-2027 .woocommerce-terms-and-conditions-wrapper {
    padding: 0 !important;
    background: transparent !important;
}

.agmc-checkout-2027 .woocommerce-terms-and-conditions-wrapper .form-row {
    display: flex !important;
    align-items: flex-start !important;
    margin: 0 0 15px !important;
}

.agmc-checkout-2027 .woocommerce-terms-and-conditions-wrapper label {
    display: inline !important;
    margin: 0 !important;
    color: var(--ag-dark) !important;
    line-height: 1.45 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
}

.agmc-checkout-2027 #place_order {
    width: 100% !important;
    min-height: 52px !important;
    margin: 4px 0 0 !important;
    padding: 14px 20px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--ag-coral) !important;
    color: #FFF !important;
    box-shadow: 0 12px 30px rgba(255, 67, 101, .24) !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 750 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    cursor: pointer !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}

.agmc-checkout-2027 #place_order:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 34px rgba(255, 67, 101, .30) !important;
    filter: saturate(1.04);
}

/* -------- Notifications : visibles et propres -------- */
.agmc-checkout-2027 .woocommerce-error,
.agmc-checkout-2027 .woocommerce-message,
.agmc-checkout-2027 .woocommerce-info {
    display: block !important;
    width: min(1080px, calc(100% - 40px));
    margin: 24px auto 0 !important;
    padding: 13px 16px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    font-size: 13px !important;
    list-style: none !important;
}

.agmc-checkout-2027 .woocommerce-error {
    color: #991B1B !important;
    background: #FEF2F2 !important;
    border: 1px solid #FECACA !important;
}

.agmc-checkout-2027 .woocommerce-message {
    color: #166534 !important;
    background: #F0FDF4 !important;
    border: 1px solid #BBF7D0 !important;
}

.agmc-checkout-2027 .woocommerce-info {
    color: #1E40AF !important;
    background: #EFF6FF !important;
    border: 1px solid #DBEAFE !important;
}

/* -------- Page commande reçue -------- */
.agmc-checkout-2027.woocommerce-order-received .element,
.agmc-checkout-2027.woocommerce-order-received .element .pf-body {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.agmc-checkout-2027.woocommerce-order-received .element .pf-head {
    display: none !important;
}

.agmc-checkout-2027 .woocommerce-order {
    width: min(720px, calc(100% - 40px));
    margin: 50px auto 80px !important;
    padding: 34px !important;
    box-sizing: border-box;
    background: #fff !important;
    border: 1px solid var(--ag-line) !important;
    border-radius: 22px !important;
    box-shadow: var(--ag-shadow) !important;
    text-align: center;
}

.agmc-checkout-2027 .woocommerce-order .woocommerce-notice--success {
    margin: 0 0 28px !important;
    padding: 0 !important;
    color: var(--ag-dark) !important;
    background: transparent !important;
    border: 0 !important;
    font-size: 22px !important;
    font-weight: 750 !important;
}

.agmc-checkout-2027 ul.woocommerce-order-overview {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 14px 26px !important;
    margin: 0 0 26px !important;
    padding: 20px !important;
    list-style: none !important;
    background: #FBFBFA !important;
    border-radius: 14px !important;
}

.agmc-checkout-2027 ul.woocommerce-order-overview li {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--ag-muted) !important;
    font-size: 11px !important;
}

.agmc-checkout-2027 ul.woocommerce-order-overview li strong {
    display: block !important;
    margin-top: 3px !important;
    color: var(--ag-dark) !important;
    font-size: 13px !important;
}

.agmc-checkout-2027 .woocommerce-order .woocommerce-order-details,
.agmc-checkout-2027 .woocommerce-order .woocommerce-customer-details {
    display: none !important;
}

.agmc-checkout-2027 .job-manager-submitted-paid-listing-actions .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    padding: 12px 26px !important;
    background: var(--ag-coral) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 28px rgba(255, 67, 101, .22) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* -------- Responsive -------- */
@media (max-width: 860px) {
    .agmc-checkout-2027 form.woocommerce-checkout {
        grid-template-columns: 1fr !important;
        width: min(620px, calc(100% - 28px)) !important;
        gap: 18px !important;
        margin-top: 28px !important;
    }

    .agmc-checkout-2027 #customer_details,
    .agmc-checkout-2027 .woocommerce-checkout-review-order {
        padding: 22px !important;
        border-radius: 18px !important;
    }
}

@media (max-width: 560px) {
    .agmc-checkout-2027 form.woocommerce-checkout {
        width: calc(100% - 20px) !important;
        margin: 18px auto 50px !important;
    }

    .agmc-checkout-2027 #customer_details,
    .agmc-checkout-2027 .woocommerce-checkout-review-order {
        padding: 18px !important;
        border-radius: 16px !important;
    }

    .agmc-checkout-2027 #billing_first_name_field,
    .agmc-checkout-2027 #billing_last_name_field {
        width: 100% !important;
        float: none !important;
    }

    .agmc-checkout-2027 .order-total .amount {
        font-size: 30px !important;
    }
}

/* ================================================================
   v1.2 — Tunnel compact centré
   ================================================================ */

/* Une seule colonne réellement centrée : plus lisible pour un achat de boost/package. */
.agmc-checkout-2027 form.woocommerce-checkout {
    display: block !important;
    width: min(500px, calc(100% - 28px)) !important;
    max-width: 500px !important;
    margin: 34px auto 60px !important;
}

.agmc-checkout-2027 form.woocommerce-checkout > *,
.agmc-checkout-2027 .ts-billing-details,
.agmc-checkout-2027 #customer_details,
.agmc-checkout-2027 #order_review,
.agmc-checkout-2027 .woocommerce-checkout-review-order {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    box-sizing: border-box !important;
}

.agmc-checkout-2027 #customer_details {
    margin-bottom: 16px !important;
}

.agmc-checkout-2027 #customer_details,
.agmc-checkout-2027 .woocommerce-checkout-review-order {
    padding: 22px !important;
    border-radius: 18px !important;
    box-shadow: 0 7px 24px rgba(31, 36, 48, .045) !important;
}

.agmc-checkout-2027 .woocommerce-billing-fields h3 {
    margin-bottom: 18px !important;
    font-size: 18px !important;
}

.agmc-checkout-2027 .woocommerce-billing-fields h3::after {
    width: 30px;
    margin-top: 8px;
}

.agmc-checkout-2027 .woocommerce form .form-row {
    margin-bottom: 13px !important;
}

.agmc-checkout-2027 .woocommerce form .form-row label {
    margin-bottom: 5px !important;
    font-size: 11px !important;
}

.agmc-checkout-2027 .woocommerce form .form-row input.input-text,
.agmc-checkout-2027 .woocommerce form .form-row select,
.agmc-checkout-2027 .woocommerce form .form-row textarea {
    min-height: 44px !important;
    padding: 9px 12px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
}

/* Récapitulatif plus compact. */
.agmc-checkout-2027 .woocommerce-checkout-review-order-table {
    margin-bottom: 10px !important;
}

.agmc-checkout-2027 .woocommerce-checkout-review-order-table tbody td {
    padding: 2px 0 10px !important;
    font-size: 13px !important;
}

/* Total sans les deux lignes horizontales. */
.agmc-checkout-2027 .order-total {
    margin: 2px 0 16px !important;
    padding: 7px 0 2px !important;
    border: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.agmc-checkout-2027 .order-total th,
.agmc-checkout-2027 .order-total td {
    border: 0 !important;
    box-shadow: none !important;
}

.agmc-checkout-2027 .order-total .amount {
    font-size: 30px !important;
}

/* Paiements plus compacts quand fermés. */
.agmc-checkout-2027 #payment ul.payment_methods > li {
    margin-bottom: 8px !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
}

/* Ne considérer une méthode comme sélectionnée qu'après un choix explicite du client. */
.agmc-checkout-2027 #payment ul.payment_methods > li:has(input:checked) {
    background: #FBFBFA !important;
    border-color: var(--ag-line) !important;
    box-shadow: none !important;
}

.agmc-checkout-2027 #payment ul.payment_methods > li.agmc-selected,
.agmc-checkout-2027 #payment ul.payment_methods > li:has(input:checked).agmc-selected {
    background: #FFF !important;
    border-color: rgba(255, 67, 101, .45) !important;
    box-shadow: 0 0 0 3px rgba(255, 67, 101, .07) !important;
}

.agmc-checkout-2027 #payment div.payment_box {
    margin-top: 10px !important;
    padding: 14px !important;
}

.agmc-checkout-2027 .woocommerce-privacy-policy-text {
    margin: 14px 0 10px !important;
}

.agmc-checkout-2027 .woocommerce-terms-and-conditions-wrapper .form-row {
    margin-bottom: 12px !important;
}

.agmc-checkout-2027 #place_order {
    min-height: 48px !important;
    padding: 12px 18px !important;
}

@media (max-width: 560px) {
    .agmc-checkout-2027 form.woocommerce-checkout {
        width: calc(100% - 20px) !important;
        margin: 18px auto 44px !important;
    }

    .agmc-checkout-2027 #customer_details,
    .agmc-checkout-2027 .woocommerce-checkout-review-order {
        padding: 18px !important;
    }
}


/* ===== Finitions v1.3.0 ===== */
/* Supprime définitivement toute séparation entre le produit et le total. */
.agmc-checkout-2027 .woocommerce-checkout-review-order-table tbody,
.agmc-checkout-2027 .woocommerce-checkout-review-order-table tbody tr,
.agmc-checkout-2027 .woocommerce-checkout-review-order-table tbody td,
.agmc-checkout-2027 .woocommerce-checkout-review-order-table tfoot,
.agmc-checkout-2027 .woocommerce-checkout-review-order-table tfoot tr,
.agmc-checkout-2027 .woocommerce-checkout-review-order-table tfoot th,
.agmc-checkout-2027 .woocommerce-checkout-review-order-table tfoot td,
.agmc-checkout-2027 .woocommerce-checkout-review-order-table .order-total {
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

/* Bloc coordonnées et récapitulatif légèrement plus dense. */
.agmc-checkout-2027 #customer_details,
.agmc-checkout-2027 .woocommerce-checkout-review-order {
    padding: 22px !important;
}

.agmc-checkout-2027 .woocommerce-checkout-review-order-table tbody td {
    padding-bottom: 6px !important;
}

.agmc-checkout-2027 .order-total {
    margin: 0 0 12px !important;
    padding: 4px 0 0 !important;
}

.agmc-checkout-2027 .order-total .amount {
    font-size: 28px !important;
}

/* Le texte de confidentialité WooCommerce est volontairement retiré par PHP. */
.agmc-checkout-2027 .woocommerce-privacy-policy-text:empty {
    display: none !important;
}

.agmc-checkout-2027 .woocommerce-terms-and-conditions-wrapper {
    margin-top: 10px !important;
}

.agmc-checkout-2027 .woocommerce-terms-and-conditions-wrapper .form-row {
    margin: 0 0 10px !important;
}

.agmc-checkout-2027 .woocommerce-terms-and-conditions-wrapper label {
    font-size: 11px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

.agmc-checkout-2027 .woocommerce-terms-and-conditions-wrapper a {
    color: var(--ag-dark) !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}
\n\n/* ===== Récapitulatif intelligent v1.4.0 ===== */
/* Cas normal AllezGo : 1 seule ligne, quantité 1. Le prix de ligne suffit. */
.agmc-checkout-2027.agmc-single-item .woocommerce-checkout-review-order-table .product-quantity {
    display: none !important;
}

.agmc-checkout-2027.agmc-single-item .woocommerce-checkout-review-order-table tfoot,
.agmc-checkout-2027.agmc-single-item .woocommerce-checkout-review-order-table .order-total {
    display: none !important;
}

/* Panier inhabituel : quantités et total restent visibles comme garde-fou. */
.agmc-checkout-2027.agmc-multi-item .woocommerce-checkout-review-order-table .product-quantity {
    display: inline !important;
}

.agmc-checkout-2027.agmc-multi-item .woocommerce-checkout-review-order-table tfoot,
.agmc-checkout-2027.agmc-multi-item .woocommerce-checkout-review-order-table .order-total {
    display: table-footer-group;
}

.agmc-checkout-2027.agmc-multi-item .woocommerce-checkout-review-order-table .order-total {
    display: table-row !important;
}

/* ===== Correctif quantité v1.4.1 =====
 * WooCommerce/MyListing rend la quantité sous la forme :
 * <strong class="product-quantity">× 1</strong>
 */
body.agmc-checkout-2027.agmc-single-item table.woocommerce-checkout-review-order-table tbody tr.cart_item td.product-name strong.product-quantity {
    display: none !important;
}

/* ===== Simplification visuelle v1.5.0 =====
 * Une seule grande carte pour le récapitulatif + paiement.
 * Les cadres intermédiaires MyListing/WooCommerce sont supprimés ;
 * les cartes Carte / Bancontact / PayPal restent volontairement visibles.
 */
body.agmc-checkout-2027 .woocommerce-checkout-review-order table.woocommerce-checkout-review-order-table,
body.agmc-checkout-2027 .woocommerce-checkout-review-order table.woocommerce-checkout-review-order-table tbody,
body.agmc-checkout-2027 .woocommerce-checkout-review-order table.woocommerce-checkout-review-order-table tr,
body.agmc-checkout-2027 .woocommerce-checkout-review-order table.woocommerce-checkout-review-order-table td,
body.agmc-checkout-2027 .woocommerce-checkout-review-order #payment,
body.agmc-checkout-2027 .woocommerce-checkout-review-order #payment .form-row.place-order,
body.agmc-checkout-2027 .woocommerce-checkout-review-order .place-order {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Le produit appartient directement à la grande carte, sans mini-carte interne. */
body.agmc-checkout-2027 .woocommerce-checkout-review-order table.woocommerce-checkout-review-order-table {
    padding: 0 !important;
    margin: 0 0 14px !important;
}

body.agmc-checkout-2027 .woocommerce-checkout-review-order table.woocommerce-checkout-review-order-table tbody td {
    padding-top: 0 !important;
    padding-bottom: 8px !important;
}

/* Le bloc paiement ne recrée pas de seconde carte autour des méthodes. */
body.agmc-checkout-2027 .woocommerce-checkout-review-order #payment,
body.agmc-checkout-2027 .woocommerce-checkout-review-order #payment .form-row.place-order {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Les méthodes restent des contrôles cliquables clairement identifiables. */
body.agmc-checkout-2027 #payment ul.payment_methods > li {
    border: 1px solid var(--ag-line) !important;
    border-radius: 12px !important;
}


/* ===== Finition v1.5.1 : bas de carte plus compact ===== */
body.agmc-checkout-2027 .woocommerce-checkout-review-order {
    padding-bottom: 12px !important;
}

body.agmc-checkout-2027 .woocommerce-checkout-review-order #payment .form-row.place-order,
body.agmc-checkout-2027 .woocommerce-checkout-review-order .place-order {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.agmc-checkout-2027 #place_order {
    margin-bottom: 0 !important;
}
