/* ==========================================
   TSM Newsletter Opt-in
   Shortcode: [tsm_newsletter]
   ========================================== */

.tsm-newsletter {
    width: 100%;
}

.tsm-newsletter__outer {
    border-radius: 28px;
    padding: 2px;
    background: linear-gradient(90deg, #412B4D, #978897);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.10);
}

.tsm-newsletter__inner {
    background: #fff;
    border-radius: 26px;
    padding: 32px 28px;
}

.tsm-newsletter__content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tsm-newsletter__icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #412B4D;
    background: linear-gradient(135deg, rgba(65, 43, 77, 0.18), rgba(151, 136, 151, 0.18));
}

.tsm-newsletter__icon-svg {
    width: 32px;
    height: 32px;
    display: none;
}

.tsm-newsletter[data-state="success"] .tsm-newsletter__icon-check {
    display: block;
}

.tsm-newsletter:not([data-state="success"]) .tsm-newsletter__icon-mail {
    display: block;
}

.tsm-newsletter__title {
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.1;
    margin: 0 !important;
    color: #241426;
    font-weight: 800;
}

.tsm-newsletter__desc {
    font-size: 18px;
    line-height: 1.5;
    color: rgba(36, 20, 38, 0.70);
    margin: 0 !important;
    max-width: 720px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.tsm-newsletter__form {
    margin-top: 8px;
}

.tsm-newsletter__label {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.tsm-newsletter__form-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: stretch;
    max-width: 520px;
    margin: 0 auto;
    padding-top: 14px;
}

.tsm-newsletter__input {
    flex: 1 1 auto;
    height: 48px;
    border-radius: 14px;
    border: 2px solid rgba(65, 43, 77, 0.16);
    padding: 0 14px;
    font-size: 16px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.tsm-newsletter__input:focus {
    border-color: rgba(65, 43, 77, 0.45);
    box-shadow: 0 0 0 4px rgba(65, 43, 77, 0.10);
}

.tsm-newsletter__button {
    width: 100%;
    height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(90deg, #412B4D, #978897);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
    transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}

.tsm-newsletter__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.tsm-newsletter__button:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.tsm-newsletter__fineprint {
    margin: 10px 0 0 !important;
    font-size: 12px;
    color: rgba(36, 20, 38, 0.55);
}

.tsm-newsletter__heart {
    margin-left: 4px;
}

.tsm-newsletter__error {
    margin: 10px 0 0 !important;
    font-size: 13px;
    color: #8b2c2c;
    min-height: 18px;
}

/* Mobile */
@media (max-width: 640px) {
    .tsm-newsletter__inner {
        padding: 26px 18px;
    }

    .tsm-newsletter__desc {
        font-size: 16px;
    }

    .tsm-newsletter__form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .tsm-newsletter__button {
        width: 100%;
    }
}