.twc-rfq-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  font-family: inherit;
  color: #20242b;
}

.twc-rfq-form,
.twc-rfq-form * {
  box-sizing: border-box;
}

.twc-rfq-title {
  margin: 0 0 22px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: #20242b;
}

.twc-rfq-top-row {
  display: grid;
  grid-template-columns: 490px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  margin-bottom: 20px;
}

.twc-rfq-upload-panel {
  min-height: 116px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid #d3d7df;
  border-radius: 4px;
  background: #fff;
}

.twc-rfq-upload-box {
  width: 122px;
  min-width: 122px;
  height: 74px;
  border: 1px dashed #d6d9df;
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.twc-rfq-upload-box:hover {
  border-color: #0b6f6f;
  background: #f4fbfb;
}

.twc-rfq-file-input {
  display: none !important;
}

.twc-rfq-upload-icon {
  font-size: 34px;
  line-height: 1;
  color: #0b6f6f;
  font-weight: 300;
}

.twc-rfq-upload-content {
  flex: 1;
  min-width: 0;
}

.twc-rfq-upload-title {
  margin-bottom: 6px;
  color: #0b6f6f;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
}

.twc-rfq-upload-desc {
  margin-bottom: 6px;
  color: #7c828c;
  font-size: 13px;
  line-height: 1.4;
}

.twc-rfq-upload-links {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.twc-rfq-upload-links a {
  color: #0b6f6f;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

.twc-rfq-upload-links a:hover {
  text-decoration: underline;
}

.twc-rfq-template-link::before {
  content: "↓";
  display: inline-block;
  margin-right: 5px;
  font-weight: 700;
}

.twc-rfq-file-name {
  margin-top: 7px;
  color: #0b6f6f;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-all;
}

.twc-rfq-stepbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-width: 0;
}

.twc-rfq-step {
  position: relative;
  flex: 1;
  min-width: 0;
  text-align: center;
  color: #8d929b;
  font-size: 12px;
  line-height: 1.35;
}

.twc-rfq-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25px;
  left: calc(50% + 34px);
  right: calc(-50% + 34px);
  height: 5px;
  background: radial-gradient(circle, #dcdfe5 2.5px, transparent 3px) repeat-x;
  background-size: 18px 5px;
}

.twc-rfq-step-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #f1f2f4;
  color: #8d929b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.twc-rfq-step.is-active {
  color: #0b6f6f;
  font-weight: 700;
}

.twc-rfq-step.is-active .twc-rfq-step-icon {
  width: 54px;
  height: 54px;
  margin-top: -1px;
  background: #0b6f6f;
  color: #fff;
  box-shadow: 0 0 0 5px rgba(11, 111, 111, 0.16);
}

/* 产品表格 */
.twc-rfq-products-panel {
  margin-bottom: 30px;
}

.twc-rfq-table-scroll {
  width: 100%;
  overflow-x: hidden;
  border: 1px solid #dfe4ec;
  border-radius: 4px;
  background: #fff;
}

.twc-rfq-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0;
  background: #fff;
}

.twc-rfq-table th,
.twc-rfq-table td {
  border-right: 1px solid #dfe4ec;
  border-bottom: 1px solid #dfe4ec;
  padding: 7px 14px;
  vertical-align: top;
}

.twc-rfq-table th:last-child,
.twc-rfq-table td:last-child {
  border-right: 0;
}

.twc-rfq-table tbody tr:last-child td {
  border-bottom: 0;
}

.twc-rfq-table th {
  height: 62px;
  background: #edf4ff;
  color: #20242b;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  text-align: left;
  vertical-align: middle;
  text-transform: none;
  word-break: normal;
}

.twc-rfq-table td {
  height: 45px;
  background: #fff;
}

.twc-rfq-table th:nth-child(1) {
  width: 18%;
}

.twc-rfq-table th:nth-child(2) {
  width: 20%;
}

.twc-rfq-table th:nth-child(3) {
  width: 13%;
}

.twc-rfq-table th:nth-child(4) {
  width: 12%;
}

.twc-rfq-table th:nth-child(5) {
  width: 18%;
}

.twc-rfq-table th:nth-child(6) {
  width: 19%;
}

.twc-required {
  color: #f04438;
  margin-right: 2px;
}

.twc-rfq-input,
.twc-rfq-control {
  width: 100%;
  height: 34px;
  border: 1px solid #d3d7df;
  border-radius: 4px;
  background: #fff;
  color: #222;
  padding: 5px 10px;
  font-size: 14px;
  line-height: 22px;
  outline: none;
  box-shadow: none;
}

