:root {
  --modal-head-h: 60px;
  --modal-footer-h: 60px;
  --checkbox-icon__background: #eaedf1;
  --checkbox-icon__background--hover: #eaedf1;
  --checkbox-icon__background--checked: #5d646b;
  --checkbox-icon__border: #eaedf1;
  --checkbox-icon__border--hover: #5d646b;
  --checkbox-icon__border--active: #5d646b;
}

.myselect-donor {
    display: none;
}

.locked-events {
    pointer-events: none;
}

.myselect-container {
    display: flex;
}

.myselect-widget__list-wrap {
    z-index: 99990;
    position: relative;
    display: block;
    transform: scaleY(0);
    transition: transform .3s ease;
}

.myselect-widget__list-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    list-style: none;
    border: solid 1px lightgray;
    border-radius: 5px;
    box-shadow: 1px 1px 5px -1px rgba(0, 0, 0, .3);
    background-color: white;
    max-height: 300px;
    overflow-y: auto;
}

.myselect-widget__container--active .myselect-widget__list-wrap {
    transform: scaleY(1);
}

.myselect-widget__button-wrap {}

.myselect-widget__button {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 5px 10px;
    border: solid 1px lightgray;
    border-radius: 0px;
    cursor: pointer;
    transition: border .3s ease;
}

.myselect-widget__button:hover {
    border-color: gray;
}

.myselect-widget__counter {
    padding: 0 5px;
}

.myselect-widget__counter-inner {
    background-color: black;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
}

.myselect-widget__button-content {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.myselect-widget__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5px;
    width: 30px;
    height: 20px;
    stroke: black;
}

.myselect-widget__icon>* {
    --size: 100%;
    width: var(--size);
    height: var(--size);
}

.myselect-widget__text {
    font-size: 14px;
}

.myselect-widget__text--placeholder {
    color: #333;
}

.myselect-widget__button-arrow {
    display: flex;
    align-items: center;
    pointer-events: none;
}

.myselect-widget__button-svg {
    transition: transform .3s ease;
}

.myselect-widget__container--active .myselect-widget__button-svg {
    transform: rotate(180deg);
}

.myselect-list {
    /* position: relative; */
    padding: 0;
    height: auto;
    list-style: none;
}

.myselect-list--sub {
    padding-left: 20px;
}

.myselect-list__item--sub {
    padding-left: 20px;
}

.myselect-list__item:not(:last-child) {
    margin-bottom: 5px;
}

.mycheckbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    outline: none;
    font-size: 14px;

    /* display: grid;
    grid-template-columns: auto 1fr;
    justify-items: start; */
}

.mycheckbox:focus {}

.mycheckbox__input {
    display: none;
}

.mycheckbox:hover .checkbox-icon {
    background-color: var(--checkbox-icon__background--hover);
    border-color: var(--checkbox-icon__border--hover);
}

.checkbox-icon svg {
    height: 8px;
    pointer-events: none;
}

.checkbox-icon path {
    color: #eaedf1;
    stroke-width: 1.4;
    pointer-events: none;
}

.mycheckbox__input:checked~.mycheckbox__icon {
    background-color: var(--checkbox-icon__background--checked);
    border-color: var(--checkbox-icon__border--active);
}

.mycheckbox__label {
    width: 100%;
    line-height: 1.5;
    cursor: pointer;
    -webkit-box-orient: horizontal;
    max-width: fit-content;
    max-width: -moz-fit-content;
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-arrow {
    display: block;
    width: 15px;
    height: 15px;
    fill: #a6a6a6;
    transition: transform .2s ease;
    pointer-events: none;
}

/* MYMULTYSELECT-POPAP */
.myselect-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    background-color: rgba(0, 0, 0, .7);
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 99993;
    opacity: 0;
    transition: opacity .3s ease;
}

.myselect-modal--toggled {
    visibility: visible;
    opacity: 1;
}

.myselect-modal__content {
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    margin: auto;
    transform: scale(0);
    transition: transform .3s ease;
    width: 100%;
    height: 100%;
    max-width: 500px;
}

.myselect-modal__container {
    position: relative;
    padding: 0 10px;
    height: 100%;
}

.myselect-modal__content--toggled {
    transform: scale(1);
}

.myselect-modal__header {
    height: var(--modal-head-h);
    box-shadow: 0 1px 10px 1px rgba(0, 0, 0, .1);
}

.myselect-modal__body {
    position: relative;
    height: calc(100% - var(--modal-head-h) - var(--modal-footer-h));
}

.myselect-modal__footer {
    height: var(--modal-footer-h);
}

.myselect-modal__header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 10px;
    height: 100%;
}

.myselect-modal__title {
    display: flex;
    align-items: center;
}

.myselect-modal__title-text {
    font-size: 20px;
    font-weight: 500;
}

.myselect-modal__close-btn {
    --size: 40px;
    display: flex;
    flex-shrink: 0;
    margin: auto 0;
    width: var(--size);
    height: var(--size);
    cursor: pointer;
    background: #eaedf1;
    border-radius: 100%;
    transition: background .2s ease;
}

.myselect-modal__close-btn:hover {
    background: #5d646b;
}

.myselect-modal__close-btn svg {
    --size: 20px;
    margin: auto;
    width: var(--size);
    height: var(--size);
    pointer-events: none;
}

.myselect-modal__close-btn svg path {
    transition: fill .2s ease;
    fill: #5e636c;
    pointer-events: none;
}

.myselect-modal__close-btn:hover svg path {
    fill: #fff;
}

.myselect-modal__close-btn * {
    pointer-events: none;
}

.myselect-modal__body-content {
    overflow-y: auto;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.myselect-modal__footer {
    z-index: 2;
    box-shadow: 0 -1px 10px -1px rgba(0, 0, 0, .1);
}

.myselect-hidden-elem {
    display: none !important;
}

.html-fixed, .html-fixed body {
    height: calc(var(--window-inner-height) - 1px);
    overflow: hidden;
    box-sizing: border-box;
}

@media screen and (min-width: 500px) {
    .myselect-modal__content {
        height: 80%;
        border-radius: 0px;
    }
}