/*
 * Product-information tab layout candidate v2.
 * Reflows the existing controls on narrower viewports without changing the
 * established font size, letter spacing, content width, or product data.
 */
@media (max-width: 1319px) {
  .product-information .detail-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: stretch;
    gap: 8px;
    overflow: visible;
    border-bottom: 0;
  }

  .product-information .detail-tabs button {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    line-height: 1.4;
    text-align: center;
    padding: 12px 8px;
    border: 1px solid var(--line);
    border-bottom: 3px solid transparent;
  }

  .product-information .detail-tabs button.active {
    border-color: var(--blue);
    border-bottom-color: var(--blue);
  }
}

@media (max-width: 420px) {
  .product-information .detail-tabs button {
    padding-left: 6px;
    padding-right: 6px;
  }
}
