/* Tav Email Discount Popup Styles */

#tav-edp-popup {
    position: fixed;
    z-index: 999999;
    transition: all 0.3s ease;
}

#tav-edp-popup.collapsed {
    width: 60px;
    height: 60px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    overflow: hidden;
}

#tav-edp-popup.expanded {
    max-width: 400px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden;
}

#tav-edp-popup.tav-edp-hidden {
    display: none;
}

.tav-edp-popup-inner {
    position: relative;
    padding: 0;
}

.tav-edp-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tav-edp-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

#tav-edp-popup.collapsed .tav-edp-form-container,
#tav-edp-popup.collapsed .tav-edp-close {
    display: none;
}

#tav-edp-popup.expanded .tav-edp-icon {
    display: none;
}

.tav-edp-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #fff;
    text-decoration: none;
    z-index: 2;
    opacity: 0.8;
    transition: opacity 0.3s;
    background: rgba(0,0,0,0.3);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tav-edp-close:hover {
    opacity: 1;
    color: #fff;
}

.tav-edp-image-container {
    width: 100%;
    position: relative;
}

.tav-edp-popup-image {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.tav-edp-popup-image:hover {
    transform: scale(1.02);
}

.tav-edp-form-container {
    padding: 20px;
}

.tav-edp-form-container h3 {
    margin: 0 0 15px;
    font-size: 20px;
    color: #333;
}

.tav-edp-form-container p {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

#tav-edp-email-form,
#tav-edp-verification-form {
    margin-bottom: 15px;
}

#tav-edp-email,
#tav-edp-verification-code {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.tav-edp-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.tav-edp-button:hover {
    opacity: 0.9;
}

#tav-edp-message {
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
}

#tav-edp-message.success {
    background: #e8f5e9;
    color: #2e7d32;
}

#tav-edp-message.error {
    background: #fbe9e7;
    color: #c62828;
}

/* Position Overrides */
#tav-edp-popup.position-left {
    right: auto;
    left: 20px;
}

#tav-edp-popup.position-right {
    left: auto;
    right: 20px;
}

#tav-edp-popup.position-left.expanded {
    left: 20px;
    right: auto;
}

#tav-edp-popup.position-right.expanded {
    right: 20px;
    left: auto;
}

#tav-edp-popup.position-left .tav-edp-close {
    right: auto;
    left: 10px;
}

#tav-edp-popup.position-right .tav-edp-close {
    left: auto;
    right: 10px;
}

@media (max-width: 480px) {
    #tav-edp-popup.expanded {
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        max-width: 100%;
        border-radius: 10px 10px 0 0;
    }
    
    #tav-edp-popup.collapsed.position-left {
        bottom: 20px !important;
        left: 20px !important;
        right: auto !important;
    }
    
    #tav-edp-popup.collapsed.position-right {
        bottom: 20px !important;
        right: 20px !important;
        left: auto !important;
    }
}

/* RTL Support */
html[dir="rtl"] #tav-edp-popup.position-left {
    left: 20px;
    right: auto;
}

html[dir="rtl"] #tav-edp-popup.position-right {
    right: 20px;
    left: auto;
}

html[dir="rtl"] .tav-edp-close {
    left: 10px;
    right: auto;
} 