/*
 * Floating Language Switcher v5.0.2
 * Styles for the floating button and modal.
 */

body.fls-modal-open {
    overflow: hidden;
}

.fls-floating-btn {
    display: flex;
    position: fixed;
    width: 60px;
    height: 60px;
    background-color: #0073aa;
    color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 999;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
}
.fls-floating-btn:hover {
    background-color: #005a87;
    transform: scale(1.1);
}
.fls-floating-btn .dashicons {
    font-size: 30px;
    width: auto;
    height: auto;
    line-height: 1;
}

/* --- Modal Styles (Centering Updated) --- */
.fls-lang-modal.uk-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1010;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(0.5rem);
    -webkit-backdrop-filter: blur(0.5rem);
    opacity: 0;
    transition: opacity .15s linear;
    /* Added for centering */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}
/* FIXED: Use a plugin-specific class '.fls-is-open' to avoid conflicts. */
.fls-lang-modal.fls-is-open {
    opacity: 1;
}
.fls-modal-dialog.uk-modal-dialog {
    position: relative;
    box-sizing: border-box;
    margin: 0; /* Removed auto margins */
    width: 520px;
    max-width: 100%; /* Use 100% to respect padding */
    background: #fff;
    opacity: 0;
    transform: translateY(-50px);
    transition: .3s linear;
    transition-property: opacity,transform;
}
/* FIXED: Use a plugin-specific class '.fls-is-open' to avoid conflicts. */
.fls-is-open > .fls-modal-dialog.uk-modal-dialog {
    opacity: 1;
    transform: translateY(0);
}
.fls-modal-dialog.uk-modal-body {
    padding: 30px;
}
.fls-modal-dialog .uk-modal-title {
    font-size: 20px;
    line-height: 1.4;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}
.fls-modal-dialog.round8 {
    border-radius: 8px;
}
.fls-modal-dialog .uk-modal-close-default {
    position: absolute;
    z-index: 1010;
    top: 10px;
    right: 10px;
    padding: 5px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
}
.fls-modal-dialog .uk-modal-close-default:hover {
    color: #666;
}

/* Version Number Display */
.fls-modal-dialog::after {
    content: "v" attr(data-version);
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 10px;
    color: #cccccc;
}

/* Custom Language Button Styles */
.fls-modal-dialog .fls-language-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}
.fls-modal-dialog .fls-lang-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background-color: #f1f1f1;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
}
.fls-modal-dialog .fls-lang-button:hover {
    background-color: #e7e7e7;
    transform: translateY(-2px);
    color: #0073aa;
}
.fls-lang-button .fls-lang-flag {
    font-size: 18px;
    margin-right: 8px;
}
