:root {
  --bg: #f5f7fb;
  --bg-soft: #eef3fb;
  --line: rgba(24, 36, 64, 0.08);
  --text: #101828;
  --muted: #6b7280;
  --shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
  --accent: #355cff;
  --accent-strong: #2748d8;
  --bottom: #1f2937;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(53, 92, 255, 0.06), transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, #edf2f9 100%);
}

body {
  overflow: hidden;
}

.is-hidden {
  display: none !important;
}

.landing-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(245, 248, 255, 0.82)),
    url("../assets/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.landing-card {
  width: min(1120px, 100%);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(20px);
  box-shadow: 0 22px 54px rgba(18, 28, 46, 0.12);
  padding: 42px;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.login-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.login-panel h2 {
  margin: 0;
  font-size: 20px;
}

.login-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.login-btn {
  width: 240px;
}

.ecosystem-card {
  border: 1px solid rgba(53, 92, 255, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 252, 255, 0.96));
  padding: 22px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ecosystem-card:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 92, 255, 0.22);
  box-shadow: 0 18px 36px rgba(53, 92, 255, 0.08);
}

.ecosystem-card--apple {
  border-color: rgba(10, 132, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.98));
}

.ecosystem-card--apple .ecosystem-badge {
  background: rgba(10, 132, 255, 0.08);
  color: #0a84ff;
}

.ecosystem-card--huawei {
  border-color: rgba(200, 24, 24, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 248, 248, 0.98), rgba(255, 255, 255, 0.98));
}

.ecosystem-card--huawei .ecosystem-badge {
  background: rgba(200, 24, 24, 0.08);
  color: #c01818;
}

.ecosystem-card--xiaomi {
  border-color: rgba(53, 92, 255, 0.08);
}

.ecosystem-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(47, 102, 255, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.ecosystem-card h2 {
  margin: 14px 0 10px;
  font-size: 22px;
}

.ecosystem-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.app-shell {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f4f7fb 0%, #edf2f8 100%);
}

html[data-ecosystem="apple"] {
  --bg: #f6f7fb;
  --bg-soft: #eef2f8;
  --line: rgba(60, 60, 67, 0.12);
  --text: #111111;
  --muted: #6b7280;
  --shadow: 0 18px 42px rgba(17, 24, 39, 0.07);
  --accent: #0a84ff;
  --accent-strong: #0060df;
  --bottom: #1c1c1e;
}

html[data-ecosystem="apple"] body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html[data-ecosystem="apple"] .app-shell {
  background:
    radial-gradient(circle at top left, rgba(10, 132, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #eef3f9 0%, #e8eef6 100%);
}

html[data-ecosystem="apple"] .top-tabs {
  background: rgba(255, 255, 255, 0.62);
  border-bottom-color: rgba(60, 60, 67, 0.08);
  backdrop-filter: blur(18px);
}

html[data-ecosystem="apple"] .catalog {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
}

html[data-ecosystem="apple"] .catalog-head {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 251, 255, 0.48));
}

html[data-ecosystem="apple"] .tab.active::after {
  background: #0a84ff;
}

html[data-ecosystem="apple"] .item-row {
  border: 1px solid rgba(60, 60, 67, 0.08);
  border-radius: 28px;
  box-shadow:
    0 10px 28px rgba(17, 24, 39, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.82));
  backdrop-filter: blur(16px);
}

html[data-ecosystem="apple"] .item-price {
  color: #6b7280;
  font-weight: 500;
}

html[data-ecosystem="apple"] .checkout-bar {
  background:
    linear-gradient(135deg, rgba(20, 20, 22, 0.96), rgba(32, 32, 36, 0.94));
}

