﻿/* 遮罩层样式 */
#overlay {
    z-index: 9997 !important;
}

.overlay {
    position: fixed;
    /* 使遮罩层覆盖整个页面 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.55);
    /* 使用半透明的黑色作为遮罩层背景 */
    z-index: 9999;
    /* 使遮罩层位于页面最上层 */
    display: none;
    /* 初始状态下隐藏遮罩层 */
}

/* 可选：在遮罩层上显示的内容 */
.overlay-body {
    position: absolute;
    /*top: 25%;
    left: 50%;*/
    width: 100%;
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.overlay-content {
    background-color: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    width: 84%;
    height: 70%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    gap: 40px;
    overflow: auto
}

.overlay-loading {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: 5px;
    display: flex;
}

.overlay-content .detail {
    /*width: 60%;*/
    gap: 25px;
    display: flex;
    flex-direction: column;
}

.overlay-content .name {
    font-family: Roboto;
    font-size: 40px;
    font-weight: bold;
    line-height: 42.19px;
    text-align: left;
    color: rgba(0, 0, 0, 1);
}

.overlay-content .descp {
    font-family: Roboto;
    font-size: 18px;
    font-weight: bold;
    /* line-height: 11.72px;*/
    text-align: left;
    color: rgba(153, 153, 153, 1);
    word-break: break-all;
    /*Height: 48px;*/
}

.overlay-content .requirement {
    /*padding: 0px 32px 0px 32px;*/
    gap: 10px;
    /*border: 1px 0px 0px 0px;*/
    /* min-height: 100px;*/
    display: flex;
    flex-direction: column;
    margin-bottom: auto;
}

.overlay-content .price {
    border-radius: 20px 0px 0px 0px;
    justify-content: space-between;
    display: flex;
}

.overlay-content .price .num {
    font-family: Roboto;
    font-weight: bold;
    line-height: 37.5px;
    text-align: left;
    color: rgba(199, 0, 0, 1);
    /*width: 108px;
            height: 38px;*/
    font-size: 40px;
}

.overlay-content .price .add {
    width: 91px;
    height: 51px;
    text-align: right;
    display: inline-block;
}

.overlay-content .requirement .attributeitem {
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

/*.overlay-content .requirement .attributeitem:last-child {
                border-bottom: 1px solid rgba(0, 0, 0, 0.15);
                border: 1px solid rgba(0, 0, 0, 0.15)
            }*/
.overlay-content .requirement .attributeitem .product_attribute {
    font-family: Roboto;
    font-size: 22px;
    font-weight: bold;
    line-height: 14px;
}

.overlay-content .requirement .attributeitem .bor {
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.25);
    height: 30px;
    border-radius: 12px 12px 12px 12px;

}

.overlay-content .requirement .attributeitem .bor .content {
    font-family: Roboto;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    padding: 5px 20px;
}

.overlay-content .requirement .attributeitem .bor_active {
    border: 1px solid #FBC338;
    color: rgba(0, 0, 0, 0.25);
    height: 30px;
    border-radius: 12px 12px 12px 12px;
}

.overlay-content .requirement .attributeitem .bor_active .content {
    font-family: Roboto;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    padding: 5px 20px;
    color: #FBC338;
}

.overlay-top {
    /*position: absolute;
    top: 8%;
    left: 55%;*/
    /*transform: translate(-50%, -50%);*/
    padding: 20px;
    border-radius: 5px;
    display: flex;
    width: 89%;
    justify-content: space-between;
    padding-top: 10px;
    gap: 50px;
    height: 10%;
    align-items: center;
}

.overlay-foot {
    /*position: absolute;
    top: 85%;
    left: 50%;*/
    /*transform: translate(-50%, -50%);*/
    padding: 20px;
    border-radius: 5px;
    display: flex;
    width: 84%;
    justify-content: space-between;
    padding-top: 10px;
    gap: 50px;
}

.overlay-foot .canItem {
    flex: 1;
    padding-top: 30px;
}

.overlay-foot .canItem .cancel {
    /*width: 200px;*/
    height: 80px;
    top: 564px;
    left: 285px;
    padding: 0px 50px 0px 50px;
    border-radius: 30px;
    justify-content: space-between;
    background: rgba(255, 255, 255, 1);
    display: flex;
    align-items: center;
    justify-content: center;

}

.overlay-foot .canItem .cancel .title {
    text-align: center;
    color: rgba(153, 92, 201, 1);
    /*font-family: Roboto;*/
    font-size: 24px;
    font-weight: bold;
    line-height: 28.13px;
    letter-spacing: 0.04em;
}

.overlay-foot .confItem {
    text-align: right;
    display: inline-block;
    padding-top: 30px;
    flex: 1;
}

.overlay-foot .confItem .pay {
    /*width: 200px;*/
    height: 140px;
    /*top: 564px;
            left: 697px;*/
    padding: 0px 50px 0px 50px;
    border-radius: 30px;
    justify-content: space-between;
    background-color: #000;
    color: rgba(177, 131, 213, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-foot .confItem .pay .title {
    text-align: center;
    color: #FBC338;
    font-size: 44px;
    font-weight: bold;
    line-height: 28.13px;
    letter-spacing: 0.04em;
}

@media (max-height: 321px) {

    .overlay-content {
        top: 20%;
    }

    .overlay-foot {
        top: 91%;
    }
}

@media (min-height: 321px) and (max-height: 371px) {

    .overlay-content {
        top: 32%;
    }

    .overlay-foot {
        top: 91%;
    }
}


@media (min-height: 371px) and (max-height: 401px) {

    .overlay-content {
        top: 38%;
    }

    .overlay-foot {
        top: 91%;
    }
}

@media (min-height: 401px) and (max-height: 451px) {

    .overlay-content {
        top: 40%;
    }

    .overlay-foot {
        top: 90%;
    }
}

@media (min-height: 451px) and (max-height: 551px) {

    .overlay-foot {
        top: 90%;
    }
}

@media (min-height: 601px) and (max-height: 700px) {

    .overlay-foot {
        top: 80%;
    }
}

@media (min-height: 701px) and (max-height: 800px) {

    .overlay-foot {
        top: 75%;
    }
}

@media (min-height: 801px) and (max-height: 901px) {

    .overlay-foot {
        top: 70%;
    }
}

@media (min-height: 901px) {

    .overlay-foot {
        top: 67%;
    }
}

#printNumInput:focus {
    outline: none;
}