/* QQG.NET v16 storefront fixes.
   Presentation and summary mirroring only: pricing, inventory and ordering
   continue to use the original Mofang bindings. */

.dy8-store-page {
  --qqg-v16-blue: #2468e8;
  --qqg-v16-blue-soft: #edf4ff;
  --qqg-v16-ink: #14233d;
  --qqg-v16-muted: #78879d;
  --qqg-v16-line: #dce6f2;
  --qqg-v16-soft: #f6f9fd;
}

/* goodsList did not load the v15 storefront layer, which left the SVG at its
   intrinsic size. Keep this safeguard self-contained on every cart page. */
body.dy8-store-page .el-header .dy8-store-nav {
  display: flex !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  gap: 22px !important;
}

body.dy8-store-page .el-header .dy8-store-brand {
  display: inline-flex !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  height: 54px !important;
  align-items: center !important;
  gap: 12px !important;
  overflow: hidden !important;
  color: var(--qqg-v16-ink) !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

body.dy8-store-page .el-header .dy8-store-brand .qqg-store-brand-mark {
  display: block !important;
  position: static !important;
  width: 45px !important;
  min-width: 45px !important;
  max-width: 45px !important;
  height: 45px !important;
  min-height: 45px !important;
  max-height: 45px !important;
  flex: 0 0 45px !important;
  margin: 0 !important;
  object-fit: contain !important;
  transform: none !important;
}

body.dy8-store-page .el-header .dy8-store-brand .qqg-store-brand-copy {
  display: flex !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 5px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

body.dy8-store-page .el-header .dy8-store-brand .qqg-store-brand-copy strong,
body.dy8-store-page .el-header .dy8-store-brand .qqg-store-brand-copy small {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  line-height: 1 !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

body.dy8-store-page .el-header .dy8-store-brand .qqg-store-brand-copy strong {
  color: #12233f !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  letter-spacing: -.7px !important;
}

body.dy8-store-page .el-header .dy8-store-brand .qqg-store-brand-copy small {
  color: #8290a5 !important;
  font-size: 8px !important;
  font-weight: 800 !important;
  letter-spacing: 1.55px !important;
}

/* Native and compatibility summaries must stay visible above duration,
   quantity and the original real-time total. */
.dy8-config-page .template .f-order .qqg-summary-head,
.dy8-config-page .template .f-order .qqg-summary-config,
.dy8-config-page .template .f-order .qqg-summary-fees,
.dy8-config-page .template .f-order .qqg-v16-live-summary {
  visibility: visible !important;
  opacity: 1 !important;
}

.dy8-config-page .template .f-order .qqg-summary-head {
  display: flex !important;
}

.dy8-config-page .template .f-order .qqg-summary-config {
  display: grid !important;
  width: 100% !important;
  min-height: 0 !important;
}

.dy8-config-page .template .f-order .qqg-v16-live-summary {
  display: block !important;
  order: 1 !important;
  width: 100% !important;
  color: var(--qqg-v16-ink) !important;
  background: #fff !important;
  border-bottom: 1px solid var(--qqg-v16-line) !important;
  box-sizing: border-box !important;
}

.qqg-v16-summary-head {
  display: flex !important;
  min-height: 68px !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 16px 20px !important;
  background: linear-gradient(135deg, #f4f8ff, #edf3ff) !important;
  border-bottom: 1px solid var(--qqg-v16-line) !important;
  box-sizing: border-box !important;
}

.qqg-v16-summary-head > div {
  display: flex !important;
  min-width: 0 !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.qqg-v16-summary-head strong {
  color: var(--qqg-v16-ink) !important;
  font-size: 18px !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
}

.qqg-v16-summary-head small {
  color: var(--qqg-v16-muted) !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
}

.qqg-v16-summary-head > i {
  display: grid !important;
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
  place-items: center !important;
  color: var(--qqg-v16-blue) !important;
  background: #fff !important;
  border: 1px solid #d7e4f5 !important;
  border-radius: 10px !important;
  font-style: normal !important;
  font-size: 18px !important;
}

.qqg-v16-summary-list {
  display: grid !important;
  max-height: min(390px, calc(100vh - 430px)) !important;
  margin: 0 !important;
  padding: 10px 20px 13px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  scrollbar-gutter: stable !important;
}

.qqg-v16-summary-list > div {
  display: grid !important;
  grid-template-columns: minmax(88px, .72fr) minmax(0, 1.28fr) !important;
  align-items: start !important;
  gap: 13px !important;
  padding: 9px 0 !important;
  border-bottom: 1px solid #edf2f7 !important;
}

.qqg-v16-summary-list > div:last-child {
  border-bottom: 0 !important;
}

.qqg-v16-summary-list dt,
.qqg-v16-summary-list dd {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.qqg-v16-summary-list dt {
  color: var(--qqg-v16-muted) !important;
}

.qqg-v16-summary-list dd {
  min-width: 0 !important;
  color: #234b8d !important;
  font-weight: 750 !important;
  overflow-wrap: anywhere !important;
  text-align: right !important;
  white-space: normal !important;
}

.qqg-v16-summary-empty {
  padding: 18px 20px !important;
  color: var(--qqg-v16-muted) !important;
  background: var(--qqg-v16-soft) !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

/* Keep long dedicated-server values readable in the selector table. */
.dy8-config-page .mf-dcim .el-table .cell {
  overflow: visible !important;
  line-height: 1.45 !important;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

@media (min-width: 821px) {
  .dy8-config-page .config-box > .content > .template,
  .dy8-config-page .config-box > .content > .template > .main-card {
    overflow: visible !important;
  }

  .dy8-config-page .config-box > .content > .template:not(.common-config) > .f-order,
  .dy8-config-page .template.common-config .order-right,
  .dy8-config-page .template.qqg-finance-config > .main-card > .f-order {
    position: sticky !important;
    z-index: 25 !important;
    top: 94px !important;
    align-self: start !important;
  }
}

@media (max-width: 820px) {
  body.dy8-store-page .el-header .dy8-store-brand {
    width: auto !important;
    min-width: 0 !important;
    max-width: 178px !important;
    height: 48px !important;
  }

  body.dy8-store-page .el-header .dy8-store-brand .qqg-store-brand-mark {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    flex-basis: 40px !important;
  }

  body.dy8-store-page .el-header .dy8-store-brand .qqg-store-brand-copy strong {
    font-size: 18px !important;
  }

  body.dy8-store-page .el-header .dy8-store-brand .qqg-store-brand-copy small {
    display: none !important;
  }

  .qqg-v16-summary-list {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* QQG.NET v17 storefront regression fixes.
   Presentation only: the original Mofang pricing, inventory and order
   bindings remain unchanged. */

/* The native DCIM stylesheet caps the Element table at 3.22rem. Its rows were
   later made visible, so they escaped that short box and covered the following
   network section. Let the table and every generated wrapper grow together. */
.dy8-config-page .mf-dcim .el-table,
.dy8-config-page .mf-dcim .el-table__header-wrapper,
.dy8-config-page .mf-dcim .el-table__body-wrapper,
.dy8-config-page .mf-dcim .el-scrollbar,
.dy8-config-page .mf-dcim .el-scrollbar__wrap {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

.dy8-config-page .mf-dcim .el-table {
  overflow: visible !important;
}

.dy8-config-page .mf-dcim .el-table__header-wrapper,
.dy8-config-page .mf-dcim .el-table__body-wrapper,
.dy8-config-page .mf-dcim .el-scrollbar,
.dy8-config-page .mf-dcim .el-scrollbar__wrap {
  position: relative !important;
  overflow: visible !important;
}

.dy8-config-page .mf-dcim .el-table__body,
.dy8-config-page .mf-dcim .el-table__header {
  height: auto !important;
  table-layout: fixed !important;
}

.dy8-config-page .mf-dcim .el-table__row,
.dy8-config-page .mf-dcim .el-table td,
.dy8-config-page .mf-dcim .el-table th {
  height: auto !important;
  min-height: 0 !important;
}

/* Mobile configurators must scroll as a normal document. The old bottom order
   bar was promoted to a full summary card while retaining position:fixed,
   which made it permanently cover the lower half of the page. */
@media (max-width: 820px) {
  .dy8-config-page .config-box {
    padding-bottom: 24px !important;
  }

  .dy8-config-page .config-box > .content > .template,
  .dy8-config-page .config-box > .content > .template > .main-card,
  .dy8-config-page .template.common-config,
  .dy8-config-page .template.common-config .common-box {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .dy8-config-page .template .f-order,
  .dy8-config-page .config-box > .content > .template:not(.common-config) > .f-order,
  .dy8-config-page .template.common-config .f-order,
  .dy8-config-page .template.common-config .order-right,
  .dy8-config-page .template.qqg-finance-config > .main-card > .f-order {
    position: static !important;
    z-index: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    grid-column: auto !important;
    grid-row: auto !important;
    align-self: stretch !important;
    margin: 16px 0 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .dy8-config-page .template .f-order .l-empty {
    display: none !important;
  }

  .dy8-config-page .template .f-order .el-main {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .dy8-config-page .template .f-order .main-card {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid #dce6f2 !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 28px rgba(27, 63, 108, .09) !important;
  }

  .dy8-config-page .template .f-order .qqg-summary-config,
  .dy8-config-page .template .f-order .qqg-v16-live-summary,
  .dy8-config-page .template .f-order .qqg-summary-fees,
  .dy8-config-page .template .f-order .left,
  .dy8-config-page .template .f-order .mid,
  .dy8-config-page .template .f-order .right,
  .dy8-config-page .template .f-order .qqg-summary-trust {
    flex: 0 0 auto !important;
  }

  .dy8-config-page .qqg-v16-summary-list {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* QQG.NET v18 mobile checkout dock.
   The detailed configuration stays in normal document flow on phones, while
   only the native duration, quantity, live total, cart and buy controls remain
   fixed at the bottom. Pricing and order bindings are untouched. */

@media (max-width: 820px) {
  body.dy8-config-page {
    padding-bottom: calc(144px + env(safe-area-inset-bottom)) !important;
  }

  .dy8-config-page .goods > .el-container > .el-container > .el-main {
    padding-bottom: calc(164px + env(safe-area-inset-bottom)) !important;
  }

  .dy8-config-page .config-box {
    padding-bottom: calc(150px + env(safe-area-inset-bottom)) !important;
  }

  .dy8-config-page .config-box > .content,
  .dy8-config-page .config-box > .content > .template,
  .dy8-config-page .config-box > .content > .template > .main-card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .dy8-config-page .config-box > .content > .template:not(.common-config) > .f-order,
  .dy8-config-page .template.common-config .f-order,
  .dy8-config-page .template.qqg-finance-config > .main-card > .f-order {
    position: fixed !important;
    z-index: 180 !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    grid-column: auto !important;
    grid-row: auto !important;
    align-self: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: rgba(255, 255, 255, .985) !important;
    border: 0 !important;
    border-top: 1px solid #d8e3f1 !important;
    box-shadow: 0 -12px 34px rgba(25, 61, 105, .15) !important;
    transform: none !important;
    backdrop-filter: blur(18px) !important;
    box-sizing: border-box !important;
  }

  .dy8-config-page .template .f-order .l-empty {
    display: none !important;
  }

  .dy8-config-page .template .f-order .el-main {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom)) !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  .dy8-config-page .template .f-order .main-card {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    grid-template-columns: minmax(0, .88fr) minmax(188px, 1.12fr) !important;
    grid-template-areas:
      "controls controls"
      "price actions" !important;
    gap: 7px 10px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  .dy8-config-page .template .f-order .qqg-summary-head,
  .dy8-config-page .template .f-order .qqg-summary-config,
  .dy8-config-page .template .f-order .qqg-v16-live-summary,
  .dy8-config-page .template .f-order .qqg-summary-fees,
  .dy8-config-page .template .f-order .qqg-summary-trust,
  .dy8-config-page .template .f-order .qqg-v16-summary-empty {
    display: none !important;
  }

  .dy8-config-page .template .f-order .left {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    grid-area: controls !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .dy8-config-page .template .f-order .time,
  .dy8-config-page .template .f-order .num {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 6px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .dy8-config-page .template .f-order .time > .l-txt,
  .dy8-config-page .template .f-order .num > .l-txt {
    color: #526178 !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  .dy8-config-page .template .f-order .duration-select,
  .dy8-config-page .template .f-order .el-input-number,
  .dy8-config-page .template .f-order .el-input,
  .dy8-config-page .template .f-order .el-select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .dy8-config-page .template .f-order .el-input__inner,
  .dy8-config-page .template .f-order .el-input-number {
    height: 40px !important;
    line-height: 40px !important;
  }

  .dy8-config-page .template .f-order .mid {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    grid-area: price !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    box-sizing: border-box !important;
  }

  .dy8-config-page .template .f-order .mid > .link,
  .dy8-config-page .template .f-order .mid > .line-empty,
  .dy8-config-page .template .f-order .mid > .old,
  .dy8-config-page .template .f-order .bot-price .old {
    display: none !important;
  }

  .dy8-config-page .template .f-order .bot-price {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .dy8-config-page .template .f-order .bot-price::before {
    display: block !important;
    margin: 0 0 1px !important;
    color: #7b899d !important;
    content: "当前费用" !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  html[lang^="en"] .dy8-config-page .template .f-order .bot-price::before {
    content: "Current total" !important;
  }

  .dy8-config-page .template .f-order .bot-price .new,
  .dy8-config-page .template .f-order .bot-price .new .price,
  .dy8-config-page .template .f-order .bot-price .new span {
    color: #ef492d !important;
    font-size: 23px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }

  .dy8-config-page .template .f-order .right {
    display: grid !important;
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    grid-area: actions !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  .dy8-config-page .template .f-order .add-cart,
  .dy8-config-page .template .f-order .buy {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .dy8-config-page .template .f-order .add-cart {
    color: #2468e8 !important;
    background: #fff !important;
    border: 1px solid #2468e8 !important;
  }

  .dy8-config-page .template .f-order .add-cart svg {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
  }

  .dy8-config-page .template .f-order .add-cart span {
    display: none !important;
  }

  .dy8-config-page .template .f-order .buy {
    color: #fff !important;
    background: linear-gradient(135deg, #3479f0, #1e5bd3) !important;
    border: 1px solid #2468e8 !important;
    box-shadow: 0 8px 18px rgba(36, 104, 232, .22) !important;
  }
}

@media (max-width: 420px) {
  .dy8-config-page .template .f-order .main-card {
    grid-template-columns: minmax(94px, .72fr) minmax(176px, 1.28fr) !important;
  }

  .dy8-config-page .template .f-order .time > .l-txt,
  .dy8-config-page .template .f-order .num > .l-txt {
    display: none !important;
  }
}


/* QQG.NET v21: do not leave a blank product configuration area after a failed response. */
.dy8-config-page .qqg-config-error {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e4f4;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(30, 69, 120, .08);
  color: #425675;
  display: flex;
  flex-direction: column;
  margin: 16px 0 36px;
  min-height: 280px;
  padding: 34px 24px;
  text-align: center;
}

.dy8-config-page .qqg-config-error strong {
  color: #152944;
  font-size: 20px;
  line-height: 1.4;
}

.dy8-config-page .qqg-config-error p {
  margin: 10px 0 22px;
  max-width: 520px;
}

.dy8-config-page .qqg-config-error button {
  background: #2166d3;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  min-height: 40px;
  padding: 0 22px;
}

@media screen and (max-width: 750px) {
  .dy8-config-page .qqg-config-error {
    margin-bottom: 96px;
    min-height: 220px;
    padding: 28px 18px;
  }
}

/* QQG.NET v22: preserve MagicCube's real session state in the storefront header.
   Vue v-show writes an inline display:none on the inactive account control.
   Older v15 styling used display!important, which forced both controls visible. */
body.dy8-store-page .el-header .header-right-item[style*="display: none"] {
  display: none !important;
}

/* QQG mobile order layout v4. body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 is expanded to a page-specific prefix.
   Higher specificity deliberately survives old store-v14/v15 sheets loaded
   later by the module HTML. Native Vue controls and pricing stay in place. */
@media (max-width: 820px) {
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 { padding-bottom: 0 !important; }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods > .el-container > .el-container > .el-main {
    min-width: 0 !important;
    height: auto !important;
    overflow: visible !important;
    padding-bottom: 24px !important;
  }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box {
    min-width: 0 !important;
    height: auto !important;
    padding-bottom: 220px !important;
    padding-bottom: calc(220px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box > .content,
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box > .content > .template,
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box > .content > .template > .main-card {
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box > .content > .template:not(.common-config) {
    display: block !important;
  }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order {
    position: fixed !important;
    z-index: 190 !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    grid-column: auto !important;
    grid-row: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
    border: 0 !important;
    border-top: 1px solid #d8e3f1 !important;
    border-radius: 0 !important;
    box-shadow: 0 -5px 20px rgba(25,61,105,.12) !important;
    transform: none !important;
    backdrop-filter: none !important;
    box-sizing: border-box !important;
  }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order > .l-empty { display: none !important; }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order > .el-main {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order > .el-main > .main-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(148px, 1fr) !important;
    grid-template-rows: auto auto !important;
    grid-template-areas: "controls controls" "price actions" !important;
    gap: 8px 10px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .qqg-summary-head,
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .qqg-summary-config,
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .qqg-summary-fees,
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .qqg-v16-live-summary,
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .qqg-summary-trust,
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .qqg-v16-summary-empty { display: none !important; }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .left {
    display: grid !important;
    grid-area: controls !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: end !important;
    box-sizing: border-box !important;
  }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .time,
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .num {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 3px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .left .l-txt {
    display: block !important;
    margin: 0 !important;
    color: #526178 !important;
    font-size: 12px !important;
    line-height: 18px !important;
    white-space: normal !important;
  }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .duration-select,
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .left .el-select,
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .left .el-input,
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .left .el-input-number {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 44px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .left .el-input__inner {
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 30px 0 10px !important;
    font-size: 16px !important;
    line-height: 44px !important;
    box-sizing: border-box !important;
  }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .num .el-input__inner {
    padding: 0 32px !important;
    text-align: center !important;
  }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .el-input-number__increase,
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .el-input-number__decrease {
    width: 30px !important;
    height: 42px !important;
    font-size: 16px !important;
    line-height: 42px !important;
  }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .mid {
    display: block !important;
    grid-area: price !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
  }
  /* Element popover wraps the old configuration link in a span. */
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .mid > span { display: none !important; }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .demand-box,
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .bot-price {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .bot-price::before {
    display: block !important;
    content: "当前费用" !important;
    margin: 0 0 2px !important;
    font-size: 11px !important;
    line-height: 16px !important;
    color: #718198 !important;
  }
  html[lang^="en"] body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .bot-price::before { content: "Current total" !important; }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .bot-price .new,
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .bot-price .new .price {
    max-width: 100% !important;
    font-size: 24px !important;
    line-height: 30px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    color: #ef492d !important;
  }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .bot-price .total-icon {
    font-size: 15px !important;
    line-height: 20px !important;
  }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .demand-fee { white-space: normal !important; overflow-wrap: anywhere !important; }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .right {
    position: static !important;
    display: grid !important;
    grid-area: actions !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .right > span { min-width: 0 !important; }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .right > span:only-child { grid-column: 1 / -1 !important; }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .add-cart,
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .buy {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 8px 4px !important;
    font-size: 14px !important;
    line-height: 20px !important;
    white-space: normal !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order .add-cart span { display: none !important; }
  /* The duration popup is appended to body by Element UI. */
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .duration-pup {
    min-width: 0 !important;
    max-width: calc(100vw - 24px) !important;
    box-sizing: border-box !important;
  }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .duration-pup .el-select-dropdown__wrap {
    max-height: 40vh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .duration-pup .el-select-dropdown__item {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px 8px !important;
    height: auto !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    line-height: 22px !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
  }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .duration-pup .txt { min-width: 0 !important; overflow-wrap: anywhere !important; }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .duration-pup .tip { margin-left: 0 !important; font-size: 12px !important; white-space: normal !important; }
}
/* Short landscape viewports use the same card in document flow. */
@media (max-width: 820px) and (max-height: 520px) {
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box { padding-bottom: 24px !important; }
  body.dy8-store-page.dy8-config-page.qqg-mobile-order-v4 .goods .config-box .template .f-order {
    position: static !important;
    margin-top: 20px !important;
  }
}
