/* =====  Custom Google Search CSS Style  =====   */
.search_icon img {
    position: relative;
    cursor: pointer;
    z-index: 1;
    max-width: 100%;
    height: auto;
}

.black_overlay {
    display: none;
    position: fixed;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    /* background-color: rgba(234, 238, 242, 0.98); */
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    -moz-opacity: 1;
    opacity: 100%;
    overflow: auto;
    /*filter: alpha(opacity=88);*/
}

.white_content {
    display: none;
    position: absolute;
    top: 73PX;
    left: 25%;
    right: 25%;
    width: 50%;
}

.gsc-control-cse {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: auto;
    border-radius: 8px;
    height: calc(100vh - 200px) !important;
}

.gsc-webResult,
.gsc-above-wrapper-area {
    border: 0 !important;
}

.gsc-result-info {
    font-size: 14px !important;
}

.gsc-result-info-container {
    padding-left: 0 !important;
}

.search_close_btn {
    position: absolute;
    right: 160px;
    top: 140px;
    font-size: var(--global--font-size-xl);
    font-family: var(--global--font-primary);
    font-weight: 600;
    color: #0e2045;
    line-height: 40px;
    cursor: pointer;
    padding: 0 11px;
    border-radius: 50%;
    border: 3px solid #0e2045;
}

input.gsc-input,
.gsc-input-box,
.gsc-input-box-hover,
.gsc-input-box-focus {
    font-family: var(--global--font-primary) !important;
    background-color: #EAEEF2 !important;
    border: none !important;
    font-size: var(--global--font-size-xxxl);
}

table.gsc-search-box {
    border-bottom: solid #B9B8B8 1px !important;
    padding: 10px;
    /* background-color: #EAEEF2;  */
}

table.gsc-search-box td {
    background-color: #EAEEF2;
}

.gsc-control-cse {
    border-color: #FFFFFF;
    background-color: #FFFFFF;
    /* opacity: 0; */
}

.gsc-search-button-v2 svg {
    fill: #fff;
    width: 20px !important;
    height: 20px !important;
}

.gsc-search-button-v2 {
    width: 62px !important;
    height: 62px !important;
    border-radius: 30px !important;
    padding: 0 !important;
}

/* placeholder 兼容性样式, 火狐， IE,  webkit */
input.gsc-input::placeholder,
input.search-input::placeholder {
    width: 700px;
    font-size: 20px;
    font-weight: 400;
    color: #DFE2E6;
    line-height: normal !important;
    vertical-align: middle !important;
    font-family: var(--global--font-primary);
}

input.gsc-input::-moz-placeholder,
input.search-input::-moz-placeholder {
    width: 700px;
    font-size: 20px;
    font-weight: 400;
    color: #DFE2E6;
    line-height: normal !important;
    vertical-align: middle !important;
    font-family: var(--global--font-primary);
}

input.gsc-input::-webkit-input-placeholder,
input.search-input::-webkit-input-placeholder {
    width: 700px;
    font-size: 20px;
    font-weight: 400;
    color: #DFE2E6;
    line-height: normal !important;
    vertical-align: middle !important;
    font-family: var(--global--font-primary);
}

input.gsc-input::-ms-input-placeholder,
input.search-input::-ms-input-placeholder {
    width: 700px;
    font-size: 20px;
    font-weight: 400;
    color: #DFE2E6;
    line-height: normal !important;
    vertical-align: middle !important;
    font-family: var(--global--font-primary);
}

/* search table border 样式框外 border */
table.gsc-search-box td,
table.gsc-search-box th {
    border: none;
}

/* .loading-area {
    text-align: center;
    top: 8%;
    position: absolute;
    right: 20%;
    left: 20%;
} */

.loading-error {
    display: none;
    text-align: center;
    top: 5%;
    position: absolute;
    right: 20%;
    left: 20%;
    font-size: var(--global--font-size-xxl);
    color: #959DA3;
    line-height: 60px;
    font-family: var(--global--font-primary);
    font-weight: bold;
}

.loading-error a {
    font-size: var(--global--font-size-xl);
    font-family: var(--global--font-primary);
    font-weight: bold;
    text-decoration: underline;
    color: #E94235;
    line-height: 60px;
}

.gsc-above-wrapper-area table td {
    border: none;
}

/* ======== This is the end of Google custom Search  Style  ======  */
@media screen and (max-height:540px) {
    .gsc-control-cse {
        height: 540px !important;
    }
}

@media screen and (max-width:1000px) {
    .white_content {
        width: 91vw;
        left: 50%;
        right: 50%;
        transform: translate(-50%);
    }

    .search_close_btn {
        right: 30px;
        padding: 0 13px;
        top: 20px;
        font-size: 20px;
        line-height: 30px;
        padding: 0 10px;
    }
}

@media screen and (max-width:600px) {
    .gsc-search-button-v2 svg {
        width: 15px !important;
        height: 15px !important;
    }

    .gsc-search-button-v2 {
        width: 40px !important;
        height: 40px !important;
    }
}

