﻿/* 云服务器选配风格：实例配置 + 当前配置 */
:root {
  --cfg-blue: #2f6bff;
  --cfg-blue-soft: #eaf1ff;
  --cfg-text: #1f2a37;
  --cfg-muted: #8a94a6;
  --cfg-border: #e6ebf2;
  --cfg-bg: #f3f6fb;
  --cfg-danger: #f04438;
  --cfg-radius: 12px;
}

.main.shop-catalog {
  background: transparent;
}

body .container.cart-web-shell {
  /* 顶距交给外层 .main.main-with-padding，与产品中心 /cart 一致 */
  padding-bottom: 32px;
  background: transparent;
}

/* 配置页全局：去除按钮点击/聚焦时的浏览器默认黑框 */
.cart-web-shell button,
.cfg-mobile-bar button {
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.cart-web-shell button:focus,
.cart-web-shell button:active,
.cart-web-shell button:focus-visible,
.cfg-mobile-bar button:focus,
.cfg-mobile-bar button:active,
.cfg-mobile-bar button:focus-visible {
  outline: none !important;
}

.cfg-form {
  margin: 0;
}

.cfg-page-head {
  margin-top: 22px;
  margin-bottom: 22px;
  padding: 0 0 2px;
}

.cfg-page-head__crumb {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--cfg-muted);
}

.cfg-page-head__crumb a {
  color: var(--cfg-muted);
  text-decoration: none;
}

.cfg-page-head__crumb a:hover {
  color: var(--cfg-blue);
}

.cfg-page-head__crumb-sep {
  margin: 0 6px;
  color: #c2c9d6;
}

.cfg-page-head__title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  color: var(--cfg-text);
}

.cfg-page-head__desc {
  margin: 0;
  font-size: 14px;
  color: var(--cfg-muted);
  max-width: 720px;
}

.cfg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.cfg-panel,
.cfg-summary {
  background: #fff;
  border: 1px solid var(--cfg-border);
  border-radius: var(--cfg-radius);
  box-shadow: 0 8px 24px rgba(31, 56, 100, 0.06);
  overflow: visible;
}

.cfg-panel__head {
  padding: 18px 22px 8px;
}

.cfg-panel__title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.cfg-panel__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--cfg-text);
  position: relative;
  padding-left: 12px;
}

.cfg-panel__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 3px;
  height: 1em;
  border-radius: 2px;
  background: var(--cfg-blue);
}

.cfg-panel__product {
  font-size: 13px;
  color: var(--cfg-muted);
}

.cfg-panel__body {
  padding: 8px 22px 22px;
}

