:root {
  --brand: #2f6bff;
  --brand-d: #1f56e0;
  --brand-s: #eaf1ff;
  --ink: #0f1b33;
  --text: #1f2a44;
  --muted: #6b7790;
  --line: #e6ebf2;
  --bg: #f5f7fb;
  --white: #ffffff;
  --hot: #ff4d4f;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(15, 27, 51, 0.05);
  --side-w: 260px;
}

.page-content,
body {
  background: var(--bg) !important;
}

.zy-cart {
  max-width: 1680px;
  margin: 0 auto;
  padding: 16px 28px 40px;
}

.zy-cart-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.zy-cart-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}

.zy-cart-crumb-path {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.zy-cart-crumb-path a {
  color: var(--muted);
  text-decoration: none;
}

.zy-cart-crumb-path a:hover {
  color: var(--brand);
}

.zy-cart-crumb-path strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.zy-cart-crumb-desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.zy-cart-layout {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.zy-cart-side {
  position: sticky;
  top: 16px;
}

.zy-cart-side-inner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.zy-cart-search {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #fafbff;
}

.zy-cart-search input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  outline: none;
  font-size: 13px;
}

.zy-cart-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}

.zy-cart-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  width: 36px;
  border: none;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  flex-shrink: 0;
}

.zy-cart-search button:hover {
  background: var(--brand-d);
}

.zy-cart-nav {
  max-height: calc(100vh - 160px);
  overflow: auto;
  padding: 6px 0 10px;
}

.zy-cart-group {
  border-bottom: 1px solid #f0f3f8;
}

.zy-cart-group:last-child {
  border-bottom: none;
}

.zy-cart-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  transition: background .15s ease, color .15s ease;
}

.zy-cart-group-title:hover {
  background: #f7f9fd;
  color: var(--brand);
}

.zy-cart-group.is-open > .zy-cart-group-title {
  color: var(--brand);
}

.zy-cart-group-name {
  flex: 1;
  min-width: 0;
}

.zy-cart-group-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid #9aa3b5;
  border-bottom: 2px solid #9aa3b5;
  transform: rotate(-45deg);
  transition: transform .2s ease, border-color .15s ease;
  flex-shrink: 0;
  margin-right: 2px;
}

.zy-cart-group.is-open .zy-cart-group-arrow {
  transform: rotate(45deg);
  border-color: var(--brand);
  margin-top: -2px;
}

.zy-cart-group-list {
  list-style: none;
  margin: 0;
  padding: 0 8px 10px;
}

.zy-cart-group:not(.is-open) > .zy-cart-group-list {
  display: none;
}

.zy-cart-group.is-open > .zy-cart-group-list {
  display: block;
}

.zy-cart-group-list li a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .15s ease, color .15s ease;
}

.zy-cart-group-list li a:hover {
  background: var(--brand-s);
  color: var(--brand);
}

.zy-cart-group-list li.active a {
  background: var(--brand-s);
  color: var(--brand);
  border-left-color: var(--brand);
}

.zy-cart-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.zy-cart-item-name {
  display: block;
  line-height: 1.35;
  font-size: 13px;
  font-weight: 650;
  color: inherit;
}

.zy-cart-item-tagline {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.35;
  font-size: 11px;
  font-weight: 400;
  color: #be123c;
  word-break: break-all;
}

.zy-cart-group-list li.active .zy-cart-item-name {
  color: var(--brand);
  font-weight: 700;
}

.zy-cart-group-list li.active .zy-cart-item-tagline {
  color: #6b7790;
}

.zy-cart-group-list li a:hover .zy-cart-item-tagline {
  color: #8a6170;
}

.zy-cart-badge {
  flex-shrink: 0;
  align-self: center;
  margin: 0 0 0 6px;
  font-style: normal;
  font-size: 11px;
  line-height: 1.2;
  padding: 2px 6px;
  border-radius: 3px;
  color: #fff;
  background: #e11d48;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.zy-cart-main {
  min-width: 0;
}

.zy-cart-tip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: linear-gradient(90deg, #eaf1ff 0%, #f5f8ff 100%);
  color: var(--brand-d);
  border: 1px solid #d7e4ff;
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 14px;
  font-size: 13px;
}

.zy-tip-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  flex-shrink: 0;
}

.zy-cart-tip a {
  color: var(--brand);
  font-weight: 700;
  margin-left: auto;
}

/* 商品组标语：企业精致提示条（仅有 tagline 时出现） */
.zy-cart-slogan {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 12px 18px 12px 16px;
  background:
    linear-gradient(135deg, rgba(47,107,255,.04) 0%, transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  border: 1px solid #e6ebf3;
  border-radius: 12px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 8px 24px rgba(15, 27, 51, .04);
  overflow: hidden;
}
.zy-cart-slogan::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #5b8cff 0%, #2f6bff 55%, #1f56e0 100%);
}
.zy-cart-slogan-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: 4px;
  border-radius: 10px;
  background: linear-gradient(160deg, #eef3ff 0%, #e4ecff 100%);
  color: #2f6bff;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(47,107,255,.12);
}
.zy-cart-slogan-text {
  margin: 0;
  min-width: 0;
  flex: 1;
  color: #2a3850;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zy-prod-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.zy-prod-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  min-height: 0;
  height: auto;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.zy-prod-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 14px 34px rgba(47, 107, 255, 0.14);
}

.zy-prod-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.zy-prod-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.zy-prod-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-s);
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 1px;
}

.zy-prod-head h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 700;
}

.zy-prod-stock {
  flex-shrink: 0;
  font-style: normal;
  font-size: 11px;
  color: var(--brand);
  background: var(--brand-s);
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 650;
}

.zy-prod-stock.is-out {
  color: #fff;
  background: #c5cad6;
}

.zy-prod-body {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}

.zy-prod-desc {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 12px;
  max-height: 220px;
  overflow: auto;
}

.zy-prod-desc pre,
.zy-prod-desc p,
.zy-prod-desc ul {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}

.zy-prod-desc li {
  list-style: none;
}

.zy-prod-specs {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zy-prod-specs li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  word-break: break-word;
}

