/* ===== CART & CHECKOUT ENHANCEMENTS ===== */
/* Dynamic Pricing Engine - Cart/Checkout Specific Styles */

/* ===== CART LAYOUT (65/35 SPLIT) - TEMPLATE OVERRIDE APPROACH ===== */
/* Clean flex layout for our enhanced cart template */
.dpe-cart-enhanced-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: 1400px;
    margin: 10px auto 0 auto;
}

/* Left column - Cart form and totals */
.dpe-cart-left-content {
    flex: 0 0 65%;
    min-width: 0;
}

/* Right column - Messaging panel */
.dpe-cart-right-content {
    flex: 0 0 35%;
    position: sticky;
    top: 2rem;
}

/* ===== COMPACT CART TABLE ===== */
/* Make cart rows more compact to fit more products */
.woocommerce table.cart td {
    padding: 0.75rem 0.5rem !important;
    vertical-align: middle;
}

.woocommerce table.cart th {
    padding: 1rem 0.5rem !important;
    font-size: 14px;
}

/* ===== LIST PRICE COLUMN STYLING ===== */
.woocommerce table.cart .product-list-price {
    width: 85px !important;
    text-align: center !important;
    font-size: 13px;
}

.woocommerce table.cart .product-list-price del {
    color: #9ca3af !important;
    text-decoration: line-through !important;
    font-weight: 400 !important;
    opacity: 0.8;
}

.woocommerce table.cart .product-thumbnail img {
    width: 65px !important;
    height: 65px !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 4px;
    background: #ffffff;
}

.woocommerce table.cart .product-name {
    font-size: 14px;
    line-height: 1.3;
}

.woocommerce table.cart .product-price,
.woocommerce table.cart .product-subtotal {
    font-size: 14px;
    font-weight: 600;
}

.woocommerce table.cart .quantity .qty {
    width: 60px !important;
    height: 35px;
    padding: 0.25rem 0.5rem;
    font-size: 14px;
}

.woocommerce table.cart .product-remove a {
    width: 20px !important;
    height: 20px !important;
    font-size: 16px;
}

/* ===== MESSAGING PANEL STYLING ===== */
.dpe-cart-messaging-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Europa Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', sans-serif;
}

