/* LHS Cart Recovery — Email Capture Popup */

#lhs-email-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#lhs-email-popup-overlay.lhs-popup-visible {
    opacity: 1;
}

#lhs-email-popup-overlay.lhs-popup-closing {
    opacity: 0;
}

#lhs-email-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 360px;
    max-width: calc(100vw - 30px);
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

#lhs-email-popup.lhs-popup-visible {
    transform: translateY(0);
    opacity: 1;
}

#lhs-email-popup.lhs-popup-closing {
    transform: translateY(30px);
    opacity: 0;
}

#lhs-popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #aaa;
    padding: 4px 8px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

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

.lhs-popup-icon {
    font-size: 36px;
    text-align: center;
    margin-bottom: 10px;
}

#lhs-email-popup h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: #1a1a2e;
    line-height: 1.3;
}

#lhs-email-popup p {
    margin: 0 0 14px;
    font-size: 14px;
    color: #666;
    text-align: center;
    line-height: 1.5;
}

.lhs-popup-discount {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px !important;
    font-weight: 600;
    color: #856404 !important;
    text-align: center;
    margin-bottom: 14px !important;
}

.lhs-popup-form {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

#lhs-popup-email {
    flex: 1;
    padding: 11px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    min-width: 0;
}

#lhs-popup-email:focus {
    border-color: #e63946;
}

#lhs-popup-email.lhs-error {
    border-color: #e63946;
    animation: lhs-shake 0.3s ease;
}

@keyframes lhs-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

#lhs-popup-submit {
    padding: 11px 18px;
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
}

#lhs-popup-submit:hover {
    background: #c1121f;
}

#lhs-popup-submit:active {
    transform: scale(0.97);
}

#lhs-popup-submit:disabled {
    opacity: 0.6;
    cursor: default;
}

.lhs-popup-skip {
    text-align: center;
    margin: 0 !important;
}

.lhs-popup-skip a {
    font-size: 12px !important;
    color: #bbb !important;
    text-decoration: underline;
}

.lhs-popup-skip a:hover {
    color: #999 !important;
}

/* Mobile */
@media (max-width: 480px) {
    #lhs-email-popup {
        bottom: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
    }

    .lhs-popup-form {
        flex-direction: column;
    }
}