.zy-spec-label {
  color: var(--muted);
  font-size: 12px;
  padding-top: 1px;
}

.zy-spec-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.zy-spec-value strong {
  color: var(--ink);
  font-weight: 650;
  word-break: break-word;
  font-size: 13px;
}

.zy-spec-chip {
  font-style: normal;
  font-size: 11px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid #b7ccff;
  color: var(--brand);
  background: #f4f8ff;
  font-weight: 650;
  white-space: nowrap;
}

.zy-prod-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.zy-prod-tags span {
  font-size: 12px;
  color: #be123c;
  background: #fff;
  border: 1px solid #fecdd3;
  border-radius: 4px;
  padding: 2px 8px;
}

.zy-prod-foot {
  margin-top: 0;
  padding-top: 0;
}

.zy-prod-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 12px;
}

.zy-prod-price strong {
  color: var(--hot);
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.zy-prod-price span {
  color: var(--muted);
  font-size: 13px;
}

.zy-prod-price s {
  color: #9aa3b5;
  font-size: 12px;
}

.zy-prod-sale-line,
.zy-prod-meta-line {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
}

.zy-prod-sale-line em,
.zy-prod-meta-line em {
  font-style: normal;
  color: var(--hot);
  font-weight: 650;
}

.zy-prod-sale-line span,
.zy-prod-meta-line span {
  color: #9aa3b5;
  font-size: 12px;
}

.zy-prod-meta-line .zy-prod-day {
  color: #9aa3b5;
}

.zy-prod-price small {
  width: 100%;
  color: #9aa3b5;
  font-size: 12px;
  line-height: 1.3;
  margin-top: 2px;
}

.zy-prod-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  border: none;
  width: 100%;
  transition: background .15s ease, box-shadow .15s ease;
}

.zy-prod-btn:hover {
  background: var(--brand-d);
  box-shadow: 0 8px 18px rgba(47, 107, 255, 0.28);
}

.zy-prod-btn.is-disabled {
  background: #c5cad6;
  cursor: not-allowed;
  box-shadow: none;
}

.zy-cart-pages {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.zy-cart-pages .page-item.active .page-link {
  background: var(--brand);
  border-color: var(--brand);
}

.zy-cart-empty,
.zy-cart-empty-side {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}

.zy-cart-note {
  margin-top: 18px;
  background:
    linear-gradient(180deg, rgba(47, 107, 255, 0.045) 0%, rgba(47, 107, 255, 0.02) 100%),
    #f7faff;
  border: 1px solid #d9e6ff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 27, 51, 0.04);
  overflow: hidden;
  color: #31415f;
  font-size: 13px;
  line-height: 1.75;
}

.zy-note-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px 14px;
}

.zy-cart-note .zy-tip-ico {
  margin-top: 2px;
  width: 20px;
  height: 20px;
  font-size: 12px;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.28);
}

.zy-note-body {
  min-width: 0;
  flex: 1;
}

.zy-note-body > p {
  margin: 0 0 10px;
}

.zy-note-body > p:last-child {
  margin-bottom: 0;
}

.zy-note-alert {
  color: #b42318;
}

.zy-note-alert strong {
  color: #912018;
  font-weight: 700;
}

.zy-note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
  margin-bottom: 10px;
}

.zy-note-grid p {
  margin: 0;
  color: #3a4a66;
}

.zy-note-grid strong,
.zy-note-remind strong,
.zy-note-foot strong {
  color: #1f3f8f;
  font-weight: 700;
}

.zy-note-remind {
  color: #3a4a66;
}

.zy-note-agree {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  color: #52627a;
}

.zy-note-agree > span {
  color: #31415f;
  font-weight: 600;
}

.zy-cart-note a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.zy-cart-note a:hover {
  color: #1f54e0;
}

.zy-cart-note a em {
  font-style: normal;
  margin-left: 1px;
  opacity: 0.85;
}

.zy-note-sep {
  color: #b8c4d8;
  font-style: normal;
  font-weight: 400;
  margin: 0 2px;
}

.zy-note-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding: 12px 18px 14px;
  border-top: 1px dashed #cfdcf5;
  background: rgba(255, 255, 255, 0.55);
}

.zy-note-foot-item {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.zy-cart-note strong {
  display: inline;
  margin-right: 0;
  color: inherit;
}

.zy-cart-mask {
  display: none;
}

.btn-primary {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  border-radius: 10px !important;
}

/* configure / viewcart soft polish — scoped so web chrome stays intact */
.zy-config .card,
.zy-checkout .card {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow);
  overflow: visible !important;
}

.zy-config .card-header,
.zy-checkout .card-header {
  background: #fafbff !important;
  border-bottom: 1px solid var(--line) !important;
  color: var(--ink) !important;
  font-weight: 700;
}

.zy-config .form-control:focus,
.zy-config .custom-select:focus,
.zy-checkout .form-control:focus,
.zy-checkout .custom-select:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12) !important;
}

.zy-config .custom-control-input:checked ~ .custom-control-label::before,
.zy-checkout .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
}

.zy-config .nav-pills .nav-link.active,
.zy-config .list-group-item.active,
.zy-checkout .nav-pills .nav-link.active,
.zy-checkout .list-group-item.active {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
}

.zy-config .text-danger,
.zy-checkout .text-danger,
.zy-config [style*="color: #e64a19"],
.zy-checkout [style*="color: #e64a19"],
.zy-config [style*="color:#e64a19"],
.zy-checkout [style*="color:#e64a19"] {
  color: var(--hot) !important;
}

.zy-config .table th,
.zy-checkout .table th {
  background: #f7f9fc;
  color: var(--muted);
  font-weight: 650;
}

.zy-config {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 12px 32px;
  position: relative;
  z-index: 2;
}

/* ---------- Compat: isolate from foreign web themes (M1 float grid etc.) ---------- */
.zy-config,
.zy-checkout,
.zy-cart {
  box-sizing: border-box;
}

.zy-config *,
.zy-config *::before,
.zy-config *::after,
.zy-checkout *,
.zy-checkout *::before,
.zy-checkout *::after {
  box-sizing: border-box !important;
}

