.wvms-switcher {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Specific margin adjustments for position */
.wvms-switcher.wvms-position-above {
    margin-bottom: 20px;
    margin-top: 0;
}

.wvms-switcher.wvms-position-below {
    margin-top: 20px;
    margin-bottom: 0;
}

/* Button style variants */
.wvms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px 8px 0;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 40px;
    line-height: 1.4;
    border: 2px solid transparent;
}

/* Default filled style */
.wvms-btn[data-style="filled"] {
    background: var(--wvms-primary-color, #2b6cb0);
    border-color: var(--wvms-primary-color, #2b6cb0);
    color: #fff;
}

.wvms-btn[data-style="filled"]:hover {
    background: var(--wvms-primary-color-dark, #1a56a6);
    border-color: var(--wvms-primary-color-dark, #1a56a6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Bordered style */
.wvms-btn[data-style="bordered"] {
    background: transparent;
    border-color: var(--wvms-primary-color, #2b6cb0);
    color: var(--wvms-primary-color, #2b6cb0);
}

.wvms-btn[data-style="bordered"]:hover {
    background: var(--wvms-primary-color, #2b6cb0);
    color: #fff;
    transform: translateY(-1px);
}

/* Size variants */
.wvms-btn[data-size="small"] {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 32px;
}

.wvms-btn[data-size="medium"] {
    padding: 10px 18px;
    font-size: 14px;
    min-height: 40px;
}

.wvms-btn[data-size="large"] {
    padding: 14px 24px;
    font-size: 16px;
    min-height: 48px;
}

/* Corner radius variants */
.wvms-btn[data-corners="sharp"] {
    border-radius: 2px;
}

.wvms-btn[data-corners="rounded"] {
    border-radius: 6px;
}

.wvms-btn[data-corners="pill"] {
    border-radius: 50px;
}

/* Enhanced color system using secondary color */
.wvms-btn[data-style="filled"]:hover {
    background: var(--wvms-secondary-color, #1a56a6);
    border-color: var(--wvms-secondary-color, #1a56a6);
}

.wvms-btn[data-style="bordered"]:hover {
    background: var(--wvms-primary-color, #2b6cb0);
    color: #fff;
}

/* Minimal style */
.wvms-btn[data-style="minimal"] {
    background: transparent;
    border: 2px solid transparent;
    color: var(--wvms-primary-color, #2b6cb0);
    text-decoration: none; /* No underline */
    padding: 10px 18px;
    margin: 0 8px 8px 0;
    font-weight: 600; /* Keep it bold like other buttons */
    opacity: 0.8; /* Slightly transparent for subtlety */
}

.wvms-btn[data-style="minimal"]:hover {
    background: rgba(0, 0, 0, 0.05);
    opacity: 1; /* Full opacity on hover */
    transform: translateY(-1px);
}

/* Active state for minimal style */
.wvms-btn[data-style="minimal"].active {
    background: rgba(47, 133, 90, 0.15); /* Light green background */
    color: #fff;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(47, 133, 90, 0.2);
}

/* Active state for all styles */
.wvms-btn.active {
    background: #2f855a;
    border-color: #2f855a;
    color: #fff;
    box-shadow: 0 4px 12px rgba(47, 133, 90, 0.3);
}

.wvms-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Active state uses secondary color */
.wvms-btn.active {
    background: var(--wvms-secondary-color, #2f855a);
    border-color: var(--wvms-secondary-color, #2f855a);
}

/* Minimal style active state */
.wvms-btn[data-style="minimal"].active {
    background: rgba(47, 133, 90, 0.15);
    color: var(--wvms-secondary-color, #2f855a);
}

/* Mobile layout options */
@media (max-width: 768px) {
    .wvms-switcher.vertical .wvms-btn {
        display: block;
        width: 100%;
        margin: 0 0 8px 0;
        text-align: center;
    }
    
    .wvms-switcher.horizontal {
        overflow-x: auto;
        white-space: nowrap;
        text-align: left;
    }
    
    .wvms-switcher.horizontal .wvms-btn {
        display: inline-block;
        margin: 0 8px 8px 0;
    }
}

/* Rest of the existing CSS */
.wvms-fallback-link {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    padding: 8px 16px;
    border-radius: 6px;
    background: #e6f7ff;
    color: #1890ff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wvms-fallback-link:hover {
    background: #bae7ff;
    color: #096dd9;
    text-decoration: none;
}

/* Animation for smooth transitions */
.wvms-btn {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced loading state */
.wvms-btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.wvms-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Different loading colors for different button styles */
.wvms-btn[data-style="bordered"].loading::after,
.wvms-btn[data-style="minimal"].loading::after {
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--wvms-primary-color, #2b6cb0);
}

/* Ensure loading state works with all sizes */
.wvms-btn[data-size="small"].loading::after {
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
}

.wvms-btn[data-size="large"].loading::after {
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
}

/* Smooth transitions for all states */
.wvms-btn {
    transition: all 0.3s ease, color 0.2s ease;
}

/* Disabled state styling */
.wvms-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==========================================================================
   WP-SCRIPT THEME OVERRIDES
   ========================================================================== */

/* Override theme's !important button styles with higher specificity */
.wvms-switcher .wvms-btn {
    background-color: var(--wvms-primary-color, #2b6cb0) !important;
    border-color: var(--wvms-primary-color, #2b6cb0) !important;
    color: #fff !important;
}

.wvms-switcher .wvms-btn[data-style="filled"] {
    background: var(--wvms-primary-color, #2b6cb0) !important;
    border-color: var(--wvms-primary-color, #2b6cb0) !important;
    color: #fff !important;
}

.wvms-switcher .wvms-btn[data-style="filled"]:hover {
    background: var(--wvms-secondary-color, #1a56a6) !important;
    border-color: var(--wvms-secondary-color, #1a56a6) !important;
    color: #fff !important;
}

.wvms-switcher .wvms-btn[data-style="bordered"] {
    background: transparent !important;
    border-color: var(--wvms-primary-color, #2b6cb0) !important;
    color: var(--wvms-primary-color, #2b6cb0) !important;
}

.wvms-switcher .wvms-btn[data-style="bordered"]:hover {
    background: var(--wvms-primary-color, #2b6cb0) !important;
    border-color: var(--wvms-primary-color, #2b6cb0) !important;
    color: #fff !important;
}

.wvms-switcher .wvms-btn[data-style="minimal"] {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--wvms-primary-color, #2b6cb0) !important;
    opacity: 0.8 !important;
}

.wvms-switcher .wvms-btn[data-style="minimal"]:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    opacity: 1 !important;
}

.wvms-switcher .wvms-btn.active {
    background: var(--wvms-secondary-color, #2f855a) !important;
    border-color: var(--wvms-secondary-color, #2f855a) !important;
    color: #fff !important;
}

.wvms-switcher .wvms-btn[data-style="minimal"].active {
    background: rgba(47, 133, 90, 0.15) !important;
    color: var(--wvms-secondary-color, #2f855a) !important;
}

/* Ensure loading states also override theme */
.wvms-switcher .wvms-btn.loading {
    background-color: var(--wvms-primary-color, #2b6cb0) !important;
    border-color: var(--wvms-primary-color, #2b6cb0) !important;
}

.wvms-switcher .wvms-btn[data-style="bordered"].loading,
.wvms-switcher .wvms-btn[data-style="minimal"].loading {
    background-color: transparent !important;
    border-color: var(--wvms-primary-color, #2b6cb0) !important;
}

/* Mobile overrides */
@media (max-width: 768px) {
    .wvms-switcher.vertical .wvms-btn {
        background-color: var(--wvms-primary-color, #2b6cb0) !important;
        border-color: var(--wvms-primary-color, #2b6cb0) !important;
        color: #fff !important;
    }
    
    .wvms-switcher.vertical .wvms-btn[data-style="bordered"] {
        background: transparent !important;
        border-color: var(--wvms-primary-color, #2b6cb0) !important;
        color: var(--wvms-primary-color, #2b6cb0) !important;
    }
    
    .wvms-switcher.vertical .wvms-btn[data-style="minimal"] {
        background: transparent !important;
        border-color: transparent !important;
        color: var(--wvms-primary-color, #2b6cb0) !important;
    }
}