/**
 * Intally ZhConvert — Frontend Styles
 *
 * Floating language switcher button.
 */

/* Switcher container */
.intally-zhconvert-switcher {
    position: fixed;
    z-index: 99999;
    display: flex;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.intally-zhconvert-switcher:hover {
    opacity: 1;
}

/* Position classes */
.intally-zhconvert-bottom-right {
    bottom: 20px;
    right: 20px;
}

.intally-zhconvert-bottom-left {
    bottom: 20px;
    left: 20px;
}

.intally-zhconvert-top-right {
    top: 20px;
    right: 20px;
}

.intally-zhconvert-top-left {
    top: 20px;
    left: 20px;
}

/* Switcher buttons */
.intally-zhconvert-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    border: 1px solid #ddd;
    transition: background 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

.intally-zhconvert-btn:first-child {
    border-right: none;
    border-radius: 20px 0 0 20px;
}

.intally-zhconvert-btn:last-child {
    border-left: none;
    border-radius: 0 20px 20px 0;
}

.intally-zhconvert-btn:hover {
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
}

.intally-zhconvert-btn.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.intally-zhconvert-btn.active:hover {
    background: #135e96;
}

/* Mobile: slightly larger touch target */
@media (max-width: 782px) {
    .intally-zhconvert-btn {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .intally-zhconvert-bottom-right,
    .intally-zhconvert-bottom-left {
        bottom: 15px;
    }

    .intally-zhconvert-bottom-right {
        right: 15px;
    }

    .intally-zhconvert-bottom-left {
        left: 15px;
    }
}