html[data-ecosystem="apple"] .next-btn {
  background: linear-gradient(135deg, #0071e3, #0064c8);
  box-shadow: 0 12px 24px rgba(0, 113, 227, 0.18);
}

html[data-ecosystem="apple"] .ghost-btn {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(60, 60, 67, 0.1);
  backdrop-filter: blur(14px);
}

html[data-ecosystem="apple"] .qty-btn {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(60, 60, 67, 0.1);
  backdrop-filter: blur(10px);
}

html[data-ecosystem="apple"] .badge.required,
html[data-ecosystem="apple"] .badge.recommended {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
}

html[data-ecosystem="apple"] .badge.recommended {
  background: rgba(0, 113, 227, 0.09);
  color: #006fe6;
}

html[data-ecosystem="huawei"] {
  --bg: #fbf6f5;
  --bg-soft: #f8eeed;
  --line: rgba(200, 24, 24, 0.1);
  --text: #171717;
  --muted: #6f6b6b;
  --shadow: 0 18px 42px rgba(122, 20, 20, 0.08);
  --accent: #c01818;
  --accent-strong: #9d1414;
  --bottom: #2a1212;
}

html[data-ecosystem="huawei"] body {
  font-family: "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei", Inter,
    system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html[data-ecosystem="huawei"] .app-shell {
  background: linear-gradient(180deg, #faf6f5 0%, #f4eeec 100%);
}

html[data-ecosystem="huawei"] .top-tabs {
  background: rgba(252, 247, 247, 0.96);
}

html[data-ecosystem="huawei"] .catalog {
  background: #ffffff;
}

html[data-ecosystem="huawei"] .catalog-head {
  background: #fff8f7;
}

html[data-ecosystem="huawei"] .tab.active::after {
  background: linear-gradient(90deg, #c01818, #ff6b6b);
}

html[data-ecosystem="huawei"] .item-row {
  border-color: rgba(200, 24, 24, 0.1);
  border-radius: 26px;
}

html[data-ecosystem="huawei"] .badge.recommended {
  background: rgba(200, 24, 24, 0.1);
  color: #c01818;
}

html[data-ecosystem="huawei"] .item-price {
  color: #8f1d1d;
  font-weight: 600;
}

html[data-ecosystem="huawei"] .checkout-bar {
  background:
    linear-gradient(135deg, rgba(43, 13, 13, 0.96), rgba(150, 24, 24, 0.95));
}

html[data-ecosystem="huawei"] .next-btn {
  background: linear-gradient(135deg, #d92a2a, #b91c1c);
  box-shadow: 0 14px 28px rgba(185, 28, 28, 0.24);
}

html[data-ecosystem="xiaomi"] {
  --bg: #f5f7fb;
  --bg-soft: #eef3fb;
  --line: rgba(24, 36, 64, 0.08);
  --text: #101828;
  --muted: #6b7280;
  --shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
  --accent: #355cff;
  --accent-strong: #2748d8;
  --bottom: #1f2937;
}

html[data-ecosystem="xiaomi"] .app-shell {
  background: linear-gradient(180deg, #f4f7fb 0%, #edf2f8 100%);
}

html[data-ecosystem="xiaomi"] .top-tabs {
  background: rgba(248, 250, 255, 0.96);
}

html[data-ecosystem="xiaomi"] .catalog {
  background: #ffffff;
}

html[data-ecosystem="xiaomi"] .catalog-head {
  background: #f8fbff;
}

html[data-ecosystem="xiaomi"] .item-row {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

html[data-ecosystem="xiaomi"] .checkout-bar {
  background:
    linear-gradient(135deg, rgba(29, 41, 61, 0.96), rgba(44, 63, 116, 0.95));
}

.top-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  white-space: nowrap;
  border-bottom: 1px solid rgba(24, 36, 64, 0.06);
  background: rgba(248, 250, 253, 0.94);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.tab {
  flex: 0 0 auto;
  padding: 22px 26px 20px;
  font-size: 14px;
  color: #9a9a9a;
  position: relative;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.tab strong {
  display: block;
  font-weight: 500;
}

.tab.active {
  color: var(--text);
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--accent);
  border-radius: 999px 999px 0 0;
}

.main-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 0;
}

.catalog {
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.catalog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 22px 18px;
  border-bottom: 1px solid rgba(24, 36, 64, 0.06);
  background: #f8fbff;
}

.catalog-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-btn {
  border: 1px solid rgba(24, 36, 64, 0.08);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
}

.catalog-list {
  min-height: 0;
  overflow: auto;
  padding: 12px 20px 132px;
}

.group {
  padding: 20px 0 18px;
  border-bottom: 1px solid rgba(24, 36, 64, 0.06);
}

.group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.group-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.group-desc {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.group-highlight {
  margin: -4px 0 14px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  font-size: 13px;
  font-weight: 700;
}

.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
}

.item-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(53, 92, 255, 0.08);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.brand-group {
  padding: 8px 0 16px;
}

.brand-group + .brand-group {
  border-top: 1px solid rgba(24, 36, 64, 0.06);
  padding-top: 16px;
}

.brand-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f9fc;
}

.brand-group-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.brand-group-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.brand-group-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item--brand {
  padding: 0;
}

.series-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0 24px;
  border-bottom: 1px solid rgba(24, 36, 64, 0.06);
  align-items: start;
}

.series-simple {
  padding: 6px 0 14px;
}

.series-simple + .series-simple {
  border-top: 1px solid rgba(24, 36, 64, 0.06);
  padding-top: 14px;
}

.series-simple-head {
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f9fc;
}

.series-simple-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.series-simple-note {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
}

.series-media {
  display: flex;
  align-items: flex-start;
}

.series-media-art {
  width: 220px;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  border: 1px solid rgba(53, 92, 255, 0.1);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.96), rgba(232, 239, 255, 0.84)),
    linear-gradient(135deg, rgba(245, 248, 255, 0.98), rgba(225, 232, 247, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 20px 40px rgba(31, 39, 60, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.series-content {
  min-width: 0;
}

.series-head {
  margin-bottom: 16px;
}

.series-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.series-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.series-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}

.series-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(53, 92, 255, 0.08);
  color: #5f6f91;
  font-size: 12px;
  font-weight: 600;
}

.series-price-from {
  margin-left: auto;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.series-device {
  width: 118px;
  height: 118px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(229, 236, 248, 0.96));
  border: 1px solid rgba(53, 92, 255, 0.12);
  box-shadow:
    0 20px 38px rgba(36, 49, 86, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  position: relative;
}

.series-device::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.95), rgba(222, 231, 245, 0.88));
}

.series-device-screen {
  position: relative;
  z-index: 1;
  color: #7a89a8;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.series-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item--series {
  padding: 0;
}

.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(120, 120, 120, 0.22);
  border-radius: 28px;
  padding: 16px 18px;
  min-width: 0;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}

.item-name {
  min-width: 0;
}

.item-name strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 2px;
}

