#root .ui-dialog.search-popup {
    top: var(--c-header-mobile) !important;
    left: 50%;
    flex: 1 1 100%;
    max-width: 800px;
   width:100%;
    overflow: hidden;
    transform:translate(-50%,0%)!important;
   
}
#root .desktop .ui-dialog.search-popup {
    top: var(--c-header-top) !important;
}

body .ui-dialog.search-popup .ui-dialog-titlebar {
    position: absolute;
    z-index: 1;
    right: 10px;
    top: 9px;
    border: 0;
    width: 34px;
    height: 34px;
    padding: unset;
    border-radius: unset;
}

body .ui-dialog.search-popup .ui-dialog-titlebar > span {
    display: none;
}

#root p-autocomplete.ui-inputwrapper-filled ~ a.search-clear {
    /* width: 45px; */
    /* height: 44px; */
    margin: auto 0;
    /* border: 1px solid var(--c-f-s); */
    border-radius: 20px;
    position: absolute;
    right: 45px;
    /* top: 8px; */
    padding: 4px 8px;
    /* color: var(--c-f); */
    text-transform: capitalize;
    /* background-image: url(/v1.203/r/images/site/icons/clearstake.svg); */
    /* background-repeat: no-repeat; */
    /* background-position: center; */
    background-color: var(--c-o2);
}

#root .mouse p-autocomplete.ui-inputwrapper-filled ~ a.search-clear:hover {
    color: var(--c-f);
    border-color: var(--c-f)
}

#root .ui-dialog.search-popup .ui-dialog-content {
    overflow: hidden;
    min-height: unset;
    padding: unset;
}

#root .ui-dialog.search-popup .inner-hide-modal-overlay {
    width: 100%;
}

#root .ui-dialog.search-popup .search-wrapper {
    text-align: center;
}

#root .ui-dialog.search-popup .search-label {
    display: none;
}

#root .ui-dialog.search-popup .ui-autocomplete {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: start;
}

#root .ui-dialog.search-popup .search-dropdown input {
    /* padding: 10px; */
    font-size: 1.2rem;
    background-color: var(--c-o3i);
    width: calc(100% - 17px);
    border-radius: 0;
    border: none;
    /* min-height:28px; */
}

#root p-autocomplete:not(.ui-inputwrapper-filled) ~ a.search-clear {
    transform: scale(0);
    position: absolute;
}

#root .ui-dialog.search-popup .ui-autocomplete .ui-autocomplete-panel {
    max-height: 50vh!important;
    position: unset;
    order: 2;
    background-color: unset;
}

#root .ui-dialog.search-popup .ui-autocomplete .ui-autocomplete-panel, #root .search-wrapper .ui-autocomplete-list {
    border-radius: 0;
    border: none;
    max-width: 100%;
}

#root .ui-dialog.search-popup .search-dropdown input:focus {
    background-color: var(--c-o2i);
}

#root .ui-dialog.search-popup .ui-autocomplete-list .ui-autocomplete-list-item, #root .mobile .ui-autocomplete-list .ui-autocomplete-list-item {
    color: inherit;
    border-bottom: 1px solid var(--c-o3i);
    white-space: normal;
}

#root .search-wrapper .ui-autocomplete-list {
    /* background-color: var(--c-o3i); */
    padding: 8px;
}

#root .ui-dialog.search-popup .ui-autocomplete-list .ui-autocomplete-list-item {
    padding: 0;
}

#root .ui-dialog.search-popup .ui-autocomplete-list .ui-autocomplete-list-item.ui-autocomplete-emptymessage {
    padding: 10px;
    background-color: unset;
    box-shadow: unset
}

#root .search-result .search-result-type {
    padding: 0 12px;
    text-transform: uppercase;
    font-style: italic;
    font-size: 0.7em;
    line-height: 27px;
    align-items: center;
    text-align: center;
    display: inline-flex;
    /* background-color: var(--c-o1i); */
}

#root .search-dropdown .search-result.search-match-wrapper:not(:first-child) .search-result-type {
    display: none
}

#root .search-match-type, #root .search-match-data, #root .search-match-info, #root .search-category-wrapper .search-match-type, #root .search-tournament-wrapper .search-match-type {
    display: flex;
    align-items: center;
}

#root .search-category-wrapper .search-match-type {
    padding: 6px;
    order: 1;
    flex: 1 1 100%;
}

#root .search-match-data {
    padding: 6px;
    /* width:calc(100% - 24px); */
    box-shadow: var(--x-d-t);
}

#root .search-tournament-wrapper .search-match-type {
    padding: 4px 0;
    /* width:calc(100% - 24px); */
}

#root .search-match-type div {
    /* padding-right: 5px; */
}

#root .search-match-type .search-match-code {
    font-size: 0.9rem;
    margin-left: 5px;
    padding-right: 0;
    display: none;
}

.search-result {
    opacity: 1;
    width: 100%;
    /* background-image: var(--c-background); */
    position: relative;
}

