.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 base styles */
.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;
}

/* ===== FILLED BUTTON STYLES ===== */
.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-secondary-color, #e53e3e);
    border-color: var(--wvms-secondary-color, #e53e3e);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.wvms-btn[data-style="filled"].active {
    background: var(--wvms-secondary-color, #2f855a);
    border-color: var(--wvms-secondary-color, #2f855a);
    color: #fff;
    transform: /*translateY(-1px);*/
    box-shadow: 0 4px 12px rgba(47, 133, 90, 0.3);
}

.wvms-btn[data-style="filled"].active:hover {
    background: #38a169;
    border-color: #38a169;
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.4);
}

/* ===== BORDERED BUTTON STYLES ===== */
.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);
}

.wvms-btn[data-style="bordered"].active {
    background: transparent !important;
    border-color: var(--wvms-secondary-color, #2f855a) !important;
    color: var(--wvms-secondary-color, #2f855a) !important;
    box-shadow: 0 4px 12px rgba(47, 133, 90, 0.3);
}

.wvms-btn[data-style="bordered"].active:hover {
    border-color: #38a169 !important;
    color: #38a169 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.4);
}

/* ===== MINIMAL BUTTON STYLES ===== */
.wvms-btn[data-style="minimal"] {
    background: transparent;
    border: 2px solid transparent;
    color: var(--wvms-primary-color, #2b6cb0);
    opacity: 0.8;
}

.wvms-btn[data-style="minimal"]:hover {
    background: rgba(0, 0, 0, 0.05);
    opacity: 1;
    transform: translateY(-1px);
}

.wvms-btn[data-style="minimal"].active {
    background: rgba(47, 133, 90, 0.15);
    color: var(--wvms-secondary-color, #2f855a);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(47, 133, 90, 0.3);
}

.wvms-btn[data-style="minimal"].active:hover {
    background: rgba(56, 161, 105, 0.2);
    color: #38a169;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.4);
}

/* ===== SIZE VARIANTS ===== */
.wvms-btn[data-size="xsmall"] {
    padding: 4px 8px;
    font-size: 11px;
    min-height: 28px;
}

.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;
}

/* ===== LAYOUTS ===== */
.wvms-switcher.cluster {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    text-align: center;
}

.wvms-switcher.cluster .wvms-btn {
    flex: 1 1 auto;
    min-width: 70px;
    max-width: 150px;
    margin: 0;
    text-align: center;
    white-space: nowrap;
}

/* ===== MOBILE RESPONSIVE ===== */
@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;
    }
    
    .wvms-switcher.cluster {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 12px;
        text-align: center;
    }
    
    .wvms-switcher.cluster .wvms-btn {
        flex: 1 1 calc(33.333% - 8px);
        min-width: 60px;
        max-width: 120px;
    }
    
    .wvms-switcher.cluster .wvms-btn[data-size="xsmall"] {
        flex: 1 1 calc(25% - 8px);
        min-width: 40px;
        max-width: 60px;
        padding: 4px 8px;
        font-size: 11px;
        min-height: 28px;
    }
    
    .wvms-switcher.cluster .wvms-btn[data-size="small"] {
        flex: 1 1 calc(25% - 8px);
        min-width: 50px;
        max-width: 80px;
    }
    
    .wvms-switcher.cluster .wvms-btn[data-size="large"] {
        flex: 1 1 calc(50% - 8px);
        min-width: 80px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .wvms-switcher.cluster .wvms-btn {
        flex: 1 1 calc(50% - 8px);
        min-width: 55px;
        max-width: 100px;
    }
    
    .wvms-switcher.cluster .wvms-btn[data-size="xsmall"] {
        flex: 1 1 calc(25% - 6px);
        min-width: 35px;
        max-width: 50px;
        padding: 3px 6px;
        font-size: 10px;
        min-height: 25px;
    }
    
    .wvms-switcher.cluster .wvms-btn[data-size="small"] {
        flex: 1 1 calc(33.333% - 8px);
        min-width: 45px;
        max-width: 70px;
    }
    
    .wvms-switcher.cluster .wvms-btn[data-size="large"] {
        flex: 1 1 calc(100% - 8px);
        min-width: 70px;
        max-width: 100%;
    }
}

/* ===== WP-SCRIPT THEME OVERRIDES ===== */
.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, #e53e3e) !important;
    border-color: var(--wvms-secondary-color, #e53e3e) !important;
    color: #fff !important;
}

.wvms-switcher .wvms-btn[data-style="filled"].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="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="bordered"].active {
    background: transparent !important;
    border-color: var(--wvms-secondary-color, #2f855a) !important;
    color: var(--wvms-secondary-color, #2f855a) !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[data-style="minimal"].active {
    background: rgba(47, 133, 90, 0.15) !important;
    color: var(--wvms-secondary-color, #2f855a) !important;
    opacity: 1 !important;
    border-color: transparent !important;
}

.wvms-btn {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.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);
    }
}

.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);
}

.wvms-btn[data-size="xsmall"].loading::after {
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
}

.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;
}

.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;
}