/* popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 1000;
    overflow: hidden;
    max-width: 642px;
    margin: 0 auto;
    font-family: -apple-system,system-ui,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,PingFang SC,SF UI Text,Arial,Hiragino Sans GB,Microsoft YaHei,WenQuanYi Micro Hei;
}

@media(min-width:642px) {
    .popup {
        display: none;
        position: fixed;
        top: 0;
        bottom: 0;
        left: calc(50% - 321px);
        width: 100%;
        height: 100%;
        background-color: #fff;
        z-index: 1000;
        overflow: hidden;
        max-width: 642px;
        margin: 0 auto;
        font-family: -apple-system,system-ui,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,PingFang SC,SF UI Text,Arial,Hiragino Sans GB,Microsoft YaHei,WenQuanYi Micro Hei;
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 2.875rem;
    padding: 0 0.625rem;
}

.back-icon {
    margin-left: 0.625rem;
    width: 0.5625rem;
    height: 17.0.125rem;
}

.popup-header-right {
    display: flex;
    align-items: center;
}

.service-wrapper {
    width: 3.375rem;
    height: 1.375rem;
    background: #ffffff;
    border-radius: 0.6875rem 0.6875rem 0.6875rem 0.6875rem;
    border: 0.0625rem solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.625rem;
    font-weight: 400;
    font-size: 0.8125rem;
    color: #6b6b6b;
    line-height: 1.125rem;
    gap: 0.125rem;
}

    .service-wrapper img {
        width: 0.75rem;
        height: 0.75rem;
    }

.popup-main {
    display: flex;
}

.popup-main-left {
    width: 24%;
    background: #f6f6f6;
    padding-top: 1.5625rem;
}

.popup-main-left-item {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 400;
    font-size: 0.875rem;
    color: #171717;
    line-height: 0.875rem;
}

.popup-main-right {
    flex: 1;
    height: calc(100vh - 2.875rem);
    overflow-y: scroll;
    padding: 0.9375rem 1.25rem 7.125rem;
}

    .popup-main-right h1 {
        margin-top: 0.625rem;
    }

.popup-main-right-bottom {
    position: absolute;
    bottom: 0;
    padding-bottom: 1.25rem;
    width: 68%;
    max-width: 21.25rem;
    background-color: #fff;
}

@media(min-width:642px) {
    .popup-main-right-bottom {
        width: calc(642px * 0.68 - 1.25rem) !important;
    }
}

.popup-main-right-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #171717;
    line-height: 0.875rem;
    margin-bottom: 0.625rem;
}

.popup-main-right-item-box {
    margin-top: 0.625rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.popup-main-right-item {
    width: 30%;
    height: 1.875rem;
    background: #f7f7f7;
    border-radius: 0.25rem 0.25rem 0.25rem 0.25rem;
    font-weight: 400;
    font-size: 0.875rem;
    color: #4b4b4b;
    line-height: 1.875rem;
    text-align: center;
}

.popup-main-right-count-box {
    display: flex;
    align-items: center;
    gap: 0.6875rem;
}

.popup-main-right-count {
    font-weight: 400;
    font-size: 0.875rem;
    color: #171717;
    line-height: 0.875rem;
}

.popup-main-right-btn {
    margin-top: 1rem;
    display: flex;
    gap: 0.6875rem;
}

.popup-main-right-btn-left {
    height: 2.5rem;
    background: #f5f5f5;
    border-radius: 0.25rem 0.25rem 0.25rem 0.25rem;
    flex: 1;
    font-weight: 400;
    font-size: 1rem;
    color: #191919;
    line-height: 2.5rem;
    text-align: center;
}

.popup-main-right-btn-right {
    height: 2.5rem;
    background: #fb4e4e;
    border-radius: 0.25rem 0.25rem 0.25rem 0.25rem;
    flex: 1;
    font-weight: 400;
    font-size: 1rem;
    color: #ffffff;
    line-height: 2.5rem;
    text-align: center;
}

.header-right-img img {
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 100%;
}

.type-active {
    font-weight: 600;
    font-size: 0.875rem;
    color: #ee3232;
    line-height: 0.875rem;
}

.subtype-active {
    background: #f9eef0;
    color: #ee3232;
}

.count-active {
    color: #ee3232;
}

.placeholder {
    height: 9.375rem;
}
