.newsletter-popup {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
    pointer-events: none;
}

.newsletter-popup.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.newsletter-popup-inner {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 320px;
    overflow: hidden;
}

.newsletter-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #9ca3af;
    transition: color 0.15s;
    z-index: 1;
    line-height: 1;
}

.newsletter-popup-close:hover {
    color: #374151;
}

.newsletter-popup-content {
    padding: 1.75rem 1.5rem 1.5rem;
    text-align: center;
}

.newsletter-popup-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--wp--preset--color--accent-1, #4f46e5);
    color: #fff;
    margin-bottom: 0.75rem;
}

.newsletter-popup-title {
    margin: 0;
    margin-bottom: 0.375rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
}

.newsletter-popup-desc {
    margin: 0;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #6b7280;
    font-weight: 400;
}

.newsletter-popup-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-popup-form input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 2.375rem;
    padding: 0 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #111827;
    background: #f9fafb;
    transition: border-color 0.15s;
    outline: none;
}

.newsletter-popup-form input:focus {
    border-color: var(--wp--preset--color--accent-1, #4f46e5);
}

.newsletter-popup-form input::placeholder {
    color: #9ca3af;
}

.newsletter-popup-form button {
    display: block;
    width: 100%;
    height: 2.5rem;
    border: none;
    border-radius: 8px;
    background: var(--wp--preset--color--accent-1, #4f46e5);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.newsletter-popup-form button:hover {
    opacity: 0.9;
}

.newsletter-popup-privacy {
    margin: 0;
    margin-top: 0.5rem;
    font-size: 0.6875rem;
    color: #9ca3af;
    font-weight: 400;
}

/* 모바일 */
@media (max-width: 770px) {
    .newsletter-popup {
        bottom: 0;
        right: 0;
        left: 0;
    }

    .newsletter-popup-inner {
        width: 100%;
        border-radius: 16px 16px 0 0;
    }
}
