/* seemb5 询价页（placeOrder），面包屑/标题对齐 manufacturers 页 */

.rfq-page .content-box {
    width: 100%;
}

.place-order-box {
    width: 100%;
    display: flex;
    justify-content: center;
}

.place-order-box .place-order {
    width: var(--jq_w1200);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

.place-order-box .place-order .title {
    width: 100%;
    height: 60px;
    background: var(--jq_color2);
    box-shadow: 0 0 15px var(--jq_color11);
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: var(--jq_fs5);
    font-weight: bold;
    border-radius: 5px;
}

.place-order-body {
    width: 100%;
    padding: 22px 0 42px;
    background: transparent;
    box-sizing: border-box;
}

.uaf-rfq-panel {
    margin-bottom: 16px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 40, 80, 0.03);
}

.uaf-rfq-title {
    margin: 0 0 16px;
    color: var(--jq_color1);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.uaf-rfq-contact .uaf-rfq-title {
    font-size: 20px;
}

.uaf-rfq-bom-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 0 0 16px;
}

.uaf-rfq-file-label {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.uaf-rfq-file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.uaf-rfq-template-link {
    color: #1d62ad;
    font-size: var(--jq_fs2);
    text-decoration: none;
}

.uaf-rfq-template-link:hover {
    text-decoration: underline;
}

.uaf-rfq-file-name {
    color: #666;
    font-size: var(--jq_fs1);
}

.uaf-rfq-tips {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 18px;
    color: #666;
    font-size: var(--jq_fs2);
    line-height: 1.5;
}

.uaf-rfq-tips strong {
    color: #d07100;
}

.uaf-rfq-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5eaf2;
}

.uaf-rfq-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: var(--jq_fs2);
}

.uaf-rfq-table th,
.uaf-rfq-table td {
    padding: 10px 9px;
    border-bottom: 1px solid #edf0f5;
    text-align: left;
    vertical-align: middle;
}

.uaf-rfq-table th {
    background: #f5f7fb;
    color: #555;
    font-weight: 700;
    white-space: nowrap;
}

.uaf-rfq-table tr:last-child td {
    border-bottom: none;
}

.uaf-rfq-table input {
    width: 100%;
    min-width: 80px;
    padding: 7px 8px;
    border: 1px solid #dce2ea;
    border-radius: 3px;
    box-sizing: border-box;
    font-size: var(--jq_fs1);
}

.uaf-rfq-table input[data-f="part_number"] {
    min-width: 150px;
}

.uaf-rfq-row-remove {
    border: none;
    padding: 4px 8px;
    background: transparent;
    color: #d64528;
    cursor: pointer;
}

.uaf-rfq-row-remove:hover {
    text-decoration: underline;
}

.uaf-rfq-table-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.uaf-rfq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 9px 20px;
    font-size: var(--jq_fs2);
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    text-decoration: none;
}

.uaf-rfq-btn--primary {
    background: var(--jq_color5);
    border-color: var(--jq_color5);
    color: #fff;
}

.uaf-rfq-btn--secondary {
    background: #eef4ff;
    border-color: #c9d8ef;
    color: #245d9f;
}

.uaf-rfq-btn--danger {
    background: #ff6221;
    border-color: #ff6221;
    color: #fff;
}

.uaf-rfq-btn:hover:not(:disabled) {
    opacity: 0.92;
}

.uaf-rfq-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.uaf-rfq-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 22px;
}

.uaf-rfq-form label {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    color: #555;
    font-size: var(--jq_fs2);
}

.uaf-rfq-form label > span {
    white-space: nowrap;
}

.uaf-rfq-req {
    margin-left: 2px;
    color: #e53935;
}

.uaf-rfq-form-full {
    grid-column: 1 / -1;
    align-items: start;
}

.uaf-rfq-form input,
.uaf-rfq-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #dce2ea;
    border-radius: 3px;
    padding: 8px 9px;
    color: #333;
    font-size: var(--jq_fs1);
    line-height: 1.4;
    box-sizing: border-box;
}

.uaf-rfq-form textarea {
    resize: vertical;
}

.uaf-rfq-captcha-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.uaf-rfq-captcha-row input {
    flex: 1 1 110px;
    max-width: 150px;
}

.uaf-rfq-captcha-img {
    flex-shrink: 0;
    border: 1px solid #dce2ea;
    border-radius: 3px;
    cursor: pointer;
}

.uaf-rfq-msg {
    margin: 14px 0 0;
    min-height: 1.4em;
    color: #c0392b;
    font-size: var(--jq_fs2);
}

.uaf-rfq-msg.is-success {
    color: #1e7e34;
}

.uaf-rfq-msg.is-error {
    color: #c0392b;
}

