﻿
/* RFQ Popup */
.stock-rfq-mask{
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.58);
    z-index:9998;
    display:none;
}

.stock-rfq-popup{
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    z-index:9999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
    box-sizing:border-box;
}

.stock-rfq-box{
    width:620px;
    max-width:100%;
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    position:relative;
    box-shadow:0 24px 70px rgba(0,0,0,.25);
    animation:stockRfqShow .25s ease both;
}

@keyframes stockRfqShow{
    from{opacity:0;transform:translateY(20px) scale(.96);}
    to{opacity:1;transform:translateY(0) scale(1);}
}

.stock-rfq-close{
    position:absolute;
    right:18px;
    top:18px;
    width:36px;
    height:36px;
    border-radius:50%;
    background:rgba(255,255,255,.18);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    z-index:2;
    transition:all .25s ease;
}

.stock-rfq-close:hover{
    background:#fff;
    color:#00876D;
}

.stock-rfq-head{
    display:flex;
    align-items:center;
    gap:16px;
    padding:28px 34px;
    background:linear-gradient(135deg,#00876D 0%,#00a886 100%);
    color:#fff;
}

.stock-rfq-icon{
    width:58px;
    height:58px;
    border-radius:18px;
    background:rgba(255,255,255,.18);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    flex-shrink:0;
}

.stock-rfq-head h3{
    margin:0;
    padding:0;
    font-size:26px;
    line-height:34px;
    color:#fff;
    font-weight:bold;
}

.stock-rfq-head p{
    margin:5px 0 0;
    padding:0;
    font-size:14px;
    line-height:22px;
    color:rgba(255,255,255,.88);
}

.stock-rfq-product{
    margin:24px 30px 0;
    padding:18px;
    border:1px solid #dceee9;
    border-radius:16px;
    background:#f5fbf9;
}

.stock-rfq-product-title{
    font-size:15px;
    color:#1d3b35;
    font-weight:bold;
    margin-bottom:12px;
}

.stock-rfq-product-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
}

.stock-rfq-product-grid div{
    background:#fff;
    border-radius:12px;
    padding:10px;
    border:1px solid #e4f1ed;
}

.stock-rfq-product-grid span{
    display:block;
    font-size:12px;
    line-height:18px;
    color:#7b908b;
}

.stock-rfq-product-grid strong{
    display:block;
    margin-top:4px;
    font-size:14px;
    line-height:20px;
    color:#00876D;
    word-break:break-all;
}

.stock-rfq-form{
    padding:24px 30px 30px;
}

.stock-rfq-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.stock-rfq-item{
    margin-bottom:16px;
}

.stock-rfq-item label{
    display:block;
    font-size:14px;
    line-height:22px;
    color:#233c37;
    font-weight:600;
    margin-bottom:7px;
}

.stock-rfq-item label span{
    color:#e53935;
    margin-right:3px;
}

.stock-rfq-item input,
.stock-rfq-item textarea{
    width:100%;
    height:44px;
    border:1px solid #d8e8e4;
    border-radius:12px;
    background:#fff;
    padding:0 14px;
    font-size:14px;
    color:#233c37;
    box-sizing:border-box;
    outline:none;
    transition:all .22s ease;
}

.stock-rfq-item textarea{
    height:92px;
    padding:12px 14px;
    resize:none;
    line-height:22px;
}

.stock-rfq-item input:focus,
.stock-rfq-item textarea:focus{
    border-color:#00876D;
    box-shadow:0 0 0 3px rgba(0,135,109,.12);
}

.stock-rfq-submit{
    width:100%;
    height:48px;
    border:none;
    border-radius:14px;
    background:#00876D;
    color:#fff;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
    transition:all .25s ease;
}

.stock-rfq-submit i{
    margin-right:6px;
}

.stock-rfq-submit:hover{
    background:#006f5a;
    box-shadow:0 12px 26px rgba(0,135,109,.25);
    transform:translateY(-1px);
}

.stock-rfq-submit:disabled{
    opacity:.7;
    cursor:not-allowed;
    transform:none;
    box-shadow:none;
}

.stock-rfq-btn{
    background:#00876D !important;
    color:#fff !important;
    border-radius:20px;
    padding:6px 16px;
    display:inline-block;
    transition:all .25s ease;
}

.stock-rfq-btn:hover{
    background:#006f5a !important;
    color:#fff !important;
}

/* 批量 RFQ 工具栏 */
.stock-rfq-toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    margin-bottom:18px;
    padding:14px 18px;
    background:#f5fbf9;
    border:1px solid #dceee9;
    border-radius:14px;
}

.stock-check-all{
    display:flex;
    align-items:center;
    gap:8px;
    cursor:pointer;
    color:#233c37;
    font-size:14px;
    font-weight:600;
}

.stock-check-all input,
.stock-row-check input{
    width:16px;
    height:16px;
    accent-color:#00876D;
    cursor:pointer;
}

.stock-row-check{
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.stock-rfq-batch-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-width:138px;
    height:40px;
    padding:0 18px;
    border-radius:22px;
    background:#00876D;
    color:#fff;
    text-decoration:none;
    font-size:14px;
    font-weight:bold;
    transition:all .25s ease;
}

.stock-rfq-batch-btn:hover{
    background:#006f5a;
    color:#fff;
    box-shadow:0 10px 22px rgba(0,135,109,.22);
    transform:translateY(-1px);
}

.stock-rfq-product-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.stock-rfq-product-title em{
    font-style:normal;
    font-size:12px;
    color:#00876D;
    background:#e6f6f2;
    border-radius:16px;
    padding:4px 10px;
}

.stock-rfq-selected-list{
    max-height:220px;
    overflow-y:auto;
}

.stock-rfq-selected-item{
    display:grid;
    grid-template-columns:1.2fr .8fr .8fr .8fr;
    gap:10px;
    padding:12px 0;
    border-bottom:1px solid #e4f1ed;
}

.stock-rfq-selected-item:last-child{
    border-bottom:none;
}

.stock-rfq-selected-item span{
    display:block;
    font-size:12px;
    color:#7b908b;
    line-height:18px;
}

.stock-rfq-selected-item strong{
    display:block;
    margin-top:3px;
    font-size:14px;
    color:#1f2d2a;
    line-height:20px;
    word-break:break-all;
}

.stock-rfq-empty{
    color:#8a9b97;
    font-size:14px;
    line-height:24px;
    padding:8px 0;
}


@media screen and (max-width:768px){
    .stock-rfq-popup{
        padding:14px;
        align-items:flex-start;
        overflow-y:auto;
    }

    .stock-rfq-box{
        margin:30px 0;
        border-radius:16px;
    }

    .stock-rfq-head{
        padding:24px 20px;
    }

    .stock-rfq-head h3{
        font-size:22px;
        line-height:30px;
    }

    .stock-rfq-product{
        margin:18px 16px 0;
        padding:14px;
    }

    .stock-rfq-product-grid{
        grid-template-columns:1fr 1fr;
    }

    .stock-rfq-form{
        padding:20px 16px 24px;
    }

    .stock-rfq-row{
        grid-template-columns:1fr;
        gap:0;
    }
    .stock-rfq-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .stock-rfq-batch-btn {
        width: 100%;
    }

    .stock-rfq-selected-item {
        grid-template-columns: 1fr 1fr;
    }
}
