.truecost-coffee {
  --tc-coffee-ink: #17211b;
  --tc-coffee-muted: #58625b;
  --tc-coffee-border: #d5ddd7;
  --tc-coffee-accent: #17643a;
  color: var(--tc-coffee-ink);
  font: inherit;
  max-width: 72rem;
  margin-inline: auto;
}

.truecost-coffee__header,
.truecost-coffee__panel,
.truecost-coffee__results {
  border: 1px solid var(--tc-coffee-border);
  border-radius: .75rem;
  padding: 1rem;
  margin-block: 1rem;
  background: #fff;
}

.truecost-coffee__eyebrow {
  color: var(--tc-coffee-accent);
  font-weight: 700;
}

.truecost-coffee label,
.truecost-coffee fieldset {
  display: block;
  margin-block: .75rem;
}

.truecost-coffee input,
.truecost-coffee select,
.truecost-coffee button {
  font: inherit;
  min-height: 2.75rem;
}

.truecost-coffee input,
.truecost-coffee select {
  width: 100%;
  box-sizing: border-box;
  padding: .5rem;
  border: 1px solid #78827b;
  border-radius: .35rem;
}

.truecost-coffee__input-unit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem;
}

.truecost-coffee__machine {
  border-top: 1px solid var(--tc-coffee-border);
  padding-block: 1rem;
}

.truecost-coffee__machine-select {
  display: flex !important;
  gap: .75rem;
  align-items: flex-start;
}

.truecost-coffee__machine-select input {
  width: auto;
}

.truecost-coffee__machine-select span,
.truecost-coffee__machine-select small {
  display: block;
}

.truecost-coffee__notice,
.truecost-coffee__boundary {
  color: var(--tc-coffee-muted);
}

.truecost-coffee__errors {
  border-left: .3rem solid #a61b1b;
  padding: .75rem;
  margin-block: 1rem;
}

.truecost-coffee__errors:focus {
  outline: 2px solid #a61b1b;
  outline-offset: 3px;
}

.truecost-coffee table {
  width: 100%;
  border-collapse: collapse;
}

.truecost-coffee th,
.truecost-coffee td {
  border-bottom: 1px solid var(--tc-coffee-border);
  padding: .5rem;
  text-align: left;
}

@media (min-width: 48rem) {
  .truecost-coffee__panel {
    padding: 1.5rem;
  }

  .truecost-coffee__machine {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 1rem;
    align-items: start;
  }
}

.truecost-coffee__care {
  grid-column: 1 / -1;
  border: 1px solid var(--tc-coffee-border);
  border-radius: .35rem;
  padding: .75rem;
}

.truecost-coffee__care fieldset {
  border: 0;
  border-top: 1px solid var(--tc-coffee-border);
  padding: .75rem 0;
}

.truecost-coffee__care input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

.truecost-coffee__milk {
  border: 1px solid var(--tc-coffee-border);
  border-radius: .35rem;
  padding: .75rem;
}

.truecost-coffee__milk input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

.truecost-coffee [hidden] {
  display: none;
}

.truecost-coffee__results {
  min-width: 0;
}

.truecost-coffee__result-cards {
  display: none;
}

@media (max-width: 47.999rem) {
  .truecost-coffee__results [data-results] > table {
    display: none;
  }

  .truecost-coffee__result-cards {
    display: grid;
    gap: 1rem;
  }

  .truecost-coffee__result-card {
    min-width: 0;
    border: 1px solid var(--tc-coffee-border);
    border-radius: .5rem;
    padding: .75rem;
    overflow-wrap: anywhere;
  }

  .truecost-coffee__result-card h4 {
    margin: 0 0 .75rem;
  }

  .truecost-coffee__results .truecost-coffee__result-card dl {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .truecost-coffee__scheduled {
    table-layout: fixed;
    overflow-wrap: anywhere;
  }
}

.truecost-coffee__results details {
  margin-block: 1rem;
}

.truecost-coffee__scheduled {
  margin-block-start: .5rem;
}

.truecost-coffee__results dl {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: .35rem 1rem;
}

.truecost-coffee__results dd {
  margin: 0;
  text-align: right;
}

.truecost-coffee__comparison {
  border-left: .3rem solid var(--tc-coffee-accent);
  background: #f3f8f4;
  padding: .75rem 1rem;
  margin-block: 1rem;
}
