/* ==========================================================================
   Inquiry Basket (迷你询盘购物车)
   ========================================================================== */
.iwonder-inquiry-basket {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9999;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  color: #333;
}

.iwonder-inquiry-basket-header button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #2d8c4a;
  color: #fff;
  border: none;
  border-radius: 1.875rem;
  padding: 0.625rem 1rem;
  cursor: pointer;
  box-shadow: 0 2px 0.625rem rgba(0, 0, 0, 0.15);
  transition: background 0.2s;
}
.iwonder-inquiry-basket-header button:hover { background: #237a3e; }

.iwonder-inquiry-basket-count {
  background: #fff;
  color: #2d8c4a;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
}
.iwonder-inquiry-basket-label { font-weight: 500; }
.iwonder-inquiry-basket-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #fff;
  transition: transform 0.2s ease;
}
/* body 展开时箭头朝上 */
.iwonder-inquiry-basket.open .iwonder-inquiry-basket-caret {
  transform: rotate(180deg);
}

.iwonder-inquiry-basket-body {
  display: none;
  margin-top: 0.5rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.125rem 1rem rgba(0, 0, 0, 0.12);
  width: 22rem;
  max-height: 28rem;
  overflow: hidden;
  flex-direction: column;
}

.iwonder-inquiry-basket-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #999;
}

.iwonder-inquiry-basket-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  max-height: 20rem;
}

.iwonder-inquiry-basket-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  align-items: flex-start;
}
.iwonder-inquiry-basket-item:last-child { border-bottom: none; }

