/* Country Dropdown Widget Styles */

.country-dropdown-wrapper {
    position: relative;
    display: inline-block;
	margin: 0 20px;
}

.country-dropdown-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-decoration: none;
}

.country-dropdown-button .country-flag-display {
    font-size: 20px;
    line-height: 1;
}

.country-dropdown-button:hover {
    color: #007bff;
}

.country-dropdown-button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Flag image in button - using emoji instead */
.country-dropdown-button .country-flag-img {
    display: none;
}
.main-menu .main-menu__list > li + li {
    width: 100px;
}

.main-menu .main-menu__list > li > a {
	justify-content: center;
}
/* Dropdown menu */
.country-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Show menu for click trigger */
.country-dropdown-click .country-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Show menu for hover trigger */
.country-dropdown-hover:hover .country-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown items */
.country-dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    gap: 10px;
}

.country-dropdown-item .country-flag-item {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    min-width: 24px;
}

.country-dropdown-item > span:not(.country-flag-item):not(.country-short-code) {
    flex: 1;
}

.country-dropdown-item:hover {
    background-color: #007bff;
    color: #fff;
}

.country-dropdown-item:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

/* Scrollbar styling */

.country-dropdown-item .country-short-code {
    margin-left: auto;
    padding-left: 10px;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.country-dropdown-item:hover .country-short-code {
    color: inherit;
}

/* Scrollbar styling */
.country-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.country-dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.country-dropdown-menu::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.country-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .country-dropdown-menu {
        width: 100%;
        left: auto;
        right: 0;
    }

    .country-dropdown-button {
        font-size: 13px;
    }

    .country-dropdown-item {
        font-size: 13px;
    }
}

/* Accessibility */
.country-dropdown-button:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.country-dropdown-item:focus {
    outline: none;
    background-color: #0056b3;
    color: #fff;
}