/* #root .search-match-type .default-sport {
    width: 32px;
    min-width: 32px;
    height: 100%;
    display:  inline-block;
    position:  relative;
    overflow: hidden;
} */
#root .search-match-type .default-flag, #root .search-match-type .default-sport {
    width: 20px;
    height: 16px;
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
    margin-right: 5px;
    /* margin-left: 5px; */
    border-radius: 4px;
    display: inline-block;
    position: relative;
}

#root .search-match-type .default-sport:before {
    /* width: 28px; */
    /* height: 100%; */
    /* padding: 0 5px; */
    font-size: 16px;
    line-height: 20px;
    /* margin: auto 0; */
    /* text-align: center; */
    position: absolute;
    left: 0;
    top: -2px;
    border-radius: 50%;
}

.search-result .search-match-tournament-category {
    display: flex;
    align-items: center;
}

.search-result .search-match-tournament-category {
    font-size: 0.8rem;
    /* text-transform: uppercase; */
    /* color: var(--c-white); */
}

.search-result .search-match-tournament-category .search-match-tournament {
    /* color: var(--c-white-e); */
    padding: 0 5px;
}

#root .search-match-data .search-match-sport, #root .search-match-data .default-flag, #root #app-body .search-match-data .default-sport, #root .search-category-wrapper > .search-match-sport, #root .search-match-period {
    display: none;
}

#root .search-match-info {
    flex-direction: row;
    /* margin-left: auto; */
    /* margin-right: 5px; */
    align-items: flex-end;
    justify-content: flex-end;
    font-size: 0.9rem;
    /* width: 80px; */
    order: 2;
    flex: 0 0 auto;
    background-color: var(--c-o1i);
    padding: 2px 5px;
    border-radius: var(--r);
}

#root .search-match-date {
    white-space: nowrap;
    margin-right: 5px;
}

#root .search-match-time {
    /* font-weight: bold; */
    color: var(--c-f-s);
}

#root .search-match-date {
    color: var(--c-f-d)
}

#root .search-match-name {
    /* margin-left: 0; */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: capitalize;
    /* max-width: calc(100% - 90px); */
    flex: 1 1 auto;
}

#root .search-category-wrapper .search-match-type > div, #root .search-tournament-wrapper .search-match-type .search-match-tournament-category > div {
    /* text-transform: uppercase; */
    font-size: 1rem
}

#root .match-is-live .search-match-time {
    color: var(--o-green-a);
    padding-right: 5px;
    font-weight: 400;
}

#root .match-is-live .search-match-score {
    color: var(--o-green-a);
    font-weight: bold;
}

#root .bottom-navbar .search-outer {
    background-color: var(--o-primary);
    display: flex;
    width: 100%;
    overflow: hidden;
    padding-bottom: 16px;
    margin-bottom: -16px;
    position: fixed;
    bottom: var(--c-bottom-navbar);
    box-shadow: var(--x-surface-b);
    border-radius: var(--r-t-x2);
    transform-origin: bottom center;
    transition: transform 0.2s ease
}

#root .bottom-navbar .search-outer .ui-autocomplete-panel {
    position: unset;
    border: 0;
    border-radius: 0;
    overflow-x: hidden;
    order: -1;
    color: var(--c-f);
    box-shadow: unset;
    /* margin-bottom:  8px; */
    background-color: var(--o-primary);
    overflow-y: auto;
    /* padding: 8px; */
}

#root .bottom-navbar .search-outer .search-label {
    display: none;
}

#root.active-mobile-search-open .mobile-search-open {
    bottom: var(--c-header-mobile)!important;
    top: unset!important;
    left: 0px!important;
    position: fixed!important;
    background-color: var(--o-primary);
    margin-bottom: 0px;
    width: 100%;
    display: flex!important;
    border-color: transparent;
    box-shadow: unset;
}

#root .mobile-search-open .ui-overlaypanel-content {
    padding: 0px;
    width: 100%;
}

#root app-search, #root app-search p-autocomplete, #root app-search p-autocomplete .ui-autocomplete, #root app-search p-autocomplete .ui-autocomplete input {
    display: block;
    width: 100%;
}

#root app-search p-autocomplete .ui-autocomplete {
    display: flex;
    flex-direction: column;
    color: var(--c-f);
}

#root:not(.mobile-search-open) .search-outer input {
    /* opacity:0; */
    transition: opacity 0.2s ease;
}

#root .mobile-search-open .search-outer input {
    border: 0;
    box-shadow: inset -2px -2px 3px var(--c-shade-b), inset 2px 2px 3px var(--c-shade-b);
    background-color: var(--o-primary-c);
    border: 1px solid var(--o-primary-b);
    border-radius: 3px;
}

#root app-search p-autocomplete .ui-autocomplete-list-item {
    padding: 0px;
    border-bottom: 0!important;
    background-color: var(--o-primary-b);
    box-shadow: var(--x-surface-b);
    border-radius: var(--r-d2);
    overflow: hidden;
    margin-bottom: 4px;
}

