.wp-runa-wrap {
    max-width: 480px;
    margin: 0 auto;
    font-family: inherit;
}

/* Titles */
.runa-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.runa-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-weight: normal;
}
.runa-subtitle a { text-decoration: underline; }

/* Field groups */
.runa-field-group {
    margin-bottom: 1rem;
}
.runa-label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}
.runa-label--required::after {
    content: " *";
    color: #d32f2f;
}
.runa-label--small {
    font-size: 0.8rem;
    margin-top: 0.75rem;
    color: #666;
}
.runa-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}
.runa-link {
    font-size: 0.85rem;
    text-decoration: underline;
}
.runa-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}
.runa-input:focus {
    border-color: #f60;
    outline: none;
}

/* Password toggle */
.runa-password-wrap {
    position: relative;
}
.runa-password-wrap .runa-input {
    padding-right: 2.5rem;
}
.runa-toggle-pwd {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: none;
    color: #666;
}
.runa-toggle-pwd::after { content: "👁"; }
.runa-toggle-pwd.showed::after { content: "🙈"; }

/* Errors */
.runa-field-error {
    display: none;
    color: #d32f2f;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Alerts */
.runa-alert {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.runa-alert--danger {
    background: #fdecea;
    color: #d32f2f;
    border: 1px solid #f5c6cb;
}
.runa-alert--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}
.runa-msg-container { margin-bottom: 0.5rem; }

/* Buttons */
.runa-btn {
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: clamp(20px, 0.191vw + 19.25px, 22px);
    line-height: 48px;
    display: inline-block;
    padding: 0 47px;
    border: none;
    border-radius: 12px;
    background-color: var(--color-blue);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.3), 0px 4px 8px 3px rgba(0, 0, 0, 0.15);
    transition: all 200ms ease-in-out;
}
a.runa-btn:hover{
    text-decoration: none;
}
.runa-btn:hover {
    opacity: 1;
    color: rgb(57 97 135);
        box-shadow: 0px 1px 8px 0px rgba(57, 97, 135, 0.3), 0px 4px 16px 3px rgba(57, 97, 135, 0.15);
}
.runa-btn--outline {
    background-color: transparent;
    color: var(--color-blue);
    border: 2px solid var(--color-blue);
    box-shadow: none;
}
.runa-btn--outline:hover {
    background-color: var(--color-blue);
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.3), 0px 4px 8px 3px rgba(0, 0, 0, 0.15);
}
.runa-btn--disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Submit row */
.runa-submit-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

/* Spinner */
.runa-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #ddd;
    border-top-color: #f60;
    border-radius: 50%;
    animation: runa-spin 0.7s linear infinite;
}
@keyframes runa-spin {
    to { transform: rotate(360deg); }
}

/* Privacy radio groups */
.runa-privacy-group {
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}
.runa-radio-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.runa-radio-row label {
    cursor: pointer;
    padding: 0.3rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.85rem;
}
.runa-radio { display: none; }
.runa-radio:checked + label {
    background: #f60;
    color: #fff;
    border-color: #f60;
}

/* Modal */
.runa-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.runa-modal__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
}
.runa-modal__content {
    position: relative;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 480px;
    width: 90%;
    z-index: 1;
}
.runa-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 1.5rem;
    text-decoration: none;
    color: #333;
}
.runa-modal__title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}
.runa-modal__message {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Password rules */
.runa-pwd-rules {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    font-size: 0.8rem;
}
.runa-pwd-rules li {
    color: #999;
    padding: 2px 0;
}
.runa-pwd-rules li::before {
    content: "○ ";
}
.runa-pwd-rules li.is-valid {
    color: #2e7d32;
}
.runa-pwd-rules li.is-valid::before {
    content: "✓ ";
}
.runa-pwd-rules li.is-invalid {
    color: #d32f2f;
}
.runa-pwd-rules li.is-invalid::before {
    content: "✗ ";
}


/* ═══════════════════════════════════════════════════════════════════
   NEWSLETTER LISTING
   ═══════════════════════════════════════════════════════════════════ */

.wp-runa-wrap--newsletter {
    max-width: 900px;
}

.runa-nl-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.runa-nl-card {
    display: flex;
    gap: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.runa-nl-card__image {
    flex: 0 0 280px;
    min-height: 180px;
    overflow: hidden;
}

.runa-nl-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.runa-nl-card__body {
    flex: 1;
    padding: 1.25rem 1.5rem 1.25rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.runa-nl-card__title {
    font-size: 1.4rem;
    margin: 0 0 0.25rem 0;
    font-weight: 700;
}

.runa-nl-card__freq {
    display: block;
    font-family: var(--font-secondary, inherit);
    font-style: italic;
    color: var(--color-blue, #1a73e8);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.runa-nl-card__desc {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.runa-nl-card__desc p {
    margin: 0;
}

.runa-nl-card__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.runa-nl-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.runa-nl-unsub-link {
    font-size: 0.85rem;
    text-decoration: underline;
    color: #666;
    cursor: pointer;
}

.runa-nl-unsub-link:hover {
    color: #d32f2f;
}

.runa-nl-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #555;
    background: #f9f9f9;
}

.runa-btn--small {
    font-size: 0.85rem;
    line-height: 36px;
    padding: 0 24px;
    border-radius: 8px;
}

.runa-spinner--small {
    width: 18px;
    height: 18px;
    border-width: 2px;
}

.runa-nl-card__msg {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #2e7d32;
}

.runa-nl-card__msg--error {
    color: #d32f2f;
}

/* Responsive */
@media (max-width: 640px) {
    .runa-nl-card {
        flex-direction: column;
    }

    .runa-nl-card__image {
        flex: none;
        height: 180px;
    }

    .runa-nl-card__body {
        padding: 1rem;
    }
}