.item-name small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.badge.required {
  background: rgba(239, 68, 68, 0.1);
  color: #c53a3a;
}

.item-price {
  font-size: 18px;
  color: #717171;
  white-space: nowrap;
}

.qty {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  min-width: 96px;
}

.qty-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(120, 120, 120, 0.28);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
  font-size: 30px;
  font-weight: 500;
  display: grid;
  place-items: center;
}

.qty-val {
  min-width: 22px;
  text-align: center;
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
  color: var(--text);
}

.checkout-bar {
  height: 100px;
  background:
    linear-gradient(135deg, rgba(29, 41, 61, 0.96), rgba(44, 63, 116, 0.95));
  color: rgba(255, 255, 255, 0.9);
  display: grid;
  grid-template-columns: 120px repeat(3, minmax(110px, 1fr)) minmax(180px, 220px) minmax(200px, 260px);
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-block {
  min-width: 0;
}

.checkout-block.metrics {
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 16px;
}

.checkout-block.metrics span {
  display: block;
  font-size: 13px;
}

.checkout-block.metrics strong {
  font-size: 16px;
  font-weight: 700;
}

.checkout-block.metrics small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.checkout-total {
  text-align: right;
  padding-right: 4px;
}

.checkout-total span {
  font-size: 19px;
  font-weight: 700;
}

.quote-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.quote-action-btn {
  min-width: 90px;
}

.next-btn {
  height: 56px;
  width: 100%;
  max-width: 260px;
  justify-self: end;
  border: 0;
  border-radius: 28px;
  background: linear-gradient(135deg, #5773ff, #415de1);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(69, 96, 216, 0.25);
}

.next-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  background: linear-gradient(135deg, #64748b, #475569);
}

.footer-guide {
  display: none;
}

@media (max-width: 1180px) {
  body {
    overflow: auto;
  }

  .landing-screen {
    padding: 20px;
  }

  .landing-card {
    padding: 28px;
  }

  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    height: auto;
    min-height: 100vh;
  }

  .catalog {
    min-height: 540px;
  }

  .series-card {
    grid-template-columns: 1fr;
  }

  .series-media-art {
    width: 100%;
    max-width: 320px;
  }

  .series-price-from {
    margin-left: 0;
  }

  .checkout-bar {
    grid-template-columns: 1fr 1fr 1fr;
    height: auto;
    padding: 16px;
    gap: 10px;
  }

  .checkout-block.metrics {
    padding-left: 0;
    border-left: 0;
    text-align: left;
  }

  .checkout-total {
    text-align: left;
    padding-right: 0;
  }

  .next-btn {
    grid-column: 1 / -1;
  }

  .quote-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .landing-card {
    padding: 22px;
  }

  .item {
    grid-template-columns: 1fr;
  }

  .qty {
    justify-content: flex-start;
  }

  .checkout-bar {
    grid-template-columns: 1fr 1fr;
  }

  .checkout-block:first-child {
    grid-column: 1 / -1;
  }

  .next-btn {
    grid-column: 1 / -1;
  }

  .quote-actions {
    grid-column: 1 / -1;
  }
}

html[data-ecosystem="apple"] .tab {
  color: rgba(17, 17, 17, 0.5);
}

html[data-ecosystem="apple"] .group-title {
  letter-spacing: -0.03em;
}

html[data-ecosystem="apple"] .group-desc {
  color: #6b7280;
}

html[data-ecosystem="apple"] .item-row {
  border: 1px solid rgba(10, 132, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.98));
}

