/* WooCommerce Keyword Popups - Simple Styles */

/* Maximum specificity for trigger styles */
.popup-keyword-trigger-new-01,
span.popup-keyword-trigger-new-01,
a.popup-keyword-trigger-new-01,
div .popup-keyword-trigger-new-01,
p .popup-keyword-trigger-new-01,
.woocommerce .popup-keyword-trigger-new-01,
.woocommerce-page .popup-keyword-trigger-new-01 {
    color: rgb(16, 60, 87) !important;
    cursor: pointer !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    display: inline !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: inherit !important;
    font-family: inherit !important;
    line-height: inherit !important;
    box-shadow: none !important;
    outline: none !important;
    transition: color 0.3s ease !important;
    border-radius: 0 !important;
}

/* Hover states with maximum specificity */
.popup-keyword-trigger-new-01:hover,
span.popup-keyword-trigger-new-01:hover,
a.popup-keyword-trigger-new-01:hover,
div .popup-keyword-trigger-new-01:hover,
p .popup-keyword-trigger-new-01:hover,
.woocommerce .popup-keyword-trigger-new-01:hover,
.woocommerce-page .popup-keyword-trigger-new-01:hover {
    color: rgb(25, 90, 130) !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.popup-keyword-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-keyword-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.popup-keyword-modal.small { 
    width: 90%; 
    max-width: 400px; 
}

.popup-keyword-modal.medium { 
    width: 90%; 
    max-width: 600px; 
}

.popup-keyword-modal.large { 
    width: 90%; 
    max-width: 800px; 
}

.popup-keyword-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-keyword-close:hover {
    color: #000;
}

.popup-keyword-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.popup-keyword-content {
    line-height: 1.6;
    color: #555;
}

.popup-keyword-content p {
    margin-bottom: 15px;
}

.popup-keyword-content img {
    max-width: 100%;
    height: auto;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .popup-keyword-modal {
        width: 95%;
        padding: 20px;
        margin: 20px;
        max-height: 90vh;
    }
    
    .popup-keyword-modal h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
}
