/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme
Description: Custom donation engine theme for Waduha
Author: Majid Khan
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/
/* ==========================================================================
   WADUHA PREMIUM DONATION RECEIPT (MATCHING MAIN SITE VIBE)
   ========================================================================== */

/* 1. Make the whole page background the warm beige from your home page */
.page-template-default.woocommerce-checkout, 
body.woocommerce-checkout {
    background-color: #fdf6f0 !important; 
}

/* 2. The Receipt Card - Softer shadow, rounder corners */
.woocommerce-checkout .woocommerce {
    max-width: 550px !important;
    margin: 60px auto;
    background: #ffffff;
    padding: 50px 45px;
    border-radius: 16px; /* Matches the rounded images on your site */
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
    border: none;
    font-family: 'Roboto', sans-serif;
}

/* Hide the redundant page title */
.woocommerce-checkout .entry-title, 
.woocommerce-checkout .page-title { 
    display: none !important; 
}

/* 3. The Main Heading - Elegant Serif Font + Soft Coral Red */
.woocommerce-notice--success {
    background: transparent !important;
    color: #e56b55 !important; /* Soft coral red from main site */
    border: none !important;
    padding: 0 0 25px 0 !important;
    font-weight: 700;
    font-size: 26px; /* Larger and more elegant */
    text-align: center;
    margin-bottom: 30px;
    /* Uses a serif font to match your homepage aesthetic */
    font-family: 'Playfair Display', 'Merriweather', Georgia, serif; 
    line-height: 1.3;
    border-bottom: 1px solid #f0e6df !important; /* Soft beige divider */
}
.woocommerce-notice--success::before { display: none !important; }

/* 4. Receipt Details (ID, Date, Total) */
.woocommerce-order-overview {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: transparent;
    padding: 0;
    margin-bottom: 35px;
    list-style: none;
    border: none;
    gap: 30px;
    text-align: center;
}
.woocommerce-order-overview li {
    text-transform: uppercase;
    font-size: 11px;
    color: #999;
    letter-spacing: 1px;
    border-right: 1px solid #f0e6df;
    padding-right: 30px;
}
.woocommerce-order-overview li:last-child {
    border-right: none;
    padding-right: 0;
}
.woocommerce-order-overview li strong {
    display: block;
    font-size: 16px;
    color: #333;
    margin-top: 8px;
    font-weight: 700;
    text-transform: none;
}

/* 5. Table Heading (DONATION SUMMARY) */
.woocommerce-order-details h2 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #e56b55; /* Match heading coral */
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 6. The Items Table */
.woocommerce-table--order-details {
    border: 1px solid #f0e6df !important;
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
}
.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
    border: none !important;
    border-bottom: 1px solid #f0e6df !important;
    padding: 18px 20px !important;
    background: #fff !important;
    font-size: 15px;
    color: #444;
}
.woocommerce-table--order-details th {
    text-transform: uppercase;
    font-size: 11px;
    color: #999;
    letter-spacing: 1.5px;
    background: #faf7f5 !important; /* Very soft beige header */
}

/* Hide Subtotal */
.woocommerce-table--order-details tfoot tr:first-child {
    display: none !important;
}

/* Style the Payment Method Row to be subtle */
.woocommerce-table--order-details tfoot tr:nth-last-child(2) th,
.woocommerce-table--order-details tfoot tr:nth-last-child(2) td {
    font-size: 13px;
    color: #888 !important;
    background: #fff !important;
}

/* Final Total Highlight */
.woocommerce-table--order-details tfoot th { color: #333; font-weight: 700; }
.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-table--order-details tfoot tr:last-child td {
    border-bottom: none !important;
    background: #faf7f5 !important; /* Soft beige highlight */
    font-size: 18px;
    color: #e56b55;
    font-weight: 800;
}

/* ==========================================================================
   7. MOBILE RESPONSIVENESS (Phones & Small Tablets)
   ========================================================================== */
@media (max-width: 600px) {
    .woocommerce-checkout .woocommerce { 
        padding: 35px 20px; 
        margin: 20px 15px;
        border-radius: 12px;
    }
    .woocommerce-notice--success {
        font-size: 22px; /* Slightly smaller heading for mobile */
    }
    /* Stack the ID, Date, and Total vertically on small screens */
    .woocommerce-order-overview { 
        flex-direction: column; 
        gap: 15px; 
        border-bottom: 1px solid #f0e6df; 
        padding-bottom: 25px;
    }
    .woocommerce-order-overview li { 
        border-right: none; 
        padding-right: 0; 
    }
    /* Tweak table padding so text doesn't hit the edges */
    .woocommerce-table--order-details th,
    .woocommerce-table--order-details td {
        padding: 15px 12px !important;
    }
}