/* 仅作用于 21.hk 快速购买的公开商品规格。 */
body.bcy-quick-purchase-body {
  min-width: 0;
}

#bcyQuickPurchase .bcy-quick-content > .bcy-quick-card {
  min-width: 0;
}

#bcyQuickPurchase .bcy-plan-table--redirect {
  min-width: 1040px;
}

#bcyQuickPurchase .bcy-plan-table--redirect th,
#bcyQuickPurchase .bcy-plan-table--redirect td {
  padding: 12px 9px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

#bcyQuickPurchase .bcy-plan-table--redirect th:nth-child(2),
#bcyQuickPurchase .bcy-plan-table--redirect td:nth-child(2) {
  width: 176px;
}

#bcyQuickPurchase .bcy-plan-table--redirect th:last-child {
  width: 90px;
}

#bcyQuickPurchase .bcy-plan-table--redirect tr:focus-visible {
  outline: 2px solid #2f7bff;
  outline-offset: -2px;
}

#bcyQuickPurchase .bcy-specs-hint {
  margin: -4px 0 12px;
  color: #78869b;
  font-size: 12px;
}

#bcyQuickPurchase .bcy-catalog-alert {
  padding: 12px;
  color: #9b501a;
  background: #fff6e9;
  border-radius: 3px;
  line-height: 1.6;
}

#bcyQuickPurchase .bcy-quick-summary {
  max-height: calc(100vh - 94px);
  overflow-y: auto;
}

@media screen and (max-width: 900px) {
  #bcyQuickPurchase .bcy-quick-summary {
    max-height: none;
    overflow-y: visible;
  }

  #bcyQuickPurchase .bcy-specs-hint {
    display: none;
  }

  #bcyQuickPurchase .bcy-plan-table--redirect,
  #bcyQuickPurchase .bcy-plan-table--redirect tbody {
    display: block;
    min-width: 0;
    width: 100%;
  }

  #bcyQuickPurchase .bcy-plan-table--redirect thead,
  #bcyQuickPurchase .bcy-plan-table--redirect td:first-child:not(.bcy-table-empty) {
    display: none;
  }

  #bcyQuickPurchase .bcy-plan-table--redirect tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid #dce4ef;
  }

  #bcyQuickPurchase .bcy-plan-table--redirect tr.active {
    box-shadow: inset 3px 0 #2f7bff;
  }

  #bcyQuickPurchase .bcy-plan-table--redirect td {
    display: block;
    width: auto;
    min-width: 0;
    height: auto;
    text-align: left;
    border-bottom: 0;
  }

  #bcyQuickPurchase .bcy-plan-table--redirect td:nth-child(2),
  #bcyQuickPurchase .bcy-plan-table--redirect .bcy-table-empty {
    width: auto;
    grid-column: 1 / -1;
  }

  #bcyQuickPurchase .bcy-plan-table--redirect td[data-label]::before {
    display: block;
    margin-bottom: 3px;
    content: attr(data-label);
    color: #78869b;
    font-size: 12px;
    font-weight: 400;
  }
}
