/* WhatsApp Login Icon - Hidden (we intercept Shopify's login icon instead) */
.whatsapp-login-icon {
    display: none !important;
}

.whatsapp-login-btn {
    display: none !important;
}

/* Popup Overlay */
.whatsapp-login-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.whatsapp-login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Modal */
.whatsapp-login-modal {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    animation: slideUp 0.4s ease;
}

.whatsapp-login-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: white;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-login-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

/* Content Layout */
.whatsapp-login-content {
    display: flex;
    min-height: 500px;
}

/* Left Panel */
.whatsapp-login-left {
    flex: 1;
    padding: 40px 32px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.whatsapp-login-logo {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
}

.whatsapp-login-logo-placeholder {
    width: 80px;
    height: 50px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.whatsapp-login-heading {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.whatsapp-login-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.whatsapp-login-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.whatsapp-login-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.whatsapp-login-feature-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.whatsapp-login-feature p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.95;
    padding-top: 8px;
}

/* Right Panel */
.whatsapp-login-right {
    flex: 1;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.whatsapp-login-form-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1a1a1a;
}

.whatsapp-login-form-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 32px 0;
}

.whatsapp-login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.whatsapp-login-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.whatsapp-login-input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.whatsapp-login-phone-input {
    display: flex;
    gap: 8px;
}

.whatsapp-country-code {
    width: 90px;
    padding: 12px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.whatsapp-country-code:focus {
    outline: none;
    border-color: #25D366;
}

#whatsapp-phone {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

#whatsapp-phone:focus {
    outline: none;
    border-color: #25D366;
}

.whatsapp-login-submit {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.whatsapp-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-login-submit:active {
    transform: translateY(0);
}

.whatsapp-login-terms {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 24px;
    line-height: 1.5;
}




.whatsapp-otp-content {
    display: flex;
    flex-direction: column;
}

.whatsapp-otp-header {
    padding: 32px;
    text-align: center;
    color: white;
}

.whatsapp-otp-logo {
    max-width: 100px;
    max-height: 50px;
    object-fit: contain;
    margin: 0 auto 16px;
}

.whatsapp-otp-logo-placeholder {
    width: 60px;
    height: 40px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin: 0 auto 16px;
}

.whatsapp-otp-heading {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}


.whatsapp-otp-body {
    padding: 40px 32px;
}


@media (min-width: 769px) {
    .whatsapp-otp-header .whatsapp-login-features {
        display: none !important;
    }
}


.whatsapp-otp-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1a1a1a;
    text-align: center;
}

.whatsapp-otp-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 32px 0;
    text-align: center;
}

.whatsapp-otp-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.whatsapp-otp-inputs {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}

.whatsapp-otp-input {
    width: 50px;
    height: 50px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}

.whatsapp-otp-input:focus {
    outline: none;
    border-color: #25D366;
    transform: scale(1.05);
}

.whatsapp-otp-submit {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.whatsapp-otp-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-otp-resend {
    text-align: center;
    margin-top: 16px;
}

.whatsapp-otp-resend p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.whatsapp-otp-resend-btn {
    background: none;
    border: none;
    color: #25D366;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.whatsapp-otp-resend-btn:hover {
    color: #128C7E;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .whatsapp-login-content {
        flex-direction: column;
        min-height: auto;
    }

    .whatsapp-login-left {
        padding: 24px 20px;
    }

    .whatsapp-login-right {
        padding: 32px 24px;
    }

    .whatsapp-login-heading {
        font-size: 20px;
    }

    .whatsapp-login-form-title {
        font-size: 24px;
    }

    .whatsapp-login-modal {
        width: 95%;
        max-height: 95vh;
        overflow-y: auto;
    }

    .whatsapp-otp-inputs {
        gap: 8px;
    }

    .whatsapp-otp-input {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    /* Mobile Scrolling Features */
    .whatsapp-login-features.mobile-scrolling-features {
        position: relative;
        height: 60px;
        /* Fixed height for ticker effect */
        overflow: hidden;
        display: block;
        /* Override flex */
    }

    .whatsapp-login-features.mobile-scrolling-features .whatsapp-login-feature {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s ease;
        display: flex;
        align-items: center;
        pointer-events: none;
    }

    .whatsapp-login-features.mobile-scrolling-features .whatsapp-login-feature.active-feature {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}


@media (max-width: 480px) {
    /* Mobile styles - login button removed */
}