/* 配置行 */
.cfg-form .form-group.row.configureproduct,
.cfg-form .form-group.row,
.cfg-form .cfg-row {
  display: flex;
  align-items: flex-start;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid #f0f3f8;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.cfg-form .form-group.row.is-dd-open,
.cfg-form .form-group.row:has(.cfg-os-dd.is-open) {
  z-index: 50;
}

.cfg-form .form-group.row:last-child,
.cfg-form .cfg-advanced .form-group.row:last-child {
  border-bottom: none;
}

.cfg-form .form-group.row > .col-form-label,
.cfg-form .form-group.row > label.col-md-2,
.cfg-form .cfg-row__label {
  flex: 0 0 108px;
  max-width: 108px;
  width: 108px;
  padding: 8px 12px 0 0 !important;
  margin: 0;
  color: var(--cfg-text);
  font-size: 14px;
  font-weight: 500;
  overflow: visible;
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
}

.cfg-form .col-form-label [data-toggle="tooltip"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: help;
  position: relative;
  z-index: 4;
  color: var(--cfg-blue);
}

.cfg-form .col-form-label [data-toggle="tooltip"] i {
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
}

.cfg-form .form-group.row > [class*="col-md-"],
.cfg-form .cfg-row__ctrl {
  flex: 1;
  max-width: none;
  width: auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 选项按钮：白底未选 / 蓝底已选，宽度随内容，不拉满整行 */
.cfg-form .btn-group-toggle,
.cfg-form .btn-custom-group,
.cfg-form .btn-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 100%;
}

.cfg-form .btn-group-toggle > .btn,
.cfg-form .btn-custom-group > .btn,
.cfg-form .btn-group > .btn,
.cfg-form label.btn.btn-primary,
.cfg-form label.btn.btn-custom,
.cfg-form label.btn.cfg-pwd__mode {
  margin: 0 !important;
  flex: 0 0 auto;
  width: auto !important;
  min-width: 64px;
  height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px !important;
  border: 1px solid #d7deea !important;
  background: #fff !important;
  color: var(--cfg-text) !important;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none !important;
  position: relative;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
}

.cfg-form label.btn.btn-primary.active,
.cfg-form label.btn.btn-custom.active,
.cfg-form .btn-group-toggle > .btn.active,
.cfg-form .btn-custom-group > .btn.active,
.cfg-form label.btn.cfg-pwd__mode.active {
  background: var(--cfg-blue) !important;
  border-color: var(--cfg-blue) !important;
  color: #fff !important;
}

.cfg-form .cycle-select-discount {
  top: -8px;
  right: -4px;
}

/* 单选（警告等）：系统原生圆点，不做成胶囊 */
.cfg-form .cfg-radio-list {
  gap: 12px 28px;
  padding-top: 6px;
}

.cfg-form .form-check,
.cfg-form .cfg-radio {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding-left: 1.5rem;
  margin: 0;
  min-height: 22px;
  overflow: visible;
}

.cfg-form .form-check-input,
.cfg-form .cfg-radio .form-check-input {
  position: absolute;
  left: 0;
  top: 3px;
  margin: 0;
  width: 16px;
  height: 16px;
  pointer-events: auto !important;
  clip: auto !important;
  opacity: 1 !important;
  z-index: 1;
  appearance: auto;
  -webkit-appearance: radio;
  accent-color: var(--cfg-blue);
  cursor: pointer;
}

.cfg-form .form-check-label,
.cfg-form .cfg-radio .form-check-label {
  cursor: pointer;
  pointer-events: auto;
  font-size: 14px;
  font-weight: 400;
  color: var(--cfg-text);
  line-height: 1.55;
  white-space: normal;
}

/* 下拉 */
.cfg-form .bootstrap-select > .dropdown-toggle,
.cfg-form .form-control {
  border-radius: 6px !important;
  border-color: #d7deea !important;
  min-height: 36px;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.cfg-form .form-control:focus,
.cfg-form .form-control:focus-visible,
.cfg-form .bootstrap-select > .dropdown-toggle:focus,
.cfg-form .cfg-pwd__input-wrap .getPassword:focus,
.cfg-form .cfg-pwd__input-wrap .getPassword:focus-visible {
  border-color: #6b8cff !important;
  box-shadow: 0 0 0 3px rgba(107, 140, 255, 0.12) !important;
  outline: none;
}

.cfg-form .cfg-pwd__input-wrap .getPassword.is-invalid:focus,
.cfg-form .cfg-pwd__input-wrap .getPassword.is-invalid:focus-visible {
  border-color: var(--cfg-danger) !important;
  box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.12) !important;
}

.cfg-form .cfg-host-row > [class*="col-md-"] {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
}

.cfg-form input.cfg-host-input.form-control {
  display: inline-block;
  width: auto;
  min-width: 180px;
  max-width: 100%;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 14px;
  font-size: 13px;
  line-height: 34px;
  field-sizing: content;
}

.cfg-form .bootstrap-select {
  width: 100% !important;
  max-width: 360px;
}

/* 操作系统图标 + 版本 */
.cfg-os {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  overflow: visible;
}

.cfg-os__icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cfg-os__item {
  width: 80px;
  height: 80px;
  border: 1px solid #d7deea;
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  padding: 0;
  color: var(--cfg-text);
  font-size: 12px;
  font-weight: 500;
  box-shadow: none;
}

.cfg-os__item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.cfg-os__item span {
  font-size: 12px;
  line-height: 1;
  color: var(--cfg-text);
}

.cfg-os__item.is-active,
.cfg-os__item:hover {
  background: #fff;
  border-color: var(--cfg-blue);
  box-shadow: 0 0 0 1px var(--cfg-blue);
  color: var(--cfg-text);
}

.cfg-os__item.is-active span,
.cfg-os__item:hover span {
  color: var(--cfg-text);
}

.cfg-os-pills {
  max-width: 100%;
}

.cfg-os__version-block,
.cfg-dd-block {
  max-width: 100%;
  width: 100%;
  display: block;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.cfg-os__version-block > select.configoption_os,
.cfg-os__version-block > .bootstrap-select,
.cfg-dd-block > select,
.cfg-dd-block > .bootstrap-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0);
}

.cfg-form .btn-group-toggle > .btn img,
.cfg-form .btn-custom-group > .btn img {
  height: 16px;
  width: auto;
  margin-right: 4px;
}

.cfg-form .btn-group-toggle > .btn.disabled,
.cfg-form .btn-custom-group > .btn.disabled,
.cfg-form label.btn.disabled {
  opacity: .45;
  pointer-events: none;
  cursor: not-allowed;
}

.cfg-os__version-label {
  font-size: 13px;
  color: #5b6577;
  margin: 2px 0 8px;
  font-weight: 500;
}

/* 自定义版本下拉（对齐第二张图 + 动画） */
.cfg-os-dd {
  position: relative;
  display: inline-block;
  width: max-content;
  max-width: none;
  z-index: 1;
}

.cfg-os-dd.is-open {
  z-index: 60;
}

.cfg-os-dd__sizer {
  display: flex;
  flex-direction: column;
  width: max-content;
  max-width: none;
  height: 40px;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  padding: 8px 40px 8px 14px;
  box-sizing: border-box;
  font-size: 13px;
  line-height: 24px;
  white-space: nowrap;
}

.cfg-os-dd__trigger {
  display: flex;
  align-items: center;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 40px;
  min-height: 40px;
  width: 100%;
  max-width: none;
  padding: 8px 40px 8px 14px;
  border: 1px solid #c5d4f5;
  border-radius: 8px;
  background: #fff;
  color: #2f3640;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color .2s ease, box-shadow .2s ease;
  box-shadow: none;
}