html[data-ecosystem="apple"] .item-price {
  color: #0f172a;
}

html[data-ecosystem="apple"] .qty-btn {
  border-color: rgba(10, 132, 255, 0.12);
}

html[data-ecosystem="apple"] .checkout-total span {
  color: #ffffff;
}

html[data-ecosystem="apple"] .next-btn {
  background: linear-gradient(135deg, #0a84ff, #006fe6);
}

html[data-ecosystem="huawei"] .tab {
  color: rgba(35, 17, 17, 0.48);
}

html[data-ecosystem="huawei"] .group-title {
  letter-spacing: -0.02em;
}

html[data-ecosystem="huawei"] .group-desc {
  color: #7a6666;
}

html[data-ecosystem="huawei"] .item-row {
  border: 1px solid rgba(200, 24, 24, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 248, 0.98));
}

html[data-ecosystem="huawei"] .item-price {
  color: #9d1414;
}

html[data-ecosystem="huawei"] .qty-btn {
  border-color: rgba(200, 24, 24, 0.12);
}

html[data-ecosystem="huawei"] .checkout-total span {
  color: #fff5f5;
}

html[data-ecosystem="xiaomi"] .tab {
  color: rgba(17, 24, 39, 0.44);
}

html[data-ecosystem="xiaomi"] .group-desc {
  color: #677085;
}

