.mgs-hide {
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.mgs-show {
    opacity: 1;
    visibility: visible;
    height: auto !important;
}

.mgs-modal {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    pointer-events: none;
}

.mgs-modal.mgs-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mgs-modal .mgs-modal__wrap {
    background: #fff;
    max-width: 640px;
    width: 100%;
    max-height: 413px;
    height: calc(100% - 40px);
    border-radius: 12px;
    box-shadow: 0 8px 8px -4px rgba(16, 24, 40, 0.03);
    overflow: hidden;
}

.mgs-modal .mgs-modal__input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid #E4E7EC;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.mgs-modal .mgs-modal__input:before {
    content: "";
    display: inline-flex;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M17.5 17.5L14.5834 14.5833M16.6667 9.58333C16.6667 13.4954 13.4954 16.6667 9.58333 16.6667C5.67132 16.6667 2.5 13.4954 2.5 9.58333C2.5 5.67132 5.67132 2.5 9.58333 2.5C13.4954 2.5 16.6667 5.67132 16.6667 9.58333Z' stroke='%23697586' stroke-width='1.66667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: .3s ease;
}

.mgs-modal .mgs-modal__input input {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    width: 100%;
    padding: 0;
    border: 0;
}

.mgs-modal .mgs-modal__input input::placeholder {
    color: #697586;
}

.mgs-modal .mgs-modal__content {
    max-height: calc(100% - 57px);
    overflow-y: auto;
}

.mgs-modal .mgs-modal__content::-webkit-scrollbar {
    width: 5px;
}

.mgs-modal .mgs-modal__content::-webkit-scrollbar-track {
    background: transparent;
}

.mgs-modal .mgs-modal__content::-webkit-scrollbar-thumb {
    background: #F3CC63;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.mgs-modal .mgs-modal__hint {
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    color: #697586;
    margin: 6px 18px;
    display: block;
    transition: 0.3s ease;
}

.mgs-modal .mgs-modal__section {
    padding: 16px 18px;
    transition: 0.3s ease;
}

.mgs-modal .mgs-modal__section:last-of-type {
    border-top: 1px solid #E4E7EC;
}

.mgs-modal .mgs-modal__section.mgs-hide + .mgs-modal__section {
    border-top: 0;
}

.mgs-modal .mgs-modal__section span {
    font-weight: 500;
    font-size: 14px;
    line-height: 150%;
    color: #697586;
}

.mgs-modal .mgs-modal__section ul {
    display: flex;
    flex-direction: column;
    gap: 2px;
    list-style: none;
    padding: 0;
    margin: 2px 0 0 0;
}

.mgs-modal .mgs-modal__section li {
    padding: 0;
    margin: 0;
}

.mgs-modal .mgs-modal__section a {
    display: block;
    font-weight: 500;
    font-size: 14px;
    line-height: 150%;
    text-decoration: none;
    color: #162241;
    padding: 8px 0;
}

.mgs-modal .mgs-modal__section a:hover {
    text-decoration: underline;
}

.mgs-empty-msg {
    font-weight: 400;
    font-size: 14px;
    color: #697586;
    padding: 8px 0;
}
