
.wpc-compare-container,
.wpc-compare-container-loop {
    margin: 10px 0;
    text-align: center;
}

.wpc-compare-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.wpc-compare-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.wpc-compare-btn.wpc-in-compare {
    background: #28a745;
}

.wpc-compare-btn.wpc-in-compare:hover {
    background: #218838;
}

.wpc-icon {
    font-size: 16px;
}

/* Compare Widget Styles */
.wpc-compare-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    border: 2px solid #007cba;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    min-width: 250px;
    max-width: 300px;
}

.wpc-widget-header {
    background: #007cba;
    color: white;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wpc-widget-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}
.wpc-view-compare-popup {
    
    color: black;
    border: 1px solid #2453ff;
    margin-bottom: 5px;
    width: 100%;

}

.wpc-view-compare-popup:hover {
    
    color: #fff;
    background-color: #2453ff;
    text-decoration: none;

}
.wpc-product-count {
    background: #ff6b6b;
    color: white;
    padding: 4px 8px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.wpc-widget-content {
    padding: 15px;
}

.wpc-view-compare {
    display: block;
    background: #007cba;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 10px;
    transition: background 0.3s ease;
}

.wpc-view-compare:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.wpc-clear-compare {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

.wpc-clear-compare:hover {
    background: #c82333;
}

.wpc-widget-content p {
    margin: 0;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* Compare Page Styles */
.wpc-compare-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.wpc-compare-header {
    text-align: center;
    margin-bottom: 30px;
}

.wpc-compare-header h1 {
    color: #333;
    margin-bottom: 10px;
}

.wpc-compare-header p {
    color: #666;
    font-size: 16px;
}

.wpc-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.wpc-compare-table th,
.wpc-compare-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.wpc-compare-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.wpc-compare-table tr:hover {
    background: #f8f9fa;
}

.wpc-product-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.wpc-product-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.wpc-product-price {
    font-size: 18px;
    color: #007cba;
    font-weight: bold;
    margin-bottom: 10px;
}

.wpc-product-rating {
    color: #ffc107;
    margin-bottom: 10px;
}

.wpc-product-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.wpc-remove-compare {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.wpc-remove-compare:hover {
    background: #c82333;
}

.wpc-empty-compare {
    text-align: center;
    padding: 50px 20px;
}

.wpc-empty-compare h2 {
    color: #666;
    margin-bottom: 20px;
}

.wpc-empty-compare a {
    background: #007cba;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 5px;
    display: inline-block;
    transition: background 0.3s ease;
}

.wpc-empty-compare a:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wpc-compare-widget {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .wpc-compare-table {
        font-size: 14px;
    }
    
    .wpc-compare-table th,
    .wpc-compare-table td {
        padding: 10px 8px;
    }
    
    .wpc-product-image {
        width: 80px;
        height: 80px;
    }
}

/* Loading States */
.wpc-loading {
    opacity: 0.6;
    pointer-events: none;
}

.wpc-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: wpc-spin 1s linear infinite;
}

@keyframes wpc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.wpc-message {
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    font-weight: 500;
}

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

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

/* Compare Popup Styles */
.wpc-compare-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpc-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.wpc-popup-content {
    position: relative;
    background: white;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.wpc-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 10px 10px 0 0;
}

.wpc-popup-header h3 {
    margin: 0;
    color: #333;
}

.wpc-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.wpc-popup-close:hover {
    background: #eee;
}

.wpc-popup-body {
    padding: 20px;
}

/* Responsive popup */
@media (max-width: 768px) {
    .wpc-popup-content {
        max-width: 95%;
        max-height: 95%;
        margin: 10px;
    }
    
    .wpc-popup-header,
    .wpc-popup-body {
        padding: 15px;
    }
} 

.wpc-hidden { display: none !important; } 