html[data-ecosystem="xiaomi"] .item-row {
  border: 1px solid rgba(53, 92, 255, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

html[data-ecosystem="xiaomi"] .item-price {
  color: #4b5563;
}

html[data-ecosystem="xiaomi"] .checkout-total span {
  color: #ffffff;
}

.quote-result-dialog {
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.quote-result-dialog::backdrop {
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(3px);
}

.quote-result-dialog__form {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
}

.quote-result-dialog__title {
  margin: 0;
  padding: 20px 20px 0;
  font-size: 24px;
  line-height: 1.2;
}

.quote-result-dialog__body {
  min-height: 0;
  overflow: auto;
  padding: 20px 20px 112px;
}

.quote-result-dialog__actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 20px 20px;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), #ffffff 42%);
}

.quote-result-dialog__btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
  font-size: 15px;
  cursor: pointer;
}

.quote-result-dialog__btn--primary {
  border: 0;
  background: #2563eb;
  color: #fff;
}

.quote-result-dialog__btn--secondary {
  background: #fff;
}

.quote-result-dialog__btn--subtle {
  border: 0;
  background: transparent;
  color: #98a2b3;
  padding: 0 14px;
}

.quote-result-sheet {
  display: grid;
  gap: 14px;
  min-height: 100%;
}

.quote-result-summary {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
}

.quote-result-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.quote-result-summary-row span {
  color: #475467;
}

.quote-result-summary-row strong {
  font-size: 18px;
  color: #111827;
}

.quote-result-table {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.quote-result-table-head,
.quote-result-table-row {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 132px 150px minmax(190px, 240px);
  gap: 16px;
  align-items: center;
}

.quote-result-table-head {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
  color: #475467;
}

.quote-result-table-head span:nth-child(2),
.quote-result-table-head span:nth-child(3),
.quote-result-table-row > :nth-child(2),
.quote-result-table-row > :nth-child(3) {
  justify-self: center;
  text-align: center;
}

.quote-result-table-head span:nth-child(4),
.quote-result-table-row > :nth-child(4) {
  justify-self: end;
  text-align: right;
}

.quote-result-table-body {
  overflow: auto;
}

.quote-result-group-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 10px clamp(28px, 5vw, 72px) 9px;
  border-top: 10px solid #f2f5fa;
  border-bottom: 1px solid #dbe7ff;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  color: #173b8f;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.quote-result-group-title::before,
.quote-result-group-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: #dbe7ff;
  border-radius: 999px;
  min-width: 40px;
}

@media (max-width: 720px) {
  .quote-result-group-title {
    gap: 10px;
    min-height: 44px;
    padding: 9px 18px 8px;
    font-size: 15px;
  }

  .quote-result-group-title::before,
  .quote-result-group-title::after {
    min-width: 20px;
  }
}

.quote-result-table-row {
  padding: 12px 16px;
  border-bottom: 1px solid #f2f4f7;
}

.quote-result-table-row strong {
  font-size: 15px;
  color: #111827;
}

.quote-result-table-name {
  display: grid;
  gap: 4px;
}

.quote-result-table-category {
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.quote-result-table-name small {
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.quote-result-table-row span {
  color: #344054;
}

.quote-result-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quote-result-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
  font-size: 16px;
  cursor: pointer;
}

.quote-result-qty-input {
  width: 52px;
  height: 32px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  text-align: center;
  font-size: 16px;
  color: #111827;
}

.quote-result-empty {
  padding: 24px 16px;
  color: #667085;
}

.quote-result-view {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: stretch;
  background: rgba(248, 250, 252, 0.98);
}

.quote-result-view__panel {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.quote-result-view__body {
  min-height: 0;
  overflow: auto;
  padding: 20px 20px 108px;
}

.quote-result-view__title {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.2;
}

.quote-result-view__actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 20px 20px;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), #ffffff 42%);
}

.quote-result-view__btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
  font-size: 15px;
  cursor: pointer;
}

.quote-result-view__btn--primary {
  border: 0;
  background: #2563eb;
  color: #fff;
}

.quote-result-view__btn--secondary {
  background: #fff;
}

.quote-result-view__btn--subtle {
  border: 0;
  background: transparent;
  color: #98a2b3;
  padding: 0 14px;
}
