/* ============================================
   CONFIRMATION — MÊME STYLE QUE PANIER/CHECKOUT
   ============================================ */

.site-main > article,
.site-main > .page,
.entry-header,
.entry-title,
.page-header { display: none !important; }
.site-main { padding: 0 !important; margin: 0 !important; background: transparent !important; }

body.woocommerce-order-received,
body.woocommerce-order-received #page,
body.woocommerce-order-received #content,
body.woocommerce-order-received .site-content,
body.woocommerce-order-received #primary,
body.woocommerce-order-received .site-main {
    background: #002060 !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}
body.woocommerce-order-received .woocommerce {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.thankyou-theme-global {
    background: #002060;
    min-height: 100vh;
    position: relative;
    padding: 50px 0 80px;
    overflow: hidden;
}

.thankyou-bg-circle {
    position: absolute;
    width: 500px;
    height: 650px;
    border-radius: 9999px;
    pointer-events: none;
    opacity: 0.1;
    z-index: 0;
}
.thankyou-bg-circle-right { right: -250px; top: 10%;   background: #4DC4FF; }
.thankyou-bg-circle-left  { left: -250px;  bottom: 5%; background: #00AFEF; }

.thankyou-wrapper {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Étapes */
.checkout-steps {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}
.checkout-step { display: flex; align-items: center; gap: 8px; }
.step-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}
.step-label { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.5); }
.checkout-step.done .step-num   { background: #00AFEF; color: white; border-color: #00AFEF; }
.checkout-step.done .step-label { color: rgba(255,255,255,0.8); }
.checkout-step.active .step-num   { background: white; color: #002060; border-color: white; }
.checkout-step.active .step-label { color: white; font-weight: 700; }
.checkout-step-line {
    flex: 1; height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 0 12px; max-width: 60px;
}
.checkout-step-line.done { background: #00AFEF; }

/* Hero confirmation */
.thankyou-hero {
    text-align: center;
    margin-bottom: 48px;
}
.thankyou-icon {
    width: 80px; height: 80px;
    background: #00AFEF;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 0 0 12px rgba(0,175,239,0.15);
}
.thankyou-icon-error { background: #ef4444; box-shadow: 0 0 0 12px rgba(239,68,68,0.15); }

.thankyou-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}
.thankyou-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin: 0;
}
.thankyou-subtitle strong { color: white; }

/* Layout */
.thankyou-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

/* Cards */
.thankyou-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    margin-bottom: 20px;
    box-sizing: border-box;
}
.thankyou-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #002060;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f2f5;
}

/* Table articles */
.thankyou-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.thankyou-items-table th {
    font-weight: 700;
    color: #002060;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 0;
    border-bottom: 1px solid #f0f2f5;
}
.thankyou-items-table td {
    padding: 14px 0;
    border-bottom: 1px solid #f0f2f5;
    color: #555;
    vertical-align: middle;
}
.thankyou-items-table tfoot th,
.thankyou-items-table tfoot td {
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 0.88rem;
    color: #555;
}
.thankyou-subtotal th,
.thankyou-subtotal td { color: #888 !important; font-weight: 500 !important; }
.thankyou-total-row th,
.thankyou-total-row td {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #002060 !important;
    border-top: 2px solid #002060 !important;
    border-bottom: none !important;
    padding-top: 16px !important;
}
.discount { color: #22c55e !important; font-weight: 700 !important; }
.text-right { text-align: right; }

.thankyou-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.thankyou-item-img img {
    width: 60px; height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 4px;
}
.thankyou-item-name { font-weight: 700; color: #002060; font-size: 0.9rem; margin-bottom: 4px; }
.thankyou-item-qty  { font-size: 0.82rem; color: #999; }
.thankyou-item-total { font-weight: 700; color: #002060; }

/* Adresse */
.thankyou-address {
    font-style: normal;
    font-size: 0.92rem;
    color: #555;
    line-height: 1.8;
}

/* Détails commande */
.thankyou-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.thankyou-details-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 0.9rem;
}
.thankyou-details-list li:last-child { border-bottom: none; }
.detail-label { color: #888; font-weight: 600; }
.detail-value { color: #002060; font-weight: 700; text-align: right; }
.detail-total .detail-label,
.detail-total .detail-value { font-size: 1rem; font-weight: 800; color: #002060; }

/* Badge statut */
.order-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.status-pending       { background: #fef3c7; color: #92400e; }
.status-processing    { background: #dbeafe; color: #1e40af; }
.status-on-hold       { background: #f3f4f6; color: #374151; }
.status-completed     { background: #dcfce7; color: #166534; }
.status-cancelled     { background: #fee2e2; color: #991b1b; }
.status-refunded      { background: #f3f4f6; color: #374151; }
.status-failed        { background: #fee2e2; color: #991b1b; }

/* Bouton retour */
.thankyou-btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s ease;
    box-sizing: border-box;
    text-align: center;
}
.thankyou-btn-back:hover {
    background: rgba(255,255,255,0.18);
    color: white;
}

/* Responsive */
@media (max-width: 900px) {
    .thankyou-layout { grid-template-columns: 1fr; }
    .checkout-step-line { max-width: 30px; }
}
@media (max-width: 640px) {
    .thankyou-title { font-size: 1.5rem; }
    .thankyou-card  { padding: 20px; }
    .thankyou-wrapper { padding: 0 16px; margin: 0 auto; }
}