/* Subscriber Manager - Frontend Styles */

.cpb-subscribe-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.cpb-subscribe-form {
    display: block;
}

.cpb-form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.cpb-email-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.cpb-email-input:focus {
    outline: none;
    border-color: #22c55e;
}

.cpb-subscribe-button {
    background: #22c55e;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.cpb-subscribe-button:hover {
    background: #16a34a;
}

.cpb-subscribe-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.button-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.cpb-form-message {
    font-size: 14px;
    margin-top: 10px;
}

.cpb-form-message.error {
    color: #dc2626;
}

.cpb-form-message.success {
    color: #16a34a;
}

.cpb-success-message {
    text-align: center;
    padding: 30px;
    background: #f0fdf4;
    border-radius: 8px;
    border: 2px solid #22c55e;
}

.success-icon {
    font-size: 48px;
    color: #22c55e;
    margin-bottom: 10px;
}

.success-text {
    font-size: 16px;
    color: #166534;
    margin: 0;
}

/* Compact Version */
.cpb-subscribe-form-wrapper.compact .cpb-form-group {
    flex-direction: column;
}

.cpb-subscribe-form-wrapper.compact .cpb-subscribe-button {
    width: 100%;
}

/* Responsive */
@media (max-width: 640px) {
    .cpb-form-group {
        flex-direction: column;
    }
    
    .cpb-subscribe-button {
        width: 100%;
    }
}
