.atp-switcher {
    position: relative;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
}

.atp-switcher.atp-floating {
    position: fixed;
    z-index: 99999;
}
.atp-switcher.atp-pos-bottom-right { right: 20px; bottom: 20px; }
.atp-switcher.atp-pos-bottom-left  { left: 20px;  bottom: 20px; }
.atp-switcher.atp-pos-top-right    { right: 20px; top: 20px; }
.atp-switcher.atp-pos-top-left     { left: 20px;  top: 20px; }

.atp-switcher-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    line-height: 1;
}

.atp-switcher .atp-caret {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.15s ease;
}
.atp-switcher.atp-open .atp-caret {
    transform: rotate(180deg);
}

.atp-switcher-menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    min-width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.16);
    overflow: hidden;
    z-index: 1;
}
.atp-switcher.atp-pos-top-right .atp-switcher-menu,
.atp-switcher.atp-pos-top-left .atp-switcher-menu {
    bottom: auto;
    top: calc(100% + 6px);
}
.atp-switcher.atp-pos-bottom-left .atp-switcher-menu,
.atp-switcher.atp-pos-top-left .atp-switcher-menu,
.atp-switcher.atp-inline .atp-switcher-menu {
    right: auto;
    left: 0;
}

.atp-switcher.atp-open .atp-switcher-menu {
    display: block;
}

.atp-switcher-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    text-decoration: none;
    color: #222;
    white-space: nowrap;
}
.atp-switcher-item:hover {
    background: rgba(0,0,0,0.05);
}

.atp-flag { font-size: 16px; line-height: 1; }

/* Predefinições */
.atp-preset-default .atp-switcher-toggle {
    background: #fff;
    color: #222;
    border: 1px solid #e0e0e0;
}

.atp-preset-dark .atp-switcher-toggle {
    background: #111;
    color: #fff;
    border: 1px solid #111;
}
.atp-preset-dark .atp-switcher-menu {
    background: #111;
}
.atp-preset-dark .atp-switcher-item {
    color: #fff;
}
.atp-preset-dark .atp-switcher-item:hover {
    background: rgba(255,255,255,0.08);
}

.atp-preset-border .atp-switcher-toggle {
    background: #fff;
    color: #222;
    border: 2px solid #333;
}

.atp-preset-transparent .atp-switcher-toggle {
    background: linear-gradient(135deg, #4b6cb7, #8e37d7);
    color: #fff;
    border: none;
}

@media (max-width: 600px) {
    .atp-switcher.atp-floating {
        right: 12px;
        left: auto;
        bottom: 12px;
        top: auto;
    }
    .atp-switcher-toggle {
        padding: 8px 10px;
    }
}