#root .bottom-navbar p-autocomplete.ui-inputwrapper-filled ~ a.search-clear {
    height: 23px;
    background-size: 24px;
    right: 13px;
    bottom: 28px;
    order: 1
}

#root app-search p-autocomplete.search-dropdown .ui-autocomplete input {
    padding-right: 50px;
    color: var(--c-f);
    order: 1;
    border-radius: var(--r-x2);
    margin: 8px;
    width: calc(100% - 16px);
}

#root app-search p-autocomplete .ui-autocomplete input::placeholder {
    color: var(--c-f-d)
}

#root:not(.mobile-search-open) .bottom-navbar .search-outer {
    transform: scaleY(0);
}

#root.mobile-search-open .bottom-navbar .search-outer {
    transform: scaleY(1);
}

#root.mobile-search-open .bottom-navbar .navbar-item.search {
    color: var(--o-blue-a)
}

#root .mobile-search-open.ui-overlaypanel.ui-overlaypanel-flipped:before, #root .mobile-search-open.ui-overlaypanel.ui-overlaypanel-flipped:after {
    right: 20%!important;
    left: unset!important;
    margin: 0;
    border-width: 10px;
    display: none;
}

#root .mobile-search-open.ui-overlaypanel.ui-overlaypanel-flipped:before {
    border-top-color: var(--o-primary-c);
}

#root .mobile-search-open.ui-overlaypanel.ui-overlaypanel-flipped:after {
    border-top-color: var(--o-primary-c);
}

#root .bottom-navbar .navbar-item.search {
    position: relative;
}

/* #root.mobile-search-open .bottom-navbar .navbar-item.search::before {
    content: "";
    width: 15px;
    height: 15px;
    background-color: var(--o-primary-c);
    position: absolute;
    top: -10px;
    transform: rotate(45deg);
}
 */
#root .search-result.search-match-wrapper .search-match-type {
    padding: 6px;
    flex: 1 1 0%;
    /* background-color: var(--c-o1i); */
    position: relative;
    order: -1;
}

#root .search-result.search-match-wrapper .search-match-type .search-match-tournament-category {
    color: var(--c-f-s);
}

#root .search-result.search-match-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
app-result-type-match {
    display:flex;
    width:100%;
}
#root .search-result.search-match-wrapper > * > div {
    flex:1;
    display:inline-flex;
    flex-wrap: wrap;
}

#root .search-result .search-result-type {
    display: inline-flex;
    /* background-color: var(--c-o2i); */
    order: 2;
}

#root .search-result.search-match-wrapper .search-match-data {
    flex: 1 0 100%;
    order: 2;
}

#root .search-result.search-match-wrapper .search-match-data {
    flex: 1 1 100%;
}

#root .search-result.search-match-wrapper .search-match-data .search-match-name {
    flex: 1 1 0%;
    overflow: hidden;
    display: inline-flex;
    white-space: normal;
}

#root .search-result.search-category-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 31px;
    box-shadow: var(--x-d-b);
    /* background-color: var(--c-o1i); */
}

#root .search-result.search-category-wrapper .search-result-type {
    order: 2
}

#root .search-result.search-category-wrapper .search-match-type >div {
    font-size: 0.8em
}

#root .search-result.search-category-wrapper .search-match-type .search-match-category {
    position: absolute;
    bottom: -23px;
    font-size: 1em;
}

#root .search-result.search-sport-wrapper {
    display: flex;
}

#root .search-result.search-sport-wrapper .search-match-type {
    flex: 1 1 0%;
    padding: 6px
}

#root .search-result.search-sport-wrapper .search-result-type {
    display: inline-flex;
    order: 2
}

#root .search-result.search-tournament-wrapper {
    justify-content: flex-end;
    display: flex;
}

#root .search-result.search-tournament-wrapper .search-match-type {
    flex: 1 1 100%;
    flex-wrap: wrap;
    /* margin-bottom: 23px; */
}

#root .search-result.search-tournament-wrapper .search-result-type {
    order: 2;
    position: absolute;
}

#root .search-result.search-tournament-wrapper .search-match-sport {
    display: none
}

#root .search-result.search-tournament-wrapper .search-match-type .default-sport, #root .search-result.search-tournament-wrapper .search-match-type .default-flag {
    margin: 2px 0px 6px 6px;
}

#root .search-result.search-tournament-wrapper .search-match-tournament-category {
    padding: 8px 4px;
    flex: 1 1 100%;
    box-shadow: var(--x-d-t);
}

#root .search-result.search-tournament-wrapper .search-match-tournament-category .search-match-category {
    display: inline-flex;
    order: 2;
    /*     color: var(--c-o3); */
}

#root .search-result.search-tournament-wrapper .search-match-tournament-category .search-match-category:before {
    content: "-";
    padding-right: 5px;
}
