/* V53 — compact product choices and a clear itemized order summary. */
.purchase-panel .addon-selection { overflow: clip; background: #fff; }
.purchase-panel .addon-selection > .v7-addon {
  display: grid;
  grid-template-columns: 20px 44px minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px 0;
}
.purchase-panel .addon-selection > .v7-addon > input,
.purchase-panel .addon-selection > .v7-addon > .v7-mini-book { grid-row: 1 !important; }
.purchase-panel .addon-selection > .v7-addon > .v7-addon-copy {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  align-self: center;
}
.purchase-panel .addon-selection .v7-addon-copy > strong {
  margin: 0;
  color: #294358;
  font: 650 14px/1.3 Figtree, system-ui, sans-serif;
}
.purchase-panel .addon-selection .v7-addon-copy > .addon-offer {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 7px !important;
  margin: 0 !important;
}
.purchase-panel .addon-selection .v7-addon-copy .addon-prices { gap: 6px !important; }
.purchase-panel .addon-selection .v7-addon-copy .v7-addon-price { font-size: 16px; }
.purchase-panel .addon-selection .v7-addon-copy .addon-prices > s { font-size: 12px; }
.purchase-panel .addon-selection .v7-addon-copy .bundle-option-description {
  margin: 0;
  color: #52697b;
  font: 400 13px/1.4 Figtree, system-ui, sans-serif !important;
}
.purchase-panel .addon-selection .addon-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px 3px;
  background: #fff;
}
.purchase-panel .addon-selection .addon-recipe-count {
  color: #52697b;
  font: 400 12px/1.35 Figtree, system-ui, sans-serif;
  white-space: nowrap;
}
.purchase-panel .addon-selection .addon-preview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 44px;
  margin: 0;
  padding: 8px 0 8px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #315f85;
  font: 600 12px/1.35 Figtree, system-ui, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #afc7dc;
  cursor: pointer;
}
.purchase-panel .addon-selection .addon-preview-link:hover { color: #163f64; text-decoration-color: currentColor; }
.purchase-panel .addon-selection .addon-preview-link:focus-visible { outline: 3px solid #2868a9; outline-offset: -3px; }

/* Item names and quantities are the order; one total row leads into the action. */
.purchase-panel .bundle-visible .checkout-summary .selection-summary {
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  gap: 9px !important;
  padding: 0 1px 13px !important;
}
.purchase-panel .bundle-visible .checkout-summary .chosen-editions {
  display: block !important;
  margin: 0;
  padding: 0;
}
.purchase-panel .bundle-visible .checkout-summary .chosen-editions > [data-selection-summary] {
  display: block;
  max-width: none !important;
  color: #294358;
  font: 650 14px/1.3 Figtree, system-ui, sans-serif !important;
}
.purchase-panel .bundle-visible .checkout-summary .selection-items {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.purchase-panel .bundle-visible .checkout-summary .selection-items > li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 0;
  color: #52697b;
  font: 400 13px/1.4 Figtree, system-ui, sans-serif;
}
.purchase-panel .bundle-visible .checkout-summary .selection-items > li > span:first-child { min-width: 0; }
.purchase-panel .bundle-visible .checkout-summary .selection-quantity {
  flex: 0 0 auto;
  color: #52697b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.purchase-panel .bundle-visible .checkout-summary .selection-price-line {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  margin: 4px 0 0 !important;
  padding: 11px 0 0;
  border-top: 1px solid #caddea;
  text-align: left !important;
}
.purchase-panel .bundle-visible .checkout-summary .selection-price-line > strong {
  flex: 0 0 auto;
  order: 0 !important;
  color: #233b50;
  font: 750 25px/1.15 Figtree, system-ui, sans-serif !important;
}
.purchase-panel .bundle-visible .checkout-summary .selection-price-line > s {
  flex: 0 0 auto;
  order: 0 !important;
  color: #596f82;
  font: 400 13px/1.35 Figtree, system-ui, sans-serif !important;
}
.purchase-panel .bundle-visible .checkout-summary .selection-price-line > .sale-chip:last-child {
  order: 0 !important;
  align-self: center;
  margin: 0 !important;
}

@media (max-width: 700px) {
  .purchase-panel .addon-selection > .v7-addon { grid-template-columns: 20px 40px minmax(0, 1fr); gap: 8px; padding: 10px 10px 0; }
  .purchase-panel .addon-selection > .v7-addon > .v7-mini-book { width: 40px; }
  .purchase-panel .addon-selection .addon-card-footer { padding-inline: 10px; }
}
@media (max-width: 360px) {
  .purchase-panel .addon-selection > .v7-addon { grid-template-columns: 18px 30px minmax(0, 1fr); column-gap: 6px; padding: 9px 8px 0; }
  .purchase-panel .addon-selection > .v7-addon > input { width: 18px; height: 18px; }
  .purchase-panel .addon-selection > .v7-addon > .v7-mini-book { width: 30px; }
  .purchase-panel .addon-selection .v7-addon-copy > .addon-offer { gap: 5px !important; }
  .purchase-panel .addon-selection .v7-addon-copy .addon-prices { gap: 5px !important; }
  .purchase-panel .addon-selection .v7-addon-copy .v7-addon-price { font-size: 15px; }
  .purchase-panel .addon-selection .v7-addon-copy .addon-prices > s { font-size: 11px; }
  .purchase-panel .addon-selection .addon-card-footer { padding-inline: 8px; }
  .purchase-panel .bundle-visible .checkout-summary .selection-price-line { gap: 8px !important; }
  .purchase-panel .bundle-visible .checkout-summary .selection-price-line > strong { font-size: 24px !important; }
}