.uaf-rfq-form .uaf-rfq-btn--primary {
    margin-top: 10px;
    min-width: 120px;
}

.uaf-rfq-success-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
}

.uaf-rfq-success-backdrop.is-open {
    display: flex;
}

.uaf-rfq-success-dialog {
    width: 100%;
    max-width: 420px;
    padding: 28px 24px 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    box-sizing: border-box;
}

.uaf-rfq-success-dialog__title {
    margin: 0 0 12px;
    color: #222;
    font-size: 18px;
    font-weight: 700;
}

.uaf-rfq-success-dialog__msg {
    margin: 0 0 22px;
    color: #555;
    line-height: 1.55;
}

@media (max-width: 768px) {
    .place-order-box .place-order {
        max-width: 100%;
    }

    /* 面包屑紧贴内容区，去掉中间灰条 */
    .rfq-page .place-order > .crumbs-box {
        margin-bottom: 0 !important;
    }

    .rfq-page .place-order-body {
        padding: 0 0 30px;
    }

    .rfq-page .place-order-body > .uaf-rfq-panel {
        margin-bottom: 12px;
        border-radius: 8px;
    }

    .rfq-page .place-order-body > .uaf-rfq-panel:last-child {
        margin-bottom: 0;
    }

    .place-order-box .place-order .title {
        height: auto;
        min-height: 50px;
        padding: 12px 14px;
        font-size: var(--jq_fs4);
    }

    .uaf-rfq-panel {
        padding: 18px 14px;
    }

    .uaf-rfq-bom-upload {
        display: none !important;
    }

    /* 手机端：物料表改为纵向列表，仅保留面板外框，行内不再套卡片边框 */
    .uaf-rfq-bom .uaf-rfq-table-wrap {
        overflow-x: visible;
        border: none;
        background: transparent;
    }

    .uaf-rfq-bom .uaf-rfq-table {
        min-width: 0;
        border-collapse: collapse;
        border-spacing: 0;
    }

    .uaf-rfq-bom .uaf-rfq-table thead {
        display: none;
    }

    .uaf-rfq-bom .uaf-rfq-table tbody {
        display: block;
    }

    .uaf-rfq-bom .uaf-rfq-table tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        grid-template-areas:
            "pn mf ."
            "qty price ."
            "desc desc action";
        gap: 10px 12px;
        padding: 14px 0;
        background: transparent;
        border: none;
        border-bottom: 1px solid #edf0f4;
        border-radius: 0;
        box-shadow: none;
    }

    .uaf-rfq-bom .uaf-rfq-table tbody tr:first-child {
        padding-top: 0;
    }

    .uaf-rfq-bom .uaf-rfq-table tbody tr:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .uaf-rfq-bom .uaf-rfq-table tbody td {
        display: block;
        width: auto;
        min-width: 0;
        padding: 0;
        border: none;
    }

    .uaf-rfq-bom .uaf-rfq-table tbody td:nth-child(1) {
        grid-area: pn;
    }

    .uaf-rfq-bom .uaf-rfq-table tbody td:nth-child(2) {
        grid-area: mf;
    }

    .uaf-rfq-bom .uaf-rfq-table tbody td:nth-child(3) {
        grid-area: desc;
    }

    .uaf-rfq-bom .uaf-rfq-table tbody td:nth-child(4) {
        grid-area: qty;
    }

    .uaf-rfq-bom .uaf-rfq-table tbody td:nth-child(5) {
        grid-area: price;
    }

    .uaf-rfq-bom .uaf-rfq-table tbody td:nth-child(6) {
        grid-area: action;
    }

    .uaf-rfq-bom .uaf-rfq-table tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: #666;
        font-size: var(--jq_fs1);
        font-weight: 600;
        line-height: 1.3;
    }

    .uaf-rfq-bom .uaf-rfq-table tbody td:last-child {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
    }

    .uaf-rfq-bom .uaf-rfq-table tbody td:last-child::before {
        display: none;
    }

    .uaf-rfq-bom .uaf-rfq-table tbody td:last-child .uaf-rfq-row-remove {
        width: auto;
        min-height: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        color: #d64528;
        font-size: var(--jq_fs2);
    }

    .uaf-rfq-bom .uaf-rfq-table input {
        min-width: 0;
    }

    .uaf-rfq-bom .uaf-rfq-table input[data-f="part_number"] {
        min-width: 0;
    }

    .uaf-rfq-form-grid,
    .uaf-rfq-form label {
        grid-template-columns: 1fr;
    }

    .uaf-rfq-table-actions {
        justify-content: stretch;
    }

    .uaf-rfq-table-actions .uaf-rfq-btn,
    .uaf-rfq-form .uaf-rfq-btn--primary {
        width: 100%;
    }
}