.cfg-os-dd__trigger:hover,
.cfg-os-dd.is-open .cfg-os-dd__trigger {
  border-color: #6b8cff;
  box-shadow: 0 0 0 3px rgba(107, 140, 255, 0.12);
}

.cfg-os-dd__trigger-text {
  display: block;
  overflow: visible;
  white-space: nowrap;
  flex: 0 0 auto;
}

.cfg-os-dd__caret {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.5px solid #6b8cff;
  border-bottom: 1.5px solid #6b8cff;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .22s ease;
}

.cfg-os-dd.is-open .cfg-os-dd__caret {
  transform: translateY(1px) rotate(-135deg);
}

.cfg-os-dd__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 1060;
  width: auto;
  min-width: 100%;
  max-width: 100%;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(31, 56, 100, 0.12);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scaleY(0.96);
  transform-origin: top center;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

.cfg-os-dd__menu::before {
  content: "";
  position: absolute;
  left: 22px;
  top: -6px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid #e8edf5;
  border-top: 1px solid #e8edf5;
  transform: rotate(45deg);
}

.cfg-os-dd.is-open .cfg-os-dd__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scaleY(1);
}

.cfg-os-dd__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow: auto;
}

.cfg-os-dd__item {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #2f3640;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}

.cfg-os-dd__item:hover {
  background: #f5f8ff;
  color: #3d6bff;
}

.cfg-os-dd__item.is-active {
  background: #edf2ff;
  color: #3d6bff;
  font-weight: 500;
}

.cfg-os .configoption_os_group {
  /* 保留给脚本，视觉用图标代替 */
}

.cfg-form .cfg-os-group-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

/* 主机密码：随机 / 自定义 */
.cfg-pwd {
  max-width: 420px;
}

.cfg-pwd__modes {
  display: inline-flex;
  gap: 10px;
  margin-bottom: 0;
}

.cfg-pwd__modes .cfg-pwd__mode,
.cfg-form label.btn.cfg-pwd__mode {
  min-width: 96px;
  height: 36px;
  border-radius: 6px !important;
}

.cfg-pwd__panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition: max-height .28s ease, opacity .22s ease, transform .28s ease, margin-top .28s ease;
  margin-top: 0;
  pointer-events: none;
}

.cfg-pwd.is-custom .cfg-pwd__panel {
  max-height: 80px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 10px;
  pointer-events: auto;
  overflow: visible;
}

.cfg-pwd__field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
}

.cfg-pwd__input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 36px;
}

.cfg-pwd__input-wrap .getPassword {
  width: 100%;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 40px 0 14px !important;
  border-radius: 6px !important;
  font-size: 13px;
  line-height: 34px;
  background-size: 16px 16px;
}

.cfg-pwd__input-wrap .getPassword::-ms-clear,
.cfg-pwd__input-wrap .getPassword::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

.cfg-form .cfg-pwd__input-wrap .getPassword.is-invalid,
.cfg-pwd__input-wrap .getPassword.is-invalid,
.cfg-form .was-validated .cfg-pwd__input-wrap .getPassword:invalid {
  background-position: center right 32px !important;
  padding-right: 52px !important;
}

.cfg-pwd__icon {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--cfg-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

.cfg-pwd__icon--eye {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}

.cart-web-shell .cfg-pwd__icon--regen,
.cfg-pwd__icon--regen {
  position: static;
  transform: none;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid #d7deea;
  border-radius: 6px;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
}

.cfg-pwd__icon:hover {
  color: #1f4fd6;
}

.cart-web-shell .cfg-pwd__icon--regen:hover,
.cfg-pwd__icon--regen:hover {
  border-color: #6b8cff;
  box-shadow: 0 0 0 3px rgba(107, 140, 255, 0.12);
}

#password-error-tip {
  line-height: 18px;
  font-size: 12px;
  margin-top: 4px;
  min-height: 0;
}

/* 数量步进器（右侧订购数量） */
.cfg-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cfg-stepper__box {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #d7deea;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  height: 36px;
  position: relative;
}

.cfg-stepper__btn {
  width: 34px;
  border: 0;
  border-radius: 0;
  background: #f7f9fc;
  color: #526079;
  font-size: 16px;
  cursor: pointer;
}

.cfg-stepper__btn:hover {
  background: var(--cfg-blue-soft);
  color: var(--cfg-blue);
}