.zy-config .row,
.zy-checkout .row {
  display: flex !important;
  flex-wrap: wrap !important;
  margin-right: -15px !important;
  margin-left: -15px !important;
  float: none !important;
  clear: none !important;
  width: auto !important;
}

.zy-config .row::before,
.zy-config .row::after,
.zy-checkout .row::before,
.zy-checkout .row::after {
  display: none !important;
  content: none !important;
}

.zy-config [class*="col-"],
.zy-checkout [class*="col-"] {
  float: none !important;
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-right: 15px !important;
  padding-left: 15px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  /* 默认整行堆叠；桌面由 md/xl 断点覆盖。勿用 flex-grow:1，否则手机端会并排挤扁 */
  flex: 0 0 100% !important;
  min-height: 1px;
}

.zy-config .col,
.zy-checkout .col,
.zy-config .col-auto,
.zy-checkout .col-auto {
  flex: 0 0 auto;
  width: auto !important;
  max-width: 100% !important;
}

.zy-config .col-1, .zy-checkout .col-1 { flex: 0 0 8.333333% !important; max-width: 8.333333% !important; width: 8.333333% !important; }
.zy-config .col-2, .zy-checkout .col-2 { flex: 0 0 16.666667% !important; max-width: 16.666667% !important; width: 16.666667% !important; }
.zy-config .col-3, .zy-checkout .col-3 { flex: 0 0 25% !important; max-width: 25% !important; width: 25% !important; }
.zy-config .col-4, .zy-checkout .col-4 { flex: 0 0 33.333333% !important; max-width: 33.333333% !important; width: 33.333333% !important; }
.zy-config .col-5, .zy-checkout .col-5 { flex: 0 0 41.666667% !important; max-width: 41.666667% !important; width: 41.666667% !important; }
.zy-config .col-6, .zy-checkout .col-6 { flex: 0 0 50% !important; max-width: 50% !important; width: 50% !important; }
.zy-config .col-7, .zy-checkout .col-7 { flex: 0 0 58.333333% !important; max-width: 58.333333% !important; width: 58.333333% !important; }
.zy-config .col-8, .zy-checkout .col-8 { flex: 0 0 66.666667% !important; max-width: 66.666667% !important; width: 66.666667% !important; }
.zy-config .col-9, .zy-checkout .col-9 { flex: 0 0 75% !important; max-width: 75% !important; width: 75% !important; }
.zy-config .col-10, .zy-checkout .col-10 { flex: 0 0 83.333333% !important; max-width: 83.333333% !important; width: 83.333333% !important; }
.zy-config .col-11, .zy-checkout .col-11 { flex: 0 0 91.666667% !important; max-width: 91.666667% !important; width: 91.666667% !important; }
.zy-config .col-12, .zy-checkout .col-12 { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }

