/* =========================================
   产品配置页 — jidc.com 风格
   主色 #1768a4，价格 #f1672a
   ========================================= */

/* ---------- 卡片 ---------- */
.configoption_form .card {
  background: #fff;
  border: 1px solid #dfe6ed;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: none;
}

.configoption_form .card.border-bottom {
  border-bottom: 1px solid #dfe6ed !important;
}

.configoption_form .card-body {
  padding: 22px 24px;
}

/* 产品名卡片 */
.configoption_form .card .card-title {
  font-size: 20px;
  font-weight: 600;
  color: #182536;
  margin: 0;
  line-height: 1.35;
}

/* 订单摘要卡片标题 */
.configoption_form .col-xl-4 .card-title {
  font-size: 15px;
  font-weight: 600;
  color: #182536;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #dfe6ed;
}

/* ---------- 表单行 ---------- */
.configoption_form .form-group.row {
  margin-bottom: 18px;
  align-items: flex-start;
}

.configoption_form .form-group.row:last-child {
  margin-bottom: 0;
}

/* label */
.configoption_form .col-form-label {
  font-size: 13px;
  color: #596a7d;
  font-weight: 500;
  padding-top: calc(0.47rem + 1px);
  line-height: 1.4;
}

.configoption_form .col-form-label .pointer.text-primary {
  color: #8290a0 !important;
  font-size: 14px;
  margin-left: 4px;
}

.configoption_form .col-form-label .pointer.text-primary:hover {
  color: #1768a4 !important;
}

/* ---------- 表单控件 ---------- */
.configoption_form .form-control {
  height: 42px;
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  font-size: 13px;
  color: #182536;
  background-color: #fff;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: none;
}

.configoption_form .form-control:focus {
  border-color: #1768a4;
  box-shadow: 0 0 0 3px rgba(23, 104, 164, .08);
}

.configoption_form .form-control::placeholder {
  color: #a3b1bf;
}

.configoption_form .form-control-sm {
  height: 34px;
  padding: 0 10px;
}

.configoption_form textarea.form-control {
  height: auto;
  min-height: 60px;
  padding: 10px 12px;
}

/* ---------- bootstrap-select ---------- */
.configoption_form .bootstrap-select .dropdown-toggle {
  height: 42px;
  border: 1px solid #dfe6ed !important;
  border-radius: 8px !important;
  background: #fff;
  color: #182536;
  font-size: 13px;
  padding: 0 14px;
  box-shadow: none !important;
}

.configoption_form .bootstrap-select .dropdown-toggle:focus,
.configoption_form .bootstrap-select.show .dropdown-toggle {
  border-color: #1768a4 !important;
  box-shadow: 0 0 0 3px rgba(23, 104, 164, .08) !important;
}

.configoption_form .bootstrap-select .dropdown-toggle .filter-option {
  line-height: 42px;
  padding: 0;
}

.configoption_form .bootstrap-select .dropdown-toggle::after {
  border-top-color: #8290a0;
}

.configoption_form .bootstrap-select .dropdown-menu {
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(19, 43, 66, .08);
  padding: 6px 0;
}

.configoption_form .bootstrap-select .dropdown-menu .dropdown-item {
  font-size: 13px;
  color: #596a7d;
  padding: 8px 14px;
}

.configoption_form .bootstrap-select .dropdown-menu .dropdown-item:hover,
.configoption_form .bootstrap-select .dropdown-menu .dropdown-item.active {
  background: #eaf3fa;
  color: #1768a4;
}

/* =========================================
   按钮组（radio / 选项组）—— 关键视觉
   ========================================= */

.configoption_form .btn-group-toggle .btn,
.configoption_form .btn-group-toggle .btn-primary {
  height: 36px;
  padding: 0 16px;
  margin: 0 6px 6px 0;
  background: #fff !important;
  border: 1px solid #dfe6ed !important;
  border-radius: 8px !important;
  color: #596a7d !important;
  font-size: 13px;
  font-weight: 400;
  line-height: 34px;
  box-shadow: none !important;
  transition: all .18s ease;
}

.configoption_form .btn-group-toggle .btn:hover,
.configoption_form .btn-group-toggle .btn-primary:hover {
  border-color: #1768a4 !important;
  color: #1768a4 !important;
  background: #f7f9fc !important;
}

/* 选中态 */
.configoption_form .btn-group-toggle .btn.active,
.configoption_form .btn-group-toggle .btn-primary.active {
  background: #1768a4 !important;
  border-color: #1768a4 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(23, 104, 164, .2) !important;
}

.configoption_form .btn-group-toggle .btn.active input,
.configoption_form .btn-group-toggle .btn-primary.active input {
  color: #fff;
}

