.defusercontext-switcher {
    position: relative;
    display: inline-block;
    font-size: 0.875rem;
}

.defusercontext-trigger {
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 1.125rem;
    font-weight: 300;
    outline: none!important;
}

.defusercontext-trigger .defusercontext-trigger__country img{
    height: 32px;
    width: auto;
    margin-left: .125rem;
}


.defusercontext-trigger__separator {
    opacity: 0.6;
}

.defusercontext-panel {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 6000;
}

.defusercontext-panel.is-open {
    display: block;
}

.defusercontext-panel__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.defusercontext-panel__body {
    position: absolute;
    top: 0;
    right: 0;
    width: min(468px, 85vw);
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 18px rgba(0, 0, 0, 0.15);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-family: inherit;
}

.defusercontext-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.defusercontext-panel__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    font-size: 42px;
    transition: .3s;
    outline: none!important;
}

.defusercontext-panel__close:hover {
    opacity: .6;
}

.defusercontext-panel__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 28px;
    color: #000;
    font-style: italic;
}

.defusercontext-form {
    display: flex;
    flex-direction: column;
}

.defusercontext-section {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid #CCC;
}

.defusercontext-form .defusercontext-section:last-of-type{
    border-bottom: none;
}

.defusercontext-section__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.defusercontext-section__title {
    font-weight: 700;
    text-transform: uppercase;
}

.defusercontext-section__subtitle {
    font-size: 1.125rem;
    line-height: 28px;
    color: black;
    text-transform: uppercase;
    font-weight: 700;
}

.defusercontext-country-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 0.75rem;
}

.defusercontext-country-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    padding: .25rem;
    margin: 0;
}

.defusercontext-country-option:hover,
.defusercontext-country-option.is-selected {
    box-shadow: 0 0 0 2px rgba(230, 0, 35, 0.4);
}

.defusercontext-country-option input {
    display: none;
}

.defusercontext-country-option__flag {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.defusercontext-country-option__flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.defusercontext-country-option__label {
    font-weight: 600;
    font-size: 1rem;
    font-weight: 500;
    /* line-height: 28px; */
    text-align: start;
}

.defusercontext-language-grid {
    display: flex;
    gap: 2rem 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.defusercontext-language-option {
    border-radius: 999px;
    padding: .25rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
    margin: 0;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.defusercontext-language-option input {
    display: none;
}

.defusercontext-language-option:hover,
.defusercontext-language-option.is-selected {
    box-shadow: 0 0 0 2px rgba(230, 0, 35, 0.4);
}

.defusercontext-currency-select select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    border: 1px solid #000;
    font-size: 0.9rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("../img/others/arrow.svg");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 1.5rem;
    outline: none;
}

.defusercontext-form__actions {
    margin-top: auto;
    display: flex;
    justify-content: center;
}

.defusercontext-submit {
    background-color: #C80000;
    font-style: italic;
    font-size: 1rem;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    transition: filter 0.2s;
}

.defusercontext-submit:hover {
    filter: brightness(0.9);
}

body.defusercontext-panel-open {
    overflow: hidden;
}