.twc-rfq-input:focus,
.twc-rfq-control:focus {
  border-color: #0b6f6f;
  box-shadow: 0 0 0 2px rgba(11, 111, 111, 0.08);
}

.twc-rfq-product-info[readonly] {
  background: #f8fafc;
  color: #4b5563;
}

.twc-rfq-sku-status {
  margin-top: 4px;
  min-height: 15px;
  font-size: 12px;
  line-height: 1.25;
}

.twc-rfq-sku-status.is-loading {
  color: #777d89;
}

.twc-rfq-sku-status.is-success {
  color: #0b6f6f;
}

.twc-rfq-sku-status.is-error {
  color: #d92d20;
}

.twc-rfq-days-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.twc-rfq-days-wrap input {
  padding-right: 48px;
}

.twc-rfq-days-wrap span {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding-left: 10px;
  border-left: 1px solid #d9dee8;
  color: #777d89;
  line-height: 18px;
  pointer-events: none;
}

.twc-rfq-row-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 0 0 10px;
}

.twc-rfq-row-actions button {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  box-shadow: none;
}

.twc-rfq-add-row {
  color: #0b6f6f;
}

.twc-rfq-delete-all {
  color: #7b808a;
}

.twc-rfq-row-actions button:hover {
  text-decoration: underline;
}

.twc-rfq-notice {
  margin: 0 0 18px;
  color: #4e535b;
  font-size: 15px;
  line-height: 1.6;
}

.twc-rfq-notice a {
  color: #0b6f6f;
  text-decoration: none;
}

.twc-rfq-notice a:hover {
  text-decoration: underline;
}

.twc-rfq-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.twc-rfq-left-fields,
.twc-rfq-right-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.twc-rfq-email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 38px;
}

.twc-rfq-field label {
  display: block;
  margin: 0 0 6px;
  color: #262a31;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
}

.twc-rfq-field textarea.twc-rfq-control {
  height: 129px;
  resize: vertical;
}

.twc-rfq-code-wrap {
  position: relative;
}

.twc-rfq-code-wrap input {
  padding-right: 105px;
}

.twc-rfq-code-wrap button {
  position: absolute;
  right: 1px;
  top: 1px;
  height: 32px;
  min-width: 94px;
  border: 0;
  border-left: 1px solid #d9dee8;
  border-radius: 0 4px 4px 0;
  background: #fff;
  color: rgba(11, 111, 111, 0.38);
  font-size: 14px;
  font-weight: 600;
  cursor: not-allowed;
  box-shadow: none;
}

.twc-rfq-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
}

.twc-rfq-help {
  color: #777d89;
  font-size: 15px;
  line-height: 1.5;
}

.twc-rfq-help a {
  color: #0b6f6f;
  text-decoration: none;
}

.twc-rfq-help a:hover {
  text-decoration: underline;
}