.cfg-stepper__input,
.cfg-summary .cfg-stepper__input.form-control,
body .cfg-stepper__box .cfg-stepper__input {
  width: 64px !important;
  border: 0 !important;
  border-left: 1px solid #d7deea !important;
  border-right: 1px solid #d7deea !important;
  border-radius: 0 !important;
  text-align: center;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.cfg-stepper__unit {
  color: var(--cfg-muted);
  font-size: 13px;
}

/* 数据盘等数量项：与产品升降级一致的圆形滑块 */
.cfg-form .configureproduct .configoption_range {
  position: relative !important;
  z-index: 2;
  flex: 1 1 auto;
  width: auto !important;
  max-width: none;
  min-width: 0;
  height: 28px !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  background-image: linear-gradient(to right, #3b82f6 0%, #e5e7eb 0%);
  background-size: 100% 4px;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 0;
  touch-action: pan-x;
  -webkit-tap-highlight-color: transparent;
}

.cfg-form .configureproduct .configoption_range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 3px;
  background: transparent;
}

.cfg-form .configureproduct .configoption_range::-moz-range-track {
  height: 4px;
  border-radius: 3px;
  background: transparent;
}

.cfg-form .configureproduct .configoption_range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  background-color: #fff;
  border: 2px solid #3b82f6;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: none;
}

.cfg-form .configureproduct .configoption_range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background-color: #fff;
  border: 2px solid #3b82f6;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: none;
}

.cfg-form .configureproduct .configoption_range:focus {
  outline: none;
}

.cfg-form .configureproduct .configoption_range:active::-webkit-slider-thumb,
.cfg-form .configureproduct .configoption_range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
  border-color: #3b82f6;
}

.cfg-form .configureproduct .configoption_range:active::-moz-range-thumb,
.cfg-form .configureproduct .configoption_range:focus::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
  border-color: #3b82f6;
}

.cfg-form .configureproduct .range_none {
  pointer-events: none !important;
  height: 4px;
  top: 50%;
  margin-top: -2px;
  z-index: 1;
}

.cfg-form .configureproduct .configoption_range_val,
.cfg-form .configureproduct input.configoption_range_val.form-control {
  width: 64px !important;
  max-width: 64px !important;
  min-width: 64px;
  height: 36px !important;
  min-height: 36px !important;
  text-align: center;
  flex: 0 0 64px;
  float: none !important;
  margin: 0 !important;
  border: 1px solid #d7deea !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--cfg-text);
  box-shadow: none !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  padding: 0 8px !important;
}

.cfg-form .configureproduct .configoption_range_val:hover {
  border-color: #b8ccff !important;
}

.cfg-form .configureproduct .configoption_range_val:focus,
.cfg-form .configureproduct input.configoption_range_val.form-control:focus {
  border-color: #2f6bff !important;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.16) !important;
  background: #f8faff !important;
  outline: none !important;
}

.cfg-form .configureproduct .configoption-range-row,
.cfg-form .configureproduct .d-flex.align-items-center {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  position: relative;
}

.cfg-form .configureproduct .configoption-range-unit {
  flex: 0 0 auto;
  color: var(--cfg-muted);
  font-size: 13px;
  white-space: nowrap;
  line-height: 1;
}

.cfg-form .configureproduct .d-flex.align-items-center.is-range-active .configoption_range_val {
  border-color: #2f6bff !important;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.16) !important;
}

/* 高级配置折叠 */
.cfg-advanced {
  margin-top: 8px;
  border: 1px dashed #dce3ef;
  border-radius: 10px;
  overflow: hidden;
}

.cfg-advanced__toggle {
  width: 100%;
  border: 0;
  background: #f8fafc;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--cfg-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.cfg-advanced__toggle i {
  transition: transform .2s;
  color: var(--cfg-muted);
}

.cfg-advanced.is-open .cfg-advanced__toggle i {
  transform: rotate(180deg);
}

.cfg-advanced.is-open {
  overflow: visible;
}

.cfg-advanced__body {
  display: none;
  padding: 4px 16px 12px;
  overflow: visible;
}

.cfg-advanced.is-open .cfg-advanced__body {
  display: block;
}

/* 订购时长在左侧显示 */
.cfg-form .cfg-cycle-row {
  display: flex !important;
}

/* 右侧当前配置 */
.cfg-side {
  position: sticky;
  top: 96px;
  overflow-anchor: none;
}

.cfg-summary__head {
  padding: 18px 20px 10px;
  border-bottom: 1px solid #f0f3f8;
}

.cfg-summary__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--cfg-text);
}

.cfg-summary__hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--cfg-muted);
}

.cfg-summary__body {
  padding: 8px 20px 8px;
  min-height: 120px;
}

.cfg-summary__foot {
  padding: 12px 20px 18px;
}

.cfg-spec {
  list-style: none;
  margin: 0;
  padding: 8px 0 4px;
}

.cfg-spec li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
  color: #5b6577;
  border: 0;
}

.cfg-spec__k {
  color: var(--cfg-muted);
  flex: 0 0 auto;
}

.cfg-spec__v {
  text-align: right;
  color: var(--cfg-text);
  word-break: break-all;
}