/* 按钮组内部的 radio 隐藏 */
.configoption_form .btn-group-toggle .btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* =========================================
   周期选择按钮（btn-custom-group）
   ========================================= */

.configoption_form .btn-custom-group .btn-custom {
  position: relative;
  min-width: 86px;
  height: 40px;
  line-height: 38px;
  margin: 0 8px 8px 0;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  color: #596a7d;
  font-size: 13px;
  font-weight: 500;
  transition: all .18s ease;
}

.configoption_form .btn-custom-group .btn-custom:hover {
  border-color: #1768a4;
  color: #1768a4;
}

.configoption_form .btn-custom-group .btn-custom.active {
  background: #1768a4;
  border-color: #1768a4;
  color: #fff;
  box-shadow: 0 4px 12px rgba(23, 104, 164, .2);
}

.configoption_form .btn-custom-group .btn-custom input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* 折扣标签 */
.configoption_form .cycle-select-discount {
  background: #f1672a;
  border-radius: 4px;
  font-size: 11px;
  height: 16px;
  line-height: 16px;
  padding: 0 6px;
  top: -8px;
  right: -6px;
  font-weight: 500;
}

/* =========================================
   checkbox / radio 原生样式
   ========================================= */

.configoption_form .custom-control-label,
.configoption_form .form-check-label {
  font-size: 13px;
  color: #596a7d;
  cursor: pointer;
}

.configoption_form .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #1768a4;
  border-color: #1768a4;
}

.configoption_form .custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 3px rgba(23, 104, 164, .1);
}

.configoption_form .form-check-input:checked {
  background-color: #1768a4;
  border-color: #1768a4;
}

.configoption_form .form-check-input:focus {
  border-color: #1768a4;
  box-shadow: 0 0 0 3px rgba(23, 104, 164, .1);
}

/* =========================================
   滑块（range）
   ========================================= */

.configoption_form input[type="range"] {
  height: 4px;
  background: #dfe6ed !important;
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
  margin-right: 12px;
}

.configoption_form input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 4px solid #1768a4;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(23, 104, 164, .25);
}

.configoption_form input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #fff;
  border: 4px solid #1768a4;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(23, 104, 164, .25);
}

.configoption_form .configoption_range_val {
  text-align: center;
  font-weight: 500;
  color: #182536;
}

/* 禁用区域 */
.configoption_form .range_none {
  background: #eef1f5;
  border-radius: 2px;
}

/* =========================================
   密码输入区
   ========================================= */

.configoption_form .getPassword {
  height: 42px;
}

.configoption_form .bx-show-alt,
.configoption_form .create_random_pass {
  color: #8290a0;
  transition: color .2s;
  font-size: 18px;
}

.configoption_form .bx-show-alt:hover,
.configoption_form .create_random_pass:hover {
  color: #1768a4;
}

.configoption_form .error-tip {
  color: #e74c3c;
  font-size: 12px;
}

/* =========================================
   订单摘要（右列）
   ========================================= */

.configoption_form .col-xl-4 .card {
  position: sticky;
  top: 20px;
}

.configoption_form .configoption_total {
  font-size: 13px;
  color: #596a7d;
}

.configoption_form .configoption_total .table {
  margin-bottom: 0;
}

.configoption_form .configoption_total td,
.configoption_form .configoption_total th {
  padding: 8px 0;
  border-top: 1px solid #dfe6ed;
  font-size: 13px;
}

.configoption_form .configoption_total tr:first-child td,
.configoption_form .configoption_total tr:first-child th {
  border-top: none;
}

.configoption_form .configoption_total .text-danger,
.configoption_form .configoption_total .price,
.configoption_form .configoption_total strong {
  color: #f1672a;
}

/* =========================================
   响应式
   ========================================= */

@media (max-width: 1199px) {
  .configoption_form .col-xl-4 .card {
    position: static;
  }
}

@media (max-width: 767px) {
  .configoption_form .card-body {
    padding: 18px 16px;
  }

  .configoption_form .card .card-title {
    font-size: 17px;
  }

  /* 表单在手机端改为上下排列 */
  .configoption_form .form-group.row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
  }

  .configoption_form .form-group.row .col-form-label {
    padding-top: 0;
    padding-bottom: 6px;
    font-weight: 500;
  }

  .configoption_form .btn-group-toggle .btn,
  .configoption_form .btn-group-toggle .btn-primary {
    height: 34px;
    line-height: 32px;
    padding: 0 12px;
    font-size: 12px;
  }

  .configoption_form .btn-custom-group .btn-custom {
    min-width: 74px;
    height: 38px;
    line-height: 36px;
    font-size: 12px;
  }

  .configoption_form input[type="range"] + .configoption_range_val {
    margin-top: 8px;
    width: 100% !important;
  }
}

