.custom-select-wrapper {
    position: relative;
    display: inline-block;
    max-width: 300px;
    font-family: Arial, sans-serif;
    padding-top:var(--wp--preset--spacing--20);
    padding-bottom:var(--wp--preset--spacing--20)
}

.custom-select-trigger {
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-select-trigger:after {
    content: "▼";
    font-size: 12px;
    color: #333;
    margin-left: 10px;
}

.custom-options {
    position: absolute;
    top: 100%;
    right: 0; /* Aligns the right edge with the parent's right edge */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: none;
    z-index: 999;
    /* max-height: 400px; */
    overflow-y: auto;
    width: auto; /* Allows the width to be determined by the content */
}

.custom-options.show {
    display: block;
}

.custom-option {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
    text-wrap: nowrap;
    white-space: nowrap;
    padding: 1rem 2rem;
}

.custom-option:hover {
    background-color: #f5f5f5;
}

.custom-select-wrapper .flag-icon {
    margin-right: 8px;
    --CountryFlagIcon-height: 1rem;
    border-radius: 2px;
}

/* The first child in the country switcher should have a border on the bottom and stand out */
.custom-option:first-child {
    border-bottom: 1px dotted var(--wp--preset--color--primary);
}