.twc-rfq-submit {
  min-width: 132px;
  height: 42px;
  border: 0;
  border-radius: 4px;
  background: #0b6f6f;
  color: #fff;
  padding: 0 22px;
  font-size: 14px;
  line-height: 42px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.twc-rfq-submit:hover {
  background: #085f5f;
  transform: translateY(-1px);
}

@media (max-width: 1200px) {
  .twc-rfq-top-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .twc-rfq-stepbar {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .twc-rfq-step {
    min-width: 140px;
  }
}

@media (max-width: 768px) {
  .twc-rfq-info-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .twc-rfq-email-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .twc-rfq-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .twc-rfq-submit {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .twc-rfq-wrap {
    padding: 24px 12px 36px;
  }

  .twc-rfq-upload-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .twc-rfq-upload-box {
    width: 100%;
  }

  .twc-rfq-upload-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
.twc-rfq-form-message {
  display: none;
  margin: 26px 0 0;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
}

.twc-rfq-form-message.is-success {
  display: block;
  color: #0b6f6f;
  background: rgba(11, 111, 111, 0.08);
  border: 1px solid rgba(11, 111, 111, 0.22);
}

.twc-rfq-form-message.is-error {
  display: block;
  color: #b42318;
  background: #fff4f2;
  border: 1px solid #fecdca;
}

.twc-rfq-submit:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}
/* RFQ result page product link fix */
.twc-rfq-result-wrap .twc-rfq-table td,
.twc-rfq-result-wrap .twc-rfq-table td a {
  color: #111827 !important;
}

.twc-rfq-result-wrap .twc-rfq-table td a {
  text-decoration: none;
  font-weight: 500;
}

.twc-rfq-result-wrap .twc-rfq-table td a:hover {
  color: #0b6f6f !important;
  text-decoration: underline;
}
/* =========================================
   RFQ Result Page
   ========================================= */

.twc-rfq-result-wrap {
  max-width: 1360px;
  margin: 56px auto 72px;
  padding: 0 18px;
  color: #111827;
}

.twc-rfq-result-wrap .twc-rfq-title {
  margin: 0 0 24px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  color: #111827;
}

.twc-rfq-result-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.twc-rfq-result-summary > div {
  padding: 18px 20px;
  border: 1px solid #d9e2ef;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.twc-rfq-result-summary strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: #667085;
}

.twc-rfq-result-summary span {
  display: block;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: #0b6f6f;
}

.twc-rfq-products-panel {
  margin-bottom: 28px;
  border: 1px solid #d9e2ef;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.twc-rfq-result-wrap .twc-rfq-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.twc-rfq-result-wrap .twc-rfq-table {
  width: 100%;
  min-width: 980px;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
  background: #ffffff;
}

.twc-rfq-result-wrap .twc-rfq-table th {
  padding: 18px 14px;
  border-right: 1px solid #d9e2ef;
  border-bottom: 1px solid #d9e2ef;
  background: #edf5ff;
  color: #111827;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  text-align: left;
}

.twc-rfq-result-wrap .twc-rfq-table th:last-child {
  border-right: 0;
}

.twc-rfq-result-wrap .twc-rfq-table td {
  padding: 18px 14px;
  border-right: 1px solid #d9e2ef;
  border-bottom: 1px solid #d9e2ef;
  color: #111827 !important;
  font-size: 15px;
  line-height: 1.45;
  vertical-align: top;
  background: #ffffff;
}

.twc-rfq-result-wrap .twc-rfq-table td:last-child {
  border-right: 0;
}

.twc-rfq-result-wrap .twc-rfq-table tbody tr:last-child td {
  border-bottom: 0;
}

.twc-rfq-result-wrap .twc-rfq-table td a {
  color: #111827 !important;
  text-decoration: none;
  font-weight: 500;
}

.twc-rfq-result-wrap .twc-rfq-table td a:hover {
  color: #0b6f6f !important;
  text-decoration: underline;
}

.twc-rfq-result-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  padding: 22px;
  border: 1px solid #d9e2ef;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.twc-rfq-result-info > div {
  min-height: 44px;
}

.twc-rfq-result-info strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: #667085;
}

.twc-rfq-result-info span {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  color: #111827;
  word-break: break-word;
}

.twc-rfq-result-info a {
  color: #0b6f6f !important;
  font-weight: 600;
  text-decoration: none;
}

.twc-rfq-result-info a:hover {
  text-decoration: underline;
}

.twc-rfq-result-comment {
  grid-column: 1 / -1;
}

.twc-rfq-result-comment span {
  min-height: 42px;
  padding: 12px 14px;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  background: #f9fafb;
}

/* Empty / error message on result page */
.twc-rfq-result-wrap .twc-rfq-form-message,
.twc-rfq-wrap .twc-rfq-form-message {
  max-width: 760px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
}

.twc-rfq-wrap .twc-rfq-form-message.is-error {
  border: 1px solid #fecaca;
  background: #fff7f7;
  color: #b42318;
}

.twc-rfq-wrap .twc-rfq-form-message.is-success {
  border: 1px solid #b7e4dc;
  background: #f0fdfa;
  color: #0b6f6f;
}

/* Mobile */
@media (max-width: 768px) {
  .twc-rfq-result-wrap {
    margin: 36px auto 52px;
    padding: 0 14px;
  }

  .twc-rfq-result-wrap .twc-rfq-title {
    font-size: 24px;
  }

  .twc-rfq-result-summary,
  .twc-rfq-result-info {
    grid-template-columns: 1fr;
  }

  .twc-rfq-result-info {
    padding: 18px;
  }

  .twc-rfq-result-wrap .twc-rfq-table th,
  .twc-rfq-result-wrap .twc-rfq-table td {
    padding: 14px 12px;
    font-size: 14px;
  }
}
/* RFQ quoted result columns */
.twc-rfq-result-wrap .twc-rfq-result-table {
  min-width: 1280px;
}

.twc-rfq-result-wrap .twc-rfq-result-table th:nth-child(7),
.twc-rfq-result-wrap .twc-rfq-result-table th:nth-child(8),
.twc-rfq-result-wrap .twc-rfq-result-table th:nth-child(9) {
  background: #e8f7f5;
}

.twc-rfq-result-wrap .twc-rfq-quoted-price,
.twc-rfq-result-wrap .twc-rfq-quoted-lead-time,
.twc-rfq-result-wrap .twc-rfq-quoted-remark {
  color: #0b6f6f !important;
  font-weight: 600;
}

.twc-rfq-result-wrap .twc-rfq-quoted-remark {
  font-weight: 500;
  white-space: normal;
}
/* =========================================
   RFQ result table 9 columns horizontal scroll fix
   ========================================= */

.twc-rfq-result-wrap .twc-rfq-table-scroll {
  width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.twc-rfq-result-wrap .twc-rfq-result-table {
  width: 1760px !important;
  min-width: 1760px !important;
  max-width: none !important;
  table-layout: fixed !important;
}

/* Override old 6-column width rules */
.twc-rfq-result-wrap .twc-rfq-result-table th,
.twc-rfq-result-wrap .twc-rfq-result-table td {
  width: auto !important;
  white-space: normal;
  word-break: normal;
}

/* 9-column widths */
.twc-rfq-result-wrap .twc-rfq-result-table th:nth-child(1),
.twc-rfq-result-wrap .twc-rfq-result-table td:nth-child(1) {
  width: 170px !important;
}

.twc-rfq-result-wrap .twc-rfq-result-table th:nth-child(2),
.twc-rfq-result-wrap .twc-rfq-result-table td:nth-child(2) {
  width: 310px !important;
}

.twc-rfq-result-wrap .twc-rfq-result-table th:nth-child(3),
.twc-rfq-result-wrap .twc-rfq-result-table td:nth-child(3) {
  width: 180px !important;
}

.twc-rfq-result-wrap .twc-rfq-result-table th:nth-child(4),
.twc-rfq-result-wrap .twc-rfq-result-table td:nth-child(4) {
  width: 150px !important;
}

.twc-rfq-result-wrap .twc-rfq-result-table th:nth-child(5),
.twc-rfq-result-wrap .twc-rfq-result-table td:nth-child(5) {
  width: 210px !important;
}

.twc-rfq-result-wrap .twc-rfq-result-table th:nth-child(6),
.twc-rfq-result-wrap .twc-rfq-result-table td:nth-child(6) {
  width: 200px !important;
}

.twc-rfq-result-wrap .twc-rfq-result-table th:nth-child(7),
.twc-rfq-result-wrap .twc-rfq-result-table td:nth-child(7) {
  width: 190px !important;
}

.twc-rfq-result-wrap .twc-rfq-result-table th:nth-child(8),
.twc-rfq-result-wrap .twc-rfq-result-table td:nth-child(8) {
  width: 190px !important;
}

.twc-rfq-result-wrap .twc-rfq-result-table th:nth-child(9),
.twc-rfq-result-wrap .twc-rfq-result-table td:nth-child(9) {
  width: 360px !important;
}

/* Quoted columns highlight */
.twc-rfq-result-wrap .twc-rfq-result-table th:nth-child(7),
.twc-rfq-result-wrap .twc-rfq-result-table th:nth-child(8),
.twc-rfq-result-wrap .twc-rfq-result-table th:nth-child(9) {
  background: #e8f7f5 !important;
}

.twc-rfq-result-wrap .twc-rfq-quoted-price,
.twc-rfq-result-wrap .twc-rfq-quoted-lead-time,
.twc-rfq-result-wrap .twc-rfq-quoted-remark {
  color: #0b6f6f !important;
  font-weight: 600;
}

.twc-rfq-result-wrap .twc-rfq-quoted-remark {
  white-space: normal !important;
  line-height: 1.45;
}

/* Make scrollbar easier to notice */
.twc-rfq-result-wrap .twc-rfq-table-scroll::-webkit-scrollbar {
  height: 10px;
}

.twc-rfq-result-wrap .twc-rfq-table-scroll::-webkit-scrollbar-track {
  background: #eef2f7;
  border-radius: 999px;
}

.twc-rfq-result-wrap .twc-rfq-table-scroll::-webkit-scrollbar-thumb {
  background: #9ca3af;
  border-radius: 999px;
}

.twc-rfq-result-wrap .twc-rfq-table-scroll::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}