﻿/* ==========================================================================
   Customer Service pages (Delivery, Warranty, Returns, FAQs)
   Uses the variables already defined in site.css (:root), with fallbacks.
   ========================================================================== */

/* Everything shares one width and one left edge */
.cs-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

/* Text sections: one column, using the full width of .cs-wrap */
.cs-main {
    max-width: none;
}

/* ----- Breadcrumbs ----- */

.cs-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--clay, #7A726B);
}

.cs-breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: var(--sandstone, #DCC1B6);
}

.cs-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

    .cs-breadcrumb a:hover {
        color: var(--highlight, #9C4414);
    }

/* ----- Intro ----- */

.cs-intro {
    max-width: 760px;
    margin: 16px 0 0;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--clay, #7A726B);
}

    .cs-intro a {
        color: var(--highlight, #9C4414);
        text-decoration: underline;
        text-underline-offset: 3px;
    }

/* FAQs page has no key points strip, so the hero needs its own space below */
.cs-hero-faqs {
    margin-bottom: 48px;
}

/* ----- Key points strip ----- */

.cs-keypoints {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 40px 0 56px;
    padding: 0;
    list-style: none;
}

.cs-keypoint {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px 20px;
    background-color: var(--white, #FFFFFF);
    border: 1px solid var(--linen, #E7DED6);
    border-radius: 15px 15px 40px 15px;
}

.cs-keypoint-icon {
    margin-bottom: 8px;
    font-size: 1.7rem;
    color: var(--highlight, #9C4414);
}

.cs-keypoint strong {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--charcoal, #3A342F);
}

.cs-keypoint span {
    font-size: 15px;
    line-height: 1.5;
    color: var(--clay, #7A726B);
}

/* ----- Content sections ----- */

.cs-section {
    margin-bottom: 48px;
    scroll-margin-top: 90px; /* anchors do not hide under the fixed header */
}

.cs-h2 {
    margin: 0 0 16px;
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--driftwood, #7B6A63);
}

.cs-section p,
.cs-section li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--charcoal, #3A342F);
}

.cs-section p {
    margin: 0 0 16px;
}

.cs-section a {
    color: var(--highlight, #9C4414);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* numbered steps */
.cs-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

    .cs-steps li {
        position: relative;
        margin-bottom: 20px;
        padding-left: 56px;
        counter-increment: step;
    }

        .cs-steps li::before {
            content: counter(step);
            position: absolute;
            top: 0;
            left: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            font-family: var(--primaryFont, "Syne", sans-serif);
            font-weight: 600;
            color: var(--highlight, #9C4414);
            background-color: var(--eggshell, #FEF8F3);
            border: 1px solid var(--sandstone, #DCC1B6);
            border-radius: 50%;
        }

/* bullet lists */
.cs-list {
    margin: 0 0 16px;
    padding-left: 22px;
}

    .cs-list li {
        margin-bottom: 10px;
    }

        .cs-list li::marker {
            color: var(--highlight, #9C4414);
        }

/* charges table */
.cs-table-wrap {
    overflow-x: auto;
    /* shadows on the left/right edge show when there is more to scroll to */
    background-color: var(--white, #FFFFFF);
    background-image: linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)), linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)), radial-gradient(farthest-side at 0 50%, rgba(60, 40, 30, 0.28), rgba(60, 40, 30, 0)), radial-gradient(farthest-side at 100% 50%, rgba(60, 40, 30, 0.28), rgba(60, 40, 30, 0));
    background-position: left center, right center, left center, right center;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 16px 100%, 16px 100%;
    background-attachment: local, local, scroll, scroll;
    scrollbar-color: var(--sandstone, #DCC1B6) transparent;
    border: 1px solid var(--linen, #E7DED6);
    border-radius: 12px;
}

.cs-table {
    width: 100%;
    border-collapse: collapse;
}

    .cs-table th {
        padding: 16px 20px;
        font-family: var(--primaryFont, "Syne", sans-serif);
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 0.12em;
        text-align: left;
        text-transform: uppercase;
        color: var(--highlight, #9C4414);
        border-bottom: 1px solid var(--linen, #E7DED6);
    }

    .cs-table td {
        padding: 14px 20px;
        font-size: 1rem;
        line-height: 1.5;
        vertical-align: top;
        color: var(--charcoal, #3A342F);
        border-bottom: 1px solid var(--linen, #E7DED6);
    }

    .cs-table tbody tr:last-child td {
        border-bottom: none;
    }

    .cs-table td:last-child {
        font-weight: 600;
    }

/* "Swipe to see more" line above a table that scrolls sideways on small screens */
.cs-scroll-hint {
    display: none;
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--clay, #7A726B);
}

@media (max-width: 700px) {
    .cs-scroll-hint {
        display: block;
    }
}

/* comparison table (3 columns): first column is the row label, the rest are normal text */
.cs-table-compare {
    min-width: 640px;
}

    .cs-table-compare td:first-child {
        font-weight: 600;
    }

    .cs-table-compare td:last-child {
        font-weight: 400;
    }

/* text straight after a table */
.cs-section .cs-after-table {
    margin-top: 24px;
}

/* tip box */
.cs-section .cs-tip {
    margin-top: 24px;
    padding: 16px 20px;
    background-color: var(--eggshell, #FEF8F3);
    border-left: 3px solid var(--highlight, #9C4414);
    border-radius: 0 8px 8px 0;
}

.cs-faq-section {
    margin-top: 16px;
}

/* ----- FAQ accordion -----
   The open/close script is toggleFaq() in site.js. It needs this structure:
   button.faq-question (with span.faq-icon inside) directly followed by div.faq-answer */

.cs-faqs {
    border-top: 1px solid var(--linen, #E7DED6);
}

.cs-faq {
    border-bottom: 1px solid var(--linen, #E7DED6);
}

    .cs-faq .faq-question {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        width: 100%;
        margin: 0;
        padding: 18px 0;
        font-size: 1.1rem;
        font-weight: 500;
        text-align: left;
        color: var(--charcoal, #3A342F);
        background: none;
        border: none;
        border-radius: 0;
        cursor: pointer;
    }

        .cs-faq .faq-question:hover {
            color: var(--highlight, #9C4414);
        }

    .cs-faq .faq-icon {
        flex-shrink: 0;
        font-size: 1.6rem;
        line-height: 1;
        color: var(--highlight, #9C4414);
        transition: transform 0.3s ease;
    }

        .cs-faq .faq-icon.rotated {
            transform: rotate(45deg); /* the plus turns into a cross */
        }

    /* closed: height 0 and hidden, so links inside cannot be tabbed to */
    .cs-faq .faq-answer {
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.3s ease, visibility 0s linear 0.3s;
    }

        .cs-faq .faq-answer.open {
            visibility: visible;
            transition: max-height 0.3s ease, visibility 0s;
        }

        .cs-faq .faq-answer p {
            max-width: 760px;
            margin: 0 0 18px;
        }

/* ----- Links to the other Customer Service pages ----- */

.cs-nav {
    margin-top: 72px;
    text-align: center;
}

.cs-nav-title {
    margin: 0 0 16px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--clay, #7A726B);
}

.cs-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cs-nav-link {
    display: inline-block;
    padding: 10px 18px;
    font-size: 15px;
    text-decoration: none;
    color: var(--clay, #7A726B);
    border: 1px solid var(--sandstone, #DCC1B6);
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

a.cs-nav-link:hover {
    color: var(--cream, #F9F3ED);
    background-color: var(--highlight, #9C4414);
    border-color: var(--highlight, #9C4414);
}

.cs-nav-current {
    color: var(--cream, #F9F3ED);
    background-color: var(--highlight, #9C4414);
    border-color: var(--highlight, #9C4414);
}

/* ----- Bottom banner ----- */

.cs-banner {
    margin-top: 40px;
    padding: 48px 32px;
    text-align: center;
    color: var(--cream, #F9F3ED);
    background-color: var(--driftwood, #7B6A63);
    border-radius: 15px 15px 40px 15px;
}

.cs-banner-title {
    margin: 0 0 12px;
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--cream, #F9F3ED);
}

.cs-banner-text {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

    .cs-banner-text a {
        color: inherit;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

.cs-banner-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

/* ----- Buttons ----- */

.cs-btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--primaryFont, "Syne", sans-serif);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.cs-btn-light {
    color: var(--highlight, #9C4414);
    background-color: var(--cream, #F9F3ED);
    border-color: var(--cream, #F9F3ED);
}

    .cs-btn-light:hover {
        color: var(--highlight, #9C4414);
        background-color: #fff;
        border-color: #fff;
    }

.cs-btn-outline-light {
    color: var(--cream, #F9F3ED);
    background-color: transparent;
    border-color: var(--cream, #F9F3ED);
}

    .cs-btn-outline-light:hover {
        color: var(--highlight, #9C4414);
        background-color: var(--cream, #F9F3ED);
    }

/* solid button on the light page background */
.cs-btn-primary {
    color: var(--cream, #F9F3ED);
    background-color: var(--highlight, #9C4414);
    border-color: var(--highlight, #9C4414);
}

    .cs-btn-primary:hover {
        color: var(--highlight, #9C4414);
        background-color: transparent;
    }

.cs-withdraw {
    margin: -24px 0 56px;
}

/* ----- Responsive ----- */

@media (max-width: 900px) {
    .cs-keypoints {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    /* one link per line on small screens */
    .cs-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .cs-nav-link {
        display: block;
    }
}

@media (max-width: 480px) {
    .cs-keypoints {
        grid-template-columns: 1fr;
        margin: 32px 0 40px;
    }

    .cs-section {
        margin-bottom: 40px;
    }

    .cs-h2 {
        font-size: 1.5rem;
    }

    .cs-banner {
        padding: 36px 20px;
    }

    .cs-banner-actions .cs-btn,
    .cs-withdraw .cs-btn {
        flex: 1 1 100%;
        display: block;
    }
}