/* 桌面端：当前配置默认展示 4 项，可展开/收起 */
@media (min-width: 993px) {
  .cfg-spec-collapsible {
    position: relative;
    margin-bottom: 2px;
  }

  .cfg-spec-collapsible__viewport {
    overflow: hidden;
  }

  .cfg-spec-collapsible.is-animating .cfg-spec-collapsible__viewport {
    transition: max-height .28s cubic-bezier(.22, 1, .36, 1);
  }

  .cfg-spec-collapsible.is-no-anim .cfg-spec-collapsible__viewport {
    transition: none !important;
  }

  .cfg-spec-collapsible.is-collapsed .cfg-spec-collapsible__viewport {
    max-height: var(--cfg-spec-collapsed-h, 168px);
  }

  .cfg-spec-collapsible.is-expanded .cfg-spec-collapsible__viewport {
    max-height: var(--cfg-spec-expanded-h, none);
  }

  .cfg-spec-collapsible__fade {
    display: none;
    position: absolute;
    left: -4px;
    right: -4px;
    bottom: 34px;
    height: 56px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
    background: linear-gradient(
      to bottom,
      rgba(250, 250, 252, 0) 0%,
      rgba(250, 250, 252, 0.18) 40%,
      rgba(250, 250, 252, 0.38) 100%
    );
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 70%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 70%);
  }

  .cfg-spec-collapsible.can-expand .cfg-spec-collapsible__fade {
    display: block;
  }

  .cfg-spec-collapsible.can-expand.is-collapsed .cfg-spec-collapsible__fade {
    opacity: 0.72;
  }

  .cfg-spec-collapsible__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 34px;
    margin: 2px 0 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #f5f8fc;
    color: var(--cfg-blue);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  .cfg-spec-collapsible__label {
    display: inline-block;
  }

  .cfg-spec-collapsible.can-expand .cfg-spec-collapsible__toggle {
    display: flex;
  }

  .cfg-spec-collapsible__toggle:hover {
    background: var(--cfg-blue-soft);
  }

  .cfg-spec-collapsible__toggle:focus,
  .cfg-spec-collapsible__toggle:focus-visible,
  .cfg-spec-collapsible__toggle:active {
    outline: none !important;
    box-shadow: none !important;
  }

  .cfg-spec-collapsible__icon {
    display: block;
    transition: transform .32s cubic-bezier(.22, 1, .36, 1);
  }

  .cfg-spec-collapsible.is-expanded .cfg-spec-collapsible__icon {
    transform: rotate(180deg);
  }
}

.cfg-cost {
  border-top: 1px solid #f0f3f8;
  padding-top: 12px;
  margin-top: 4px;
}

.cfg-cost__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #5b6577;
  font-size: 13px;
  margin-bottom: 6px;
}

.cfg-cost__meta {
  font-size: 12px;
  color: var(--cfg-muted);
  margin-bottom: 4px;
}

.cfg-cost__price {
  font-size: 32px;
  font-weight: 700;
  color: var(--cfg-danger);
  letter-spacing: -0.5px;
}

.cfg-cost__price small {
  font-size: 16px;
  font-weight: 600;
  margin-right: 2px;
}

.cfg-cost__coupon {
  margin-top: 8px;
  width: 100%;
}

.cfg-cost__coupon-btn__close-label {
  display: none;
}

.cfg-cost__coupon.is-coupon-open .cfg-cost__coupon-btn__open-label {
  display: none;
}

.cfg-cost__coupon.is-coupon-open .cfg-cost__coupon-btn__close-label {
  display: inline;
}

