.parent-modal-open {
    overflow: hidden !important;
}
.modal-detail-search {
    overscroll-behavior: contain;
}

.modal-detail-search__container {
    z-index: 10000;
}

.modal-detail-search__child-modal .modal-detail-search__container {
    z-index: 10001;
}

.modal-detail-search__header {
    position: relative;
    background-color: #333;
    padding: 20px !important;
    height: 70px;
}

.modal-detail-search__header a:hover {
    color: #fff;
}

.modal-detail-search__header-back {
    position: absolute;
    top: 35%;
    left: 7%;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    display: block;
}

.modal-detail-search__header-back::before {
    display: block;
    content: '';
    height: 10px;
    width: 10px;
    position: absolute;
    top: 30%;
    left: -50%;
    bottom: calc((60px - 2px - 1.8em) / 2 + 8px);
    border: 2px solid #fff;
    border-right: none;
    border-top: none;
    transform: rotate(45deg);
}

.modal-detail-search__header-back:focus {
    color: #fff;
    outline: unset;
    text-decoration: none;
}

.modal-detail-search__header-title {
    text-align: center;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
}

.modal-detail-search__header-title-supplement {
    position: absolute;
    top: 35%;
    right: 28%;
    font-size: 12px;
    padding-left: 5px;
    color: #fff;
}

.modal-detail-search__content {
    top: 40px;
    left: 5%;
    width: 100%;
    overflow-y: hidden !important;
    border-radius: 0;
    border: none;
}

.modal-detail-search__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 35px 0 25px;
    color: #333;
    min-height: 40px;
}

.modal-detail-search__trigger p {
    margin: 0;
    font-weight: 400;
    font-size: 16px;
}

.modal-detail-search__trigger:focus {
    color: unset;
    outline: none;
    text-decoration: none;
}

.modal-detail-search__body {
    padding: 0;
    overflow-y: scroll;
    height: 100%;
    background-color: #fff;
    overscroll-behavior: contain;
}

.modal-detail-search__range-container {
    padding: 0 25px;
}

.modal-detail-search__current-condition {
    max-width: 60%;
    color: #555;
}

.modal-detail-search__current-condition::after {
    display: block;
    content: '';
    height: 10px;
    width: 10px;
    position: absolute;
    top: 40%;
    right: 15px;
    bottom: calc((60px - 2px - 1.8em) / 2 + 8px);
    border: 2px solid #555;
    border-left: none;
    border-bottom: none;
    transform: rotate(45deg);
}

.modal-detail-search__footer {
    height: 100px;
    bottom: 0;
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-detail-search__footer-sp,
.modal-detail-search__child-modal-footer-sp {
    position: fixed;
    z-index: 10000;
    left: 0;
}
.modal-detail-search__footer--background {
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: #fff;
    z-index: -1;
}

.modal-detail-search__footer button {
    width: 45%;
    padding: 20px 0;
    margin-top: 20px;
    margin-bottom: 10px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    font-weight: bold;
}

.modal-detail-search__footer .clear-all,
.modal-detail-search__footer .clear {
    background-color: #fff;
    color: #333;
}

.modal-detail-search__footer .search {
    background-color: #333;
    color: #fff;
}

.modal-detail-search__content-row {
    position: relative;
    padding: 5px 0;
    border-bottom: 1px solid #e1e1e1;
}

.modal-detail-search__content-row input:not(.modal-detail-search__keyword-box input) {
    position: unset;
    margin: 0;
    width: 20px;
    height: 20px;
    -webkit-appearance: auto;
    accent-color: #525252;
}

.modal-detail-search__content-row input[type="radio"] {
    margin-left: -25px !important;
    z-index: -1;
    opacity: 0;
}

.modal-detail-search__content-row input[type="radio"] + label::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #525252;
    transform: translateY(-50%);
}

.modal-detail-search__content-row input[type="radio"]:checked + label::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 9px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #525252;
    transform: translateY(-50%);
    opacity: 1;
}

.modal-detail-search__content-row input:focus {
    outline: unset;
}

.modal-detail-search__content-row label {
    width: 100%;
    font-weight: 400;
    font-size: 16px;
    padding-left: 15px;
}

.modal-detail-search__content-row input[type="radio"] + label {
    padding-left: 40px;
}

.modal-detail-search__content-label::after {
    content: attr(data-item-total);
    margin: 0 0 0 5px;
}

.modal-detail-search__content-row--sub-label {
    font-size: 10px;
    line-height: normal;
}

/* サイズの表示制御用クラス */
.modal-detail-search__size-masking {
    display: none;
}

.modal-detail-search__keyword-box {
    position: relative;
    margin: 10px 15px;
}

.modal-detail-search__keyword-box .zeta-search-box {
    width: 100%;
    margin : 0;
}

.modal-detail-search__keyword-box input::placeholder {
    padding : 0 !important;
}

.modal-detail-search__keyword-box .zeta-search-box__search-history:has(div) {
    width : 100%;
}

.modal-detail-search__collapse button {
    border: none;
    background-color: #fff;
    width: 100%;
    text-align: start;
    min-height: 40px;
    padding: 0 25px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-detail-search__collapse .arrow::after {
    margin-top: 0;
}

.modal-detail-search__collapse .shopCode.arrow::before,
.modal-detail-search__collapse .shopCode.arrow::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 2px;
    background-color: black;
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 1s;
    z-index: 1000;
}

.modal-detail-search__collapse .shopCode.arrow::after {
    transform: translateY(-50%) rotate(90deg);
    transition: transform 1s;
}

.modal-detail-search__collapse .shopCode.arrow.active::before {
    opacity: 0;
}
.modal-detail-search__collapse .shopCode.arrow.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.modal-detail-search__collapse .shopCode .modal-detail-search__content-label {
    padding-left: 33px;
}

.modal-detail-search__collapse--input {
    background-color: #eee;
    min-height: 50px;
    height: fit-content;
}

.modal-detail-search__input-content {
    display: flex;
    align-items: center;
    padding: 5px 25px;
}

.modal-detail-search__input-content img {
    width: 25px;
    height: 25px;
    float: right;
}

/* PC表示 */
@media (min-width: 992px) {
    .modal-detail-search__body {
        min-height: calc(100dvh - 300px) !important;
        max-height: calc(100dvh - 300px) !important;
    }

    .modal-detail-search__header-close {
        position: absolute;
        top: 35%;
        right: 5%;
        color: #fff;
        font-size: 21px;
        font-weight: bold;
        display: block;
    }
}

/* SP表示 */
@media (max-width: 992px) {
    .modal-detail-search__dialog {
        margin: 0;
        width: 100%;
    }

    .modal-detail-search__body {
        max-height: unset !important;
        height: calc(100vh - 170px) !important;
        height: calc(100dvh - 170px) !important; /* iphone用 */
    }

    .modal-detail-search__content {
        position: unset;
        overflow: auto;
        max-height: unset !important;
        height: 100vh !important;
        height: 100dvh  !important; /* iphone用 */
    }

    .modal-detail-search__header-title-supplement {
        right: 10%;
    }
}
