.se_grm-search-form {
    position: fixed;
    top: 0;
    height: 100dvh;
    width: 600px;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    background: #f2f2f2;
    margin: 0;
    padding: 50px 20px;
    z-index: 2048;
    box-shadow: 0px 10px 40px 0px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0px 10px 40px 0px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 10px 40px 0px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease-in-out;
}

.se_grm-search-form.desktop-left.close {
    left: -650px;
}
.se_grm-search-form.desktop-right.close {
    right: -650px;
}
.se_grm-search-form.desktop-left.open {
    left: 0;
}
.se_grm-search-form.desktop-right.open {
    right: 0;
}

/* Tablet and below — override desktop */
@media (max-width: 980px) {
    .se_grm-search-form.mobile-left.open {
        left: 0;
    }
    .se_grm-search-form.mobile-right.open {
        right: 0;
    }
    .se_grm-search-form.mobile-left.close {
        left: -650px;
    }
    .se_grm-search-form.mobile-right.close {
        right: -650px;
    }
}

.se_grm-search-form p {
    padding: 0;
}
.se_grm-search-form a {
    color: #808080;
}
.se_grm-search-form a:hover {
    color: #2ea3f2 !important;
}

.se_grm-search-form .se_grm_close {
    width: fit-content;
    border: 0;
    border-radius: 8px;
    font-size: 2rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.se_grm-search-form #se_grm_key {
    font-size: 1.2rem;
    border: 1px solid #808080;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

#se_grm_match_container {
    overflow: auto;
    flex-grow: 1;
    margin-right: -10px;
    padding: 10px;
    padding-right: 30px;
    scrollbar-width: thin; /* "auto" or "thin" */
    scrollbar-color: #888 #f1f1f1; /* thumb and track */
}

#se_grm_match_container::-webkit-scrollbar {
    width: 8px;
}

#se_grm_match_container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#se_grm_match_container::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
    border: 2px solid #f1f1f1;
}

#se_grm_match_container::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

.se_grm-search-form #se_grm_match_container ul,
.se_grm-search-form #se_grm_init_match ul {
    list-style: none;
    padding: 0;
}

.se_grm-search-form #se_grm_match_container ul li,
.se_grm-search-form #se_grm_init_match ul li {
    display: flex;
    flex-direction: column;
    background: white;
    margin: 10px 0;
    padding: 10px;
    border-radius: 8px;
    transition: 0.3s ease-in-out;
}

.se_grm-search-form #se_grm_match_container ul li:hover,
.se_grm-search-form #se_grm_init_match ul li {
    background: #003a5d !important;
    scale: 1.03;
    color: white !important;
    box-shadow: 0px 10px 40px 0px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0px 10px 40px 0px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 10px 40px 0px rgba(0, 0, 0, 0.2);
}

.se_grm-search-form #se_grm_init_match ul li {
    border: 3px solid #f7931f;
}

.se_grm-search-form #se_grm_match_container ul li:hover h3,
.se_grm-search-form #se_grm_init_match ul li:hover h3 {
    color: white !important;
}

.se_grm-search-form #se_grm_match_container ul li a.se_grm_link__visit,
.se_grm-search-form #se_grm_init_match ul li a.se_grm_link__visit {
    width: 150px;
    text-decoration: none !important;
}

.se_grm-search-form #se_grm_match_container ul li:hover a.se_grm_link__visit,
.se_grm-search-form #se_grm_init_match ul a.se_grm_link__visit {
    background: #f7931f;
    color: white !important;
    text-decoration: none !important;
}
.se_grm-search-form #se_grm_match_container ul li:hover a.se_grm_link__visit:hover,
.se_grm-search-form #se_grm_init_match ul li:hover a.se_grm_link__visit:hover {
    color: white !important;
    background: #ffb300;
}

.se_grm-search-form #se_grm_match_container ul li h3,
.se_grm-search-form #se_grm_init_match ul li h3 {
    margin: 10px 0;
    font-weight: bold !important;
}

.se_grm-search-form #se_grm_match_container ul li p,
.se_grm-search-form #se_grm_init_match ul li p {
    font-size: 0.8em;
}

.se_grm-search-form #se_grm_init_match ul li h3 {
    color: white !important;
    font-weight: bold !important;
}

.se_grm-search-form #se_grm_match_container ul li p,
.se_grm-search-form #se_grm_init_match ul li p {
    margin: 5px 0;
}
.se_grm-search-form .se_grm_item_content {
    flex-grow: 1;
    text-align: left;
}
.se_grm-search-form .se_grm_item_actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -10px;
}
.se_grm-search-form .se_grm_ratings_container,
.se_grm-search-form .se_grm_stars {
    display: flex;
    align-items: center;
}
.se_grm_ratings_container {
    gap: 5px;
}
#se_grm_status {
    margin: 5px 0;
}

.se_grm-search-form .se_grm_link__visit {
    text-align: center;
    padding: 5px 20px;
    background: #f7931f;
    color: white;
    border-radius: 50px;
    transition: 0.3s ease-in-out !important;
}
.se_grm-search-form .se_grm_link__visit:hover {
    scale: 1.03;
    background: rgba(255, 255, 255, 0.05);
}
.se_grm-search-form #se_grm_match_container .se_grm_item_actions .se_grm_stars {
    font-size: 0.8em;
    text-align: center;
    line-height: 0;
}
.se_grm-search-form #se_grm_match_container .se_grm_item_actions p.se_grm_reviews {
    font-size: 13px;
    text-align: center;
    margin: 0;
    margin-left: 5px;
    line-height: 0;
}

.se_grm_detloc {
    text-decoration: underline;
}

@media (max-width: 426px) {
    .se_grm-search-form #se_grm_match_container ul li,
    .se_grm-search-form #se_grm_init_match ul li {
        gap: 5px !important;
        flex-direction: column;
        background: #003a5d !important;
        color: white !important;
    }

    .se_grm-search-form #se_grm_match_container ul li h3,
    .se_grm-search-form #se_grm_init_match ul li h3 {
        color: white !important;
    }

    .se_grm-search-form #se_grm_init_match ul li {
        scale: 1;
    }

    .se_grm-search-form {
        width: 90%;
        max-width: unset;
        padding: 5px;
        padding-top: 30px;
    }
    .se_grm-search-form .se_grm_ratings_container {
        flex-direction: column;
    }
    #se_grm_match_container {
        padding: 10px;
        padding-top: 0px;
        padding-right: 10px;
        margin-right: 10px;
    }
}
