:root {
    --wts-scp-ink: #1c241d;
    --wts-scp-forest: #26462f;
    --wts-scp-cream: #f7f1e5;
    --wts-scp-gold: #c99045;
    --wts-scp-line: rgba(28, 36, 29, 0.18);
}

html.wts-scp-open,
html.wts-scp-open body {
    overflow: hidden;
}

.wts-scp[hidden],
.wts-scp [hidden] {
    display: none !important;
}

.wts-scp {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 2147483647;
}

.wts-scp__backdrop {
    background: rgba(13, 19, 14, 0.68);
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity 180ms ease;
}

.wts-scp__dialog {
    background: var(--wts-scp-cream);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    color: var(--wts-scp-ink);
    max-height: calc(100dvh - 48px);
    max-width: 560px;
    opacity: 0;
    overflow-y: auto;
    padding: 48px;
    position: relative;
    transform: translateY(18px) scale(0.985);
    transition: opacity 180ms ease, transform 180ms ease;
    width: 100%;
}

.wts-scp.is-open .wts-scp__backdrop,
.wts-scp.is-open .wts-scp__dialog {
    opacity: 1;
}

.wts-scp.is-open .wts-scp__dialog {
    transform: translateY(0) scale(1);
}

.wts-scp__close {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--wts-scp-ink);
    cursor: pointer;
    display: flex;
    font-size: 30px;
    height: 44px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 4px;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 44px;
}

.wts-scp__close:hover,
.wts-scp__close:focus-visible {
    background: rgba(28, 36, 29, 0.08);
    outline: 2px solid var(--wts-scp-forest);
    outline-offset: 2px;
}

.wts-scp__eyebrow {
    color: var(--wts-scp-forest);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0 48px 16px 0;
    text-transform: uppercase;
}

.wts-scp__title {
    color: var(--wts-scp-ink);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 0.98;
    margin: 0 0 20px;
    max-width: 480px;
    text-wrap: balance;
}

.wts-scp__title span {
    color: var(--wts-scp-forest);
    white-space: nowrap;
}

.wts-scp__description {
    color: rgba(28, 36, 29, 0.82);
    font-size: 17px;
    line-height: 1.55;
    margin: 0 0 26px;
}

.wts-scp__label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 8px;
}

.wts-scp__field-row {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
}

.wts-scp__email {
    appearance: none;
    background: #fff;
    border: 1px solid var(--wts-scp-line);
    border-radius: 0;
    box-shadow: none;
    color: var(--wts-scp-ink);
    font: inherit;
    font-size: 16px;
    height: 50px;
    margin: 0;
    padding: 0 15px;
    width: 100%;
}

.wts-scp__email:focus {
    border-color: var(--wts-scp-forest);
    outline: 2px solid rgba(38, 70, 47, 0.22);
    outline-offset: 1px;
}

.wts-scp__email[aria-invalid="true"] {
    border-color: #9b2f2f;
}

.wts-scp__submit,
.wts-scp__shop {
    align-items: center;
    appearance: none;
    background: var(--wts-scp-forest);
    border: 1px solid var(--wts-scp-forest);
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0.02em;
    min-height: 50px;
    padding: 12px 18px;
    text-align: center;
    text-decoration: none;
    transition: background 140ms ease, color 140ms ease;
}

.wts-scp__submit:hover,
.wts-scp__submit:focus-visible,
.wts-scp__shop:hover,
.wts-scp__shop:focus-visible {
    background: #17301f;
    color: #fff;
    outline: 2px solid var(--wts-scp-gold);
    outline-offset: 2px;
}

.wts-scp__submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.wts-scp__consent {
    color: rgba(28, 36, 29, 0.65);
    font-size: 11px;
    line-height: 1.5;
    margin: 12px 0 0;
}

.wts-scp__consent a {
    color: inherit;
    text-decoration: underline;
}

.wts-scp__status {
    color: #8d2525;
    font-size: 13px;
    font-weight: 600;
    margin: 10px 0 0;
    min-height: 20px;
}

.wts-scp__company {
    height: 1px !important;
    left: -10000px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 1px !important;
}

.wts-scp__success {
    border-top: 1px solid var(--wts-scp-line);
    padding-top: 24px;
}

.wts-scp__success-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 26px;
    line-height: 1.15;
    margin: 0 0 8px;
}

.wts-scp__success > p:not(.wts-scp__success-title) {
    color: rgba(28, 36, 29, 0.75);
    margin: 0 0 18px;
}

.wts-scp__code {
    align-items: center;
    border-bottom: 1px solid var(--wts-scp-line);
    border-top: 1px solid var(--wts-scp-line);
    display: flex;
    justify-content: space-between;
    margin: 0 0 18px;
    padding: 13px 0;
}

.wts-scp__code span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wts-scp__code strong {
    color: var(--wts-scp-forest);
    font-size: 19px;
    letter-spacing: 0.06em;
}

.wts-scp__shop {
    width: 100%;
}

.wts-scp__decline {
    appearance: none;
    background: transparent;
    border: 0;
    color: rgba(28, 36, 29, 0.62);
    cursor: pointer;
    display: block;
    font-size: 13px;
    margin: 16px auto 0;
    min-height: 44px;
    padding: 10px 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wts-scp__decline:focus-visible {
    outline: 2px solid var(--wts-scp-forest);
    outline-offset: 2px;
}

@media (min-width: 640px) {
    .wts-scp__field-row {
        grid-template-columns: minmax(0, 1fr) 205px;
    }
}

@media (max-width: 639px) {
    .wts-scp {
        align-items: flex-end;
        padding: 12px 12px max(12px, env(safe-area-inset-bottom));
    }

    .wts-scp__dialog {
        max-height: calc(100dvh - 24px);
        padding: 34px 22px 22px;
    }

    .wts-scp__eyebrow {
        font-size: 10px;
        margin-bottom: 12px;
        max-width: 240px;
    }

    .wts-scp__title {
        font-size: clamp(34px, 11vw, 46px);
        margin-bottom: 16px;
    }

    .wts-scp__description {
        font-size: 15px;
        line-height: 1.45;
        margin-bottom: 20px;
    }

    .wts-scp__close {
        right: 4px;
        top: 4px;
    }
}

@media (max-height: 640px) {
    .wts-scp {
        align-items: center;
    }

    .wts-scp__dialog {
        padding-bottom: 18px;
        padding-top: 30px;
    }

    .wts-scp__eyebrow {
        margin-bottom: 8px;
    }

    .wts-scp__title {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .wts-scp__description {
        margin-bottom: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wts-scp__backdrop,
    .wts-scp__dialog {
        transition: none;
    }
}
