.tf-newsletter-popup-host[v-cloak] {
    display: none;
}

.tf-newsletter-popup__container {
    position: fixed;
    z-index: 50;
    bottom: 24px;
    right: 24px;
    width: min(420px, calc(100vw - 48px));
}

.tf-newsletter-popup__panel {
    width: 100%;
    max-height: 70dvh;
    overflow-y: auto;
    border: 1px solid #e7e1dc;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 36px rgb(35 29 25 / 20%);
}

.tf-newsletter-popup__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 8px;
}

.tf-newsletter-popup__header h2 {
    margin: 0;
}

.tf-newsletter-popup__close {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #5e534c;
    font-size: 24px;
}

.tf-newsletter-popup__close:hover {
    color: #231d19;
}

.tf-newsletter-popup {
    background: #fff;
    color: #433832;
}

.tf-newsletter-popup__content {
    padding: 12px 20px 4px;
    color: #5e534c;
    font-size: 16px;
    line-height: 1.5;
}

.tf-newsletter-popup__content > :first-child {
    margin-top: 0;
}

.tf-newsletter-popup__content > :last-child {
    margin-bottom: 0;
}

.tf-newsletter-popup__content strong {
    color: #8c4c30;
    font-weight: 700;
}

.tf-newsletter-popup__form {
    padding: 16px 20px 20px;
}

.tf-newsletter-popup__controls {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.tf-newsletter-popup__controls input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #d6d0ca;
    border-radius: 0;
    background: #fff;
    color: #433832;
    font-size: 14px;
}

.tf-newsletter-popup__controls input::placeholder {
    color: #aaa39d;
}

.tf-newsletter-popup__controls button {
    min-width: 80px;
    padding: 0 16px;
    border: 0;
    background: #8c4c30;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.tf-newsletter-popup__controls button:hover {
    background: #713d27;
}

.tf-newsletter-popup__form .control-group {
    margin-top: 8px;
}

@media (max-width: 639px) {
    .tf-newsletter-popup__container {
        bottom: 16px;
        right: 16px;
        width: calc(100vw - 32px);
    }

    .tf-newsletter-popup__panel {
        max-height: 70dvh;
    }

    .tf-newsletter-popup__header {
        gap: 12px;
        padding: 16px 16px 6px;
    }

    .tf-newsletter-popup__content {
        padding: 10px 16px 4px;
        font-size: 14px;
    }

    .tf-newsletter-popup__form {
        padding: 12px 16px 16px;
    }

    .tf-newsletter-popup__controls button {
        min-height: 44px;
    }

    .tf-newsletter-popup__controls input {
        min-height: 44px;
    }
}
