/* Wrapper for positioning */
.lang-selector-wrapper {
    position: relative;
    display: inline-block;
    height: fit-content;
}

/* Button styles - using ID and class for maximum specificity */
button#lang-modal-btn.lang-modal-button {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 8px 12px;
    background-color: #ffffff;
    border: 1px solid #000;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

button#lang-modal-btn.lang-modal-button:hover {
    background-color: #f5f5f5;
    border-color: #858585;
}

button#lang-modal-btn.lang-modal-button:active {
    background-color: #e8e8e8;
}

button#lang-modal-btn.lang-modal-button .lang-button-content {
    display: flex;
    align-items: end;
    gap: 6px;
}

button#lang-modal-btn.lang-modal-button .lang-icon {
    display: block;
    color: #000000;
    flex-shrink: 0;
}

button#lang-modal-btn.lang-modal-button .lang-code {
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    text-transform: uppercase;
    line-height: 1;
}

/* Dropdown list styles */
.lang-list {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: auto;
    min-width: 200px;
    background-color: #ffffff;
    border: 1px solid #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}
.lang-list form{
    margin: 0;
}

.lang-list.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-modal-list {
    padding: 4px;
}

.lang-option {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    box-sizing: border-box;
    text-align: left;
}

.lang-option:hover {
    background-color: #ececec;
}

.lang-option .lang-name {
    font-size: 14px;
    color: #333333;
    flex: 1;
}

.lang-option .lang-check {
    flex-shrink: 0;
    margin-left: 8px;
}
