/* Wishlist Export Button Styles */
.woosw-export-wrapper {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.woosw-export-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007cba 0%, #00a0d2 50%, #007cba 100%);
}

.woosw-export-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.woosw-export-btn {
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    text-decoration: none;
    line-height: 1;
    color: white;
    min-width: 140px;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    letter-spacing: 0.3px;
}

.woosw-export-csv {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    position: relative;
    overflow: hidden;
}

.woosw-export-csv::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.woosw-export-csv:hover::before {
    left: 100%;
}

.woosw-export-csv:hover,
.woosw-export-csv.hover {
    background: linear-gradient(135deg, #218838 0%, #1ba085 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.woosw-export-excel {
    background: linear-gradient(135deg, #217346 0%, #0f5132 100%);
    position: relative;
    overflow: hidden;
}

.woosw-export-excel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.woosw-export-excel:hover::before {
    left: 100%;
}

.woosw-export-excel:hover,
.woosw-export-excel.hover {
    background: linear-gradient(135deg, #1a5f3a 0%, #0a3d26 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(33, 115, 70, 0.4);
}

.woosw-export-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.woosw-export-btn:disabled {
    background: #6c757d !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.woosw-export-btn .export-icon {
    font-size: 18px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.woosw-export-info {
    text-align: center;
    margin-top: 12px;
}

.woosw-export-info small {
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .woosw-export-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .woosw-export-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .woosw-export-wrapper {
        margin: 10px -10px 20px -10px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* Integration with wishlist table styles */
.woosw-items {
    margin-top: 0;
}

/* Hide export button when wishlist is empty */
.woosw-popup-content-mid-message ~ .woosw-export-wrapper,
.woosw-empty-wishlist ~ .woosw-export-wrapper {
    display: none;
}

/* Loading state animation */
.woosw-export-btn:disabled .export-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Button tooltip styles */
.woosw-export-btn[title] {
    position: relative;
}

/* Add visual effects */
.woosw-export-wrapper::before {
    content: 'Wishlist Export';
    display: block;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    text-align: center;
    font-size: 24px;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 12px;
}

/* Success state styles */
.woosw-export-info small[style*="color: #28a745"] {
    font-weight: 600;
}

/* Hover effect for entire container */
.woosw-export-wrapper:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.woosw-export-wrapper:hover::before {
    color: #1a252f;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}