.wet-options { container-type: inline-size; }
.wet-heading { border-top: 1px solid var(--hairline); padding-top: 20px; display: grid; grid-template-columns: 90px minmax(0, 1fr) 166px; gap: 12px; font: 11px/1.5 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.wet-heading span:first-child { grid-column: 2; justify-self: end; width: 120px; max-width: 100%; }
.wet-heading span:last-child { text-align: right; }
.wet-group { min-width: 0; margin: 0; padding: 14px 0; border: 0; border-bottom: 1px solid var(--hairline); }
.wet-group:last-of-type { border-bottom: 0; padding-bottom: 0; }
.wet-total { border-top: 1px solid var(--hairline); padding-top: 20px; }
.wet-group legend { float: left; width: 102px; padding: 10px 12px 0 0; font-size: 20px; line-height: 1.3; }
.wet-rows, .wet-add { margin-left: 102px; }
.wet-add { margin-left: max(102px, calc(100% - 298px)); }
.wet-row { display: grid; grid-template-columns: minmax(0, 1fr) 166px; gap: 8px 12px; align-items: center; }
.wet-row + .wet-row { margin-top: 12px; }
.wet-length, .wet-amount { display: block; min-width: 0; }
.wet-length { width: 120px; max-width: 100%; justify-self: end; }
.wet-length select, .quantity__length-select { appearance: none; width: 100%; min-width: 0; height: 54px; padding: 8px 42px 8px 12px; border: 1px solid var(--ink-40); border-radius: 0; background-color: var(--paper-wash); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%2314100c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 23px center; background-size: 10px 6px; color: var(--ink); font: 20px/1.3 var(--font-mono); }
.wet-length select:focus, .quantity__length-select:focus { outline: none; box-shadow: none; }
.wet-length select:focus-visible, .quantity__length-select:focus-visible { background-color: var(--paper-deep); }
.wet-remove { grid-column: 1 / -1; justify-self: end; min-height: 36px; padding: 0; border: 0; background: transparent; color: var(--ink-60); font: 11px/1.5 var(--font-mono); cursor: pointer; }
.wet-remove::after { content: " Eemalda pikkus"; }
.wet-add { display: block; margin-top: 4px; padding: 10px 0; border: 0; background: transparent; color: var(--ember); font: 11px/1.5 var(--font-mono); cursor: pointer; text-align: left; }
.wet-add:hover, .wet-remove:hover { text-decoration: underline; text-underline-offset: 4px; }
.wet-remove:hover { color: var(--ember); }
.wet-error { grid-column: 1 / -1; color: var(--ember); font-size: 14px; }
.wet-row.is-selected select, .wet-row.is-selected .quantity__stepper { border-color: var(--ember); }
.wet-options [hidden] { display: none !important; }
@container (max-width: 420px) {
  .wet-heading { grid-template-columns: minmax(0, 1fr) 166px; }
  .wet-heading span:first-child { grid-column: 1; }
  .wet-group legend { float: none; width: auto; padding: 16px 0 0; }
  .wet-rows, .wet-add { margin-left: 0; }
  .wet-add { margin-left: max(0px, calc(100% - 298px)); }
}
@media (max-width: 960px) {
  .wet-options { grid-area: quantity; width: 100%; }
  .product--wet .product__prices { flex-wrap: wrap; }
}
@container (max-width: 297px) {
  .wet-heading { grid-template-columns: 1fr; }
  .wet-heading span:last-child { display: none; }
  .wet-row { grid-template-columns: 1fr; }
  .wet-amount { justify-self: end; }
  .wet-amount::before { content: "Kogus / rm"; display: block; margin-bottom: 8px; text-align: right; font: 11px/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
  .wet-add { margin-left: auto; width: 166px; }
}

.quantity__choices { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 12px; }
.quantity__length { flex: 0 0 120px; }
.quantity__amount { min-width: 0; flex: 1 1 166px; }
.quantity__label--amount { width: 166px; text-align: right; }
