.screed-product-options {
  min-width: 0;
  max-width: 100%;
  margin-block: 1rem;
  padding: 1rem;
  border: 1px solid #315e51;
  border-radius: .65rem;
  color: #fff9ed;
  background: #164b43;
  font-family: var(--sans, sans-serif);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.screed-product-options *,
.screed-product-options *::before,
.screed-product-options *::after {
  box-sizing: border-box;
  min-width: 0;
}

.screed-product-options [hidden] { display: none !important; }
.screed-product-options h2,
.screed-product-options h3,
.screed-product-options p { margin: 0; color: inherit; }
.screed-product-options .screed-product-heading {
  color: #fff9ed;
  font-size: clamp(1.4rem, 5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.screed-product-options .screed-product-intro {
  margin-top: .6rem;
  color: #f0eddf;
  font-size: .85rem;
}
.screed-product-options .screed-product-help {
  margin-top: .8rem;
  padding: .7rem .8rem;
  border-left: 3px solid #e5be89;
  color: #fff9ed;
  background: #103c35;
  font-size: .82rem;
}
.screed-product-options .screed-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .9rem;
  margin-top: 1rem;
}
.screed-product-options .screed-shopping-card {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  width: 100%;
  max-width: 100%;
  padding: 1rem;
  border: 2px solid #ded8c9;
  border-radius: .5rem;
  color: #18312d;
  background: #fff9ed;
}
.screed-product-options .screed-shopping-card[data-screed-product-selected="true"] {
  border-color: #d9ab6a;
  box-shadow: 0 0 0 2px #d9ab6a;
}
.screed-product-options .screed-product-card-header {
  display: block;
  position: static;
  inset: auto;
  z-index: auto;
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: none;
  overflow: visible;
}
.screed-product-options .screed-shopping-card h3 {
  color: #18312d;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.015em;
}
.screed-product-options .screed-product-bag-size {
  margin-top: .25rem;
  color: #485a50;
  font-size: .78rem;
}
.screed-product-options .screed-product-selected {
  align-self: flex-start;
  padding: .3rem .55rem;
  border-radius: .25rem;
  color: #103c35;
  background: #e7eadc;
  font-size: .75rem;
  font-weight: 800;
}
.screed-product-options .screed-product-count-label {
  color: #485a50;
  font-size: .75rem;
  font-weight: 700;
}
.screed-product-options .screed-product-bags {
  color: #164b43;
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.screed-product-options .screed-product-waiting {
  color: #553b1f;
  font-size: .88rem;
  font-weight: 700;
}
.screed-product-options .screed-product-caveat {
  padding: .65rem .75rem;
  border-left: 3px solid #aa773c;
  border-radius: .2rem;
  color: #553b1f;
  background: #f2e7d4;
  font-size: .77rem;
}
.screed-product-options .screed-product-range,
.screed-product-options .screed-product-limits { font-weight: 700; }
.screed-product-options .screed-product-limits { margin-top: .3rem; }
.screed-product-options .screed-product-base,
.screed-product-options .screed-product-allowance {
  color: #374c40;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}
.screed-product-options .screed-product-use {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  margin-top: .15rem;
  padding: .7rem .8rem;
  border: 1px solid #164b43;
  border-radius: .3rem;
  color: #fff9ed;
  background: #164b43;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.screed-product-options .screed-product-use:hover:not(:disabled) { background: #103c35; }
.screed-product-options .screed-product-use:disabled {
  border-color: #cec7b9;
  color: #586057;
  background: #eae4d8;
  cursor: not-allowed;
}
.screed-product-options .screed-product-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding-block: .5rem;
  color: #164b43;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.screed-product-options .screed-product-provenance {
  padding-top: .3rem;
  border-top: 1px solid #ded8c9;
  color: #374c40;
  font-size: .75rem;
}
.screed-product-options .screed-product-provenance summary {
  min-height: 44px;
  padding-block: .65rem;
  color: #18312d;
  font-weight: 700;
  cursor: pointer;
}
.screed-product-options .screed-product-provenance p + p { margin-top: .5rem; }
.screed-product-options .screed-product-note {
  margin-top: .85rem;
  color: #f0eddf;
  font-size: .77rem;
}
.screed-product-options :is(button, a, summary):focus-visible {
  outline: 3px solid #a46b2c;
  outline-offset: 3px;
}
.screed-product-options .screed-product-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 440px) {
  .screed-product-options { padding: .75rem; }
  .screed-product-options .screed-shopping-card { padding: .8rem; }
}

/* Printed estimates are owned by the parent, not the comparison catalogue. */
@media print {
  .screed-product-options { display: none !important; }
}

/* Keep the input panel at its content height beside longer product options. */
.calculator-page:has([data-screed-root]) .calculator-workbench { align-items: start; }
