/*
 * retailerpromo.css
 * Styles for the retailer promo codes page (retailerpromo.aspx)
 *
 * Alignment system:
 *   - All text content: left-aligned (readability)
 *   - Wheel hero block: centered (interactive, self-contained)
 *   - Promo cards: left-aligned content within the card
 */

body {
    background: #fff;
}

/* ── Inline SVG icons ── */
.ico { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; fill: currentColor; }
@keyframes svgSpin { to { transform: rotate(360deg); } }
.ico-spin { animation: svgSpin 1s linear infinite; }

.plistp .p2 h2 {
    margin-top: 28px;
    margin-bottom: 14px;
    text-align: left;
}
.plistp .p2 b {
    font-weight: bold;
}

/* ── Trust badges beneath H1 ── */
.promo-trust-badges {
    text-align: center;
    margin-bottom: 35px;
}
.promo-trust-badges span {
    display: inline-block;
    background: #f0f9ff;
    border: 1px solid #e0eef6;
    border-radius: 6px;
    padding: 6px 16px;
    margin: 4px 5px 4px 0;
    color: #555;
}
.promo-trust-badges span svg {
    margin-right: 5px;
    fill: #05c3dd;
}

/* ── Spin Wheel Hero Block ── */
.wheel-hero {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 40px 30px;
    margin: 25px 0 30px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(4,30,67,0.15);
    overflow: hidden;
}
.wheel-hero h2 {
    margin-bottom: 8px;
    margin-top: 0;
    text-align: center !important;
}
.wheel-hero p {
    text-align: center;
    margin-bottom: 10px;
}
.wheel-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    padding: 16px;
}
.wheel-pointer {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 30px solid #05dd14;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}
#spinWheel {
    border-radius: 50%;
    box-shadow: 0 0 0 8px #041e43, 0 0 0 12px #05c3dd, 0 6px 30px rgba(0,0,0,0.18);
    max-width: 100%;
    display: block;
    margin: 0 auto;
}
.spin-btn {
    display: inline-block;
    margin-top: 30px;
    background: #05dd14;
    color: #fff;
    font-weight: 700;
    padding: 22px 44px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 3px 10px rgba(5,221,20,0.25);
    animation: shake-animation 2s ease infinite;
}
.spin-btn svg { fill: #fff; margin-right: 6px; }
.spin-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 18px rgba(5,221,20,0.35);
}
.spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    animation: none;
}

/* ── Result Panel ── */
.result-panel {
    max-width: 500px;
    margin: 30px auto 0;
    background: #fff;
    border: 2px solid #05c3dd;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(5,195,221,0.12);
    text-align: center;
    animation: resultReveal .35s ease-out;
}
@keyframes resultReveal {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}
.result-panel .result-title {
    color: #041e43;
    margin: 0 0 5px;
    font-size: 1.17em;
    font-weight: 700;
}
.result-panel .result-desc {
    color: #555;
    margin-bottom: 18px;
}
.result-code-box {
    display: inline-block;
    background: #f0f9ff;
    border: 2px dashed #05c3dd;
    border-radius: 6px;
    padding: 10px 25px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #041e43;
    letter-spacing: 2px;
    margin-bottom: 18px;
    cursor: pointer;
    transition: background .2s;
}
.result-code-box:hover { background: #e0f4ff; }
.result-code-box .copy-hint {
    display: block;
    font-family: inherit;
    font-weight: 400;
    color: #999;
    letter-spacing: 0;
    margin-top: 4px;
}
.result-no-code {
    color: #05c3dd;
    font-weight: 600;
    margin-bottom: 18px;
}
.result-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-shop {
    background: #05dd14;
    color: #041e43;
    font-weight: 700;
    padding: 10px 28px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 2px 8px rgba(5,221,20,0.25);
}
.btn-shop:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(5,221,20,0.35);
    color: #041e43;
    text-decoration: none;
}
.btn-shop svg { margin-left: 5px; }
.btn-spin-again {
    background: transparent;
    color: #041e43;
    font-weight: 600;
    padding: 10px 24px;
    border: 2px solid #041e43;
    border-radius: 50px;
    cursor: pointer;
    transition: all .2s;
}
.btn-spin-again:hover {
    background: #041e43;
    color: #fff;
}
.btn-spin-again svg { margin-right: 5px; }

