/* Livraria Stock Notifier Styles */

.lsn-notify-wrapper {
    margin: 20px 0;
}

.lsn-notify-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lsn-notify-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.lsn-icon {
    flex-shrink: 0;
}

/* Popup Styles */
.lsn-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.lsn-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.lsn-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: lsnPopupSlideIn 0.3s ease-out;
}

@keyframes lsnPopupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.lsn-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.lsn-popup-close:hover {
    background: #f0f0f0;
    color: #333;
}

.lsn-popup-title {
    margin: 0 0 15px;
    font-size: 24px;
    color: #333;
}

.lsn-popup-description {
    margin: 0 0 25px;
    color: #666;
    line-height: 1.6;
}

/* Form Styles */
.lsn-notify-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lsn-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lsn-form-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.lsn-email-input {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.lsn-email-input:focus {
    outline: none;
    border-color: #8B4513;
}

.lsn-privacy-notice {
    font-size: 13px;
}

.lsn-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.lsn-privacy-checkbox {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.lsn-checkbox-label a {
    color: #8B4513;
    text-decoration: underline;
}

.lsn-checkbox-label a:hover {
    text-decoration: none;
}

.lsn-form-messages {
    min-height: 20px;
}

.lsn-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
    animation: lsnMessageSlideIn 0.3s ease-out;
}

@keyframes lsnMessageSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lsn-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.lsn-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Submit Button */
.lsn-submit-btn {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lsn-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.lsn-submit-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

/* Spinner */
.lsn-spinner {
    animation: lsnSpin 1s linear infinite;
}

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

.spinner-path {
    stroke-dasharray: 45;
    stroke-dashoffset: 0;
    animation: lsnSpinnerDash 1.5s ease-in-out infinite;
}

@keyframes lsnSpinnerDash {
    0% {
        stroke-dashoffset: 45;
    }
    50% {
        stroke-dashoffset: 10;
    }
    100% {
        stroke-dashoffset: 45;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .lsn-popup-content {
        padding: 30px 20px;
    }

    .lsn-popup-title {
        font-size: 20px;
    }

    .lsn-notify-trigger {
        width: 100%;
        justify-content: center;
    }
}
