:root {
  font-family: Inter, Arial, sans-serif;
  color: #172023;
  background: #f8faf9;
  font-size: 15px;
  letter-spacing: 0;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}
a {
  color: #086d5b;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #07866e;
}
button {
  border: 1px solid #087762;
  background: #087762;
  color: #fff;
  padding: 11px 17px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  min-height: 42px;
}
button:hover {
  background: #065d4d;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.quiet,
.secondary {
  background: #fff;
  border: 1px solid #d8dfdc;
  color: #24332d;
}
.quiet:hover,
.secondary:hover {
  background: #f0f4f2;
}
.topbar {
  height: 80px;
  background: #fff;
  border-bottom: 1px solid #dce3df;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100% - 1220px) / 2));
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #18251e;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.topbar nav a {
  font-size: 14px;
  color: #41524a;
}
main {
  min-height: calc(100vh - 168px);
  max-width: 1220px;
  margin: auto;
  padding: 40px 24px 56px;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 700;
}
h2 {
  font-size: 21px;
  line-height: 1.3;
  margin: 0 0 20px;
}
h3 {
  font-size: 16px;
  margin: 0 0 12px;
}
p {
  line-height: 1.55;
}
.muted {
  color: #63746b;
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  color: #65796d;
  font-weight: 700;
  margin: 0 0 10px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}
.page-heading p {
  margin: 0;
}
.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}
.product {
  padding: 24px;
  border: 1px solid #dce3df;
  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product h2 {
  margin: 0;
}
.product .price {
  margin: 4px 0;
}
.product > a {
  margin-top: auto;
}
.price {
  font-size: 30px;
  font-weight: 700;
}
.price small {
  font-size: 14px;
  font-weight: 400;
  color: #617269;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  background: #e8f5ef;
  color: #086c4e;
  white-space: nowrap;
}
.tag.pending {
  background: #fff2cf;
  color: #7a5900;
}
.tag.inactive {
  background: #f2e6e6;
  color: #8d3838;
}
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 60px;
}
.checkout-form {
  max-width: 650px;
}
.summary {
  align-self: start;
  border-top: 3px solid #e7b627;
  padding-top: 24px;
  position: sticky;
  top: 24px;
}
.summary dl {
  margin: 24px 0;
}
.summary dt {
  font-size: 13px;
  color: #65776c;
  margin: 18px 0 6px;
}
.summary dd {
  margin: 0;
  font-weight: 600;
}
.summary .total {
  border-top: 1px solid #dce3df;
  padding-top: 20px;
}
.summary img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 14px;
}
.segmented {
  display: flex;
  gap: 0;
  border: 1px solid #cdd8d1;
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
  margin-bottom: 24px;
}
.segmented label {
  margin: 0;
  padding: 11px 20px;
  cursor: pointer;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
}
.segmented label:has(input:checked) {
  background: #dff0e7;
  color: #075b44;
}
.segmented input {
  width: 16px;
  margin: 0 7px 0 0;
  accent-color: #087762;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.full {
  grid-column: 1/-1;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #cad5ce;
  border-radius: 5px;
  background: #fff;
  color: #172023;
  margin-top: 7px;
  min-height: 44px;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: #087762;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
  min-width: 0;
}
legend {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
}
.payment-option {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #d6dfd9;
  border-radius: 6px;
  background: white;
  padding: 16px;
  margin: 0 0 10px;
  min-height: 65px;
}
.payment-option:has(input:checked) {
  border-color: #087762;
  background: #eff8f3;
}
.payment-option:has(input:disabled) {
  color: #859188;
  background: #f3f5f3;
}
.payment-option input {
  width: 18px;
  height: 18px;
  flex: none;
}
.payment-option strong {
  display: block;
  font-size: 14px;
}
.payment-option small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 4px;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
.consent input {
  margin-top: 4px;
}
.primary-wide {
  width: 100%;
}
.account-prompt {
  border-bottom: 1px solid #dde5df;
  padding-bottom: 28px;
  margin-bottom: 28px;
}
.tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid #dbe4dd;
  overflow: auto;
}
.tabs button {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #5b6d60;
  padding: 12px 0;
  white-space: nowrap;
  min-width: 80px;
}
.tabs button[aria-selected="true"] {
  color: #087762;
  box-shadow: inset 0 -3px #087762;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid #dce3df;
  margin: 24px 0 32px;
}
.metric {
  padding: 20px 16px;
  border-right: 1px solid #dce3df;
}
.metric:first-child {
  padding-left: 0;
}
.metric:last-child {
  border-right: 0;
}
.metric span {
  display: block;
  color: #617469;
  font-size: 13px;
  margin-bottom: 8px;
}
.metric strong {
  font-size: 24px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0;
  align-items: center;
}
.toolbar input {
  max-width: 340px;
  margin: 0 !important;
}
.table-wrap {
  overflow: auto;
  border-block: 1px solid #dce3df;
}
table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  font-size: 13px;
}
th {
  text-align: left;
  color: #5d7164;
  font-size: 11px;
  text-transform: uppercase;
  white-space: nowrap;
  background: #f1f5f2;
}
th,
td {
  padding: 15px 14px;
  border-bottom: 1px solid #e6ebe7;
  vertical-align: middle;
}
td small {
  display: block;
  color: #66796c;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 4px;
}
td:first-child {
  min-width: 170px;
}
td .amount {
  white-space: nowrap;
  font-weight: 600;
}
tr:last-child td {
  border-bottom: 0;
}
.empty {
  padding: 36px 12px;
  color: #66766c;
  text-align: center;
}
.action-menu {
  position: relative;
}
.action-menu summary {
  cursor: pointer;
  border: 1px solid #d1dbd3;
  border-radius: 5px;
  padding: 8px 12px;
  list-style-position: inside;
  white-space: nowrap;
}
.action-menu[open] {
  z-index: 2;
}
.action-menu .menu-items {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 190px;
  background: #fff;
  border: 1px solid #d0dbd3;
  border-radius: 6px;
  padding: 6px;
  box-shadow: 0 8px 20px #172c2020;
}
.menu-items button,
.menu-items a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px;
  font-size: 13px;
  background: #fff;
  color: #24362a;
  border: 0;
  border-radius: 4px;
}
.menu-items button:hover,
.menu-items a:hover {
  background: #edf5ee;
}
.table-wrap:has(.action-menu[open]) {
  padding-bottom: 170px;
}
.error {
  color: #9f3333;
  font-size: 13px;
  min-height: 20px;
}
.success {
  border-left: 3px solid #087762;
  padding: 12px 20px;
  background: #eaf6ee;
}
.loading {
  padding: 60px 0;
  color: #66786b;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(90vw, 600px);
  padding: 14px 20px;
  background: #163c2d;
  color: #fff;
  border-radius: 6px;
  z-index: 20;
  box-shadow: 0 8px 24px #0002;
}
footer {
  border-top: 1px solid #dce3df;
  background: white;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: #728177;
  font-size: 12px;
  padding: 20px;
}
dialog {
  width: min(560px, calc(100% - 32px));
  border: 1px solid #d6e0d8;
  border-radius: 8px;
  padding: 28px;
  max-height: 90vh;
}
dialog::backdrop {
  background: #101c1680;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.dialog-heading h2 {
  margin: 0;
}
.offer-row {
  border-bottom: 1px solid #dce3df;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.offer-row p {
  margin: 6px 0;
}
.offer-row h3 {
  margin: 0;
}
.offer-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.result {
  max-width: 700px;
  margin: 40px auto;
}
.result h1 {
  margin: 24px 0;
}
.result dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 24px 0;
  border-block: 1px solid #dce3df;
}
.result dt {
  color: #6c7b72;
}
.result dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}
.result-actions {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}
.button-link {
  display: inline-block;
  border: 1px solid #087762;
  border-radius: 6px;
  padding: 11px 17px;
  background: #087762;
  color: #fff;
  font-weight: 600;
  text-align: center;
}
.button-link:hover {
  background: #075b4c;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 30px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(n + 3) {
    border-top: 1px solid #dce3df;
  }
  .metric:nth-child(3) {
    padding-left: 0;
  }
}
@media (max-width: 640px) {
  .topbar {
    height: auto;
    min-height: 72px;
    padding: 14px 18px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 18px;
  }
  .brand img {
    width: 35px;
    height: 35px;
  }
  .topbar nav {
    gap: 16px;
    flex-wrap: wrap;
  }
  .topbar nav a {
    font-size: 12px;
  }
  .topbar button {
    padding: 6px 10px;
    min-height: 34px;
  }
  main {
    padding: 28px 18px 40px;
  }
  h1 {
    font-size: 26px;
  }
  .page-heading {
    display: block;
  }
  .page-heading > button {
    margin-top: 20px;
  }
  .checkout-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .summary {
    position: static;
    order: -1;
    width: 100%;
  }
  .summary dl {
    display: none;
  }
  .summary .total {
    border: 0;
    padding: 0;
    margin: 8px 0;
  }
  .summary .total p {
    margin: 8px 0;
  }
  .summary img {
    float: right;
    width: 50px;
    height: 50px;
    margin: 0;
  }
  .summary h2 {
    margin: 0;
  }
  .summary .price {
    font-size: 28px;
  }
  .fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .toolbar input {
    max-width: none;
  }
  .metric strong {
    font-size: 21px;
  }
  .metric {
    padding: 16px 10px;
  }
  .offer-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .offer-actions {
    width: 100%;
    justify-content: space-between;
  }
  .result {
    margin: 10px auto;
  }
  .result-actions {
    flex-direction: column;
  }
  .result dl {
    font-size: 13px;
  }
  footer {
    gap: 10px;
    flex-direction: column;
    text-align: center;
  }
  .dialog-heading h2 {
    font-size: 19px;
  }
  dialog {
    padding: 20px;
  }
  .segmented {
    width: 100%;
  }
  .segmented label {
    flex: 1;
    text-align: center;
    padding: 11px 10px;
  }
}