/* =========================================
   订单汇总（右列）—— 精修
   ========================================= */

/* 标题：与左侧产品名同级 */
.configoption_form .col-xl-4 .card-title {
  font-size: 17px;
  font-weight: 600;
  color: #182536;
  padding-bottom: 16px;
  margin: 0 0 4px;
  border-bottom: 1px solid #dfe6ed;
  letter-spacing: .2px;
}

/* 汇总区外框 */
.configoption_form .configoption_total {
  font-size: 13px;
  color: #596a7d;
  line-height: 1.6;
}

/* 每个「标签：值」行 */
.configoption_form .configoption_total > div,
.configoption_form .configoption_total > p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #f2f5f8;
  margin: 0;
  font-size: 13px;
}

.configoption_form .configoption_total > div:last-child,
.configoption_form .configoption_total > p:last-child {
  border-bottom: none;
}

/* 标签部分灰色 */
.configoption_form .configoption_total > div > span:first-child,
.configoption_form .configoption_total > p > span:first-child {
  color: #8290a0;
  flex-shrink: 0;
}

/* 值部分深色加粗，靠右 */
.configoption_form .configoption_total > div > span:last-child,
.configoption_form .configoption_total > p > span:last-child {
  color: #182536;
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

/* 表格兜底（如果模板用的是 table 渲染） */
.configoption_form .configoption_total .table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.configoption_form .configoption_total .table tr td,
.configoption_form .configoption_total .table tr th {
  padding: 9px 0;
  border: none;
  border-bottom: 1px solid #f2f5f8;
  font-size: 13px;
  color: #596a7d;
}

.configoption_form .configoption_total .table tr:last-child td {
  border-bottom: none;
}

.configoption_form .configoption_total .table tr td:first-child {
  color: #8290a0;
}

.configoption_form .configoption_total .table tr td:last-child {
  color: #182536;
  font-weight: 500;
  text-align: right;
}

/* 总价行：突出 */
.configoption_form .configoption_total .total,
.configoption_form .configoption_total .total-row,
.configoption_form .configoption_total > div:last-of-type {
  border-top: 1px solid #dfe6ed;
  border-bottom: none;
  margin-top: 8px;
  padding-top: 14px;
  padding-bottom: 4px;
}

.configoption_form .configoption_total .total span,
.configoption_form .configoption_total .total-row span {
  font-size: 14px;
  color: #596a7d;
}

.configoption_form .configoption_total .total strong,
.configoption_form .configoption_total .total-row strong,
.configoption_form .configoption_total .total .price,
.configoption_form .configoption_total .total-row .price,
.configoption_form .configoption_total > div:last-of-type > span:last-child {
  font-size: 22px;
  font-weight: 700;
  color: #f1672a;
  line-height: 1;
}

/* =========================================
   加入购物车按钮 —— 统一 jidc 钢蓝
   ========================================= */

.configoption_form .col-xl-4 .btn-primary,
.configoption_form .col-xl-4 .btn-success,
.configoption_form .col-xl-4 button[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 46px;
  margin-top: 20px;
  padding: 0 20px;
  background: #1768a4 !important;
  border: 1px solid #1768a4 !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .3px;
  box-shadow: 0 6px 16px rgba(23, 104, 164, .18);
  transition: background .2s, transform .1s, box-shadow .2s;
}

.configoption_form .col-xl-4 .btn-primary:hover,
.configoption_form .col-xl-4 .btn-success:hover,
.configoption_form .col-xl-4 button[type="submit"]:hover {
  background: #105383 !important;
  border-color: #105383 !important;
  box-shadow: 0 8px 20px rgba(23, 104, 164, .25);
}

.configoption_form .col-xl-4 .btn-primary:active,
.configoption_form .col-xl-4 .btn-success:active,
.configoption_form .col-xl-4 button[type="submit"]:active {
  transform: translateY(1px);
}

/* 按钮内图标 */
.configoption_form .col-xl-4 button[type="submit"] i,
.configoption_form .col-xl-4 button[type="submit"] .iconfont {
  font-size: 16px;
}

/* =========================================
   右列卡片整体：sticky + 底部留白
   ========================================= */

.configoption_form .col-xl-4 .card {
  position: sticky;
  top: 20px;
  margin-bottom: 20px;
}

.configoption_form .col-xl-4 .card-body {
  padding: 22px 22px 20px;
}

/* 移动端 */
@media (max-width: 1199px) {
  .configoption_form .col-xl-4 .card {
    position: static;
  }
}

@media (max-width: 575px) {
  .configoption_form .col-xl-4 .card-title {
    font-size: 16px;
  }

  .configoption_form .configoption_total .total strong,
  .configoption_form .configoption_total .total .price {
    font-size: 20px;
  }
}