.dpe-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Progress Widget Container - matches other widgets */
.dpe-cart-progress-widget {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

/* Progress Meter - matches messaging panel styling */
.dpe-progress-meter {
    margin-bottom: 1rem;
}

.dpe-progress-message {
    font-size: 13px;
    color: #475569;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.dpe-progress-bar-wrapper {
    background-color: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.dpe-progress-bar-fill {
    background-color: #059669;
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.dpe-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
    margin-top: 0.25rem;
}

.dpe-progress-labels span {
    font-weight: 500;
}

/* Cart Savings Summary */
.dpe-cart-savings-summary {
    margin-bottom: 1rem;
}

.dpe-savings-breakdown {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.dpe-savings-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.dpe-savings-line:last-child {
    border-bottom: none;
}

.dpe-label {
    font-size: 13px;
    color: #475569;
}

.dpe-amount {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.dpe-amount.dpe-savings {
    color: #dc2626;
}

.dpe-amount.dpe-percent {
    color: #dc2626;
}

.dpe-amount.dpe-greenbux {
    color: #059669;
    font-weight: 600;
}

.dpe-savings-line.dpe-discount-line {
    color: #059669;
    font-weight: 600;
}

.dpe-savings-line.dpe-percent-line {
    color: #dc2626;
    font-weight: 600;
}

.dpe-savings-line.dpe-subtotal-line {
    border-top: 1px solid #e2e8f0;
    margin-top: 0.25rem;
    padding-top: 0.25rem;
}

.dpe-savings-line.dpe-total-line {
    border-top: 2px solid #e2e8f0;
    margin-top: 0.375rem;
    padding-top: 0.5rem;
    font-size: 15px;
}

.dpe-savings-line.dpe-total-line .dpe-amount {
    color: #059669;
}

.dpe-savings-line.dpe-additional-discount-line .dpe-amount {
    color: #dc2626;
}

.dpe-savings-line.dpe-shipping-line,
.dpe-savings-line.dpe-tax-line {
    color: #64748b;
    font-size: 12px;
}

.dpe-savings-line.dpe-shipping-line .dpe-amount,
.dpe-savings-line.dpe-tax-line .dpe-amount {
    color: #475569;
    font-size: 12px;
}

.dpe-amount.dpe-free-shipping {
    color: #059669;
    font-weight: 600;
}

.dpe-amount.dpe-shipping-pending,
.dpe-amount.dpe-tax-pending {
    color: #64748b;
    font-style: italic;
}

/* Loading state for real-time updates */
.dpe-cart-messaging-panel.dpe-updating {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.dpe-cart-messaging-panel.dpe-updating::before {
    content: "Updating...";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #059669;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
}

/* Quantity Discount Line Styling */
.dpe-quantity-discount-line {
    margin: 0 -1.25rem;
    padding: 0.5rem 1.25rem;
}

.dpe-quantity-discount-line .dpe-savings {
    color: #d97706;
}

/* Cart Pricing Zone */
.dpe-cart-pricing-zone {
    margin-bottom: 1rem;
}

.dpe-zone-info {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.75rem;
}

.dpe-zone-info.dpe-local-delivery {
    border-left: 4px solid #10b981;
}

.dpe-zone-info.dpe-shipping-zone {
    border-left: 4px solid #3b82f6;
}

.dpe-zone-info p {
    margin: 0 0 0.375rem 0;
    font-size: 13px;
    color: #475569;
}

.dpe-zone-info p:last-child {
    margin-bottom: 0;
}

.dpe-zone-info strong {
    color: #1e293b;
    font-weight: 600;
}

.dpe-zone-benefit {
    color: #059669 !important;
    font-weight: 500 !important;
}

/* ZIP Change Interface in Cart */
.dpe-cart-zip-change {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    margin-bottom: -0.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.dpe-cart-zip-field {
    width: 160px !important;
    max-width: 160px !important;
    padding: 0.375rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
    display: inline-block;
    vertical-align: middle;
}

.dpe-cart-change-zip-btn {
    padding: 0.375rem 0.75rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

.dpe-cart-change-zip-btn:hover {
    background: #2563eb;
}

.dpe-cart-zip-result {
    margin-top: 0.5rem;
    font-size: 13px;
    padding: 0.5rem;
    border-radius: 4px;
    width: 100%;
    flex-basis: 100%;
}

.dpe-cart-zip-result.success {
    background: #f0fdf4;
    color: #166534;
}

.dpe-cart-zip-result.error {
    background: #fef2f2;
    color: #991b1b;
}

/* Member CTA */
.dpe-cart-member-cta {
    background: linear-gradient(135deg, #f0f9f4, #ecfdf5);
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 1rem;
}

.dpe-cta-content p {
    margin: 0 0 0.75rem 0;
    font-size: 13px;
    color: #374151;
    line-height: 1.4;
}

.dpe-member-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.dpe-member-benefits li {
    font-size: 12px;
    color: #059669;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.dpe-cart-signup-btn {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dpe-cart-signup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

/* ===== CHECKOUT BUTTON IN MESSAGING PANEL ===== */
.dpe-checkout-button-wrapper {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.dpe-checkout-button {
    display: block;
    width: 100%;
    background: #10b981 !important;
    color: white !important;
    padding: 0.875rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.dpe-checkout-button:hover {
    background: #059669 !important;
    color: white !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.dpe-checkout-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.dpe-savings-message {
    margin: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.3;
}

.dpe-savings-message.dpe-member-message {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.dpe-savings-message.dpe-guest-message {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
    .dpe-cart-enhanced-layout {
        gap: 1.5rem;
    }
    
    .dpe-cart-left-content {
        flex: 0 0 60%;
    }
    
    .dpe-cart-right-content {
        flex: 0 0 40%;
    }
    
    .dpe-cart-messaging-panel {
        padding: 1.25rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .dpe-cart-enhanced-layout {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dpe-cart-left-content,
    .dpe-cart-right-content {
        flex: none;
        width: 100%;
        position: static;
        max-height: none;
    }
    
    .dpe-cart-right-content {
        order: -1; /* Move messaging to top on mobile */
        margin-bottom: 1rem;
    }
    
    .dpe-cart-messaging-panel {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .dpe-section-title {
        font-size: 15px;
    }
    
    .dpe-savings-breakdown {
        padding: 0.75rem;
    }
    
    .dpe-savings-line {
        padding: 0.4rem 0;
    }
    
    .dpe-label,
    .dpe-amount {
        font-size: 13px;
    }
    
    .dpe-cart-member-cta {
        padding: 1rem;
    }
    
    .dpe-member-benefits li {
        font-size: 12px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .dpe-cart-messaging-panel {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* ===== ACCESSIBILITY ===== */

/* High contrast support */
@media (prefers-contrast: high) {
    .dpe-cart-messaging-panel {
        border-width: 2px;
        border-color: #000;
    }
    
    .dpe-savings-breakdown {
        border-width: 2px;
        border-color: #000;
    }
    
    .dpe-cart-signup-btn {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .dpe-cart-signup-btn {
        transition: none;
    }
    
    .dpe-cart-right-content {
        position: static;
    }
}

/* ===== HIDE DUPLICATE CART TOTALS WIDGET ===== */

/* Hide the entire WooCommerce cart totals widget since we display all totals in our messaging panel */
/* To restore the original cart totals widget, comment out or remove this rule */
.woocommerce-cart .cart_totals {
    display: none !important;
}

/* ===== CHECKOUT PAGE ENHANCEMENTS ===== */

/* ===== COMPACT BILLING & SHIPPING FIELDS ===== */

/* Compact form row styling */
.woocommerce-checkout .form-row {
    margin-bottom: 0.625rem !important;
}

.woocommerce-checkout .form-row label {
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-bottom: 0.25rem !important;
    color: #374151;
}

/* Side-by-side field pairs */
.woocommerce-checkout .form-row.form-row-first {
    width: 48% !important;
    float: left !important;
    margin-right: 4% !important;
    margin-bottom: 0.625rem !important;
}

.woocommerce-checkout .form-row.form-row-last {
    width: 48% !important;
    float: right !important;
    margin-bottom: 0.625rem !important;
}

/* Full-width fields */
.woocommerce-checkout .form-row.form-row-wide {
    width: 100% !important;
    clear: both !important;
    margin-bottom: 0.625rem !important;
}

/* Address fields side-by-side with appropriate widths */
.woocommerce-checkout #billing_address_1_field {
    width: 70% !important;
    float: left !important;
    margin-right: 2% !important;
    margin-bottom: 0.625rem !important;
}

.woocommerce-checkout #billing_address_2_field {
    width: 28% !important;
    float: right !important;
    margin-bottom: 0.625rem !important;
}

.woocommerce-checkout #shipping_address_1_field {
    width: 70% !important;
    float: left !important;
    margin-right: 2% !important;
    margin-bottom: 0.625rem !important;
}

.woocommerce-checkout #shipping_address_2_field {
    width: 28% !important;
    float: right !important;
    margin-bottom: 0.625rem !important;
}

/* City, State, ZIP fields side-by-side with appropriate widths */
.woocommerce-checkout #billing_city_field {
    width: 45% !important;
    float: left !important;
    margin-right: 2% !important;
    margin-bottom: 0.625rem !important;
}

.woocommerce-checkout #billing_state_field {
    width: 28% !important;
    float: left !important;
    margin-right: 2% !important;
    margin-bottom: 0.625rem !important;
}

.woocommerce-checkout #billing_postcode_field {
    width: 23% !important;
    float: right !important;
    margin-bottom: 0.625rem !important;
}

.woocommerce-checkout #shipping_city_field {
    width: 45% !important;
    float: left !important;
    margin-right: 2% !important;
    margin-bottom: 0.625rem !important;
}

.woocommerce-checkout #shipping_state_field {
    width: 28% !important;
    float: left !important;
    margin-right: 2% !important;
    margin-bottom: 0.625rem !important;
}

.woocommerce-checkout #shipping_postcode_field {
    width: 23% !important;
    float: right !important;
    margin-bottom: 0.625rem !important;
}

.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    padding: 0.5rem 0.75rem !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    height: 38px !important;
}

.woocommerce-checkout .form-row textarea {
    height: 80px !important;
    resize: vertical !important;
}

/* Clear floats */
.woocommerce-checkout .woocommerce-billing-fields::after,
.woocommerce-checkout .woocommerce-shipping-fields::after {
    content: "";
    display: table;
    clear: both;
}

/* Compact section headers */
.woocommerce-checkout h3 {
    font-size: 18px !important;
    margin-bottom: 0.75rem !important;
    margin-top: 1rem !important;
    color: #1e293b;
}

/* Reduce spacing between billing and shipping sections */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields {
    margin-bottom: 1rem !important;
}

/* First section (billing) should have minimal top margin */
.woocommerce-checkout .woocommerce-billing-fields h3 {
    margin-top: 0 !important;
}

/* Shipping fields section - reduce top spacing */
.woocommerce-checkout #ship-to-different-address {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

/* Additional fields section */
.woocommerce-checkout .woocommerce-additional-fields {
    margin-top: 1rem !important;
}

/* Enhanced checkout review order table */
.dpe-enhanced-checkout-table {
    font-size: 14px !important;
}

.dpe-enhanced-checkout-table th {
    padding: 1rem 0.5rem !important;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0 !important;
}

.dpe-enhanced-checkout-table td {
    padding: 0.75rem 0.5rem !important;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* Product thumbnail styling */
.dpe-enhanced-checkout-table .product-thumbnail {
    width: 80px !important;
    text-align: center;
}

.dpe-enhanced-checkout-table .product-thumbnail img {
    width: 65px !important;
    height: 65px !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 4px;
    background: #ffffff;
}

/* Product name styling */
.dpe-enhanced-checkout-table .product-name {
    font-size: 14px !important;
    line-height: 1.3;
    color: #374151;
}

/* Quantity styling */
.dpe-enhanced-checkout-table .product-quantity {
    width: 60px !important;
    text-align: center;
    font-weight: 600;
    color: #6b7280;
}

/* Product total styling */
.dpe-enhanced-checkout-table .product-total {
    width: 100px !important;
    text-align: right !important;
    font-weight: 600;
    color: #1e293b;
}

/* ===== CHECKOUT TABLE FOOTER - 4-COLUMN LAYOUT ===== */
/* Footer rows use 4-column structure to match the product table above */

/* Base styling for all footer cells */
.woocommerce-checkout .dpe-enhanced-checkout-table tfoot td {
    padding: 0.5rem 0.75rem !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 14px !important;
}

/* Label cells (colspan=3) - left-aligned */
.woocommerce-checkout .dpe-enhanced-checkout-table tfoot td[colspan="3"] {
    text-align: left !important;
    font-weight: normal !important;
    color: #475569 !important;
}

/* Value cells (last column) - right-aligned */
.woocommerce-checkout .dpe-enhanced-checkout-table tfoot td:last-child:not([colspan]) {
    text-align: right !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    min-width: 100px !important;
}

/* Shipping row - Force WooCommerce's output to match our 4-column layout */
.woocommerce-checkout .dpe-enhanced-checkout-table .woocommerce-shipping-totals th,
.woocommerce-checkout .dpe-enhanced-checkout-table .woocommerce-shipping-totals td {
    padding: 0.5rem 0.75rem !important;
    background: transparent !important;
}

/* Force shipping label to span 3 columns */
.woocommerce-checkout .dpe-enhanced-checkout-table .woocommerce-shipping-totals th {
    text-align: left !important;
    font-weight: normal !important;
    color: #475569 !important;
    background: transparent !important;
}

/* Force shipping value/methods to right align in last column */
.woocommerce-checkout .dpe-enhanced-checkout-table .woocommerce-shipping-totals td {
    text-align: right !important;
    background: transparent !important;
}

/* Force WooCommerce shipping rows to 4-column structure - OVERRIDE GREY BACKGROUND */
.woocommerce-checkout .dpe-enhanced-checkout-table tr.woocommerce-shipping-totals > th,
.woocommerce-checkout .dpe-enhanced-checkout-table tr.woocommerce-shipping-totals > td,
.woocommerce-checkout form.checkout .dpe-enhanced-checkout-table tr.woocommerce-shipping-totals th,
.woocommerce-checkout form.checkout .dpe-enhanced-checkout-table tr.woocommerce-shipping-totals td {
    background: transparent !important;
    background-color: transparent !important;
}

.woocommerce-checkout .dpe-enhanced-checkout-table tr.woocommerce-shipping-totals > th {
    /* If it has a th, make it span 3 columns */
    display: table-cell !important;
    text-align: left !important;
    font-weight: normal !important;
    color: #475569 !important;
}

.woocommerce-checkout .dpe-enhanced-checkout-table tr.woocommerce-shipping-totals > th::after {
    content: attr(colspan);
    display: none;
}

/* If WooCommerce uses 2 td cells, fix them */
.woocommerce-checkout .dpe-enhanced-checkout-table tr.woocommerce-shipping-totals > td:first-child:not(:last-child) {
    text-align: left !important;
    font-weight: normal !important;
    color: #475569 !important;
}

.woocommerce-checkout .dpe-enhanced-checkout-table tr.woocommerce-shipping-totals > td:last-child {
    text-align: right !important;
    font-weight: 600 !important;
}

/* Shipping methods list */
.woocommerce-checkout .dpe-enhanced-checkout-table .woocommerce-shipping-methods,
.woocommerce-checkout .dpe-enhanced-checkout-table #shipping_method {
    text-align: right !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-checkout .dpe-enhanced-checkout-table .woocommerce-shipping-methods li,
.woocommerce-checkout .dpe-enhanced-checkout-table #shipping_method li {
    text-align: right !important;
    list-style: none !important;
}

.woocommerce-checkout .dpe-enhanced-checkout-table .woocommerce-shipping-methods label,
.woocommerce-checkout .dpe-enhanced-checkout-table #shipping_method label {
    display: inline !important;
}

/* Special rows styling */
.woocommerce-checkout .dpe-enhanced-checkout-table .order-total td[colspan="3"] {
    font-weight: 700 !important;
    font-size: 16px !important;
    border-top: 2px solid #e2e8f0 !important;
    padding-top: 0.75rem !important;
}

.woocommerce-checkout .dpe-enhanced-checkout-table .order-total td:last-child {
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #1e293b !important;
    border-top: 2px solid #e2e8f0 !important;
    padding-top: 0.75rem !important;
}

/* Cart Subtotal styling */
.woocommerce-checkout .dpe-enhanced-checkout-table .cart-subtotal td {
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 0.75rem !important;
}

/* GreenBux styling - Fix structure and remove grey background */
.woocommerce-checkout .dpe-enhanced-checkout-table .srp-points-checkout-wrapper {
    display: table-row !important;
    visibility: visible !important;
}

.woocommerce-checkout .dpe-enhanced-checkout-table .srp-points-checkout-wrapper th,
.woocommerce-checkout .dpe-enhanced-checkout-table .srp-points-checkout-wrapper td {
    background: transparent !important;
    background-color: transparent !important;
    padding: 0.5rem 0.75rem !important;
    display: table-cell !important;
    visibility: visible !important;
}

/* Hide the original th if it exists */
.woocommerce-checkout .dpe-enhanced-checkout-table .srp-points-checkout-wrapper th {
    display: none !important;
}

/* Hide duplicate Sumo points display (if it appears after our custom one) */
.woocommerce-checkout .dpe-enhanced-checkout-table .dpe-greenbux-row ~ .srp-points-checkout-wrapper {
    display: none !important;
}

/* Hide Sumo's default display that appears after order total */
.woocommerce-checkout .order-total ~ .srp-points-checkout-wrapper,
.woocommerce-checkout .order-total ~ tr .srp-points-value-checkout {
    display: none !important;
}

/* Label cell with colspan=3 */
.woocommerce-checkout .dpe-enhanced-checkout-table .srp-points-checkout-wrapper td[colspan="3"] {
    text-align: left !important;
    color: #059669 !important;
    font-weight: normal !important;
}

/* Value cell - last td without colspan */
.woocommerce-checkout .dpe-enhanced-checkout-table .srp-points-value-checkout,
.woocommerce-checkout .dpe-enhanced-checkout-table .srp-points-checkout-wrapper td:last-child:not([colspan]) {
    color: #059669 !important;
    font-weight: 600 !important;
    text-align: right !important;
    min-width: 100px !important;
}

/* Our custom GreenBux row styling - green amount */
.woocommerce-checkout .dpe-enhanced-checkout-table .dpe-greenbux-row td:last-child,
.woocommerce-checkout .dpe-enhanced-checkout-table .dpe-custom-greenbux td:last-child,
body.woocommerce-checkout .dpe-enhanced-checkout-table .dpe-greenbux-row td:last-child,
body.woocommerce-checkout .dpe-enhanced-checkout-table .dpe-custom-greenbux td:last-child {
    color: #059669 !important;
    font-weight: 600 !important;
}

/* List Price Total styling with strikethrough */
.woocommerce-checkout .dpe-enhanced-checkout-table .list-price-total td {
    font-weight: normal !important;
    color: #6b7280 !important;
}

.woocommerce-checkout .dpe-enhanced-checkout-table .list-price-total td[colspan="3"] {
    color: #6b7280 !important;
    font-weight: normal !important;
}

.woocommerce-checkout .dpe-enhanced-checkout-table .list-price-total td:last-child del {
    color: #9ca3af !important;
    text-decoration: line-through !important;
    font-weight: normal !important;
}

/* Your Savings styling - grey title, red amount (including negative sign and currency symbol) */
.woocommerce-checkout .dpe-enhanced-checkout-table .your-savings td {
    font-weight: 600 !important;
}

.woocommerce-checkout .dpe-enhanced-checkout-table .your-savings td[colspan="3"] {
    color: #475569 !important;
    font-weight: normal !important;
}

/* High specificity rule to override any other styling */
body.woocommerce-checkout .woocommerce-checkout-review-order-table .your-savings td:last-child,
body.woocommerce-checkout .dpe-enhanced-checkout-table .your-savings td:last-child,
.woocommerce-checkout .dpe-enhanced-checkout-table .your-savings td:last-child {
    color: #dc2626 !important;
    font-weight: 600 !important;
}

/* Ensure all child elements are also red and bold */
body.woocommerce-checkout .woocommerce-checkout-review-order-table .your-savings td:last-child *,
body.woocommerce-checkout .dpe-enhanced-checkout-table .your-savings td:last-child *,
body.woocommerce-checkout .dpe-enhanced-checkout-table .your-savings td:last-child .woocommerce-Price-amount,
body.woocommerce-checkout .dpe-enhanced-checkout-table .your-savings td:last-child .woocommerce-Price-currencySymbol,
body.woocommerce-checkout .dpe-enhanced-checkout-table .your-savings td:last-child span,
.woocommerce-checkout .dpe-enhanced-checkout-table .your-savings td:last-child *,
.woocommerce-checkout .dpe-enhanced-checkout-table .your-savings td:last-child .woocommerce-Price-amount,
.woocommerce-checkout .dpe-enhanced-checkout-table .your-savings td:last-child .woocommerce-Price-currencySymbol {
    color: #dc2626 !important;
    font-weight: 600 !important;
}

/* Checkout subtotal line */
.woocommerce-checkout .cart-subtotal th,
.woocommerce-checkout .cart-subtotal td {
    padding: 1rem 0;
    font-weight: 600;
}

/* ULTIMATE OVERRIDE - Remove ALL grey backgrounds from checkout table */
body.woocommerce-checkout .woocommerce table.shop_table.dpe-enhanced-checkout-table td,
body.woocommerce-checkout .woocommerce table.shop_table.dpe-enhanced-checkout-table th,
body.woocommerce-checkout #order_review .dpe-enhanced-checkout-table td,
body.woocommerce-checkout #order_review .dpe-enhanced-checkout-table th,
body.woocommerce-checkout form.checkout table.shop_table th,
body.woocommerce-checkout form.checkout table.shop_table td {
    background: transparent !important;
    background-color: transparent !important;
}

/* NUCLEAR OPTION - Target shipping th specifically */
body.woocommerce-checkout .woocommerce-shipping-totals th[colspan="3"] {
    background: transparent !important;
    background-color: transparent !important;
}


/* PRO Signup Incentive Section */
.dpe-pro-signup-incentive {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 2px solid #86efac;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.dpe-pro-signup-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 1rem 0;
    text-align: center;
}

.dpe-pro-signup-content {
    max-width: 600px;
    margin: 0 auto;
}

/* Checkbox wrapper */
.dpe-pro-signup-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.dpe-pro-signup-checkbox-wrapper:hover {
    border-color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

/* Custom checkbox styling */
.dpe-pro-signup-checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.dpe-checkbox-custom {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    margin-right: 12px;
    transition: all 0.2s;
}

.dpe-pro-signup-checkbox-wrapper input[type="checkbox"]:checked ~ .dpe-checkbox-custom {
    background: #10b981;
    border-color: #10b981;
}

.dpe-checkbox-custom::after {
    content: '';
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.dpe-pro-signup-checkbox-wrapper input[type="checkbox"]:checked ~ .dpe-checkbox-custom::after {
    display: block;
}

.dpe-signup-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.5;
    color: #1f2937;
}

/* Benefits list */
.dpe-pro-benefits {
    margin: 1rem 0;
}

.dpe-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.dpe-benefits-list li {
    font-size: 14px;
    color: #374151;
    display: flex;
    align-items: center;
}

/* Subscription terms */
.dpe-subscription-terms {
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 10px;
}

.dpe-terms-main {
    font-size: 15px;
    color: #1f2937;
    margin-bottom: 0.5rem;
    text-align: center;
}

.dpe-terms-fine {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    margin: 0;
}

.dpe-terms-fine a {
    color: #059669;
    text-decoration: underline;
}

/* Instant savings display */
.dpe-instant-savings {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dpe-savings-highlight {
    background: white;
    border: 2px solid #10b981;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    font-size: 16px;
    color: #065f46;
}

/* Account fields highlighting */
.dpe-highlighted-field {
    position: relative;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #d1fae5;
    margin-bottom: 10px !important;
}

.dpe-highlighted-field label {
    color: #065f46 !important;
    font-weight: 600 !important;
}

/* Account helper text */
.dpe-account-helper-text {
    font-size: 14px;
    color: #000000;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Mobile responsive for checkout */
@media (max-width: 768px) {
    .dpe-pro-signup-incentive {
        padding: 1rem;
        padding-left: 10px;
        padding-right: 10px;
        margin: 1rem -15px 1.5rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .dpe-benefits-list {
        grid-template-columns: 1fr;
    }
    
    .dpe-pro-signup-checkbox-wrapper {
        padding: 0.75rem;
    }
    
    .dpe-signup-text {
        font-size: 14px;
    }
    
    /* Stack all checkout fields on mobile */
    .woocommerce-checkout .form-row.form-row-first,
    .woocommerce-checkout .form-row.form-row-last {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
    }
    
    /* Address and location fields stack on mobile */
    .woocommerce-checkout #billing_address_1_field,
    .woocommerce-checkout #billing_address_2_field,
    .woocommerce-checkout #shipping_address_1_field,
    .woocommerce-checkout #shipping_address_2_field,
    .woocommerce-checkout #billing_city_field,
    .woocommerce-checkout #billing_state_field,
    .woocommerce-checkout #billing_postcode_field,
    .woocommerce-checkout #shipping_city_field,
    .woocommerce-checkout #shipping_state_field,
    .woocommerce-checkout #shipping_postcode_field {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
    }
}

/* Side-by-side layout for email and password fields */
.dpe-fields-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dpe-fields-container.dpe-use-flex {
    display: flex !important;
}

.dpe-side-by-side {
    width: calc(50% - 2.5px) !important;
    display: inline-block !important;
    vertical-align: top !important;
    box-sizing: border-box !important;
    float: left !important;
    clear: none !important;
    margin-bottom: 0.5rem !important;
}

.dpe-side-by-side:first-child {
    margin-right: 5px !important;
}

/* Target the actual input fields directly */
#billing_email,
#account_password {
    width: 100% !important;
    padding: 15px !important;
    box-sizing: border-box !important;
}

/* Ensure fields maintain proper width */
@media (max-width: 600px) {
    .dpe-fields-container {
        flex-direction: column;
    }
    
    .dpe-side-by-side {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
    }
}

/* Green highlight for required account fields */
.dpe-highlighted-field input {
    border-color: #10b981 !important;
    background-color: #ffffff !important;
}

.dpe-highlighted-field input:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Ensure proper spacing for the input wrapper */
.dpe-highlighted-field .woocommerce-input-wrapper {
    margin-top: 5px;
}

/* Login/signup notice styling */
.dpe-login-or-signup-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.dpe-login-or-signup-notice p {
    margin: 0;
    color: #92400e;
}

/* Debug mode styles (only when ?dpe_debug=1 in URL) */
.dpe-debug-mode #billing_email_field {
    outline: 2px solid blue !important;
}

.dpe-debug-mode #account_password_field {
    outline: 2px solid green !important;
}

.dpe-debug-mode .dpe-fields-container {
    outline: 2px solid red !important;
}

/* GreenBux line styling - matches total line */
.dpe-savings-line.dpe-greenbux-line {
    border-top: 2px solid #e2e8f0;
    margin-top: 0.375rem;
    padding-top: 0.5rem;
    font-size: 15px;
}

.dpe-savings-line.dpe-greenbux-line .dpe-amount {
    color: #059669;
}

/* Ensure proper stacking context for sticky panel */
.dpe-cart-right-content {
    z-index: 1;
}

/* Cart table improvements for mobile */
@media (max-width: 480px) {
    .woocommerce table.cart .product-thumbnail {
        display: none;
    }
    
    .woocommerce table.cart .product-name {
        font-size: 12px;
    }
    
    .woocommerce table.cart .quantity .qty {
        width: 45px !important;
    }
}

/* ===== CART WIDGET STYLES ===== */
/* Floating cart widget for enhanced UX */
.dpe-cart-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.dpe-cart-trigger {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.dpe-cart-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.dpe-cart-icon {
    width: 28px;
    height: 28px;
    position: relative;
}

.dpe-cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc2626;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Mini progress ring */
.dpe-mini-progress-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 68px;
    height: 68px;
    display: none;
}

.dpe-progress-ring-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 3;
}

.dpe-progress-ring-fill {
    fill: none;
    stroke: #10b981;
    stroke-width: 3;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 0.5s ease;
}

/* Cart panel */
.dpe-cart-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 80vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: none;
    overflow: hidden;
}

.dpe-cart-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dpe-cart-title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dpe-cart-count-text {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
}

.dpe-cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.dpe-cart-close:hover {
    opacity: 1;
}

/* Cart progress section */
.dpe-cart-progress-section {
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.dpe-progress-container {
    position: relative;
}

.dpe-progress-bar {
    background: #e5e7eb;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.dpe-progress-fill {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.dpe-progress-text {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

.dpe-milestone-marker {
    position: absolute;
    top: 0;
    width: 2px;
    height: 8px;
    background: #9ca3af;
}

/* Coaching message */
.dpe-coaching-message {
    padding: 1rem;
    background: #fef3c7;
    border-bottom: 1px solid #fcd34d;
    font-size: 14px;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dpe-coaching-icon {
    font-size: 20px;
}

/* Cart items section */
.dpe-cart-items {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
}

.dpe-cart-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.dpe-cart-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.dpe-cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    background: #f3f4f6;
}

.dpe-cart-item-details {
    flex: 1;
}

.dpe-cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.dpe-cart-item-price {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.dpe-cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dpe-qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.dpe-qty-btn {
    background: white;
    border: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.dpe-qty-btn:hover {
    background: #f3f4f6;
}

.dpe-qty-value {
    width: 40px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
}

.dpe-remove-item {
    color: #ef4444;
    font-size: 18px;
    cursor: pointer;
    margin-left: auto;
    transition: color 0.2s;
}

.dpe-remove-item:hover {
    color: #dc2626;
}

/* Cart totals */
.dpe-cart-totals {
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

.dpe-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

/* Cart actions */
.dpe-cart-actions {
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
}

.dpe-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.dpe-btn-secondary {
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.dpe-btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.dpe-btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
}

.dpe-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Cart empty state */
.dpe-cart-empty {
    padding: 3rem 2rem;
    text-align: center;
}

.dpe-empty-icon {
    font-size: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.dpe-cart-empty p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Loading states */
.dpe-item-updating {
    opacity: 0.5;
    pointer-events: none;
}

.dpe-cart-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Feedback messages */
.dpe-cart-feedback {
    padding: 0.75rem 1rem;
    font-size: 14px;
    text-align: center;
    display: none;
}

.dpe-feedback-success {
    background: #d1fae5;
    color: #065f46;
}

.dpe-feedback-error {
    background: #fee2e2;
    color: #991b1b;
}

/* Animation states */
.dpe-cart-opening .dpe-cart-panel {
    animation: slideUp 0.3s ease-out;
}

.dpe-cart-closing .dpe-cart-panel {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile cart widget */
@media (max-width: 768px) {
    .dpe-cart-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .dpe-cart-trigger {
        width: 50px;
        height: 50px;
    }
    
    .dpe-cart-panel {
        width: calc(100vw - 40px);
        max-width: 380px;
        right: 20px;
        bottom: 70px;
    }
}

/* ===== QUANTITY DISCOUNT ANIMATIONS ===== */
/* Fireworks celebration for quantity milestones */
.dpe-fireworks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

.dpe-discount-celebration {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    z-index: 10001;
    animation: celebrationBounce 0.5s ease-out;
}

@keyframes celebrationBounce {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.dpe-celebration-icon {
    font-size: 48px;
    margin-bottom: 1rem;
}

.dpe-celebration-title {
    font-size: 24px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 0.5rem;
}

.dpe-celebration-message {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.dpe-celebration-close {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dpe-celebration-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ===== GREENBUX DISPLAY STYLES ===== */
.dpe-greenbux-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0fdf4;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 14px;
    color: #059669;
    font-weight: 600;
}

.dpe-greenbux-icon {
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23059669"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1.41 16.09V20h-2.67v-1.93c-1.71-.36-3.16-1.46-3.27-3.4h1.96c.1.93.66 1.64 2.08 1.64 1.51 0 2.01-.68 2.01-1.59 0-1.06-.52-1.39-2.07-1.85-1.86-.52-3.39-1.21-3.39-3.45 0-1.8 1.38-2.98 3.08-3.36V4h2.67v2.06c1.55.38 2.69 1.46 2.79 3.21h-1.96c-.09-.8-.49-1.49-1.71-1.49-1.23 0-1.81.62-1.81 1.47 0 .94.49 1.25 2.03 1.7 1.87.53 3.43 1.18 3.43 3.59 0 1.88-1.38 3.14-3.17 3.55z"/></svg>') center/contain no-repeat;
}

/* ===== LOCATION-BASED MESSAGING ===== */
.dpe-location-message {
    background: #eff6ff;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 14px;
}

.dpe-location-icon {
    font-size: 24px;
    color: #3b82f6;
}

.dpe-location-text {
    flex: 1;
    color: #1e40af;
}

.dpe-location-change {
    color: #3b82f6;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.dpe-location-change:hover {
    color: #2563eb;
}

/* ===== ADDITIONAL CHECKOUT STYLES ===== */
/* Account creation fields container */
.dpe-account-fields-wrapper {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.dpe-account-fields-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dpe-account-fields-title::before {
    content: '🔐';
    font-size: 20px;
}

/* Password strength indicator */
.dpe-password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.dpe-password-strength-bar {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.dpe-password-weak {
    width: 33%;
    background: #ef4444;
}

.dpe-password-medium {
    width: 66%;
    background: #f59e0b;
}

.dpe-password-strong {
    width: 100%;
    background: #10b981;
}

.dpe-password-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Enhanced form field styles */
.woocommerce-checkout .form-row {
    margin-bottom: 1.25rem;
}

.woocommerce-checkout .form-row label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.woocommerce-checkout .form-row .woocommerce-input-wrapper {
    position: relative;
}

.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s;
}

.woocommerce-checkout input[type="text"]:focus,
.woocommerce-checkout input[type="email"]:focus,
.woocommerce-checkout input[type="tel"]:focus,
.woocommerce-checkout input[type="password"]:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    outline: none;
    border-color: #d1d5db;
    box-shadow: none;
}

/* Field icons */
.dpe-field-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

/* Validation states */
.woocommerce-checkout .form-row.woocommerce-validated input {
    border-color: #10b981;
}

.woocommerce-checkout .form-row.woocommerce-validated .dpe-field-icon {
    color: #10b981;
}

.woocommerce-checkout .form-row.woocommerce-invalid input {
    border-color: #ef4444;
}

.woocommerce-checkout .form-row.woocommerce-invalid .dpe-field-icon {
    color: #ef4444;
}

/* Enhanced place order button */
#place_order {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

#place_order:active {
    transform: translateY(0);
}

#place_order::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#place_order:active::after {
    width: 300px;
    height: 300px;
}

/* Order review table enhancements - Increased specificity to override theme */
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table,
.woocommerce-checkout .woocommerce-checkout-review-order-table {
    background: white !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table th {
    background: #f8f9fa !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    padding: 1rem !important;
    text-align: left !important;
    border: none !important;
}

.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table td,
.woocommerce-checkout .woocommerce-checkout-review-order-table td {
    padding: 1rem !important;
    border-bottom: 1px solid #f3f4f6 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    background: white !important;
}

/* Remove border from last row */
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tr:last-child td {
    border-bottom: none !important;
}

/* Order total styling with higher specificity */
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table .order-total td,
.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td {
    background: #f0fdf4 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #065f46 !important;
    border-top: 2px solid #86efac !important;
}

/* Product rows styling */
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table .cart_item td {
    vertical-align: middle !important;
}

/* Product name styling */
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table .product-name {
    font-weight: 500 !important;
    color: #374151 !important;
}

/* Quantity styling */
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table .product-quantity {
    color: #6b7280 !important;
    font-size: 0.9em !important;
}


/* Coupon form enhancement */
.woocommerce-form-coupon {
    background: #f8f9fa;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.woocommerce-form-coupon .form-row {
    display: flex;
    gap: 1rem;
    margin: 0;
}

.woocommerce-form-coupon input[type="text"] {
    flex: 1;
}

.woocommerce-form-coupon button {
    padding: 0.75rem 1.5rem;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.woocommerce-form-coupon button:hover {
    background: #4b5563;
}

/* Success checkmark animation */
@keyframes checkmark {
    0% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.dpe-success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.dpe-success-checkmark circle {
    fill: none;
    stroke: #10b981;
    stroke-width: 3;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: checkmark 0.6s ease-out forwards;
}

.dpe-success-checkmark path {
    fill: none;
    stroke: #10b981;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkmark 0.3s ease-out 0.3s forwards;
}

/* Loading spinner */
.dpe-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: dpe-spin 1s ease-in-out infinite;
}

@keyframes dpe-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Tooltips */
.dpe-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.dpe-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.dpe-tooltip::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.dpe-tooltip:hover::after,
.dpe-tooltip:hover::before {
    opacity: 1;
}

/* Trust badges */
.dpe-trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.dpe-trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    color: #6b7280;
}

.dpe-trust-badge-icon {
    font-size: 24px;
    color: #10b981;
}

/* Responsive improvements */
@media (max-width: 1024px) {
    .dpe-cart-enhanced-layout {
        gap: 1.5rem;
    }
    
    .dpe-cart-messaging-panel {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .dpe-pro-signup-incentive {
        margin-left: -1rem;
        margin-right: -1rem;
    }
    
    .woocommerce-checkout .form-row {
        margin-bottom: 1rem;
    }
    
    #place_order {
        font-size: 16px;
        padding: 0.875rem 1.5rem;
    }
}

/* Print styles */
@media print {
    .dpe-cart-widget,
    .dpe-cart-messaging-panel,
    .dpe-pro-signup-incentive {
        display: none !important;
    }
    
    .dpe-cart-enhanced-layout {
        display: block;
    }
    
    .dpe-cart-left-content {
        width: 100%;
    }
}

/* ========================================
   ASTRA THEME CHECKOUT CUSTOMIZATIONS
   ======================================== */

/* Desktop: PRO account message panel at 40% width */
.ast-modern-checkout .ast-two-column-checkout .woocommerce-checkout #ast-order-review-wrapper {
    width: 40%;
    padding-right: 10px;
    padding-left: 10px;
}

/* Mobile: PRO account message panel at 100% width */
@media (max-width: 768px) {
    .ast-modern-checkout .ast-two-column-checkout .woocommerce-checkout #ast-order-review-wrapper {
        width: 100%;
        padding-right: 10px;
        padding-left: 10px;
    }

/* Add padding to form fields in Astra checkout */
.ast-modern-checkout .woocommerce form.woocommerce-checkout .woocommerce-billing-fields-custom .woocommerce-billing-fields__customer-info-wrapper .form-row {
    padding-left: 10px;
    padding-right: 10px;
}
}

/* ========================================
   MOBILE CHECKOUT PRO SIGNUP POSITIONING
   ======================================== */

/* Mobile PRO signup wrapper - positions above customer details */
@media (max-width: 768px) {
    .dpe-mobile-pro-signup-wrapper {
        margin-bottom: 2rem;
        order: -1; /* Ensures it appears first */
    }
    
    /* Ensure PRO signup is full width on mobile */
    .dpe-mobile-pro-signup-wrapper .dpe-pro-signup-incentive {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* ========================================
   PLACE ORDER BUTTON STYLING
   ======================================== */

@media (max-width: 768px) {
    /* Prominent place order button */
    #place_order {
        font-size: 18px !important;
        padding: 18px 32px !important;
        background: #10b981 !important;
        color: white !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        width: 100% !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3), 0 2px 4px -1px rgba(16, 185, 129, 0.2) !important;
        transition: all 0.2s ease;
    }
    
    #place_order:active {
        transform: translateY(1px);
        box-shadow: 0 2px 4px -1px rgba(16, 185, 129, 0.3) !important;
    }
}
