/* Exact Premium Checkout Replica (Elementor Compatible) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body.woocommerce-checkout {
    background-color: #f4f7f9 !important;
    font-family: 'Inter', sans-serif !important;
    color: #334155;
}

/* Container */
.woocommerce-checkout .woocommerce {
    max-width: 750px !important;
    margin: 60px auto !important;
    padding: 0 20px;
}

/* Main Cards */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    width: 100% !important;
    float: none !important;
    background: #ffffff !important;
    padding: 35px 40px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
    box-sizing: border-box !important;
    margin-bottom: 30px !important;
    border: none !important;
}

/* Fix Elementor Column overrides */
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2,
.woocommerce-checkout .elementor-widget-woocommerce-checkout .e-checkout__container {
    float: none !important;
    width: 100% !important;
    display: block !important;
}

/* Headings (Information, Payment Summary) */
.woocommerce-checkout h3 {
    font-family: 'Inter', sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #032b43 !important;
    margin-top: 0 !important;
    margin-bottom: 35px !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    position: relative !important;
}
.woocommerce-checkout h3::after {
    content: '' !important;
    display: block !important;
    width: 40px !important;
    height: 3px !important;
    background-color: #f59e0b !important;
    margin-top: 10px !important;
    border-radius: 2px !important;
}

/* Order Review specific tweaks */
.woocommerce-checkout #order_review_heading {
    display: block !important;
    background: #ffffff !important;
    padding: 35px 40px 0 40px !important;
    border-radius: 12px 12px 0 0 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout #order_review {
    border-top: none !important;
    padding-top: 30px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    margin-top: 0 !important;
}

/* Form Fields */
.woocommerce-checkout .form-row {
    margin-bottom: 25px !important;
}
.woocommerce-checkout .form-row label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #475569 !important;
    margin-bottom: 8px !important;
    display: block !important;
    letter-spacing: 0.5px !important;
}
.woocommerce-checkout .form-row label abbr.required {
    color: #ef4444 !important;
    text-decoration: none !important;
    border: none !important;
}
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #0f172a !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    height: auto !important;
    box-shadow: none !important;
}
.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}

/* 50/50 Columns for First/Last Name */
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    width: 48% !important;
    float: left !important;
}
.woocommerce-checkout .form-row-last {
    float: right !important;
}

/* Clearfix */
.woocommerce-checkout form.checkout::after,
.woocommerce-checkout .form-row::after {
    content: '' !important;
    display: table !important;
    clear: both !important;
}

/* Order Table */
.woocommerce-checkout table.shop_table {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    margin-top: 0 !important;
    width: 100% !important;
    border-collapse: collapse !important;
}
.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
    padding: 16px 0 !important;
    border-top: 1px solid #f1f5f9 !important;
    text-align: left !important;
    font-size: 14px !important;
    color: #334155 !important;
}
.woocommerce-checkout table.shop_table td.product-total,
.woocommerce-checkout table.shop_table th.product-total,
.woocommerce-checkout table.shop_table td.product-total * {
    text-align: right !important;
    font-weight: 600 !important;
    color: #0f172a !important;
}
.woocommerce-checkout table.shop_table thead {
    display: none !important; 
}

/* Total Row Specific Styling */
.woocommerce-checkout table.shop_table tr.order-total {
    background: #f1f5f9 !important;
}
.woocommerce-checkout table.shop_table tr.order-total th {
    padding: 20px 10px !important;
    font-weight: 800 !important;
    color: #032b43 !important;
    text-transform: uppercase !important;
    font-size: 16px !important;
    border-top: none !important;
    border-bottom-left-radius: 8px !important;
    border-top-left-radius: 8px !important;
}
.woocommerce-checkout table.shop_table tr.order-total td {
    padding: 20px 10px !important;
    border-top: none !important;
    border-bottom-right-radius: 8px !important;
    border-top-right-radius: 8px !important;
}
.woocommerce-checkout table.shop_table tr.order-total td strong {
    font-size: 18px !important;
    color: #032b43 !important;
}

/* Payment Methods */
.woocommerce-checkout #payment {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 0 !important;
    margin-top: 20px !important;
    border: none !important;
}
.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 24px !important;
    list-style: none !important;
    padding-left: 0 !important;
}
.woocommerce-checkout #payment ul.payment_methods li {
    margin-bottom: 15px !important;
    background: #f8fafc !important;
    padding: 20px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
}
.woocommerce-checkout #payment div.payment_box {
    background: transparent !important;
    padding: 10px 0 0 0 !important;
    margin: 0 !important;
    color: #64748b !important;
    font-size: 13px !important;
    border: none !important;
}
.woocommerce-checkout #payment div.payment_box::before {
    display: none !important; 
}

/* Place Order Button */
.woocommerce-checkout #place_order {
    background: #10b981 !important; 
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 18px 32px !important;
    border-radius: 8px !important;
    width: 100% !important;
    border: none !important;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.4) !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    margin-top: 10px !important;
}
.woocommerce-checkout #place_order:hover {
    background: #059669 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 8px -1px rgba(16, 185, 129, 0.5) !important;
}

