/* 订购选配页美化样式 */

/* 配置项样式 */
.configureproduct {
  margin-bottom: 24px;
  padding: 16px;
  background-color: white;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 标签样式 */
.configureproduct label {
  font-weight: 500;
  color: #1E2736;
  margin-bottom: 8px;
  display: block;
}

/* 下拉选择框样式 */
.configureproduct select.form-control {
  border-radius: 6px;
  border: 1px solid #e9ecef;
  padding: 8px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
  min-width: 200px;
}

.configureproduct select.form-control:focus {
  border-color: #0e62ff;
  box-shadow: 0 0 0 3px rgba(14, 98, 255, 0.1);
}

/* 单选按钮组样式 */
.configureproduct .btn-group-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.configureproduct .btn-group-toggle .btn {
  border-radius: 6px;
  border: 2px solid #e9ecef;
  background-color: white;
  color: #1E2736;
  padding: 8px 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.configureproduct .btn-group-toggle .btn:hover {
  border-color: #0e62ff;
  box-shadow: 0 2px 8px rgba(14, 98, 255, 0.1);
  transform: translateY(-2px);
}

.configureproduct .btn-group-toggle .btn.active {
  border-color: #0e62ff;
  background-color: rgba(14, 98, 255, 0.05);
  color: #0e62ff;
  box-shadow: 0 4px 12px rgba(14, 98, 255, 0.15);
}

/* 复选框样式 */
.configureproduct .custom-control {
  margin-bottom: 12px;
}

.configureproduct .custom-control-input {
  border-radius: 4px;
}

.configureproduct .custom-control-label {
  font-weight: 400;
  color: #1E2736;
  cursor: pointer;
  padding-left: 8px;
}

.configureproduct .custom-control-label:hover {
  color: #0e62ff;
}

/* 滑块样式 */
.configureproduct .form-control-range {
  -webkit-appearance: none;
  appearance: none;
  width: 80%;
  height: 6px;
  border-radius: 3px;
  background: #e9ecef;
  outline: none;
  transition: all 0.3s ease;
}

.configureproduct .form-control-range:hover {
  background: #dee2e6;
}

.configureproduct .form-control-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0e62ff;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(14, 98, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.configureproduct .form-control-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(14, 98, 255, 0.4);
}

.configureproduct .form-control-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0e62ff;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(14, 98, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.configureproduct .form-control-range::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(14, 98, 255, 0.4);
}

/* 滑块输入框样式 */
.configureproduct .configoption_range_val {
  border-radius: 6px;
  border: 1px solid #e9ecef;
  padding: 8px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
  min-width: 80px;
  text-align: center;
  margin-left: 16px;
}

.configureproduct .configoption_range_val:focus {
  border-color: #0e62ff;
  box-shadow: 0 0 0 3px rgba(14, 98, 255, 0.1);
}

/* 按钮样式 */
.modal-footer .btn {
  border-radius: 6px;
  padding: 10px 24px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.modal-footer .btn-primary {
  background: linear-gradient(135deg, #0e62ff, #0056ff);
  border: none;
  box-shadow: 0 4px 12px rgba(14, 98, 255, 0.3);
}

.modal-footer .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 98, 255, 0.4);
  background: linear-gradient(135deg, #0056ff, #0e62ff);
}

.modal-footer .btn-secondary {
  border-color: #e9ecef;
  color: #6c757d;
}

.modal-footer .btn-secondary:hover {
  border-color: #0e62ff;
  color: #0e62ff;
  background-color: rgba(14, 98, 255, 0.05);
}

/* 表格样式 */
.table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.table thead {
  background-color: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
}

.table th {
  font-weight: 600;
  color: #1E2736;
  padding: 16px;
  text-align: left;
}

.table td {
  padding: 16px;
  border-top: 1px solid #e9ecef;
  vertical-align: middle;
}

.table tbody tr:hover {
  background-color: rgba(14, 98, 255, 0.02);
}

/* 输入框样式 */
.form-control {
  border-radius: 6px;
  border: 1px solid #e9ecef;
  padding: 8px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #0e62ff;
  box-shadow: 0 0 0 3px rgba(14, 98, 255, 0.1);
}

/* 优惠券输入区域 */
.yhm-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  align-items: center;
}

.yhm-flex .change-height {
  position: relative;
  transition: all 0.3s ease;
}

.yhm-flex .get-input-focus {
  border-radius: 6px;
  border: 1px solid #e9ecef;
  padding: 8px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.yhm-flex .get-input-focus:focus {
  border-color: #0e62ff;
  box-shadow: 0 0 0 3px rgba(14, 98, 255, 0.1);
}

.yhm-flex .use_promo_code {
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .configureproduct {
    padding: 12px;
    margin-bottom: 16px;
  }
  
  .configureproduct .btn-group-toggle {
    flex-direction: column;
    gap: 8px;
  }
  
  .configureproduct .btn-group-toggle .btn {
    width: 100%;
    text-align: left;
  }
  
  .configureproduct .form-control-range {
    width: 70%;
  }
  
  .configureproduct .configoption_range_val {
    min-width: 60px;
    margin-left: 8px;
  }
  
  .yhm-flex {
    flex-direction: column;
    align-items: stretch;
  }
  
  .modal-dialog {
    margin: 16px;
    max-width: calc(100% - 32px);
  }
}

/* 错误提示样式 */
.error-text {
  color: #c62828;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

/* 成功提示样式 */
.success-message {
  background-color: #f1f8e9;
  border: 1px solid #e8f5e8;
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 16px;
  color: #2e7d32;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.success-message::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #2e7d32;
  color: white;
  border-radius: 50%;
  font-weight: bold;
}

/* 滑块样式增强 */
.configoption_range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e9ecef;
  outline: none;
  transition: all 0.3s ease;
}

.configoption_range:hover {
  background: #dee2e6;
}

.configoption_range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0e62ff;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(14, 98, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.configoption_range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(14, 98, 255, 0.4);
}

.configoption_range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0e62ff;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(14, 98, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.configoption_range::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(14, 98, 255, 0.4);
}

/* 图标别名兜底（对应 iconfont 已有 glyph） */
.icon-search:before {
  content: "\e65f";
}

.icon-inventory:before {
  content: "\e664";
}

.icon-soldout:before {
  content: "\e69d";
}

.icon-shopping-cart:before {
  content: "\e670";
}

