/* --- 1. FULL-WIDTH ROTATOR BAR --- */
#acs-top-testimonial.acs-testimonial-rotator {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #1a2a3a !important;
    border-top: 3px solid #b8a68d !important;
    border-bottom: 3px solid #c8b59a !important;
    padding: 20px 24px !important;
    text-align: center;
    cursor: pointer;
    margin-bottom: -30px !important;
    position: relative;
    z-index: 10;
}

#acs-top-testimonial:hover {
    background: #25394d !important;
    transition: background 0.3s ease;
}

.acs-testimonial-text {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #fff !important;
    font-style: italic;
    white-space: normal !important;
    line-height: 1.4 !important;
    padding: 0 40px !important;
}

.star-color { color: #FFD700 !important; }

/* --- 2. CARD MODAL (THE "POP" DESIGN) --- */
:root {
    --ac-deep-green:  #1a3c31;
    --ac-modal-cream: #d1c8b8;
    --ac-card-cream:  #ffffff;
    --ac-gold-accent: #b8860b;
    --ac-navy-accent: #1f2a36;
    --ac-button-color: #1a3c31;
}

.card-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    overflow: auto;
}

.card-modal-container {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    width: 90%;
    margin: 5% auto;
    background-color: var(--ac-modal-cream);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    font-family: 'Georgia', serif;
    color: var(--ac-navy-accent);
    font-size: 16px;
}

.card-modal-header {
    background-color: var(--ac-deep-green);
    padding: 30px;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

.card-modal-header h2 {
    color: #fff;
    font-size: 24px;
    text-transform: uppercase;
    margin: 0;
}

.card-modal-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.dynamic-testimonial-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    background-color: var(--ac-card-cream) !important;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #c8b59a;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    align-items: center;
    margin-bottom: 20px;
}

.gold-stars { color: var(--ac-gold-accent) !important; margin-bottom: 10px; font-size: 16px; }
.author-name { font-size: 20px; color: var(--ac-deep-green) !important; font-weight: bold; font-style: italic; }
.review-text { font-size: 18px; line-height: 1.7; color: var(--ac-navy-accent); margin: 12px 0; }
.purchased-label { font-size: 14px; color: #555; font-style: italic; margin-top: 10px; margin-bottom: 0; }

/* The "Pop" Navy Badge */
.market-badge {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    color: #ffffff !important;
    background-color: var(--ac-navy-accent) !important;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    border: none !important; /* Removes the old gold border */
}

.gold-product-btn {
    background-color: var(--ac-button-color);
    color: #fff;
    padding: 16px 24px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.gold-product-btn:hover { 
    background-color: var(--ac-gold-accent);
    color: #fff !important; 
}

.close-testimonials-btn {
    width: 100%;
    background-color: var(--ac-gold-accent);
    color: #fff;
    padding: 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 0 0 8px 8px;
    font-size: 14px;
}