@media (min-width: 576px) {
  .zy-config .col-sm-1, .zy-checkout .col-sm-1 { flex: 0 0 8.333333% !important; max-width: 8.333333% !important; width: 8.333333% !important; }
  .zy-config .col-sm-2, .zy-checkout .col-sm-2 { flex: 0 0 16.666667% !important; max-width: 16.666667% !important; width: 16.666667% !important; }
  .zy-config .col-sm-3, .zy-checkout .col-sm-3 { flex: 0 0 25% !important; max-width: 25% !important; width: 25% !important; }
  .zy-config .col-sm-4, .zy-checkout .col-sm-4 { flex: 0 0 33.333333% !important; max-width: 33.333333% !important; width: 33.333333% !important; }
  .zy-config .col-sm-6, .zy-checkout .col-sm-6 { flex: 0 0 50% !important; max-width: 50% !important; width: 50% !important; }
  .zy-config .col-sm-8, .zy-checkout .col-sm-8 { flex: 0 0 66.666667% !important; max-width: 66.666667% !important; width: 66.666667% !important; }
  .zy-config .col-sm-10, .zy-checkout .col-sm-10 { flex: 0 0 83.333333% !important; max-width: 83.333333% !important; width: 83.333333% !important; }
  .zy-config .col-sm-12, .zy-checkout .col-sm-12 { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
}

@media (min-width: 768px) {
  .zy-config .col-md-1, .zy-checkout .col-md-1 { flex: 0 0 8.333333% !important; max-width: 8.333333% !important; width: 8.333333% !important; }
  .zy-config .col-md-2, .zy-checkout .col-md-2 { flex: 0 0 16.666667% !important; max-width: 16.666667% !important; width: 16.666667% !important; }
  .zy-config .col-md-3, .zy-checkout .col-md-3 { flex: 0 0 25% !important; max-width: 25% !important; width: 25% !important; }
  .zy-config .col-md-4, .zy-checkout .col-md-4 { flex: 0 0 33.333333% !important; max-width: 33.333333% !important; width: 33.333333% !important; }
  .zy-config .col-md-5, .zy-checkout .col-md-5 { flex: 0 0 41.666667% !important; max-width: 41.666667% !important; width: 41.666667% !important; }
  .zy-config .col-md-6, .zy-checkout .col-md-6 { flex: 0 0 50% !important; max-width: 50% !important; width: 50% !important; }
  .zy-config .col-md-7, .zy-checkout .col-md-7 { flex: 0 0 58.333333% !important; max-width: 58.333333% !important; width: 58.333333% !important; }
  .zy-config .col-md-8, .zy-checkout .col-md-8 { flex: 0 0 66.666667% !important; max-width: 66.666667% !important; width: 66.666667% !important; }
  .zy-config .col-md-9, .zy-checkout .col-md-9 { flex: 0 0 75% !important; max-width: 75% !important; width: 75% !important; }
  .zy-config .col-md-10, .zy-checkout .col-md-10 { flex: 0 0 83.333333% !important; max-width: 83.333333% !important; width: 83.333333% !important; }
  .zy-config .col-md-11, .zy-checkout .col-md-11 { flex: 0 0 91.666667% !important; max-width: 91.666667% !important; width: 91.666667% !important; }
  .zy-config .col-md-12, .zy-checkout .col-md-12 { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
}

@media (min-width: 992px) {
  .zy-config .col-lg-4, .zy-checkout .col-lg-4 { flex: 0 0 33.333333% !important; max-width: 33.333333% !important; width: 33.333333% !important; }
  .zy-config .col-lg-8, .zy-checkout .col-lg-8 { flex: 0 0 66.666667% !important; max-width: 66.666667% !important; width: 66.666667% !important; }
  .zy-config .col-lg-12, .zy-checkout .col-lg-12 { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
}

@media (min-width: 1200px) {
  .zy-config .col-xl-4, .zy-checkout .col-xl-4 { flex: 0 0 33.333333% !important; max-width: 33.333333% !important; width: 33.333333% !important; }
  .zy-config .col-xl-8, .zy-checkout .col-xl-8 { flex: 0 0 66.666667% !important; max-width: 66.666667% !important; width: 66.666667% !important; }
  .zy-config .col-xl-12, .zy-checkout .col-xl-12 { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
}

/* Override M1 float grid even at its 1280px breakpoint */
@media (min-width: 1280px) {
  .zy-config [class*="col-md-"],
  .zy-checkout [class*="col-md-"],
  .zy-config [class*="col-xl-"],
  .zy-checkout [class*="col-xl-"] {
    float: none !important;
  }
}

.zy-config .form-group.row,
.zy-checkout .form-group.row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  margin-left: -15px !important;
  margin-right: -15px !important;
  margin-bottom: 1rem;
}

.zy-config .form-group > label,
.zy-config .configureproduct > label,
.zy-config .col-form-label {
  float: none !important;
  text-align: left !important;
  margin-bottom: 0;
}

.zy-config .d-flex { display: flex !important; }
.zy-config .d-none { display: none !important; }
.zy-config .align-items-center { align-items: center !important; }
.zy-config .justify-content-start { justify-content: flex-start !important; }
.zy-config .justify-content-between { justify-content: space-between !important; }
.zy-config .flex-wrap { flex-wrap: wrap !important; }
.zy-config .float-left { float: left !important; }
.zy-config .float-right { float: right !important; }
.zy-config .mr-2 { margin-right: 0.5rem !important; }
.zy-config .mb-0 { margin-bottom: 0 !important; }
.zy-config .mb-3 { margin-bottom: 1rem !important; }
.zy-config .w-100 { width: 100% !important; }

.zy-config .form-control,
.zy-config .custom-select,
.zy-checkout .form-control {
  display: block;
  width: 100%;
  max-width: 100%;
  height: calc(1.5em + 0.94rem + 2px);
  padding: 0.47rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}

.zy-config .form-control-sm {
  height: calc(1.5em + 0.5rem + 2px);
  padding: 0.25rem 0.5rem;
  font-size: 0.7875rem;
}

.zy-config .form-control-range {
  width: 100%;
  max-width: calc(100% - 110px);
  min-width: 120px;
}

.zy-config .configoption_range_val {
  width: 72px !important;
  max-width: 72px !important;
  flex: 0 0 72px !important;
  float: none !important;
}

.zy-config .card {
  background: #fff;
}

.zy-config-crumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.zy-config-crumb a {
  color: var(--brand);
  text-decoration: none;
}

.zy-config-head .card-title {
  font-size: 20px !important;
  font-weight: 750 !important;
  color: var(--ink) !important;
}

.zy-config .configureproduct > label,
.zy-config .form-group > label {
  color: var(--ink);
  font-weight: 650;
  font-size: 13px;
}

.zy-config .btn-custom-group .btn-custom {
  border-radius: 8px !important;
  min-height: 36px !important;
  min-width: 72px !important;
  padding: 0 16px !important;
  border-color: var(--line) !important;
  background: #fff !important;
  color: var(--text) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.zy-config .btn-custom-group .active,
.zy-config .btn-custom-group label.btn:has(input:checked) {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(47, 107, 255, 0.22);
}

.zy-config .btn-custom-group {
  display: inline-flex !important;
  flex-wrap: wrap;
  gap: 8px;
}

/* Radio / checkbox options under M1 (BS5 header + BS4 cart) */
.zy-config .form-check {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  position: relative !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-height: 40px !important;
  margin: 0 12px 10px 0 !important;
  padding: 8px 16px 8px 14px !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  flex: 0 0 auto !important;
}
.zy-config .form-check:has(.form-check-input:checked) {
  border-color: var(--brand) !important;
  background: #eef3ff !important;
}
.zy-config .form-check-input {
  position: static !important;
  float: none !important;
  margin: 0 !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  flex-shrink: 0 !important;
  accent-color: var(--brand);
}
.zy-config .form-check-label {
  position: static !important;
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  white-space: nowrap !important;
  width: auto !important;
  max-width: none !important;
  color: var(--ink) !important;
}
.zy-config .custom-control {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 16px !important;
  padding-left: 16px !important;
  margin: 0 12px 10px 0 !important;
  min-height: 40px !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: #fff !important;
}
.zy-config .custom-control-input {
  position: static !important;
  z-index: auto !important;
  opacity: 1 !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  accent-color: var(--brand);
}
.zy-config .custom-control-label {
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  letter-spacing: normal !important;
  color: var(--ink) !important;
}
.zy-config .custom-control-label::before,
.zy-config .custom-control-label::after {
  display: none !important;
  content: none !important;
}
.zy-config .btn-group-toggle {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
.zy-config .btn-group-toggle > .btn,
.zy-config .btn-group-toggle > label.btn {
  float: none !important;
  margin: 0 !important;
  white-space: nowrap !important;
  letter-spacing: normal !important;
  height: auto !important;
  min-height: 38px !important;
  padding: 8px 16px !important;
  line-height: 1.35 !important;
  font-size: 14px !important;
}

.zy-config .bootstrap-select {
  width: 100% !important;
  max-width: 100%;
}

.zy-config .bootstrap-select > .dropdown-toggle {
  min-height: 38px !important;
  pointer-events: auto !important;
  border-radius: 8px !important;
  border-color: #d7dee8 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.zy-config .bootstrap-select .dropdown-menu {
  z-index: 2000 !important;
  max-height: 320px !important;
  border: 1px solid #e6ebf2 !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 28px rgba(15, 27, 51, 0.14) !important;
  padding: 6px 0 !important;
  margin-top: 4px !important;
  overflow-x: hidden;
}

.zy-config .bootstrap-select .dropdown-menu li a,
.zy-config .bootstrap-select .dropdown-menu .dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 14px !important;
  font-size: 13px !important;
  color: #1f2a44 !important;
  background: transparent !important;
}

.zy-config .bootstrap-select .dropdown-menu li.selected a,
.zy-config .bootstrap-select .dropdown-menu li.active a,
.zy-config .bootstrap-select .dropdown-menu .dropdown-item.active,
.zy-config .bootstrap-select .dropdown-menu .dropdown-item:active,
.zy-config .bootstrap-select .dropdown-menu .dropdown-item:hover {
  background: #eef3ff !important;
  color: var(--brand) !important;
}

.zy-config .bootstrap-select .dropdown-menu li a img,
.zy-config .bootstrap-select .filter-option img {
  flex-shrink: 0;
  vertical-align: middle;
}

.zy-config .dropdown-menu {
  z-index: 2000 !important;
}

.zy-config .range_none {
  pointer-events: none;
}

.zy-config-summary {
  position: sticky;
  top: 88px;
}

.zy-config-summary > .card-body {
  position: relative;
  min-height: 320px;
  padding-bottom: 76px !important;
}

.zy-config-summary .card-title {
  margin-bottom: 14px !important;
  font-size: 16px !important;
  color: var(--ink) !important;
}

.zy-config-summary .ordersummary td {
  border: none !important;
  padding: 7px 0 !important;
  font-size: 13px;
  vertical-align: top;
  line-height: 1.45;
}

.zy-config-summary .ordersummary .color-999 {
  color: #8a94a6 !important;
}

.zy-config-summary .font-weight-bold.text-dark {
  color: var(--hot) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
}

.zy-config-summary #addToCartBtn {
  position: static !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 42px;
  border-radius: 10px !important;
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  font-weight: 700;
}

/* 配置页移动端底栏：加入购物车加大 */
.zy-config .mobile-bottom-total {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1080;
  width: 100%;
  height: auto !important;
  min-height: 64px;
  line-height: normal !important;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
  background: #fff;
  box-shadow: 0 -8px 24px rgba(15, 27, 51, 0.12);
  border-top: 1px solid #e8edf5;
  text-align: right;
}

.zy-config .mobile-bottom-total .total {
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px !important;
  font-size: 15px !important;
  font-weight: 600;
  color: #1f2a44;
  line-height: 1.2;
}

.zy-config .mobile-bottom-total #addToCartBtnTwo {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  min-width: 148px;
  height: 48px !important;
  padding: 0 22px !important;
  border-radius: 10px !important;
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.zy-config-summary .text-sm-right.mobile-hide {
  position: absolute !important;
  left: 24px !important;
  right: 24px !important;
  bottom: 20px !important;
  margin: 0 !important;
  text-align: right !important;
}

/* ---------- Shield web header/footer from cart Bootstrap (M1) ---------- */
.zy-topbar a {
  color: rgba(255, 255, 255, 0.78) !important;
  text-decoration: none !important;
}
.zy-topbar a:hover { color: #fff !important; }

.zy-header a {
  text-decoration: none !important;
}
.zy-nav-item > a {
  color: var(--ink, #0f1b33) !important;
}
.zy-nav-item > a:hover {
  color: var(--brand, #2f6bff) !important;
}

.zy-footer {
  background: #0b1220 !important;
  color: rgba(255, 255, 255, 0.76) !important;
}
.zy-footer-cta {
  background: linear-gradient(90deg, #1f56e0, #2f6bff 55%, #4a7fff) !important;
  color: #fff !important;
}
.zy-footer-cta h2,
.zy-footer-cta p { color: #fff !important; }
.zy-footer-grid {
  display: grid !important;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)) !important;
  gap: 28px !important;
  padding: 48px 0 28px !important;
  float: none !important;
  width: auto !important;
  margin: 0 auto !important;
}
.zy-footer-col h4 {
  color: #fff !important;
  font-size: 15px !important;
  margin: 0 0 14px !important;
  font-weight: 700 !important;
}
.zy-footer-col ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.zy-footer-col li {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
}
.zy-footer-col a,
.zy-footer-brand a,
.zy-footer-bottom a {
  display: block !important;
  padding: 6px 0 !important;
  color: rgba(255, 255, 255, 0.66) !important;
  font-size: 13px !important;
  text-decoration: none !important;
  background: transparent !important;
}
.zy-footer-col a:hover,
.zy-footer-bottom a:hover {
  color: #fff !important;
}
.zy-footer-brand p {
  color: rgba(255, 255, 255, 0.76) !important;
  margin: 0 0 8px !important;
}
.zy-footer-meta {
  color: rgba(255, 255, 255, 0.55) !important;
}
.zy-footer-bottom {
  display: flex !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  color: rgba(255, 255, 255, 0.55) !important;
}
.zy-footer-bottom a {
  display: inline !important;
  padding: 0 !important;
}
.zy-dock a,
.zy-dock button {
  text-decoration: none !important;
}

@media (max-width: 992px) {
  .zy-footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

.zy-checkout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 12px 40px;
  position: relative;
  z-index: 2;
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: var(--ink);
}

.zy-checkout .submit-btn {
  height: 44px;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 700;
  letter-spacing: .02em;
}

.zy-checkout .payDiv a {
  color: var(--brand);
  font-size: 13px;
  font-weight: 650;
}

.zy-checkout .font-size-18.text-primary,
.zy-checkout .price-num {
  color: var(--hot) !important;
  font-weight: 800;
  font-size: 22px !important;
}

.zy-checkout .addfunds-payment {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 10px 14px;
  margin-bottom: 0;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  pointer-events: auto !important;
}

.zy-checkout .addfunds-payment:hover,
.zy-checkout .addfunds-payment.active {
  border-color: var(--brand);
  background: #f7faff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}

.zy-checkout .addfunds-payment img {
  max-height: 32px;
  width: auto;
}

.zy-checkout .addfunds-payment .hidden,
.zy-checkout .addfunds-payment input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Checkout visual refresh ---------- */
.zy-checkout > .row {
  align-items: flex-start !important;
  margin-left: -12px !important;
  margin-right: -12px !important;
}

.zy-checkout > .row > [class*="col-"] {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.zy-checkout .col-md-8 > .card,
.zy-checkout .col-md-4 > .card {
  margin-bottom: 16px;
  border-radius: 10px !important;
  box-shadow: 0 4px 18px rgba(15, 27, 51, 0.05) !important;
  border-color: #e8edf5 !important;
}

.zy-checkout .card-body {
  padding: 18px 20px !important;
}

.zy-checkout .zy-config-crumb {
  margin-bottom: 6px;
  font-size: 12px !important;
  color: #8a94a6 !important;
}

.zy-checkout .zy-config-crumb a {
  color: var(--brand) !important;
  font-weight: 600;
}

.zy-checkout-user {
  display: grid;
  gap: 8px;
  margin-bottom: 6px;
  padding: 12px 14px;
  background: #f7f9fc;
  border-radius: 8px;
}

.zy-checkout-user-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
  line-height: 1.45;
}

.zy-checkout-user-label {
  color: #8a94a6;
  font-weight: 650;
}

.zy-checkout-user-value {
  color: var(--ink);
  font-weight: 600;
  word-break: break-word;
}

.zy-checkout-field {
  margin-bottom: 4px;
}

.zy-checkout h5.mb-0 {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
  letter-spacing: -0.02em;
}

.zy-checkout h4.font-size-16,
.zy-checkout .font-size-16 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
}

.zy-checkout .col-sm-12.mb-3.mt-4 {
  display: block !important;
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: var(--ink) !important;
}

.zy-checkout .col-sm-12.mb-3.mt-4 > span:first-child {
  color: #8a94a6 !important;
  font-weight: 600;
  margin-right: 6px;
}

.zy-checkout .alert-success,
.zy-checkout .card-body .alert {
  margin: 18px 0 22px !important;
  padding: 14px 16px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.zy-checkout .zy-section-label,
.zy-checkout p.mt-5,
.zy-checkout .col-sm-12.mb-3[style*="979699"] {
  margin: 18px 0 10px !important;
  padding: 0 !important;
  color: var(--ink) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

.zy-checkout .remarksInput,
.zy-checkout textarea.form-control,
.zy-checkout input.form-control,
.zy-checkout select.form-control,
.zy-checkout .custom-file .form-control,
.zy-checkout #promo input,
.zy-checkout #promo .form-control {
  min-height: 42px !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  border: 1px solid #d7dee8 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: var(--ink) !important;
  background: #fff !important;
}

.zy-checkout .remarksInput::placeholder,
.zy-checkout input.form-control::placeholder,
.zy-checkout #promo input::placeholder {
  font-size: 13px !important;
  color: #9aa3b5 !important;
  opacity: 1 !important;
}

.zy-checkout textarea.form-control {
  min-height: 100px !important;
}

.zy-checkout .col-sm-6 {
  max-width: 100% !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.zy-checkout .checkbox.checkDiv,
.zy-checkout .checkboxDiv {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px 18px !important;
  margin: 0 0 18px !important;
  padding: 16px 18px !important;
  border: 1px solid #e8edf5 !important;
  border-radius: 12px !important;
  background: #fafbff !important;
  font-size: 16px !important;
  color: var(--ink) !important;
}

.zy-checkout .payment-checkbox {
  width: 18px !important;
  height: 18px !important;
  margin-right: 8px !important;
  accent-color: var(--brand);
}

.zy-checkout #promo.input-group,
.zy-checkout .input-group#promo {
  max-width: 100%;
}

.zy-checkout #promo .custom-file {
  flex: 1 1 auto;
  width: auto !important;
}

.zy-checkout #promo .form-control,
.zy-checkout #promo .custom-file .form-control {
  min-height: 42px !important;
  font-size: 14px !important;
  border-radius: 8px 0 0 8px !important;
}

.zy-checkout #promo .btn,
.zy-checkout #promo .input-group-append .btn {
  min-height: 42px !important;
  padding: 0 16px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 0 8px 8px 0 !important;
  background: var(--brand) !important;
  border-color: var(--brand) !important;
}

.zy-checkout .addfunds-payment {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 10px 14px;
  margin-bottom: 0;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  pointer-events: auto !important;
}

.zy-checkout .submit-btn,
.zy-checkout button.btn-primary.btn-block,
.zy-checkout .btn-block.btn-primary {
  height: 52px !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  font-weight: 750 !important;
  background: var(--brand) !important;
  border-color: var(--brand) !important;
}

.zy-checkout .col-md-4 > .card {
  position: sticky;
  top: 88px;
}

.zy-checkout .col-md-4 .card-body > div[style*="max-height"] {
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
}

.zy-checkout address {
  margin-bottom: 20px !important;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.zy-checkout address .d-flex.justify-content-between {
  flex-direction: column !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  align-items: stretch !important;
}

.zy-checkout address strong {
  display: block;
  font-size: 16px !important;
  line-height: 1.45;
  color: var(--ink);
  word-break: break-word;
  max-width: 100%;
  font-weight: 750;
}

.zy-checkout .zy-cart-item-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 0;
}

.zy-checkout .cart_qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.zy-checkout .cart_qty .number {
  width: 64px !important;
  height: 34px !important;
  padding: 4px 8px !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  font-size: 14px !important;
}

.zy-checkout .goods_info {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px !important;
  background: #f7f9fc;
  border-radius: 10px;
}

.zy-checkout .goods_info .title {
  display: flex !important;
  align-items: center;
  gap: 6px;
  text-indent: 0 !important;
  color: var(--brand) !important;
  font-size: 14px !important;
  font-weight: 650;
  cursor: pointer;
  margin-bottom: 8px;
}

.zy-checkout .goods_info .title font {
  float: none !important;
  margin: 0 !important;
  font-family: inherit !important;
  font-size: 13px !important;
  color: #8a94a6 !important;
  transform: none !important;
}

.zy-checkout .goods_info .title .zk {
  transform: rotate(90deg) !important;
  display: inline-block;
}

.zy-checkout .goods_info .info {
  width: 100%;
  text-indent: 0 !important;
  padding-left: 4px !important;
  margin: 0 0 6px !important;
  line-height: 1.6 !important;
  font-size: 14px !important;
  color: #5b657a !important;
}

.zy-checkout .goods_info .info font {
  color: var(--ink);
  font-weight: 650;
}

.zy-checkout address > p.mb-0 {
  margin: 4px 0 !important;
  padding-left: 4px;
  font-size: 14px !important;
  color: #5b657a;
  line-height: 1.6;
}

.zy-checkout .font-size-16.mt-2,
.zy-checkout .d-flex.justify-content-between.mt-2 {
  font-size: 15px !important;
  margin-top: 12px !important;
}

.zy-checkout .font-size-16.mt-2 span[style*="12px"],
.zy-checkout .d-flex.justify-content-between span[style*="12px"] {
  font-size: 14px !important;
  color: #8a94a6 !important;
}

.zy-checkout .font-size-18 {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
}

.zy-checkout .addfunds {
  flex: 0 0 50% !important;
  max-width: 50% !important;
  width: 50% !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .zy-checkout .addfunds {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }
}

.zy-checkout .alert {
  border-radius: 12px !important;
}

.zy-checkout .zy-cart-edit,
.zy-checkout .zy-cart-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto !important;
  text-decoration: none !important;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
}

.zy-checkout .zy-cart-remove {
  color: #be123c;
  border-color: #fecdd3;
  background: #fff1f2;
}

.zy-checkout .zy-cart-qty-btn {
  height: 30px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  background: #f3f5f9 !important;
  border: 1px solid var(--line) !important;
  border-radius: 6px !important;
}

.zy-checkout .cart_qty .number {
  width: 56px !important;
  height: 30px !important;
  padding: 2px 6px !important;
  border: 1px solid var(--line) !important;
  border-radius: 6px !important;
  font-size: 13px !important;
}

.zy-checkout address strong {
  display: block;
  font-size: 14px !important;
  line-height: 1.4;
  color: var(--ink);
  word-break: break-word;
  max-width: 100%;
  font-weight: 700;
}

.zy-checkout .goods_info .info {
  width: 100%;
  text-indent: 0 !important;
  padding-left: 2px !important;
  margin: 0 0 4px !important;
  line-height: 1.55 !important;
  font-size: 13px !important;
  color: #5b657a !important;
}

.zy-checkout address > p.mb-0 {
  margin: 3px 0 !important;
  padding-left: 2px;
  font-size: 13px !important;
  color: #5b657a;
  line-height: 1.55;
}

.zy-checkout .font-size-16.mt-2,
.zy-checkout .d-flex.justify-content-between.mt-2 {
  font-size: 13px !important;
  margin-top: 8px !important;
}

.zy-checkout .custom-control {
  margin-bottom: 12px !important;
  font-size: 13px !important;
}

.zy-checkout .custom-control-label {
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: var(--ink) !important;
}

.zy-checkout-total-value .price-num,
.zy-checkout-total-value strong {
  color: var(--hot) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1;
}

.zy-checkout .submit-btn,
.zy-checkout button.btn-primary.btn-block,
.zy-checkout .btn-block.btn-primary {
  height: 44px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  background: var(--brand) !important;
  border-color: var(--brand) !important;
}

.zy-checkout .custom-control {
  margin-bottom: 16px !important;
  font-size: 15px !important;
}

.zy-checkout .custom-control-label {
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: var(--ink) !important;
}

.zy-checkout-divider {
  margin: 18px 0 !important;
  border: 0 !important;
  border-top: 1px solid #eef1f6 !important;
}

.zy-checkout-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 18px;
}

.zy-checkout-total-label {
  font-size: 16px;
  font-weight: 750;
  color: var(--ink);
}

.zy-checkout-total-value {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: #8a94a6;
  font-size: 14px;
  font-weight: 600;
}

.zy-checkout-total-value .price-num,
.zy-checkout-total-value strong {
  color: var(--hot) !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1;
}

/* Guest register / login */
.zy-checkout .zy-guest-auth {
  margin-top: 8px;
  margin-bottom: 8px;
}

.zy-checkout .zy-guest-auth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.zy-checkout .zy-guest-auth-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.zy-checkout .zy-guest-tabs {
  display: inline-flex !important;
  flex-wrap: wrap;
  gap: 8px;
}

.zy-checkout .zy-guest-tabs > .btn {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 34px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  border: 1px solid var(--line) !important;
  background: #fff !important;
  color: var(--text) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.zy-checkout .zy-guest-tabs > .btn.active,
.zy-checkout .zy-guest-tabs > .btn:has(input:checked) {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
}

.zy-checkout .zy-guest-tabs input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.zy-checkout .zy-guest-form .form-control {
  min-height: 40px !important;
  height: 40px !important;
  font-size: 14px !important;
  border-radius: 8px !important;
}

.zy-checkout .zy-guest-form .input-group {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100%;
  align-items: stretch;
}

.zy-checkout .zy-guest-form .input-group > .form-control {
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  border-radius: 8px !important;
}

.zy-checkout .zy-guest-form .input-group-append {
  display: flex !important;
  margin-left: -1px;
}

.zy-checkout .zy-guest-form .input-group-append .btn {
  height: 40px !important;
  white-space: nowrap;
  border-radius: 0 8px 8px 0 !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}

.zy-checkout .zy-guest-form .input-group > .form-control:not(:last-child) {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.zy-checkout .zy-phone-group .zy-phone-code {
  flex: 0 0 88px !important;
  width: 88px !important;
  max-width: 88px !important;
  border-radius: 8px 0 0 8px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  text-align: center;
}

.zy-checkout .zy-phone-group .zy-phone-code + .form-control {
  border-radius: 0 8px 8px 0 !important;
}

.zy-checkout .zy-captcha-img {
  height: 40px;
  width: auto;
  min-width: 100px;
  border: 1px solid #ced4da;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  background: #fff;
  object-fit: cover;
}

.zy-checkout .zy-field-label {
  color: var(--muted);
  font-size: 13px;
}

.zy-checkout .zy-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.zy-checkout .zy-guest-auth-head .btn {
  border-radius: 8px !important;
  height: 32px;
  padding: 0 12px !important;
  font-weight: 650;
}

@media (max-width: 767px) {
  .zy-checkout {
    padding: 10px 10px 96px !important;
    max-width: 100% !important;
  }

  .zy-checkout > .row {
    margin-left: -8px !important;
    margin-right: -8px !important;
  }

  .zy-checkout > .row > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .zy-checkout .col-md-4 > .card {
    position: static !important;
    top: auto !important;
  }

  .zy-checkout .card-body {
    padding: 14px 14px !important;
  }

  .zy-checkout .addfunds {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 10px !important;
  }

  .zy-checkout .addfunds-payment {
    min-height: 48px !important;
  }

  .zy-checkout address .d-flex.justify-content-between {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .zy-checkout .zy-cart-item-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .zy-checkout .mobile-bottom-total {
    display: block !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    width: 100%;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -8px 24px rgba(15, 27, 51, 0.12);
    border-top: 1px solid #e8edf5;
  }

  .zy-checkout .mobile-bottom-total .font-size-16 {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px 8px !important;
    margin: 0 !important;
    font-size: 14px !important;
  }

  .zy-checkout .mobile-bottom-total .price-num,
  .zy-checkout .mobile-bottom-total .font-size-18 {
    font-size: 20px !important;
    color: var(--hot) !important;
    font-weight: 800 !important;
  }

  .zy-checkout .mobile-bottom-total .mobile-flex {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-left: 0 !important;
  }

  .zy-checkout .mobile-bottom-total .custom-control {
    flex: 1 1 auto;
    margin: 0 !important;
    min-width: 0;
  }

  .zy-checkout .mobile-bottom-total .custom-control-label {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  .zy-checkout .mobile-bottom-total .text-sm-right {
    flex: 0 0 auto;
    margin: 0 !important;
  }

  .zy-checkout .mobile-bottom-total .btn {
    height: 42px !important;
    min-width: 118px;
    padding: 0 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    white-space: nowrap;
  }

  /* 避开官网右侧悬浮 dock */
  .zy-dock {
    bottom: 88px !important;
  }

  .zy-config {
    padding: 10px 10px 88px !important;
    max-width: 100% !important;
  }

  .zy-config .form-group.row {
    margin-bottom: 14px !important;
  }

  .zy-config .col-form-label,
  .zy-config .configureproduct > label {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-bottom: 6px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .zy-config .form-group.row > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .zy-config-summary {
    position: static !important;
    top: auto !important;
    margin-top: 12px;
  }

  .zy-config .mobile-bottom-total {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
  }

  .zy-config .mobile-bottom-total .total {
    flex: 1 1 auto;
    text-align: left;
    margin-right: 0 !important;
    font-size: 16px !important;
  }

  .zy-config .mobile-bottom-total #addToCartBtnTwo {
    flex: 0 0 auto;
    min-width: 158px;
    height: 52px !important;
    padding: 0 24px !important;
    font-size: 17px !important;
  }

  .zy-config .bootstrap-select {
    max-width: 100% !important;
  }

  .zy-config .btn-custom-group,
  .zy-config .btn-group-toggle {
    width: 100%;
  }

  .zy-config .btn-custom-group > .btn-custom,
  .zy-config .btn-group-toggle > .btn,
  .zy-config .btn-group-toggle > label.btn {
    flex: 1 1 calc(50% - 6px);
    min-width: calc(50% - 6px);
  }

  .zy-checkout .zy-guest-form .input-group {
    flex-wrap: wrap !important;
  }
  .zy-checkout .zy-guest-form .input-group-append {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }
  .zy-checkout .zy-guest-form .input-group-append .btn,
  .zy-checkout .zy-captcha-img {
    width: 100%;
    border-radius: 8px !important;
  }
  .zy-checkout .zy-guest-form .input-group > .form-control:not(:last-child) {
    border-radius: 8px !important;
  }
  .zy-checkout .zy-phone-group {
    flex-wrap: nowrap !important;
  }
}

#customModal {
  z-index: 2000 !important;
}

#customModal .modal-dialog {
  pointer-events: auto !important;
}

.modal-backdrop {
  z-index: 1990 !important;
}

@media (max-width: 1280px) {
  .zy-prod-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .zy-prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .zy-cart-layout {
    grid-template-columns: 1fr;
  }

  .zy-cart-toggle {
    display: inline-flex;
  }

  .zy-cart-side {
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 320px);
    transform: translateX(-105%);
    transition: transform .22s ease;
    padding: 12px;
    background: transparent;
  }

  .zy-cart-side.is-open {
    transform: translateX(0);
  }

  .zy-cart-side-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .zy-cart-nav {
    max-height: none;
    flex: 1;
  }

  body.zy-cart-side-open .zy-cart-mask {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 27, 51, 0.45);
    z-index: 1040;
  }
}

@media (max-width: 640px) {
  .zy-cart {
    padding: 12px 12px 28px;
  }

  .zy-prod-grid {
    grid-template-columns: 1fr;
  }

  .zy-cart-crumb-path strong {
    font-size: 16px;
  }

  .zy-prod-price strong {
    font-size: 22px;
  }

  .zy-cart-tip a {
    margin-left: 0;
  }

  .zy-cart-slogan {
    gap: 12px;
    padding: 14px 14px 14px 12px;
  }
  .zy-cart-slogan-ico {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .zy-cart-slogan-text {
    font-size: 13px;
  }

  .zy-note-main {
    padding: 14px 14px 12px;
    gap: 10px;
  }

  .zy-note-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .zy-note-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px 14px;
  }

  .zy-prod-card {
    padding: 14px;
  }

  .zy-prod-head h3 {
    font-size: 15px;
  }

  .zy-prod-desc {
    font-size: 13px;
    max-height: 180px;
  }

  .zy-prod-btn {
    height: 40px;
    font-size: 14px;
  }
}
