/* ==========================================================================
   Acendae PSA Grading - Frontend Styles (Merged, Functional & Responsive)
   ========================================================================== */
   
.acendae-white-box {
    padding: 41px;
    border: 1px solid #ECE4CC;
    background-color: #FFFDF8;
    box-shadow: 0px 5px 20px #0000000A;
}

.acendae-psa-wrapper {
    font-family: 'Poppins', sans-serif;
}

/* --- Progress Header --- */
.acendae-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.acendae-steps-container { display: flex; }
.acendae-step-active { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; color: #000000; display: flex; align-items: center; gap: 10px; }
.acendae-step-inactive { font-weight: 600; font-size: 20px; color: #a0a0a0; display: flex; align-items: center; gap: 10px; }

.acendae-step-active::after {
    content: '';
    display: block;
    width: 80px; 
    height: 2px; 
    background-color: #D4AF3755; /* Matches your form's border color */
    margin-left: 10px; /* Space between "Kaartgegevens" and the start of the line */
    margin-right: 20px; /
}
.acendae-icon-active {
    background: #D4AF37;
    color: #000;
    width: 40px; height: 40px;
    display: flex; justify-content: center; align-items: center;
    font-size: 16px;
}

.acendae-icon-inactive {
    opacity: 0.5;
    background: #fff;
    color: #D4AF37;
    width: 40px; height: 40px;
    display: flex; justify-content: center; align-items: center;
    font-size: 16px;
    border: 1px solid #D4AF37;
}

.acendae-step-status {
    color: #D4AF37;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 2px;
}

/* --- Form Elements --- */
.section-cont { display: flex; justify-content: space-between; align-items: end; padding-bottom: 20px; border-bottom: 1px solid #ECE4CC; margin-bottom: 40px; }
.section-cont-2 { display: flex; justify-content: space-between; align-items: end; padding-bottom: 24px; }
.acendae-cont-title { font-size: 16px; font-weight: 500; color: #D4AF37; letter-spacing: 2px; margin: 0px; }
.acendae-section-title { font-size: 40px; font-weight: 600; color: #000; margin: 0px; }
.acendae-cont-decrip { font-size: 16px; font-weight: 400; color: #777777; margin-bottom:10px;}
.acendae-form-row { display: flex; gap: 20px; margin-bottom: 24px; }
.acendae-form-group { flex: 1; }

.acendae-form-group label {
    display: block;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 8px;
    color: #000000;
}
.acendae-req { color: red; }

.acendae-form-group input[type="text"],
.acendae-form-group input[type="number"] {
    width: 100%;
    padding: 17px;
    border: 1px solid #E5E0D0 !important;
    background: #ffffff;
    box-sizing: border-box;
    border-radius: 0px;
}
input::placeholder {
    font-size: 16px;
    font-weight: 400;
    color: #AAAAAA;
}

/* --- Upload Section --- */
.acendae-upload-header {
    display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px;
}

.acendae-upload-counter {
    font-size: 16px; font-weight: 500;
    border: 1px solid #D4AF37; padding: 8px 17px; color: #000000;
}

.acendae-card-upload-box {
    margin-bottom: 25px; padding: 25px; border: 1px solid #ECE4CC; background: #fff; box-shadow: 0px 5px 20px #0000000A;
}
.form-title-section {
    display: flex;
    justify-content: space-between;
}
.acendae-upload-box-title {
    display: flex; gap: 10px; align-items: center; margin-bottom: 20px;
}
.acendae-upload-box-title span {
    background: #000; color: #D4AF37; width: 40px; height: 40px;
    display: flex; justify-content: center; align-items: center; font-size: 16px; font-weight: 600;
}
.acendae-upload-box-title h4 { margin: 0; font-size: 20px; font-weight: 600; color: #000; }
.acendae-upload-box-title p { font-size: 16px; font-weight: 400; color: #777777; }
.image-req-text { font-size: 16px; font-weight: 500; color: #D4AF37; }

/* ---- upload notice container ---- */
.upload-notice-box {display:flex; flex-direction:column; gap:16px; align-items:start; border:1px solid #D4AF37; background:#D4AF3714; padding:20px; margin-bottom:32px;}
.upload-notice-box-1{display:flex; gap:17px;}
.upload-notice-box h3 { margin:0px; }
.upload-notice-box p{padding-left:40px;}
.upload-notice-box img { width:22px; height:22px;}

/* --- Upload Layout Wrappers --- */
.upload-zon-cont { flex: 1; width: 100%; display: flex; flex-direction: column; }
.upload-zon-cont-inner { width: 100%; display: flex; flex-direction: column; height: 100%; gap: 15px; }

.view-cont { display: flex; justify-content: space-between; align-items: center; }
.view-cont h4 { margin: 0px; font-size: 16px; font-weight: 500; color: #000; }
.view-cont-icon span { width: 30px; height: 30px; border: 1px solid #D4AF37; color: #D4AF37; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 500; }

.acendae-upload-zones { display: flex; gap: 40px; }

/* --- Upload Functional Click Zones --- */
.acendae-upload-zone {
    flex: 1; 
    min-height: 600px; 
    border: 2px dashed #D4AF37; 
    background: #FDFAF0; 
    transition: border 0.3s, background 0.3s;
    position: relative;
}
.acendae-upload-zone:hover { border-color: #c49e2a; background: #fffdf5; }

/* Makes the entire box clickable */
.acendae-upload-label { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    width: 100%; 
    height: 100%; 
    cursor: pointer; 
    position: absolute; 
    top: 0; left: 0; right: 0; bottom: 0;
}

/* Positioned Top Left Badge */
.acendae-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 16px;
    font-weight: 500;
    color: #D4AF37;
    background: #000000;
    padding: 4px 8px;
}

/* Custom Icon Constraints */
.acendae-custom-icon { width: 50px; height: 50px; margin-bottom:16px;}

/* Hidden HTML Default File Input */
.acendae-file-input { display: none !important; }

/* Upload Text Styling */
.acendae-upload-text { font-size: 16px; font-weight: 500; color: #000; margin-bottom: 9px; }
.acendae-upload-hint { display: block; font-size: 16px; color: #777777; font-weight: 400; }

/* ---Notice box ----*/
.notice-box { display: flex; flex-direction:column; gap: 10px; background-color: #FDFAF0; border-left: 4px solid #D4AF37; padding: 24px 28px; }
.notice-box span { width: 16px; height: 40px; background-color: #D4AF37; color: #000000; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.notice-box-1 {display:flex; gap:40px; align-items:center;}
.notice-box h3 { font-weight: 600; font-size: 20px; margin: 0px; }
.notice-box p { font-weight: 400; font-size: 16px; color: #555555; padding-left:55px; }

/* --- Footer & Buttons --- */
.acendae-footer {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid #eaeaea; padding-top: 30px; margin-top: 40px;
}

.acendae-progress-bar-container { display: flex; align-items: center; gap: 15px; width:40%;}
.acendae-progress-track { width: 232px; height: 6px; background: #eee; overflow: hidden; margin-top:5px; }
.acendae-progress-fill { width: 50%; height: 100%; background: #D4AF37; }
.acendae-progress-text { font-size: 16px; font-weight: 400; color: #666; text-wrap: nowrap;}

.acendae-btn-primary {
    background: #D4AF37; color: #000; padding: 25px 35px; font-size: 20px;
    font-weight: 600; border: none; border-radius: 0px; cursor: pointer; transition: background 0.2s;
}
.acendae-btn-primary:hover { background: #c49e2a; }


/* ==========================================================================
   Step 2: Review & Submit Styles
   ========================================================================== */
acendae-step-2-container a:visited {color:#666 !important}
.acendae-back-link {
    display: inline-block; color: #666; text-decoration: none; font-weight: 500;
}
.acendae-back-link:hover { color: #D4AF37; }

.acendae-step-2-layout { display: flex; gap: 40px; margin-top:80px;}

/* Left Column (Dark Info Box) */
.acendae-step-2-left {
    flex: 1; background: #0a0a0a; color: #fff; padding: 40px;
}
.acendae-s2-subtitle { color: #D4AF37; letter-spacing: 2px; font-size: 16px; margin: 0; font-weight: 400; }
.acendae-s2-title { font-size: 64px; line-height:4rem; margin: 10px 0 30px 0; color: #fff; font-weight: 700; }
.acendae-s2-title span { color: #D4AF37; }

.acendae-dark-box { border: 1px solid #D4AF3755; padding: 25px; margin-bottom: 40px; }
.acendae-dark-box h3 { margin: 0; display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 40px; line-height:1.1;}
.acendae-dark-box h3.warning { color: #D4AF37; }
.acendae-dark-box p { color: #CFCFCF; line-height: 1.6; margin-bottom: 0; font-size: 20px; font-weight:400; margin-top:17px;}
.acendae-dark-box .acendae-btn-primary { margin-top: 25px; display: inline-block; text-decoration: none; }
.acendae-dark-box .acendae-btn-primary:hover{background: #c49e2a; color:#000;} 

.acendae-dark-box-info{display:flex; align-items:start; gap:16px; padding:24px 28px; background-color:#D4AF3714; border-left:4px solid #D4AF37;}
.acendae-dark-box-info h3{margin: 0; font-size:20px;}
.acendae-dark-box-info p{color:#D6D6D6; font-weight:400; font-size:16px; margin-top:14px;}

.s2-detail-box-container{display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; margin-top:50px;}
.s2-detail-box{display:flex; flex-direction:column;gap:8px; justify-content:center; align-items:center; padding:17px; border:1px solid #D4AF3755}
.s2-detail-box h3{font-weight:500; font-size:16px; margin:0px;}

/* Right Column (Summary & Cart) */
.acendae-step-2-right {
    width:50%; flex: 1; background: #fff; padding: 40px; border: 1px solid #ECE4CC; border-top: 4px solid #D4AF37;
}
.acendae-summary-header { display: flex; justify-content: space-between; margin-bottom: 30px; gap:20px;}
.acendae-summary-title { margin: 0; font-size: 20px; font-weight: 600; color: #000; }
.acendae-summary-order { color: #777; font-size: 16px; }
.acendae-summary-tier { color: #D4AF37; font-weight: 600; font-size: 16px; }

.acendae-summary-cards-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.acendae-summary-cards-header h4 { margin: 0; font-size: 16px; font-weight: 600; color: #000; }

.acendae-image-grid { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 15px; margin-bottom: 30px; }
.acendae-review-thumb { position: relative; min-width: 80px; height: 100px; border-radius: 4px; overflow: hidden; }
.acendae-review-thumb img { width: 100%; height: 100%; object-fit: cover; }
.acendae-review-badge {
    position: absolute; bottom: 5px; left: 5px; background: #000; color: #D4AF37;
    font-size: 10px; padding: 2px 6px; font-weight: bold; border-radius: 2px;
}

.acendae-pricing-breakdown { border-top: 1px solid #ECE4CC; border-bottom: 2px solid #000000; padding: 40px 0; margin-bottom: 20px; }
.acendae-pricing-row { display: flex; justify-content: space-between; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #EEEEEE; font-size: 16px; }
.acendae-pricing-row:last-child { margin-bottom: 0; }
.acendae-pricing-label { color: #666; font-weight: 400; font-size:16px;}
.acendae-pricing-value { font-weight: 500; color: #000; }

.acendae-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 60px; }
.acendae-total-row h2 { margin: 0; font-size: 20px; font-weight: 600; color: #000; }
#review_total {font-size: 40px;}

.acendae-btn-full { width: 100%; text-align: center; padding: 20px; }
.acendae-turnaround { text-align: center; color: #777; margin-top: 15px; font-size: 14px; }
.acendae-turnaround strong { color: #333; }


/* --- Slider & Image Grid --- */
.acendae-slider-wrapper {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.acendae-image-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory; /* Makes it snap like a real slider */
    flex: 1;
    
    /* Hide native scrollbars for a clean app-like look */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.acendae-image-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.acendae-review-thumb {
    position: relative;
    scroll-snap-align: start; /* Alignment point for the snap */
    flex: 0 0 auto; /* Prevents the image from shrinking */
    width: 90px;  /* Fixed width for consistent slider steps */
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ECE4CC;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.acendae-review-thumb img { width: 100%; height: 100%; object-fit: cover; }

.acendae-review-badge {
    position: absolute; bottom: 5px; left: 5px; background: #000; color: #D4AF37;
    font-size: 10px; padding: 2px 6px; font-weight: bold; border-radius: 4px;
}

/* Slider Navigation Buttons */
.acendae-slider-btn {
    background: #000;
    border:1px solid #000;
    border-radius:100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    padding:5px 10px; 
}
.acendae-slider-btn.prev { left: -16px; }
.acendae-slider-btn.next { right: -16px; }

/* ---- Account page psa section --- */
.psa-tab-subtitle{
    margin-bottom:20px;
}

/* =========================================
   IMAGE DELETE BUTTON (BIN ICON via CSS)
   ========================================= */
.acendae-delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 30px;
    background-color: #000; 
    border: none;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: background-color 0.2s ease;
    
    /* NEW: The SVG is now a background image, completely immune to theme CSS conflicts */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

.acendae-delete-btn:hover {
    background-color: #b32d2d;
}
/* Ensure the wrapper holding the image can anchor the absolute button */
.acendae-preview-wrapper {
    position: relative;
    display: inline-block;
}

.acendae-step-2-right-title-cont{
    display:flex;
    gap:12px;
}
.acendae-step-2-right-title-cont img{ width:75px; height:46px !important;}

/* =========================================
   ORDER BLOCK SEPARATION (ALL DEVICES)
   ========================================= */

/* Odd Orders - Pure White */
.woocommerce-MyAccount-orders tbody tr.psa-order-bg-normal td {
    background-color: #ffffff !important;
}

/* Even Orders - Light Grey Background */
.woocommerce-MyAccount-orders tbody tr.psa-order-bg-alt td {
    background-color: #f7f9fa !important; /* A very soft, modern grey */
}

/* Maintain a subtle line between different orders for crispness */
.woocommerce-MyAccount-orders tbody tr.psa-first-row td {
    border-top: 1px solid #e5e5e5 !important;
}

/* =========================================
   REVIEW SLIDER GRID (SECTION 2)
   ========================================= */
.acendae-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.acendae-image-grid {
    display: flex;
    gap: 15px; /* 15px space between images */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
    width: 100%;
    padding: 5px 0;
}

.acendae-image-grid::-webkit-scrollbar {
    display: none; /* Hides scrollbar on Chrome/Safari */
}

.acendae-review-thumb {
    flex: 0 0 137px; /* Prevents the box from shrinking or growing */
    width: 137px;
    height: 182px;
    scroll-snap-align: start;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: #f7f9fa;
}

.acendae-review-thumb img {
   width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hide the arrows by default. JS will turn them on! */
.acendae-slider-btn {
    display: none; 
}

/* Mobile Adjustments: Show 2 images instead of 4 so they aren't microscopic */
@media (max-width: 768px) {
    .acendae-review-thumb {
        flex: 0 0 calc((100% - 15px) / 2);
    }
}

/* Mobile Specific Fixes for the new backgrounds */
@media (max-width: 768px) {
    /* Ensures the background color completely fills the "card" on mobile */
    .woocommerce-MyAccount-orders tbody tr {
        display: block;
        padding-bottom: 15px;
    }
    
    .woocommerce-MyAccount-orders tr.psa-subsequent-row {
        margin-top: 0 !important;
        border-top: 1px dashed rgba(0,0,0,0.05) !important; /* Soft dash between cards in the same order */
    }
}

/* ==========================================================================
   Tablet & Mobile Responsiveness
   ========================================================================== */

@media(max-width:1024px){
    .acendae-section-title{
        font-size: 32px;
    }
    .acendae-upload-zone {
    min-height: 600px; }

    acendae-step-2-right{
        width:100% !important;
    }
}

@media (min-width:767px) and (max-width:850px){
   .woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content{ width:100% !important;}
}

@media(min-width:767px) & (max-width:770px){
    .acendae-form-row, .acendae-upload-zones {
        flex-direction: row !important;
        gap: 20px;
    }
    .acendae-card-upload-box {padding:0px;}
    .acendae-upload-zones{gap:20px; !important}
}
@media (max-width: 768px) {
    /* Main Container */
    .acendae-white-box { padding: 20px; }

    /* Typography Scaling */
    .acendae-section-title { font-size: 24px; }
    .acendae-step-active, .acendae-step-inactive { font-size: 14px; }
    
    /* Header & Progress Steps */
    .acendae-progress-header { flex-direction: column; align-items: flex-start; gap: 40px; width:100%; margin-bottom:0px;}
    .acendae-steps-container { gap: 0px; justify-content:space-between; width:100%;}
    .acendae-cont-title{font-size:12px; margin-bottom:16px;}
    .acendae-step-active::after{width:20px;}

    .acendae-icon-active, .acendae-icon-inactive{width:32px; height:32px;}
    
    /* Section Containers */
    .section-cont, .section-cont-2, .form-title-section { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 8px;
        margin-bottom:15px;
    }
    
    /* Form Rows & Upload Zones */
    .acendae-form-group label{font-size:12px;}
    .acendae-form-row, .acendae-upload-zones { flex-direction: column; gap: 20px; }
    .acendae-upload-zone { min-height:330px;}
    .acendae-upload-label {
        min-height: 330px; /* Gives the user a nice, large target to tap on their phone */
        padding: 20px;
    }

    .acendae-form-group input[type="text"], .acendae-form-group input[type="number"] {padding: 12px;}
    input::placeholder {font-size: 12px;}
    
    /* Upload Section Tweaks */
    .acendae-upload-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    #acendae_upload_counter{font-size: 12px; margin-top:10px;}
    
    /* Notice Boxes */
    .notice-box {gap: 15px; padding: 20px; }
    .notice-box h3{font-size:14px;}
    .notice-box-1 {gap:10px;}
    .upload-notice-box h3{font-size:14px;}
    .upload-notice-box p{padding-left:0px; font-size:12px;}
    .notice-box p{padding-left:0px;}
    
    
    .acendae-card-upload-box{padding:16px;}
    .acendae-upload-box-title h4{font-size:14px;}
    .acendae-upload-box-title p{font-size: 12px;}
    .acendae-card-badge, .acendae-upload-text, .acendae-upload-hint, .view-cont h4, .notice-box p, .acendae-progress-text{font-size:12px;}
    .acendae-custom-icon{width:32px; height:32px;}

    /* Footer & Submit Area */
    .acendae-footer { 
        flex-direction: column; 
        align-items: stretch; 
        gap: 25px; 
    }
    .acendae-progress-bar-container { 
        align-items: center; 
        width: 100%; 
        gap:16px;
    }
    .acendae-progress-track { width: 100px; }
    .acendae-btn-primary { width: 60%; text-align: center; font-size:14px; }


    /* Step 2 Mobile Stacking */
    .acendae-step-2-layout { flex-direction: column; gap: 32px; margin-top:10px;}
    .acendae-s2-subtitle{font-size:12px; width:100%; text-align:left;}
    .acendae-s2-title { font-size: 40px; line-height:44px;}
    .acendae-dark-box .acendae-btn-primary{width:90%; !important}
    .acendae-step-2-left {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;}

    .acendae-dark-box{padding:20px 10px;}
    .acendae-dark-box h3{font-size:24px; line-height:28px;}
    .acendae-dark-box p{font-size:14px;}

    .acendae-dark-box-info{padding:16px;}
    acendae-dark-box-info img{width:20px; height:20px;}
    .acendae-dark-box-info h3{font-size:14px;}
    .acendae-dark-box-info p{font-size:12px;}

    .s2-detail-box-container{grid-template-columns: repeat(1, 1fr); margin-top:32px; width:55%; margin-bottom:20px;}

    .acendae-summary-cards-header{flex-direction:column; align-items: start; gap:20px;}

    .acendae-pricing-label, .acendae-pricing-value, .acendae-summary-cards-header, .acendae-summary-cards-header h4, .acendae-turnaround{font-size:12px;}
    .acendae-total-row {margin-bottom: 20px;}
    .acendae-total-row h2{font-size:14px; margin-bottom: 10px;}

    .acendae-step-2-right .acendae-btn-primary{width:100%;}

    .acendae-step-2-left, .acendae-step-2-right { padding: 20px; width:100%; }


    /* Aligns the flexbox image thumbnails to the right so they match WooCommerce's mobile layout */
    .woocommerce-MyAccount-orders.account-orders-table td[data-title="Images"] .acendae-psa-table-images {
        justify-content: flex-end;
    }
    
    /* Adds a little breathing room between the stacked cards */
    .woocommerce-MyAccount-orders.account-orders-table tr {
    }
    
    /* Ensure the table cell padding looks clean */
    .woocommerce-MyAccount-orders.account-orders-table td {
        padding: 10px !important;
    }

    .acendae-step-2-right-title-cont img{width:59px; height:30px !important;}
    .acendae-summary-title, .acendae-summary-order, .acendae-summary-tier { font-size: 12px;}

    #review_total {font-size: 24px;}
    #acendae_next_step_btn{width:70% !important;}

    /* 1. Force the row to act as a solid block */
    .woocommerce-MyAccount-orders tbody tr {
        display: block;
        padding-bottom: 5px;
    }
    
    /* 2. Push DIFFERENT orders apart so they look like distinct islands */
    .woocommerce-MyAccount-orders tbody tr.psa-first-row {
        border-top: 20px solid #D4AF37 !important; 
        box-shadow: 0 -4px 10px rgba(0,0,0,0.02); 
    }

    /* 3. Pull cards of the SAME order tightly together */
    .woocommerce-MyAccount-orders tr.psa-subsequent-row {
        margin-top: 0 !important;
        border-top: 1px dashed rgba(0,0,0,0.1) !important; 
    }

    /* 4. Apply the background colors to the entire row wrapper */
    .woocommerce-MyAccount-orders tbody tr.psa-order-bg-normal {
        background-color: #ffffff !important;
    }
    
    .woocommerce-MyAccount-orders tbody tr.psa-order-bg-alt {
        background-color: #f4f6f8 !important; /* Slightly darker grey for mobile contrast */
    }

    /* 5. Make the inner cells transparent so the row background shines through cleanly */
    .woocommerce-MyAccount-orders tbody tr td {
        background-color: transparent !important;
        border-top: none !important; /* Prevents WooCommerce default borders from ruining the stack */
    }
}