.faq {
    padding-top: 80px;
    padding-bottom: 80px;
}

.faq-inner {
    display: grid;
    grid-template-columns: minmax(0, 500fr) minmax(0, 720fr);
    grid-template-areas: "contact questions";
    align-items: start;
    gap: 80px;
    max-width: 1300px;
    margin: auto;
}

.faq-questions {
    grid-area: questions;
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    padding: 20px;
    border: 1px solid var(--gray3);
    border-radius: 8px;
    background: var(--white1);
}

.faq-item[open] {
    background: var(--green-overlay);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
    cursor: pointer;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question h3 {
    flex: 1;
    min-width: 0;
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--green1);
}

.faq-toggle::before,
.faq-contact-button span {
    content: "";
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask: url('../../icons/arrow-right.svg') center / contain no-repeat;
    mask: url('../../icons/arrow-right.svg') center / contain no-repeat;
}

.faq-toggle::before {
    color: var(--white1);
    transform: rotate(90deg);
}

.faq-item[open] .faq-toggle::before {
    transform: rotate(-90deg);
}

.faq-contact-button span {
    width: 18px;
    height: 18px;
}

.faq-answer {
    padding-top: 16px;
    overflow-wrap: anywhere;
}

.faq-answer p + p {
    margin-top: 1em;
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 24px;
}

.faq-answer ul li {
    list-style-type: disc;
}

.faq-answer ol li {
    list-style-type: decimal;
}

.faq-answer a {
    color: var(--green1);
    text-decoration: underline;
}

.faq-contact {
    grid-area: contact;
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
}

.faq-contact-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 832 / 720;
    object-fit: cover;
    border-radius: 8px;
}

/* Match each photo's crop in Figma while sharing reused image files. */
.faq-contact-photo-home {
    object-position: center 34.34%;
}

.faq-contact-photo-gift-card {
    object-position: center 57.32%;
}

.faq-contact-photo-cart {
    object-position: center 30.22%;
}

.faq-contact-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.faq-contact-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-contact-copy p {
    color: var(--gray6);
    font-weight: 400;
}

.faq-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    padding: 12px 24px;
    border: 1px solid var(--gray3);
    border-radius: 9999px;
}

.faq-contact-button:hover {
    border-color: var(--green1);
    color: var(--green1);
}

.faq-question:focus-visible,
.faq-contact-button:focus-visible {
    outline: 2px solid var(--green1);
    outline-offset: 4px;
}

@media (min-width: 769px) and (max-width: 1200px) {
    .faq-inner {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .faq {
        padding: 50px 16px;
    }

    .faq-inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "questions" "contact";
        gap: 32px;
    }

    .faq-questions,
    .faq-contact {
        gap: 24px;
    }

    .faq-item {
        padding: 16px;
    }

    .faq-toggle {
        flex-basis: 27px;
        height: 26px;
    }

    .faq-toggle::before {
        width: 14px;
        height: 14px;
    }

    .faq-contact-photo {
        height: 200px;
        aspect-ratio: auto;
    }

    .faq-contact-button {
        width: 100%;
        min-height: 45px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}