.iwonder-inquiry-basket-item .img {
  width: 3.5rem;
  height: 3.5rem;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 0.25rem;
  background: #f5f5f5;
}
.iwonder-inquiry-basket-item .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iwonder-inquiry-basket-item .info {
  flex: 1;
  min-width: 0;
}
.iwonder-inquiry-basket-item .name {
  display: block;
  color: #333;
  text-decoration: none;
  font-size: 0.8125rem;
  line-height: 1.3;
  margin-bottom: 0.375rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.iwonder-inquiry-basket-item .name:hover { color: #2d8c4a; }

.iwonder-inquiry-basket-item .qty {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.25rem;
  overflow: hidden;
}
.iwonder-inquiry-basket-item .qty-btn {
  border: none;
  background: #fafafa;
  cursor: pointer;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.875rem;
  color: #666;
}
.iwonder-inquiry-basket-item .qty-btn:hover { background: #f0f0f0; }
.iwonder-inquiry-basket-item .qty-input {
  width: 2.25rem;
  height: 1.5rem;
  text-align: center;
  border: none;
  font-size: 0.75rem;
  padding: 0;
}
.iwonder-inquiry-basket-item .qty-input::-webkit-outer-spin-button,
.iwonder-inquiry-basket-item .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.iwonder-inquiry-basket-item .remove {
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.iwonder-inquiry-basket-item .remove:hover { color: #e74c3c; }

.iwonder-inquiry-basket-footer {
  display: flex;
  border-top: 1px solid #f0f0f0;
}
.iwonder-inquiry-basket-footer button,
.iwonder-inquiry-basket-footer a {
  flex: 1;
  padding: 0.75rem;
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}
.iwonder-inquiry-basket-clear {
  background: #fafafa;
  color: #666;
  border-right: 1px solid #f0f0f0 !important;
}
.iwonder-inquiry-basket-clear:hover { background: #f0f0f0; }
.iwonder-inquiry-basket-inquire {
  background: #2d8c4a;
  color: #fff;
}
.iwonder-inquiry-basket-inquire:hover { background: #237a3e; }

/* Add to Basket 按钮状态 */
.add-to-basket-btn.added {
  opacity: 0.7;
}
.add-to-basket-btn.added::after {
  content: ' ✓';
}

/* ==========================================================================
   询盘页商品表格 (product-inquire)
   ========================================================================== */
.iderInquireBox1 {
  padding-top: 1.875rem;
  padding-bottom: 3rem;
}
.iderInquireBox1 .com-card {
  padding: 2rem 2rem 4rem;
}

.iderInquireBox1-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #333;
  position: relative;
  padding-bottom: 0.75rem;
}
.iderInquireBox1-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 0.1875rem;
  background: #2d8c4a;
  border-radius: 0.125rem;
}

.iderInquireBox1-table-wrap {
  margin-bottom: 2rem;
}

.iderInquireBox1-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #eef1ef;
}
.iderInquireBox1-table th,
.iderInquireBox1-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border: 1px solid #eef1ef;
  font-size: 0.875rem;
}
.iderInquireBox1-table thead th {
  background: #f3faf5;
  font-weight: 600;
  font-size: 0.8125rem;
  color: #2d8c4a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-color: #d8ebde;
}
.iderInquireBox1-table tbody tr {
  transition: background 0.15s;
}
.iderInquireBox1-table tbody tr:hover {
  background: #fafdfb;
}

.iderInquireBox1-table .col-image { width: 100px; }
.iderInquireBox1-table .col-name { width: auto; }
.iderInquireBox1-table .col-qty { width: 150px; }

.iderInquireBox1-table .img {
  width: 4.5rem;
  height: 4.5rem;
  overflow: hidden;
  border-radius: 0.375rem;
  background: #f5f5f5;
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.08);
}
.iderInquireBox1-table .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iderInquireBox1-table .col-name a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.iderInquireBox1-table .col-name a:hover { color: #2d8c4a; }

.iderInquireBox1-qty {
  width: 5rem;
  height: 2.25rem;
  text-align: center;
  border: 1px solid #e0e0e0;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: #333;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.iderInquireBox1-qty:focus {
  outline: none;
  border-color: #2d8c4a;
  box-shadow: 0 0 0 0.1875rem rgba(45, 140, 74, 0.15);
}

.iderInquireBox1-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #999;
  font-size: 0.9375rem;
  background: #fafafa;
  border-radius: 0.5rem;
}

/* ==========================================================================
   Elementor Form 样式 (product-inquire 页面内的表单)
   ========================================================================== */
.iderInquireBox1-form {
  margin-top: 0;
}

/* 重置 Elementor section 容器默认间距 */
.iderInquireBox1-form > .elementor,
.iderInquireBox1-form > .elementor > .e-con {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}
.iderInquireBox1-form .elementor-widget-form {
  margin: 0 !important;
  padding: 0 !important;
}

/* 字段容器 */
.iderInquireBox1-form .elementor-field-group {
  margin-bottom: 1.25rem !important;
}

/* 标签 */
.iderInquireBox1-form .elementor-field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem !important;
  padding: 0 !important;
  letter-spacing: 0.01em;
}
.iderInquireBox1-form .elementor-field-required > .elementor-field-label::after {
  content: ' *';
  color: #e74c3c;
}

/* 输入框 + textarea 统一 */
.iderInquireBox1-form .elementor-field-textual {
  width: 100%;
  padding: 0.8125rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #333;
  background: #fafdfb;
  border: 1px solid #e5ebe6;
  border-radius: 0.5rem;
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
.iderInquireBox1-form .elementor-field-textual:hover {
  border-color: #c5d9cb;
  background: #fff;
}
.iderInquireBox1-form .elementor-field-textual:focus {
  outline: none;
  border-color: #2d8c4a;
  background: #fff;
  box-shadow: 0 0 0 0.1875rem rgba(45, 140, 74, 0.12);
}
.iderInquireBox1-form .elementor-field-textual::placeholder {
  color: #aaa;
  font-size: 0.8125rem;
}
.iderInquireBox1-form textarea.elementor-field-textual {
  resize: vertical;
  min-height: 7rem;
}

/* 提交按钮 */
.iderInquireBox1-form .e-form__buttons {
  margin-top: 1.5rem !important;
  margin-bottom: 0 !important;
}
.iderInquireBox1-form .elementor-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9375rem 2.5rem !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  color: #fff !important;
  background: #2d8c4a !important;
  border: none;
  border-radius: 1.875rem !important;
  cursor: pointer;
  box-shadow: 0 0.25rem 0.75rem rgba(45, 140, 74, 0.28);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  width: auto !important;
}
.iderInquireBox1-form .elementor-button:hover {
  background: #237a3e !important;
  transform: translateY(-1px);
  box-shadow: 0 0.375rem 1rem rgba(45, 140, 74, 0.35);
}
.iderInquireBox1-form .elementor-button:active {
  transform: translateY(0);
}

/* 错误提示 */
.iderInquireBox1-form .elementor-message {
  font-size: 0.8125rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.375rem;
  margin-top: 0.5rem;
}
.iderInquireBox1-form .elementor-message.elementor-message-error {
  background: #fef0f0;
  color: #c0392b;
  border: 1px solid #fbd5d5;
}
.iderInquireBox1-form .elementor-message.elementor-message-success {
  background: #f0faf3;
  color: #2d8c4a;
  border: 1px solid #d8ebde;
  margin-top: 3rem;
}

/* Elementor AJAX 提交时的 loading 遮罩 */
.iderInquireBox1-form .elementor-form.is-loading::after {
  border-top-color: #2d8c4a !important;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 767px) {
  .iderInquireBox1 {
    padding-top: 1rem;
    padding-bottom: 2rem;
  }
  .iderInquireBox1 .com-card {
    padding: 1.25rem 1rem;
    border-radius: 0.5rem;
  }
  .iderInquireBox1-title {
    font-size: 1.375rem;
    margin-bottom: 1rem;
  }
  .iderInquireBox1-table th,
  .iderInquireBox1-table td {
    padding: 0.625rem 0.5rem;
    font-size: 0.75rem;
  }
  .iderInquireBox1-table .col-image { width: 70px; }
  .iderInquireBox1-table .col-qty  { width: 90px; }
  .iderInquireBox1-table .img {
    width: 3rem;
    height: 3rem;
  }
  .iderInquireBox1-qty { width: 3.5rem; height: 1.875rem; font-size: 0.8125rem; }

  .iderInquireBox1-form .elementor-button {
    width: 100% !important;
    padding: 0.8125rem 1.5rem !important;
  }
}
