@charset "UTF-8";

/* 검색 모달창 */
.search_modal {
    display: none;
    position: fixed;
    z-index: 1000000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: flex-start;
}

.search-box {
    width: 100%;
    max-width: 500px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #fff;
    padding: 10px 0 10px 10px;
}

.search_modal.show .search-box {
    position: absolute;
    top: calc(50% - 100px);
    transform: translateY(-50%);
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .search-box {
        width: calc(100% - 40px) !important;
    }
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 25px;
    padding: 12px 0px;
    box-shadow: none;
    font-weight: 700;
}

.search-box input:-webkit-autofill,
.search-box input:-webkit-autofill:hover,
.search-box input:-webkit-autofill:focus,
.search-box input:-webkit-autofill:active {
    /*-webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
  -webkit-text-fill-color: #fff !important; */
    transition: background-color 9999s ease-in-out 0s;
}

.search-box input::placeholder {
    color: #fff;
}

.search-box button {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .search-box button {
        position: absolute;
        right: 0;
    }
}

.closeModal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 60px;
    color: #fff;
    cursor: pointer;
    font-weight: lighter;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #fff !important;
}

/* 모달이 떠 있을 때 FAB 터치 차단 */
body.modal-open .fab-wrapper {
    pointer-events: none;
}

@media (max-width: 768px) {
    .closeModal {
        top: 0;
        right: 0;
        font-size: unset;
    }
}