/* Public marketing language menu (globe + current language + dropdown links). */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    position: relative;
    overflow: visible;
    padding-block: 0;
    padding-inline-start: 12px;
    padding-inline-end: 10px;
    background: #ffffff;
    border: 1px solid #e9d5ff;
    border-radius: 11px;
    box-sizing: border-box;
    color: #4c1d95;
    font-size: 14px;
}

.lang-switcher .lang-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #6b7280;
    pointer-events: none;
}

.lang-switcher-menu {
    position: static;
    margin: 0;
    flex: 1 1 auto;
}

.lang-switcher-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: inherit;
    line-height: 1.2;
    padding-block: 8px;
    padding-inline-end: 16px;
    color: inherit;
}

.lang-switcher-summary::-webkit-details-marker {
    display: none;
}

.lang-switcher-summary::after {
    content: '';
    width: 0;
    height: 0;
    margin-inline-start: 8px;
    border-inline-start: 4px solid transparent;
    border-inline-end: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.7;
}

.lang-switcher-panel {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-start: 0;
    inset-inline-end: auto;
    width: max-content;
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #e9d5ff;
    border-radius: 11px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
    z-index: 80;
}

.lang-switcher-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-weight: 600;
    font-size: inherit;
    line-height: 1.2;
    color: inherit;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.lang-switcher-link:hover,
.lang-switcher-link:focus-visible {
    background: rgba(147, 51, 234, 0.1);
}
