/* Spanish Translator Pro Frontend Styles v2.8 */

/* Styles for the shortcode version of the switcher */
.spt-language-switcher-shortcode {
    display: inline-block;
    position: relative;
    vertical-align: middle;
}

/* Styles for the globe icon button */
.spt-language-switcher-shortcode .spt-switcher-icon {
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease-in-out;
}
.spt-language-switcher-shortcode .spt-switcher-icon:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.spt-language-switcher-shortcode .spt-switcher-icon .dashicons {
    font-size: 24px;
    color: #333333;
    line-height: 1;
}

/* The popup menu with language options */
.spt-language-switcher-shortcode .spt-switcher-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 110%; /* Position below the icon */
    right: 0;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    list-style: none;
    margin: 0;
    padding: 5px 0;
    width: 150px;
    z-index: 1000;
    overflow: hidden;
}

/* The .active class (toggled by JS) shows the menu */
.spt-language-switcher-shortcode.active .spt-switcher-menu {
    display: block;
}

/* Styles for each item in the language list */
.spt-language-switcher-shortcode .spt-switcher-menu li a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: #333333;
    font-size: 14px;
    white-space: nowrap;
}
.spt-language-switcher-shortcode .spt-switcher-menu li a:hover {
    background-color: #f0f0f1;
}
.spt-language-switcher-shortcode .spt-switcher-menu li a.active {
    font-weight: bold;
    color: #000000;
}