/* Six facts in three rows; keep dates wrappable instead of widening the mobile viewport. */
.offering-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 16px;
  align-items: stretch;
  grid-auto-rows: auto;
}
.offering-grid > .offering {
  min-width: 0;
  position: relative;
  margin: 0;
  padding: 16px;
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 12px;
}
.offering-grid .offering-card-header {
  display: block;
  height: auto;
  padding: 0;
  border: 0;
  background: none;
}
.offering-grid .offering-card-header > .eyebrow {
  display: block;
  margin: 0;
  padding-inline-end: 44px;
  overflow-wrap: anywhere;
  font-size: 10px;
  line-height: 1.4;
}
.offering-grid .offering-card-header > h2 {
  margin: 8px 0 4px;
  padding-inline-end: 44px;
  font-size: 18px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.offering-grid .offering-card-header > p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.offering-grid .offering-card-header > .offering-logo {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-end: 16px;
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.offering-grid .offering-facts {
  table-layout: fixed;
  margin: 0;
  min-width: 0;
  align-self: stretch;
}
.offering-grid .offering-facts tbody tr > th,
.offering-grid .offering-facts tbody tr > td {
  padding: 8px 7px;
  font-size: 11px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: start;
  vertical-align: middle;
}
.offering-grid .offering-facts .fact-label {
  width: 18%;
}
.offering-grid .offering-facts .fact-value {
  width: 32%;
  font-variant-numeric: tabular-nums;
}
.offering-grid .offering > button {
  margin: 0;
  align-self: end;
  justify-self: start;
  padding: 9px 14px;
  font-size: 12px;
}
@media (max-width: 380px) {
  .offering-grid > .offering {
    padding: 12px;
  }
  .offering-grid .offering-facts tbody tr > th,
  .offering-grid .offering-facts tbody tr > td {
    padding: 7px 5px;
  }
}

@media (max-width: 650px) {
  .offering-grid .offering-facts .fact-label {
    width: 22%;
  }
  .offering-grid .offering-facts .fact-value {
    width: 28%;
  }
}

/* Keep personal subscriptions reachable regardless of catalog size. */
.offering-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  flex-wrap: wrap;
}
.offering-tabs [aria-selected='true'] {
  color: var(--accent);
  border-color: var(--accent);
}
.offering-product-panel > .table-tools {
  margin-bottom: 20px;
}
.offering-product-panel[hidden],
.offering-subscription-panel[hidden] {
  display: none;
}
.offering-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.subscription-record-cards {
  display: none;
}
@media (max-width: 650px) {
  .offering-subscription-panel {
    min-width: 0;
    padding: 14px 12px;
  }
  .subscription-record-table {
    display: none;
  }
  .subscription-record-cards {
    display: grid;
    padding: 0;
  }
  .subscription-record-cards .record-card-id {
    flex-basis: 100%;
  }
}

#modal .subscription-confirmation {
  min-width: 0;
  margin-bottom: 16px;
}
#modal .subscription-confirmation h3 {
  margin: 0 0 10px;
  font-size: 14px;
}
#modal .subscription-confirmation table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
}
#modal .subscription-confirmation th,
#modal .subscription-confirmation td {
  padding: 8px 10px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: start;
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid var(--line);
}
#modal .subscription-confirmation th {
  width: 34%;
  color: var(--muted);
  font-weight: 400;
}

#modal .subscription-confirmation .offering-facts .fact-label {
  width: 18%;
}
#modal .subscription-confirmation .offering-facts .fact-value {
  width: 32%;
}
