/* Floating Widget Button Only Styles - Minimal Load */
.wcusage-floating-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Default button color values */
    --wcusage-button-bg-color: #1b3e47;
    --wcusage-button-text-color: #ffffff;
    --wcusage-button-hover-color: #005d75;
    --wcusage-button-border-color: #1b3e47;
    
    /* Default widget theme color */
    --wcusage-widget-theme-color: #1b3e47;
}

.wcusage-floating-button {
    background: var(--wcusage-button-bg-color);
    color: var(--wcusage-button-text-color);
    border: 2px solid var(--wcusage-button-border-color);
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 4px #c6dde3;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcusage-floating-button:hover,
.wcusage-floating-button:active,
.wcusage-floating-button:focus {
    transform: translateY(-2px);
    background: var(--wcusage-button-hover-color);
    color: var(--wcusage-button-text-color);
    border: 2px solid var(--wcusage-button-border-color);
    box-shadow: 0 0 4px #bfd1d5;
}

/* Position styles */
.wcusage-floating-widget.wcusage-position-bottom-left {
    bottom: 20px;
    left: 20px;
    right: auto;
    top: auto;
}
.wcusage-floating-widget.wcusage-position-bottom-right {
    bottom: 20px;
    right: 20px;
    left: auto;
    top: auto;
}
.wcusage-floating-widget.wcusage-position-top-left {
    top: 20px;
    left: 20px;
    right: auto;
    bottom: auto;
}
.wcusage-floating-widget.wcusage-position-top-right {
    top: 20px;
    right: 20px;
    left: auto;
    bottom: auto;
}

/* Center positions */
.wcusage-floating-widget.wcusage-position-center-left {
    top: 50%;
    left: 20px;
    right: auto;
    bottom: auto;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wcusage-floating-widget.wcusage-position-center-right {
    top: 50%;
    right: 20px;
    left: auto;
    bottom: auto;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Vertical button styling for center positions */
.wcusage-floating-widget.wcusage-position-center-left .wcusage-floating-button,
.wcusage-floating-widget.wcusage-position-center-right .wcusage-floating-button {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    flex-direction: row;
    gap: 8px;
    padding: 20px 12px;
    min-height: 120px;
    align-items: center;
    justify-content: center;
}

.wcusage-floating-widget.wcusage-position-center-left .wcusage-floating-icon,
.wcusage-floating-widget.wcusage-position-center-right .wcusage-floating-icon {
    writing-mode: horizontal-tb;
    text-orientation: upright;
    margin-bottom: 0;
    margin-right: 0;
    flex-shrink: 0;
}

/* Hover effects for vertical buttons */
.wcusage-floating-widget.wcusage-position-center-left .wcusage-floating-button:hover,
.wcusage-floating-widget.wcusage-position-center-left .wcusage-floating-button:active,
.wcusage-floating-widget.wcusage-position-center-left .wcusage-floating-button:focus {
    transform: translateX(-2px);
}

.wcusage-floating-widget.wcusage-position-center-right .wcusage-floating-button:hover,
.wcusage-floating-widget.wcusage-position-center-right .wcusage-floating-button:active,
.wcusage-floating-widget.wcusage-position-center-right .wcusage-floating-button:focus {
    transform: translateX(2px);
}

/* Button size styles */
.wcusage-size-large .wcusage-floating-button {
    padding: 10px 20px;
    font-size: 20px;
}

.wcusage-size-medium .wcusage-floating-button {
    padding: 10px 14px;
    font-size: 16px;
}

.wcusage-size-small .wcusage-floating-button {
    padding: 8px 10px;
    font-size: 12px;
}

/* Button size styles for vertical buttons */
.wcusage-floating-widget.wcusage-position-center-left.wcusage-size-small .wcusage-floating-button,
.wcusage-floating-widget.wcusage-position-center-right.wcusage-size-small .wcusage-floating-button {
    padding: 16px 8px;
    font-size: 12px;
}

.wcusage-floating-widget.wcusage-position-center-left.wcusage-size-medium .wcusage-floating-button,
.wcusage-floating-widget.wcusage-position-center-right.wcusage-size-medium .wcusage-floating-button {
    padding: 20px 12px;
    font-size: 14px;
}

/* Floating Widget Icon Styles */
.wcusage-floating-icon {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    color: var(--wcusage-button-text-color);
}

/* Device-specific hiding classes */
@media (max-width: 767px) {
    .wcusage-floating-widget.wcusage-hide-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .wcusage-floating-widget.wcusage-hide-tablet {
        display: none !important;
    }
}

/* Media queries for device detection fallback */
@media (max-width: 767px) {
    .wcusage-floating-widget.wcusage-hide-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .wcusage-floating-widget.wcusage-hide-tablet {
        display: none !important;
    }
}

/* Mobile responsive */
@media (max-width: 480px) {
    .wcusage-floating-widget.wcusage-position-bottom-left {
        bottom: 10px;
        left: 10px;
        right: auto;
    }
    
    .wcusage-floating-widget.wcusage-position-bottom-right {
        bottom: 10px;
        right: 10px;
        left: auto;
    }
    
    .wcusage-floating-widget.wcusage-position-top-left {
        top: 10px;
        left: 10px;
        right: auto;
    }
    
    .wcusage-floating-widget.wcusage-position-top-right {
        top: 10px;
        right: 10px;
        left: auto;
    }
    
    .wcusage-floating-widget.wcusage-position-center-left {
        left: 10px;
        right: auto;
    }
    
    .wcusage-floating-widget.wcusage-position-center-right {
        right: 10px;
        left: auto;
    }
}

/* Popup placeholder - minimal styles */
.wcusage-floating-popup {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: auto;
    width: 440px;
    max-width: 90vw;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000000;
    overflow: hidden;
}

/* Adjust popup position for right-side buttons */
.wcusage-floating-widget.wcusage-position-bottom-right .wcusage-floating-popup,
.wcusage-floating-widget.wcusage-position-top-right .wcusage-floating-popup,
.wcusage-floating-widget.wcusage-position-center-right .wcusage-floating-popup {
    left: auto;
    right: 0;
}

.wcusage-popup-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}
