/**
 * Listmonk Newsletter Signup — minimal, theme-friendly form styles.
 * Designed to inherit your theme's typography and colors.
 */

.lns-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    align-items: flex-start;
    max-width: 480px;
}

.lns-field {
    flex: 1 1 100%;
}

.lns-input {
    display: block;
    width: 100%;
    padding: 0.6em 0.8em;
    font-size: inherit;
    font-family: inherit;
    color: inherit;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 0;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.lns-input:focus {
    opacity: 1;
    outline: none;
    border-color: currentColor;
}

.lns-input::placeholder {
    color: inherit;
    opacity: 0.5;
}

.lns-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    padding: 0.6em 1.6em;
    font-size: inherit;
    font-family: inherit;
    color: inherit;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.lns-button:hover {
    opacity: 0.7;
}

.lns-button:disabled {
    opacity: 0.4;
    cursor: wait;
}

.lns-button__spinner {
    display: inline-flex;
    align-items: center;
}

/* Honeypot — visually hidden but accessible to bots */
.lns-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
}

/* Messages */
.lns-message {
    flex: 1 1 100%;
    padding: 0.6em 0;
    font-size: 0.9em;
}

.lns-message--success {
    opacity: 0.8;
}

.lns-message--error {
    opacity: 0.8;
    color: #c0392b;
}

/* Inline layout variant: [listmonk_signup class="lns-inline"] */
.lns-form.lns-inline {
    flex-wrap: nowrap;
}

.lns-form.lns-inline .lns-field {
    flex: 1 1 auto;
}

.lns-form.lns-inline .lns-button {
    flex-shrink: 0;
}