/* ── SEO Intro ── */
.seo-intro {
    margin-bottom: 24px;
    line-height: 1.7;
    color: #333;
}

/* ── Scrollable Promo List ── */
.promo-list-scroll {
    max-height: none;
    overflow: visible;
}
.promo-list-scroll.scrollable {
    max-height: 440px;
    overflow-y: auto;
    padding-right: 4px;
}
.promo-list-scroll.scrollable::-webkit-scrollbar {
    width: 6px;
}
.promo-list-scroll.scrollable::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}
.promo-list-scroll.scrollable::-webkit-scrollbar-thumb {
    background: #05c3dd;
    border-radius: 3px;
}
.promo-list-expand {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
}
.promo-list-expand button {
    background: none;
    border: 1px solid #041e43;
    color: #041e43;
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: all .2s;
}
.promo-list-expand button:hover {
    background: #041e43;
    color: #fff;
}
.promo-list-expand button svg {
    margin-right: 5px;
}

/* ── Promo Cards ── */
.promo-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow .2s;
    border-left: 4px solid #05c3dd;
}
.promo-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.promo-card-discount {
    flex: 0 0 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 8px;
    border-right: 2px dashed #eee;
}
.discount-badge {
    display: inline-block;
    background: #041e43;
    color: #fff;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    text-align: center;
    line-height: 1.2;
}
.deal-badge { background: #05c3dd; }
.badge-code { background: #041e43; }
.promo-card-details {
    flex: 1;
    padding: 14px 16px;
}
.promo-card-details h3 {
    font-weight: 600;
    color: #222;
    margin: 0 0 4px;
    line-height: 1.4;
}
.promo-verified {
    color: #0a7d8f;
}
.promo-verified svg { margin-right: 3px; }
.promo-card-action {
    flex: 0 0 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}
.btn-reveal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #041e43;
    color: #fff !important;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none !important;
    overflow: hidden;
    width: 120px;
    box-sizing: border-box;
    text-align: center;
    transition: background .2s;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.4;
    border-width: 0;
}
.btn-reveal:hover { background: #072d5a; }
.btn-reveal svg.ico {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}
.btn-reveal .btn-reveal-code {
    display: none;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}
.btn-reveal.revealed .btn-reveal-text { display: none; }
.btn-reveal.revealed .btn-reveal-code { display: inline; }
.btn-reveal.revealed { background: #05c3dd; }
.btn-deal { background: #05c3dd; }
.btn-deal:hover { background: #04afc9; }

/* ── FAQ ── */
.faq-item {
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 600;
    color: #041e43;
    background: #fafafa;
    transition: background .2s;
}
.faq-question:hover { background: #f0f0f0; }
.faq-question svg {
    transition: transform .3s;
    fill: #05c3dd;
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
    display: none;
    padding: 16px;
    line-height: 1.7;
    color: #333;
}
.faq-item.open .faq-answer { display: block; }

/* ── Confetti ── */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}
.confetti-piece {
    position: absolute;
    top: -10px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confettiFall linear forwards;
}
@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ── Copy Toast ── */
.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #041e43;
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    z-index: 10000;
    transition: transform .3s ease;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}
.copy-toast.show { transform: translateX(-50%) translateY(0); }
.copy-toast svg { margin-right: 5px; fill: #05dd14; }

/* ── Summary Stats ── */
.summary-stats {
    background: #f8fcff;
    border: 1px solid #e0eef6;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 25px 0;
}
.summary-stats h3 {
    margin: 0 0 14px;
    font-size: 16px;
    color: #041e43;
}
.summary-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.stat-item {
    flex: 1 1 140px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px 14px;
}
.stat-item .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8f8fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-item .stat-icon svg { fill: #05c3dd; width: 18px; height: 18px; }
.stat-item .stat-text strong { display: block; color: #041e43; font-size: 16px; margin-bottom: -4px; line-height: 1.2; }
.stat-item .stat-text span { color: #555; font-size: 14px; line-height: 1.2; }

/* ── Deal Card Meta ── */
.promo-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #666;
}
.promo-card-meta svg { fill: #999; width: 13px; height: 13px; margin-right: 2px; vertical-align: -1px; }
.promo-card-meta .meta-used { color: #0a7d8f; font-weight: 600; }
.promo-card-meta .meta-used svg { fill: #0a7d8f; }

/* ── How-To Steps ── */
.how-to-steps {
    display: flex;
    gap: 20px;
    margin: 16px 0 35px;
    flex-wrap: wrap;
}
.step-card {
    flex: 1 1 200px;
    background: #f8fcff;
    border: 1px solid #e0eef6;
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
}
.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #041e43;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.step-card h3 { margin: 0 0 8px; color: #041e43; font-size: 16px; font-weight: 700; }
.step-card p { margin: 0; color: #444; font-size: 14px; line-height: 1.6; }
.step-arrow {
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    color: #05c3dd;
    font-size: 20px;
    font-weight: 700;
}

/* ── Hints & Tips ── */
.hints-tips {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 24px;
    margin: 25px 0;
}
.hints-tips h3 {
    margin: 0 0 14px;
    color: #041e43;
    font-size: 18px;
    font-weight: 700;
}
.hints-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hints-tips li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    line-height: 1.65;
    font-size: 15px;
}
.hints-tips li:last-child { border-bottom: none; }
.hints-tips li svg { fill: #05dd14; flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; }

/* ── Why We Love ── */
.why-we-love {
    margin: 30px 0;
}
.why-we-love h3 {
    margin: 0 0 16px;
    color: #041e43;
    font-size: 18px;
}
.love-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.love-badge {
    flex: 1 1 150px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fcff;
    border: 1px solid #e0eef6;
    border-radius: 10px;
    padding: 16px;
}
.love-badge .love-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #041e43;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.love-badge .love-icon svg { fill: #05c3dd; width: 22px; height: 22px; }
.love-badge .love-text { font-size: 14px; color: #222; font-weight: 600; line-height: 1.4; }

/* ── Tabbed Content ── */
.tabs-section {
    margin: 14px 0 30px;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}
.tabs-nav {
    display: flex;
    border-bottom: 2px solid #eee;
    background: #fafafa;
}
.tab-button {
    background: none;
    border: none;
    padding: 14px 24px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 14px;
}
.tab-button.active {
    color: #041e43;
    border-bottom-color: #05c3dd;
    background: #fff;
}
.tab-button:hover { color: #041e43; }
.tabs-content {
    padding: 24px;
    background: #fff;
}
.tab-pane {
    display: none;
    line-height: 1.7;
    color: #333;
}
.tab-pane.active { display: block; }
.tab-pane h3,
.tab-pane h4 { color: #041e43; margin: 0 0 10px; font-weight: 700; font-size: 18px; }
.tab-pane p { margin: 0 0 12px; }
.tab-pane ul { padding-left: 0; margin: 0 0 12px; list-style: none; }
.tab-pane li { margin-bottom: 6px; padding-left: 24px; position: relative; }
.tab-pane li::before { content: '\2713'; position: absolute; left: 0; color: #05c3dd; font-weight: 700; font-size: 14px; }

/* ── About Retailer ── */
.about-retailer {
    background: #f8fcff;
    border: 1px solid #e0eef6;
    border-radius: 10px;
    padding: 28px;
    margin: 30px 0;
    line-height: 1.7;
    color: #333;
}
.about-retailer h3 {
    margin: 0 0 12px;
    color: #041e43;
    font-size: 18px;
}

/* ── Still Looking ── */
.still-looking {
    margin: 35px 0;
}
.still-looking h3 {
    margin: 0 0 16px;
    color: #041e43;
    font-size: 18px;
}
.still-looking-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}
.still-looking-card {
    flex: 0 0 220px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    transition: box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}
.still-looking-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); text-decoration: none; color: inherit; }
.still-looking-card .sl-brand { font-weight: 700; color: #041e43; margin-bottom: 6px; font-size: 15px; }
.still-looking-card .sl-offer { color: #0a7d8f; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.still-looking-card .sl-count { color: #666; font-size: 13px; }

/* ── Shoppers Also Like ── */
.also-like {
    margin: 35px 0 20px;
}
.also-like h3 {
    margin: 0 0 16px;
    color: #041e43;
    font-size: 18px;
}
.also-like-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.also-like-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px 12px;
    text-align: center;
    transition: box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}
.also-like-item:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.08); text-decoration: none; color: inherit; }
.also-like-item .ali-name { font-weight: 600; color: #041e43; margin-bottom: 4px; font-size: 14px; }
.also-like-item .ali-count { color: #0a7d8f; font-size: 13px; font-weight: 600; }

/* ── Code Reveal Modal ── */
.code-reveal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}
.code-reveal-overlay.show {
    display: flex !important;
}
.code-reveal-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    max-width: 480px;
    width: 90%;
    padding: 32px 28px 28px;
    text-align: center;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.code-reveal-modal .modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 4px;
}
.code-reveal-modal .modal-close:hover { color: #333; }
.code-reveal-modal .modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #041e43;
    margin: 0 0 6px;
}
.code-reveal-modal .modal-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
}
.code-reveal-code-box {
    display: flex;
    align-items: stretch;
    border: 2px dashed #05c3dd;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto 18px;
    max-width: 340px;
}
.code-reveal-code-box .code-text {
    flex: 1;
    padding: 14px 18px;
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #041e43;
    background: #f8fcff;
    text-align: center;
}
.code-reveal-code-box .code-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    background: #05c3dd;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.code-reveal-code-box .code-copy-btn:hover { background: #04afc9; }
.code-reveal-no-code {
    padding: 14px;
    background: #f0fdf4;
    border-radius: 8px;
    color: #15803d;
    font-weight: 600;
    margin-bottom: 18px;
}
.code-reveal-no-code svg { fill: #15803d; margin-right: 4px; }
.code-reveal-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #041e43;
    color: #fff !important;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 15px;
    transition: background 0.2s;
    width: 100%;
    max-width: 340px;
    box-sizing: border-box;
}
.code-reveal-continue:hover { background: #072d5a; }
.code-reveal-continue svg { flex-shrink: 0; }

/* ── Mobile ── */
@media (max-width: 767px) {
    .wheel-hero { padding: 30px 15px; margin: 20px -15px 25px; border-radius: 0; }
    .promo-card {
        flex-direction: column;
        text-align: center;
    }
    .promo-card-discount {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 2px dashed #eee;
        padding: 12px;
    }
    .promo-card-details { padding: 12px; }
    .promo-card-meta { justify-content: center; }
    .promo-card-action {
        flex: none;
        width: 100%;
        padding: 0 12px 12px;
    }
    .btn-reveal { width: 100%; min-height: 44px; }
    .result-panel { margin: 15px 10px 0; padding: 18px; }
    .how-to-steps { flex-direction: column; }
    .step-arrow { display: none; }
    .summary-stats-grid { flex-direction: column; }
    .love-badges { flex-direction: column; }
    .also-like-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
    .tab-button { padding: 14px 16px; font-size: 15px; }
    .seo-intro, .faq-answer, .about-retailer, .tabs-content, .hints-tips li { font-size: 16px; }
}

/* ── Description overrides ── */
.description h4 {
    border-left-width: 0;
    padding-left: 0;
}
.description ul {
    background: none;
}
.description li {
    margin-bottom: 0;
}

/* ── Layout utility classes ── */
.plistp-flush { padding: 0; }
.listingbanner-full { width: 100%; }
.banner-content-full { width: 100% !important; }