/* ========================================================
   PREMIUM THANK YOU PAGE (ORDER RECEIVED)
======================================================== */
.woocommerce-order-received .woocommerce {
    max-width: 800px !important;
    margin: 60px auto !important;
}

/* Success Message Box */
.woocommerce-order-received .woocommerce-notice--success {
    background: #10b981 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 30px 40px !important;
    font-size: 18px !important;
    text-align: center !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3) !important;
    margin-bottom: 40px !important;
    border: none !important;
}
.tb-premium-success-msg {
    display: block !important;
}
.tb-success-title {
    display: block !important;
    color: #ffffff !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    margin: 0 0 10px 0 !important;
    font-family: 'Playfair Display', serif !important;
}
.tb-success-lead {
    display: block !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    margin: 0 0 15px 0 !important;
    color: rgba(255, 255, 255, 0.95) !important;
}
.tb-success-sub {
    display: block !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Order Overview List */
.woocommerce-order-received ul.order_details {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    padding: 30px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 40px !important;
    border: none !important;
    border-top: 4px solid #f59e0b !important;
}
.woocommerce-order-received ul.order_details li {
    list-style: none !important;
    border-right: none !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
    flex: 1 1 auto !important;
    min-width: 150px !important;
    margin-bottom: 15px !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    color: #64748b !important;
    font-weight: 600 !important;
}
.woocommerce-order-received ul.order_details li strong {
    display: block !important;
    font-size: 18px !important;
    color: #032b43 !important;
    margin-top: 5px !important;
    text-transform: none !important;
    word-break: break-word !important;
}

/* Headings */
.woocommerce-order-received h2 {
    font-family: 'Inter', sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #032b43 !important;
    margin-top: 0 !important;
    margin-bottom: 25px !important;
    position: relative !important;
}
.woocommerce-order-received h2::after {
    content: '' !important;
    display: block !important;
    width: 40px !important;
    height: 3px !important;
    background-color: #f59e0b !important;
    margin-top: 10px !important;
    border-radius: 2px !important;
}

/* Order Details Card */
.woocommerce-order-received .woocommerce-order-details {
    background: #ffffff !important;
    padding: 40px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 30px !important;
}

/* Hide Customer Details / Billing Address Card */
.woocommerce-order-received .woocommerce-customer-details {
    display: none !important;
}

/* Order Details Table */
.woocommerce-order-received table.shop_table {
    width: 100% !important;
    border: none !important;
}
.woocommerce-order-received table.shop_table thead th {
    background: #f1f5f9 !important;
    color: #032b43 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    padding: 15px !important;
    border: none !important;
}
.woocommerce-order-received table.shop_table thead th:first-child {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}
.woocommerce-order-received table.shop_table thead th:last-child {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    text-align: right !important;
}
.woocommerce-order-received table.shop_table tbody td {
    padding: 20px 15px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #334155 !important;
    border-top: none !important;
}
.woocommerce-order-received table.shop_table tbody td:last-child {
    text-align: right !important;
    font-weight: 600 !important;
    color: #0f172a !important;
}
.woocommerce-order-received table.shop_table tfoot th,
.woocommerce-order-received table.shop_table tfoot td {
    padding: 15px 15px !important;
    border-top: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
.woocommerce-order-received table.shop_table tfoot th {
    text-align: left !important;
    color: #475569 !important;
    font-weight: 500 !important;
}
.woocommerce-order-received table.shop_table tfoot td {
    text-align: right !important;
    font-weight: 600 !important;
    color: #0f172a !important;
}
.woocommerce-order-received table.shop_table tfoot tr:last-child th,
.woocommerce-order-received table.shop_table tfoot tr:last-child td {
    border-bottom: none !important;
}
.woocommerce-order-received table.shop_table tfoot tr:last-child td .woocommerce-Price-amount {
    font-size: 18px !important;
    color: #10b981 !important;
}

/* Billing Address */
.woocommerce-order-received address {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 25px !important;
    font-style: normal !important;
    line-height: 1.8 !important;
    color: #475569 !important;
    background: #f8fafc !important;
}

/* Hide annoying floating text */
.woocommerce-order p:not(.woocommerce-notice) {
    display: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body.woocommerce-checkout .woocommerce {
        padding: 0 15px !important;
        margin: 30px auto !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review,
    .woocommerce-checkout #order_review_heading {
        padding: 20px 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .woocommerce-checkout input.input-text,
    .woocommerce-checkout textarea,
    .woocommerce-checkout select,
    .woocommerce-checkout .select2-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .woocommerce-checkout h3 {
        font-size: 20px !important;
        margin-bottom: 25px !important;
    }
    .woocommerce-checkout table.shop_table tr.order-total th,
    .woocommerce-checkout table.shop_table tr.order-total td {
        padding: 15px 10px !important;
    }
}