@media screen and (max-width:500px) {
    .gsc-search-button-v2 svg {
        width: 15px !important;
        height: 15px !important;
    }

    .gsc-search-button-v2 {
        width: 40px !important;
        height: 40px !important;
    }
}

@media screen and (max-width:499px) {
    .search_close_btn {
        right: 60px;
    }
}

/* Rolling bar optimization */
.white_content ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.white_content ::-webkit-scrollbar-track {
    background: #f6f6f6;
    border-radius: 0 8px 8px 0;
}

.white_content ::-webkit-scrollbar-thumb {
    background: #cdcdcd;
    border-radius: 8px 15px 15px 8px;
}

.white_content ::-webkit-scrollbar-thumb:hover {
    background: #747474;
}

.white_content ::-webkit-scrollbar-corner {
    background: #f6f6f6;
}

.gsc-cursor-page.gsc-cursor-current-page {
    padding: 5px 10px 5px 10px !important;
    background: #E94235 !important;
    border-radius: 4px !important;
    color: #FFFFFF !important;
}

.gsc-cursor-page {
    padding: 5px 10px 5px 10px !important;
    background: #F0F2F5 !important;
    border-radius: 4px !important;
    color: #0E2045 !important;
}

@media (max-width: 768px) {
    .gsc-cursor-box.gs-bidi-start-align {
        border: 0 !important;
        background: #E94235 !important;
        border-radius: 102px !important;
    }

    .gsc-cursor-next-page,
    .gsc-cursor-numbered-page {
        color: #ffff !important;
    }

    .gsc-cursor-container-next svg,
    .gsc-cursor-container-previous svg {
        fill: #fff !important;
    }

    .gsc-cursor-box.gs-bidi-start-align {
        margin: 10px 0 !important;
    }

    .gsc-cursor-chevron {
        margin-left: 10px !important;
    }
}

.gcsc-more-maybe-branding-box {
    border: 0 !important;
}

.gsc-control-cse {
    min-width: 280px !important;
}

.search-keywords-box .keywords-card {
    height: 400px;
    display: flex;
    margin-top: 40px;
    z-index: 9999;
    position: absolute;
    top: 55px;
    left: 0;
    right: 0;
    bottom: 0;
}

.search-keywords-title {
    width: 130px;
    color: #fff;
}

.search-keywords-title img {
    margin-right: 12px;
}

.search-keywords-content {
    flex: 1;
}

.keywords-item {
    margin-bottom: 20px;
    border-radius: 10px;
    background: #fff;
    color: #0E2045;
    display: inline-block;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
}

.keywords-item:hover {
    background: #0E2045;
    color: #fff;
    transition: 0.5s all;
}

.search-input-box {
    display: flex;
    background: #ffff;
    height: 62px;
    border-radius: 10px;
}

.loading-area .area-card {
    width: 60px;
    height: 62px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-input-box .icon-search-box .search-card {
    width: 60px;
    height: 62px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-card {
    flex: 1;
}

.search-input {
    height: 62px;
    border: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding-left: 0 !important;
    font-size: 20px !important;
    line-height: normal !important;
    vertical-align: middle !important;
}

.search-input:focus {
    border: 0 !important;
    outline: none !important;
}

.search-input-box .icon-close-box .close-card {
    width: 60px;
    height: 62px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-input-box .icon-close-box .icon-close,
.search-input-box .icon-search-box .icon-search {
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-none {
        display: none;
    }

    .keywords-item {
        margin-bottom: 15px;
        padding: 8px;
    }

    .white_content {
        top: 25px;
    }

    .search-keywords-box .keywords-card {
        display: block;
        margin-top: 0;
        top: 65px;
    }

    .search-input-box {
        height: 52px;
    }

    .search-input {
        height: 52px;
    }

    .loading-area .area-card {
        height: 52px;
        width: 42px;
    }

    .search-input-box .icon-search-box .search-card {
        height: 52px;
        width: 42px;
    }

    .search-input-box .icon-close-box .close-card {
        height: 52px;
        width: 42px;
    }

    .search-keywords-title {
        width: 100%;
        margin-bottom: 20px;
    }

    .search-keywords-content {
        width: 100%;
    }
}

.gsc-search-box {
    display: none !important;
}

.gs-spelling a {
    color: #E94235 !important;
}

.gs-spelling a b i {
    font-style: normal !important;
}

.gs-spelling.gs-spelling-original a {
    font-size: 13px !important;
}

#loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #555;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-block;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.gsc-adBlock {
    border-bottom: 0 !important;
}

.gsc-webResult:first-child {
    padding-top: 0 !important;
}

.gsc-above-wrapper-area {
    height: 47px !important;
}

@media screen and (max-width:480px) {
    .gsc-above-wrapper-area {
        height: 77px !important;
    }
}