.merchandise-seo-content {
    --seo-max: 960px;
    --seo-card-radius: 12px;
    --seo-card-border: 1px solid #E8E8F0;
    /* Cards are white in every scheme, so card text is hardcoded dark (can't be flipped). */
    --seo-card-bg: #FFFFFF;
    --seo-ink: #1B1B34;
    --seo-ink-soft: #4B4B63;
    /* Accent follows the THEME's primary (cyan on the live light theme), not a hardcoded blue. */
    --seo-accent: var(--wp--preset--color--primary-500, #17E4F9);
    /* Readable link accent (a brighter cyan is too light on white). */
    --seo-link: var(--wp--preset--color--primary-cyan, #00B8D4);
    /* Page-level text (group titles, toggle, number circle) sits on the page background,
       so use the theme's adaptive body-text color: dark on the light theme, light on a dark theme. */
    --seo-on-page: var(--wp--preset--color--dark-900, #1B1B34);
    width: 100%;
    padding: clamp(32px, calc((64 / 1440) * 100vw), 64px) 0;
    font-family: var(--wp--preset--font-family--sen);
    color: var(--wp--preset--color--dark-900);
}

/* White card — the recurring theme block */
.merchandise-seo-content__head,
.merchandise-seo-content__section,
.merchandise-seo-content__cta,
.merchandise-seo-content__why-card,
.merchandise-seo-content__how-step {
    background: var(--seo-card-bg);
    border: var(--seo-card-border);
    border-radius: var(--seo-card-radius);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

/* The site is dark-themed and remaps text tokens to white; force card text dark
   so it stays readable on the white cards. Titles/toggle outside cards stay light. */
.merchandise-seo-content__head,
.merchandise-seo-content__head h1,
.merchandise-seo-content__head h2,
.merchandise-seo-content__head h3,
.merchandise-seo-content__head p,
.merchandise-seo-content__section,
.merchandise-seo-content__section h2,
.merchandise-seo-content__section h3,
.merchandise-seo-content__section p,
.merchandise-seo-content__cta,
.merchandise-seo-content__cta h2,
.merchandise-seo-content__cta p,
.merchandise-seo-content__why-card,
.merchandise-seo-content__why-card-title,
.merchandise-seo-content__how-step,
.merchandise-seo-content__how-step-title {
    color: var(--seo-ink) !important;
}

.merchandise-seo-content__why-card-text,
.merchandise-seo-content__how-step-text {
    color: var(--seo-ink-soft) !important;
    opacity: 1;
}

.merchandise-seo-content__prose strong {
    color: inherit;
}

/* Readable text inside cards */
.merchandise-seo-content__prose {
    line-height: 1.7;
    font-size: clamp(15px, calc((17 / 1440) * 100vw), 17px);
    font-weight: 400;
}

.merchandise-seo-content__prose p {
    margin: 0 0 1.1em;
}

.merchandise-seo-content__prose p:last-child {
    margin-bottom: 0;
}

.merchandise-seo-content__prose a {
    color: var(--seo-link) !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.merchandise-seo-content__prose a:hover {
    color: var(--wp--preset--color--primary-light, #00BFD1) !important;
}

/* Head card (always visible) */
.merchandise-seo-content__head {
    max-width: var(--seo-max);
    margin: 0 auto;
    padding: clamp(24px, calc((40 / 1440) * 100vw), 40px) clamp(20px, calc((40 / 1440) * 100vw), 40px);
    text-align: center;
}

.merchandise-seo-content__h1 {
    margin: 0 0 clamp(14px, calc((20 / 1440) * 100vw), 20px);
    font-family: var(--wp--preset--font-family--sen);
    font-size: clamp(24px, calc((38 / 1440) * 100vw), 38px);
    font-weight: 800;
    line-height: 1.2;
}

.merchandise-seo-content__intro {
    text-align: left;
}

/* Collapsible body — show a small hint, then Read more */
.merchandise-seo-content__more {
    position: relative;
    max-width: var(--seo-max);
    margin: clamp(16px, calc((24 / 1440) * 100vw), 24px) auto 0;
    overflow: hidden;
    transition: max-height 0.45s ease;
}

.merchandise-seo-content__more[data-collapsed="true"] {
    max-height: 88px;
    /* Fade the content itself to transparent — works on any page background */
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 100%);
}

.merchandise-seo-content__more[data-collapsed="false"] {
    max-height: 20000px;
    -webkit-mask-image: none;
    mask-image: none;
}

/* H2 text sections — white cards */
.merchandise-seo-content__section {
    padding: clamp(22px, calc((32 / 1440) * 100vw), 32px);
    margin-bottom: clamp(16px, calc((20 / 1440) * 100vw), 20px);
}

.merchandise-seo-content__section:hover,
.merchandise-seo-content__cta:hover {
    border-color: var(--wp--preset--color--primary-500);
    box-shadow: 0 4px 12px rgba(23, 228, 249, 0.12);
}

.merchandise-seo-content__section-title {
    font-family: var(--wp--preset--font-family--sen);
    font-size: clamp(20px, calc((28 / 1440) * 100vw), 28px);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 clamp(12px, calc((16 / 1440) * 100vw), 16px);
}

/* Group titles (Why / How) */
.merchandise-seo-content__block-title {
    text-align: center;
    font-family: var(--wp--preset--font-family--sen);
    font-size: clamp(22px, calc((32 / 1440) * 100vw), 32px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 auto clamp(20px, calc((30 / 1440) * 100vw), 30px);
    color: var(--seo-on-page);
}

/* Why Choose Us — row of icon cards */
.merchandise-seo-content__why,
.merchandise-seo-content__how {
    max-width: var(--seo-max);
    margin: 0 auto;
    padding: clamp(28px, calc((40 / 1440) * 100vw), 40px) 0 clamp(4px, calc((8 / 1440) * 100vw), 8px);
}

.merchandise-seo-content__why-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: clamp(16px, calc((20 / 1440) * 100vw), 20px);
}

.merchandise-seo-content__why-card {
    padding: clamp(20px, calc((26 / 1440) * 100vw), 26px);
    text-align: center;
}

.merchandise-seo-content__why-card:hover {
    transform: translateY(-4px);
    border-color: var(--wp--preset--color--primary-500);
    box-shadow: 0 8px 20px rgba(23, 228, 249, 0.12);
}

.merchandise-seo-content__why-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #EEF4FF;
    background: color-mix(in srgb, var(--seo-accent) 14%, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.merchandise-seo-content__why-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.merchandise-seo-content__why-icon svg {
    width: 36px;
    height: 36px;
    color: var(--seo-accent);
}

.merchandise-seo-content__why-card-title {
    font-family: var(--wp--preset--font-family--sen);
    font-size: clamp(16px, calc((19 / 1440) * 100vw), 19px);
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 10px;
}

.merchandise-seo-content__why-card-text {
    font-size: clamp(14px, calc((15 / 1440) * 100vw), 15px);
    line-height: 1.55;
    margin: 0;
    opacity: 0.75;
}

/* How It Works — 3 white step cards with numbered circles */
.merchandise-seo-content__how-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(16px, calc((24 / 1440) * 100vw), 24px);
}

.merchandise-seo-content__how-step {
    flex: 1 1 240px;
    max-width: 300px;
    padding: clamp(20px, calc((28 / 1440) * 100vw), 28px);
    text-align: center;
}

.merchandise-seo-content__how-step:hover {
    transform: translateY(-4px);
    border-color: var(--wp--preset--color--primary-500);
    box-shadow: 0 8px 20px rgba(23, 228, 249, 0.12);
}

.merchandise-seo-content__how-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--seo-accent);
    color: var(--seo-on-page);
    font-family: var(--wp--preset--font-family--sen);
    font-size: 22px;
    font-weight: 800;
}

.merchandise-seo-content__how-step-title {
    font-family: var(--wp--preset--font-family--sen);
    font-size: clamp(16px, calc((19 / 1440) * 100vw), 19px);
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 8px;
}

.merchandise-seo-content__how-step-text {
    font-size: clamp(14px, calc((15 / 1440) * 100vw), 15px);
    line-height: 1.55;
    margin: 0;
    opacity: 0.75;
}

/* CTA — white card */
.merchandise-seo-content__cta {
    max-width: var(--seo-max);
    margin: clamp(16px, calc((20 / 1440) * 100vw), 20px) auto 0;
    padding: clamp(22px, calc((32 / 1440) * 100vw), 32px);
}

/* Toggle button */
.merchandise-seo-content__toggle-wrap {
    text-align: center;
    margin-top: clamp(20px, calc((28 / 1440) * 100vw), 28px);
}

.merchandise-seo-content__toggle {
    appearance: none;
    cursor: pointer;
    border: 1px solid var(--seo-accent);
    background: transparent;
    color: var(--seo-on-page);
    font-family: var(--wp--preset--font-family--sen);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    padding: 12px 28px;
    border-radius: 999px;
    transition: background 0.25s ease, color 0.25s ease;
}

.merchandise-seo-content__toggle:hover {
    background: var(--seo-accent);
    color: var(--seo-on-page);
}
