.pclab-wpml-swap-button-wrap {
    display: flex;
    width: 100%;
    align-items: center;
}

.pclab-wpml-swap-button-wrap--left { justify-content: flex-start; }
.pclab-wpml-swap-button-wrap--center { justify-content: center; }
.pclab-wpml-swap-button-wrap--right { justify-content: flex-end; }

.pclab-wpml-swap-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 42px;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.pclab-wpml-swap-button:hover,
.pclab-wpml-swap-button:focus {
    background: #2b2b2b;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.pclab-wpml-swap-button__flag {
    width: auto;
    height: auto;
    max-width: 120px;
    display: block;
    margin: 0 auto;
    border-radius: 0;
    object-fit: contain;
    background: transparent !important;
    box-shadow: none !important;
}

.pclab-wpml-swap-button__custom-image { flex: 0 0 auto; }
.pclab-wpml-swap-button__custom-image {
    width: var(--pclab-flag-width, 22px) !important;
    max-width: var(--pclab-flag-width, 22px) !important;
    height: auto !important;
}

@media (max-width: 767px) {
    .pclab-wpml-swap-button__custom-image {
        width: var(--pclab-flag-mobile-width, var(--pclab-flag-width, 22px)) !important;
        max-width: var(--pclab-flag-mobile-width, var(--pclab-flag-width, 22px)) !important;
        height: auto !important;
    }
}

/* v1.0.9: desktop and smartphone sizes are controlled with CSS variables, so mobile can have a different flag width. */

/* Shows your uploaded PNG exactly as-is, without black/grey pill background. */
.pclab-wpml-swap-button.pclab-flag-only {
    min-width: 0;
    min-height: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    line-height: 0;
}

.pclab-wpml-swap-button.pclab-flag-only:hover,
.pclab-wpml-swap-button.pclab-flag-only:focus {
    background: transparent !important;
    transform: none;
    opacity: 0.86;
}

.pclab-wpml-swap-button.pclab-flag-only .pclab-wpml-swap-button__label {
    line-height: 1;
    margin-left: 7px;
}

.pclab-wpml-swap-button.pclab-pill {
    background: #111111;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
}

.pclab-wpml-swap-button.pclab-light {
    background: #ffffff;
    color: #111111;
    border-color: rgba(0, 0, 0, 0.12);
}

.pclab-wpml-swap-button.pclab-outline {
    background: transparent;
    color: inherit;
    border-color: currentColor;
}

.pclab-wpml-swap-button.pclab-square { border-radius: 8px; }
.pclab-wpml-swap-button--disabled { opacity: 0.55; cursor: default; }

.pclab-wpml-swap-button .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