.cfg-promo-msg {
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.cfg-promo-msg--error {
  color: #f04438;
}

.cfg-promo-applied {
  font-size: 13px;
  color: var(--cfg-muted);
  line-height: 1.5;
}

.cfg-promo-applied a {
  margin-left: 8px;
  color: var(--cfg-blue);
}

.cfg-promo-discount {
  color: #16a34a;
}

.cfg-cost__coupon-btn {
  border: 0;
  background: transparent;
  color: var(--cfg-danger);
  font-size: 13px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.cfg-cost__coupon-btn i.bx,
.cfg-mobile-coupon__btn i.bx {
  display: block !important;
  flex: 0 0 14px;
  width: 14px !important;
  height: 14px !important;
  font-size: 14px !important;
  line-height: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  font-style: normal;
  font-weight: normal;
  speak: none;
}

.cfg-cost__coupon-btn i.bx::before,
.cfg-mobile-coupon__btn i.bx::before {
  display: block;
  width: 14px;
  height: 14px;
  line-height: 14px !important;
  font-size: 14px;
}

.cfg-cost__coupon-btn span,
.cfg-mobile-coupon__btn span {
  display: block;
  line-height: 14px;
  height: 14px;
  font-size: inherit;
}

.cfg-cost__coupon-btn:focus,
.cfg-cost__coupon-btn:active,
.cfg-cost__coupon-btn:focus-visible,
.cfg-cost__coupon-btn:hover {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--cfg-danger);
}

.cfg-mobile-detail-link {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.cfg-mobile-detail-link:focus,
.cfg-mobile-detail-link:active,
.cfg-mobile-detail-link:focus-visible,
.cfg-mobile-detail-link:hover {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
}

.cfg-coupon-box {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .24s ease, opacity .2s ease;
  pointer-events: none;
}

.cfg-coupon-box.is-open {
  max-height: 56px;
  opacity: 1;
  margin-top: 8px;
  padding: 2px 0;
  overflow: visible;
  pointer-events: auto;
}

.cfg-coupon-box.is-open-no-transition {
  transition: none !important;
}

.cfg-coupon-box input {
  flex: 1;
  min-width: 0;
  height: 34px;
  border: 1px solid #d7deea !important;
  border-radius: 6px !important;
  padding: 0 10px;
  font-size: 13px;
  background: #fff !important;
  color: var(--cfg-text);
  box-shadow: none !important;
  outline: none !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.cfg-coupon-box input:hover {
  border-color: #b8ccff !important;
}

.cfg-coupon-box input:focus {
  border-color: #2f6bff !important;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.16) !important;
  background: #f8faff !important;
  outline: none !important;
}

.cfg-coupon-box button {
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: var(--cfg-blue);
  color: #fff;
  padding: 0 12px;
  font-size: 13px;
  flex-shrink: 0;
  outline: none !important;
  box-shadow: none !important;
}

.cfg-coupon-box button:focus,
.cfg-coupon-box button:active,
.cfg-coupon-box button:focus-visible,
.cfg-coupon-box button:hover {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
  background: var(--cfg-blue) !important;
  color: #fff !important;
}

/* 优惠码悬浮输入：电脑/手机共用，不用 transform，避免输入框被渲成黑底 */
.cfg-coupon-pop,
.cfg-mobile-coupon {
  position: relative;
  display: inline-flex;
  align-items: center;
  --cfg-coupon-arrow: 50%;
}

.cfg-cost__coupon {
  overflow: visible;
}

.cfg-coupon-pop__panel,
.cfg-mobile-coupon__pop {
  position: absolute;
  left: 0;
  right: auto;
  bottom: calc(100% + 10px);
  z-index: 1060;
  width: min(268px, calc(100vw - 24px));
  padding: 16px;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 55, 120, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none;
  transition: opacity .16s ease, visibility .16s ease;
}

.cfg-coupon-pop__panel::after,
.cfg-mobile-coupon__pop::after {
  content: "";
  position: absolute;
  left: var(--cfg-coupon-arrow);
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-right: 1px solid #e6ebf2;
  border-bottom: 1px solid #e6ebf2;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 2px 2px 3px rgba(15, 55, 120, 0.04);
}

.cfg-coupon-pop.is-open .cfg-coupon-pop__panel,
.cfg-coupon-pop__panel.is-open,
.cfg-mobile-coupon.is-open .cfg-mobile-coupon__pop,
.cfg-mobile-coupon__pop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cfg-coupon-pop__applied,
.cfg-mobile-coupon__applied {
  font-size: 12px;
  color: var(--cfg-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}

.cfg-coupon-pop__applied a,
.cfg-mobile-coupon__applied a {
  margin-left: 6px;
  color: var(--cfg-blue);
}

.cfg-coupon-pop__form,
.cfg-mobile-coupon__form {
  display: flex;
  gap: 6px;
  width: 100%;
}

.cfg-coupon-pop__form input,
.cfg-mobile-coupon__form input {
  flex: 1;
  min-width: 0;
  height: 34px;
  border: 1px solid #d7deea !important;
  border-radius: 6px !important;
  padding: 0 10px;
  font-size: 13px;
  background: #fff !important;
  color: var(--cfg-text) !important;
  -webkit-text-fill-color: var(--cfg-text) !important;
  caret-color: var(--cfg-blue);
  color-scheme: light;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.cfg-coupon-pop__form input:hover,
.cfg-mobile-coupon__form input:hover {
  border-color: #b8ccff !important;
}

.cfg-coupon-pop__form input:focus,
.cfg-coupon-pop__form input:focus-visible,
.cfg-mobile-coupon__form input:focus,
.cfg-mobile-coupon__form input:focus-visible {
  border-color: #2f6bff !important;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.16) !important;
  background: #f8faff !important;
  outline: none !important;
}

.cfg-coupon-pop__form input:-webkit-autofill,
.cfg-coupon-pop__form input:-webkit-autofill:focus,
.cfg-mobile-coupon__form input:-webkit-autofill,
.cfg-mobile-coupon__form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px #fff inset !important;
  -webkit-text-fill-color: var(--cfg-text) !important;
  caret-color: var(--cfg-blue);
}

.cfg-coupon-pop__form button,
.cfg-mobile-coupon__form button {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: var(--cfg-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.cfg-field {
  margin-bottom: 14px;
}

.cfg-field--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cfg-field--row .cfg-field__label {
  margin: 0;
  flex: 0 0 auto;
}

.cfg-field__label {
  display: block;
  font-size: 13px;
  color: #5b6577;
  margin-bottom: 6px;
}

.cfg-field select.form-control {
  height: 36px;
  font-size: 13px;
}

.cfg-actions {
  display: block;
  margin-top: 4px;
}

.cfg-actions .btn,
.cfg-btn-cart,
body .cfg-summary button#addToCartBtn {
  width: 100% !important;
  height: 44px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--cfg-blue) !important;
  border: 1px solid var(--cfg-blue) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(47, 107, 255, 0.28);
  transition: transform .15s ease, box-shadow .15s ease;
  padding: 0 16px !important;
  margin: 0 !important;
}

.cfg-actions .btn:hover,
.cfg-btn-cart:hover,
body .cfg-summary button#addToCartBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(47, 107, 255, 0.34);
  color: #fff !important;
}

.cfg-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f3f8;
  color: var(--cfg-muted);
  font-size: 11px;
}

.cfg-trust span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cfg-trust i {
  font-size: 13px;
  color: var(--cfg-blue);
}

.cfg-mobile-bar {
  display: none;
}

.cfg-mobile-mask,
.cfg-mobile-expand {
  display: none;
}

@media (max-width: 992px) {
  .cfg-page-head {
    margin-top: 16px;
    margin-bottom: 16px;
  }

  .cfg-page-head__title {
    font-size: 22px;
  }

  .cfg-layout {
    grid-template-columns: 1fr;
  }

  /* 手机端正文不再展示「当前配置」卡片，只留底部固定栏 */
  .cfg-side {
    display: none !important;
  }

  /* 只给内容区留出底部固定栏高度，避免 main + container 各加一次导致空白过大 */
  body .main.shop-catalog {
    padding-bottom: 0 !important;
  }

  body .container.cart-web-shell {
    padding-bottom: calc(var(--cfg-mobile-dock-h, 64px) + 8px) !important;
  }

  /* 选配/购物车有底部固定栏时，手机端不再露出官网 footer */
  html.has-cfg-mobile-bar .footer-top,
  body.has-cfg-mobile-bar .footer-top,
  body:has(.cfg-mobile-bar) .footer-top,
  html.has-cfg-mobile-bar .scroll-top,
  body.has-cfg-mobile-bar .scroll-top,
  body:has(.cfg-mobile-bar) .scroll-top,
  html.has-cfg-mobile-bar .scroll-to-target,
  body.has-cfg-mobile-bar .scroll-to-target,
  body:has(.cfg-mobile-bar) .scroll-to-target {
    display: none !important;
  }

  .cfg-form .form-group.row.configureproduct,
  .cfg-form .form-group.row {
    flex-direction: column;
  }

  .cfg-form .form-group.row > .col-form-label,
  .cfg-form .form-group.row > label.col-md-2 {
    flex: none;
    max-width: none;
    width: 100%;
    padding-bottom: 8px !important;
  }

  .cfg-form .configureproduct .configoption-range-row,
  .cfg-form .configureproduct .d-flex.align-items-center {
    flex-wrap: nowrap !important;
    max-width: 100%;
    width: 100%;
  }

  .cfg-form .configureproduct .configoption_range {
    min-width: 0 !important;
    width: auto !important;
    flex: 1 1 auto !important;
  }

  .cfg-form .configureproduct .configoption_range_val,
  .cfg-form .configureproduct input.configoption_range_val.form-control {
    flex: 0 0 56px;
    width: 56px !important;
    max-width: 56px !important;
    min-width: 56px;
    height: 32px !important;
    min-height: 32px !important;
  }

  .cfg-actions {
    display: block;
  }

  .cfg-os__icons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .cfg-os__item {
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: 6px 4px;
    gap: 4px;
  }

  .cfg-os__item img {
    width: 24px;
    height: 24px;
  }

  .cfg-os__item span {
    font-size: 11px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cfg-os__version-block,
  .cfg-os__version-block .cfg-os-dd,
  .cfg-os__version-block .cfg-os-dd__sizer {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
  }

  .cfg-os__version-block .cfg-os-dd__menu {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }

  .cfg-os__version-block .cfg-os-dd__trigger-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cfg-mobile-mask {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: var(--cfg-mobile-dock-h, 64px);
    z-index: 1038;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
  }

  .cfg-mobile-bar.is-open .cfg-mobile-mask {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .cfg-mobile-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background: transparent;
    box-shadow: none;
    padding: 0;
    overflow: visible;
    --cfg-mobile-dock-h: 64px;
  }

  /* 底部固定区：上拉层是兄弟节点，展开不撑高底栏 */
  .cfg-mobile-bar__dock.cfg-mobile-summary {
    background: #fff;
    border-top: 1px solid #eef2f8;
    border-radius: 0;
    box-shadow: 0 -8px 24px rgba(15, 55, 120, 0.08);
    padding: 12px 15px calc(12px + env(safe-area-inset-bottom, 0px));
    position: relative;
    z-index: 1041;
    overflow: visible;
  }

  .cfg-mobile-bar.is-open .cfg-mobile-bar__dock.cfg-mobile-summary {
    box-shadow: 0 -12px 32px rgba(15, 55, 120, 0.14);
  }

  .cfg-mobile-expand {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    z-index: 1042;
    background: #fff;
    border-top: 1px solid #eef2f8;
    box-shadow: 0 -10px 28px rgba(15, 55, 120, 0.12);
    max-height: min(58vh, 420px);
    transform: translate3d(0, 12px, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .2s cubic-bezier(.22, 1, .36, 1), opacity .16s ease;
    will-change: transform, opacity;
    contain: layout style;
    backface-visibility: hidden;
  }

  .cfg-mobile-bar.is-open .cfg-mobile-expand {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .cfg-mobile-expand__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px 8px;
  }

  .cfg-mobile-expand__body .cfg-spec {
    margin: 0;
    padding: 0;
  }

  .cfg-mobile-expand__extra {
    flex: 0 0 auto;
    padding: 10px 16px 12px;
    border-top: 1px solid #eef2f8;
    background: #f7f9fc;
  }

  .cfg-mobile-expand__extra .cfg-cost__meta {
    font-size: 12px;
    color: var(--cfg-muted);
    margin-bottom: 6px;
  }

  .cfg-mobile-expand__extra .cfg-mobile-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0 0;
  }

  .cfg-mobile-expand__extra .cfg-mobile-qty .cfg-field__label {
    margin-bottom: 0;
  }

  .cfg-mobile-bar__main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
  }

  .cfg-mobile-bar__info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    height: auto;
    min-height: 36px;
  }

  .cfg-mobile-bar__price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
    height: 36px;
  }

  .cfg-mobile-bar__main .cfg-cost__price {
    font-size: 18px;
    line-height: 1;
    margin: 0;
    font-weight: 700;
    color: var(--cfg-danger);
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 36px;
  }

  .cfg-mobile-bar__main .cfg-cost__price small {
    font-size: 12px;
    font-weight: 600;
    margin-right: 1px;
    line-height: 1;
  }

  .cfg-mobile-detail-link {
    border: 0;
    background: transparent;
    color: var(--cfg-blue) !important;
    font-size: 12px;
    font-weight: 500;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    height: 36px;
    gap: 3px;
  }

  .cfg-mobile-bar.is-open .cfg-mobile-detail-link {
    color: var(--cfg-blue) !important;
    font-weight: 600;
  }

  .cfg-mobile-detail-link > span {
    display: block;
    line-height: 1;
  }

  .cfg-mobile-detail-chevron {
    display: block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    transform: rotate(0deg);
    transform-origin: 50% 50%;
    transition: transform .28s cubic-bezier(.22, 1, .36, 1);
  }

  .cfg-mobile-bar.is-open .cfg-mobile-detail-chevron {
    transform: rotate(180deg);
  }

  .cfg-mobile-bar__main .cfg-actions {
    flex: 0 0 auto;
    margin: 0 !important;
    display: flex;
    align-items: center;
    width: auto;
  }

  .cfg-mobile-bar__ops {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    height: 36px;
  }

  .cfg-mobile-bar__disc {
    position: static;
    font-size: 11px;
    line-height: 1.3;
    color: var(--cfg-muted);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .cfg-mobile-bar__disc[hidden] {
    display: none !important;
  }

  .cfg-mobile-bar__disc.cfg-promo-discount {
    color: #16a34a;
  }

  .cfg-mobile-bar .cfg-mobile-coupon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 36px;
  }

  .cfg-mobile-coupon__btn {
    border: 0;
    background: transparent;
    color: var(--cfg-danger);
    font-size: 12px;
    font-weight: 500;
    padding: 0;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 36px;
  }

  .cfg-mobile-coupon__btn i.bx {
    flex: 0 0 14px;
    width: 14px !important;
    height: 14px !important;
    font-size: 14px !important;
    line-height: 14px !important;
  }

  .cfg-mobile-coupon__btn span {
    line-height: 14px;
    height: 14px;
  }

  .cfg-mobile-bar__main .cfg-btn-cart,
  .cfg-mobile-bar__main #addToCartBtnTwo,
  .cfg-mobile-bar__main #cartMobileCheckout {
    width: auto !important;
    min-width: 104px;
    height: 36px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    background: var(--cfg-blue) !important;
    border: 1px solid var(--cfg-blue) !important;
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(47, 107, 255, 0.24);
    white-space: nowrap;
  }

  .cfg-mobile-bar__main .cfg-btn-cart i,
  .cfg-mobile-bar__main #addToCartBtnTwo i,
  .cfg-mobile-bar__main #cartMobileCheckout i {
    display: none;
  }

  .cfg-mobile-bar__main .cart-auth-actions {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 132px;
    gap: 0;
  }

  .cfg-mobile-bar__main .cart-auth-actions--single .cart-auth-actions__btn {
    width: 100%;
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    background: #fff !important;
    color: var(--cfg-blue) !important;
    border: 1px solid #d7deea !important;
    box-shadow: none;
    white-space: nowrap;
  }

  .cfg-mobile-bar__main .cart-mobile-terms {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 3px;
    min-height: 0;
    padding: 0;
    line-height: 1;
  }

  .cfg-mobile-bar__main .cart-mobile-terms input[type="checkbox"] {
    position: static;
    width: 14px;
    height: 14px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    align-self: center;
    vertical-align: middle;
    accent-color: var(--cfg-blue);
  }

  .cfg-mobile-bar__main .cart-mobile-terms span {
    font-size: 12px;
    line-height: 14px;
    color: var(--cfg-muted);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  .cfg-mobile-bar__main .cart-mobile-terms a {
    color: var(--cfg-blue);
  }

  body.cfg-mobile-sheet-open {
    overflow: hidden;
  }
}
