.product-page {
  --product-green: #218638;
  --product-border: #1f1f1f;
  background: #fff;
  color: #141414;
}

.product-page .masthead {
  position: fixed;
  z-index: 10;
  top: 15px;
  right: 0;
  left: 0;
  width: min(435px, calc(100% - 36px));
  margin-inline: auto;
  padding: 0;
  background: none;
}

.product-page .mastbar {
  width: 100%;
}

.product-basket-button {
  display: flex;
  justify-self: end;
  align-items: center;
  padding: 6px 12px;
  margin-right: 11px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  gap: 7px;
}

.product-basket-button:focus-visible,
.product-quote button:focus-visible,
.product-page summary:focus-visible {
  outline: 2px solid var(--product-green);
  outline-offset: 3px;
}

.product-main {
  padding: 0 12px 44px;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 1600px;
  margin-inline: auto;
}

.product-information {
  min-width: 0;
  padding-right: 10px;
  border-right: clamp(4px, .65vw, 8px) solid var(--product-green);
}

.product-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 84px;
  align-content: flex-start;
  padding-top: 7px;
  font-size: .875rem;
  color: var(--product-green);
}

.product-breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: .18em;
}

.product-information h1 {
  display: grid;
  min-height: 182px;
  padding: 18px clamp(14px, 4vw, 54px);
  place-items: center;
  border: 2px solid var(--product-border);
  border-radius: 5px;
  box-shadow: 1px 2px 0 var(--product-border);
  margin: 0 0 clamp(24px, 4.2vw, 54px);
  font-size: clamp(2.4rem, 4.45vw, 4.45rem);
  font-style: italic;
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  text-align: center;
}

.product-accordions {
  display: grid;
  gap: 11px;
}

.product-accordions details {
  border: 2px solid var(--product-border);
}

.product-accordions summary {
  display: flex;
  min-height: 50px;
  padding: 12px 16px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.product-accordions summary::-webkit-details-marker {
  display: none;
}

.product-accordions summary::after {
  content: "›";
  font-size: 1.2rem;
}

.product-accordions details[open] summary::after {
  transform: rotate(90deg);
}

.product-accordions details > div {
  padding: 0 16px 16px;
}

.product-accordions p:last-child,
.product-accordions dl {
  margin: 0;
}

.product-accordions dt {
  font-weight: 700;
}

.product-accordions dd {
  margin: 0 0 8px;
}

.product-detail {
  min-width: 0;
  padding: 39px 0 0 10px;
}

.product-image {
  margin: 0 0 clamp(22px, 4.15vw, 54px);
  background: #fff;
}

.product-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 605 / 360;
  object-fit: contain;
}

.product-gallery:has(.product-thumbnails) .product-image img {
  object-fit: cover;
}

.product-thumbnails {
  display: flex;
  gap: 8px;
  margin: 0 0 clamp(20px, 3.1vw, 40px);
  overflow-x: auto;
}

.product-thumbnails a {
  display: block;
  flex: 0 0 88px;
  border: 1px solid transparent;
}

.product-thumbnails a[aria-current="true"] {
  border-color: var(--product-border);
}

.product-thumbnails img {
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-detail h2 {
  margin: 0;
  padding: 12px 17px;
  background: var(--product-green);
  color: #fff;
  font-size: 1.14rem;
  letter-spacing: -.02em;
}

.product-picker {
  padding: 13px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--product-green);
}

.product-picker summary {
  padding: 8px 10px;
  border: 1px solid var(--product-green);
  cursor: pointer;
}

.product-picker ul {
  margin: 12px 0 0;
  padding: 0;
  max-height: 14rem;
  overflow: auto;
  list-style: none;
}

.product-picker a {
  display: block;
  padding: 6px 10px;
}

.product-picker a[aria-current="page"] {
  color: var(--product-green);
  font-weight: 750;
}

.product-quote {
  display: grid;
  gap: 10px;
}

.product-quote label {
  display: block;
  font-weight: 750;
}

.product-quote label span,
#dimension-limits {
  font-size: .875rem;
  font-weight: 400;
}

.product-quote input,
.product-quote select,
.product-quote textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--product-border);
  border-radius: 0;
  background: #fff;
  color: inherit;
  font: inherit;
}

.product-quote label span {
  text-transform: none;
}

.product-control {
  min-width: 0;
  border: 1px solid var(--product-green);
}

.product-control-title {
  display: block;
  margin: 0;
  padding: 9px 12px;
  background: var(--product-green);
  color: #fff;
  font-size: .95rem;
  font-weight: 750;
  text-transform: uppercase;
}

.product-control-body {
  padding: 12px;
}

.product-control-body > :is(input, select, textarea) {
  display: block;
  border-color: var(--product-green);
}

.product-quote textarea {
  resize: vertical;
}

.product-quote .product-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-quote .product-checkbox input {
  width: 1rem;
  min-height: auto;
  height: 1rem;
  margin: 0;
  accent-color: var(--product-green);
}

.product-format-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 10px;
}

.product-format-row:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
}

.product-format-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-option-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 8px;
}

.product-option-tiles .product-option-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--product-border);
  text-align: center;
  cursor: pointer;
}

.product-option-tile:has(input:checked) {
  border-color: var(--product-green);
  background: #edf7ee;
  box-shadow: inset 0 0 0 1px var(--product-green);
}

.product-option-tile:has(input:focus-visible) {
  outline: 2px solid var(--product-green);
  outline-offset: 2px;
}

.product-option-tile input {
  position: absolute;
  width: 1px;
  min-height: 0;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.product-option-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 100 / 68;
  object-fit: contain;
}

.product-summary p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.product-summary dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 4px 12px;
  margin: 0 0 10px;
}

.product-summary dt {
  font-weight: 700;
}

.product-summary dd {
  margin: 0;
}

.product-summary strong {
  padding: 4px 14px 4px 8px;
  background: #ff9cef;
  clip-path: polygon(0 0, 100% 0, 89% 50%, 100% 100%, 0 100%);
}

.product-quote button,
.product-availability-link {
  display: block;
  padding: 12px 18px;
  border: 1px solid var(--product-border);
  background: var(--product-green);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.product-form-status:empty {
  display: none;
}

.product-unavailable {
  font-weight: 800;
  color: #b52727;
}

.product-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-inline: clamp(15px, 4vw, 50px);
  gap: 10px;
  background: #121212;
}

@media (max-width: 700px) {
  .product-main {
    padding-top: 92px;
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-information,
  .product-detail {
    padding: 0;
    border: 0;
  }

  .product-information h1 {
    min-height: 110px;
  }

  .product-breadcrumbs {
    min-height: 0;
    margin-bottom: 12px;
  }
}
