/* Shared preview alignment: navigation text should follow its own row rhythm. */
.breadcrumbs {
  display: block;
  line-height: 1.5;
}

/* Keep form columns and long product titles inside their available track. */
.product-layout > *, .cart-row > * { min-width: 0; }
.cart-summary > p:first-child { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 760px) {
  .cart-row {
    grid-template-columns: 68px minmax(0, 1fr) 44px;
    gap: 16px 12px;
    padding: 18px 14px;
  }
  .cart-row > img { width: 68px; height: 68px; align-self: start; }
  .cart-row > div { grid-column: 2 / -1; align-self: start; }
  .cart-row h2 { font-size: 22px; line-height: 1.1; }
  .cart-row p { font-size: 12px; line-height: 1.5; }
  .cart-row > label { grid-column: 1; grid-row: 2; }
  .cart-row input { width: 68px; min-height: 44px; font-size: 16px; }
  .cart-row .cart-line-price { grid-column: 2; grid-row: 2; font-size: 14px; }
  .cart-row .remove-line { grid-column: 3; grid-row: 2; width: 44px; height: 44px; }
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0;
  font: inherit;
  letter-spacing: inherit;
  flex-shrink: 0;
}

.breadcrumbs [aria-current="page"] {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Balance the copy and signup form independently of heading line breaks. */
.newsletter {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.newsletter > div,
.newsletter form {
  min-width: 0;
}

.newsletter form {
  width: 100%;
  max-width: 520px;
  justify-self: start;
}

.newsletter .email-row {
  align-items: center;
  min-height: 48px;
}

.newsletter .email-row input {
  width: 100%;
}

.newsletter .email-row button {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.newsletter [data-newsletter-status]:empty {
  display: none;
}

.newsletter [data-newsletter-status]:not(:empty) {
  margin-top: 12px;
}

.site-footer { padding-top: 24px; }

.footer-top {
  display: none;
  align-items: center;
}

.footer-top > a {
  flex-shrink: 0;
}

.footer-links {
  align-items: center;
  justify-content: flex-end;
  gap: 4px 24px;
}

.footer-links > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}

.footer-bottom {
  margin-top: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  line-height: 1.5;
}

.footer-bottom > p {
  margin: 0;
}

.footer-tools {
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer-tools > a,
.footer-tools > button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: inherit;
  line-height: inherit;
  white-space: nowrap;
}

.footer-tools > span {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .newsletter {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .newsletter form {
    justify-self: start;
    max-width: none;
  }

  .footer-top,
  .footer-bottom {
    align-items: flex-start;
  }

  .footer-links,
  .footer-tools {
    justify-content: flex-start;
  }

  .footer-links {
    gap: 4px 22px;
  }

  .footer-tools {
    gap: 4px 18px;
  }
}

/* Keep native select menus while normalizing the closed control in Safari. */
body[data-platform="preview"] select {
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%23d5d5d1%22%3E%3Cpath%20d%3D%22M11.9999%2013.1714L16.9497%208.22168L18.3639%209.63589L11.9999%2015.9999L5.63599%209.63589L7.0502%208.22168L11.9999%2013.1714Z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
@media (forced-colors: active) {
  body[data-platform="preview"] select { appearance: auto; -webkit-appearance: auto; background-image: none; }
}
