/* V47 — a connected bundle offer, with the total directly on the blue panel. */
.offer-announcement {
  min-height: 36px;
  gap: 10px;
  padding: 6px 16px;
  background: #245b8c;
  color: #fff;
  font: 500 12px/1.4 Figtree, system-ui, sans-serif;
}
.offer-announcement strong {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 4px;
  background: #fff;
  color: #245b8c;
  font: 750 10px/1.3 Figtree, system-ui, sans-serif;
  letter-spacing: .06em;
}
.offer-announcement span {
  padding: 0;
  border: 0;
  color: #fff;
}
.offer-announcement svg { flex: 0 0 auto; width: 14px; height: 14px; }
.offer-announcement:hover { background: #1e4e79; }
.offer-announcement:focus-visible { outline: 3px solid #c4e2ff; outline-offset: -4px; }

.purchase-panel .bundle-visible { padding: 14px !important; }
.purchase-panel .bundle-visible .bundle-heading {
  justify-content: flex-start;
  align-items: center;
  gap: 9px !important;
  padding: 0 1px 13px !important;
}
.purchase-panel .bundle-visible .bundle-heading .bundle-event {
  margin: 0;
  padding: 6px 8px !important;
  border-radius: 4px !important;
  background: #245b8c !important;
  color: #fff !important;
  font: 750 10px/1.3 Figtree, system-ui, sans-serif !important;
  letter-spacing: .06em;
}
.purchase-panel .bundle-visible .bundle-heading h2 {
  padding: 0;
  color: #294358;
  font: 650 16px/1.3 Figtree, system-ui, sans-serif !important;
}
.purchase-panel .bundle-visible [data-bundle-options] { gap: 10px; }

/* The title, description and price share one readable left edge. */
.purchase-panel .addon-selection > .v7-addon {
  grid-template-columns: 20px 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 6px 10px;
  padding: 12px;
  align-items: center;
}
.purchase-panel .addon-selection > .v7-addon > input {
  grid-column: 1;
  grid-row: 1 / 3;
  margin: 0;
}
.purchase-panel .addon-selection > .v7-addon > .v7-mini-book {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 44px;
}
.purchase-panel .addon-selection > .v7-addon > .v7-addon-copy {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  align-self: end;
}
.purchase-panel .addon-selection > .v7-addon > .v7-addon-copy > strong {
  display: block;
  color: #294358;
  font: 650 14px/1.3 Figtree, system-ui, sans-serif;
}
.purchase-panel .addon-selection > .v7-addon .bundle-option-description {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4 !important;
}
.purchase-panel .addon-selection > .v7-addon > .addon-offer {
  grid-column: 3;
  grid-row: 2;
  align-self: start;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 6px 8px !important;
  margin: 2px 0 0 !important;
  text-align: left;
}
.purchase-panel .addon-selection .addon-prices {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 7px !important;
  font-variant-numeric: tabular-nums;
}
.purchase-panel .addon-selection .addon-prices > strong {
  color: #294358;
  font: 750 16px/1.3 Figtree, system-ui, sans-serif;
}
.purchase-panel .addon-selection .addon-prices > s {
  color: #596f82;
  font: 400 12px/1.3 Figtree, system-ui, sans-serif;
}
.purchase-panel .addon-selection > .addon-details,
.purchase-panel .addon-selection:has(input:checked) > .addon-details { background: #f2f7fb; }
.purchase-panel .addon-selection > .addon-details > summary {
  min-height: 44px;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* No second card: the selection and action belong to the bundle surface. */
.purchase-panel .bundle-visible .checkout-summary {
  margin: 16px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}
.purchase-panel .bundle-visible .checkout-summary .selection-summary {
  margin: 0 !important;
  padding: 0 2px 14px !important;
  gap: 12px 10px !important;
  border: 0 !important;
  background: transparent !important;
}
.purchase-panel .bundle-visible .checkout-summary .chosen-editions {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px !important;
}
.purchase-panel .bundle-visible .checkout-summary .chosen-editions > [data-selection-summary] {
  max-width: none !important;
  color: #294358;
  font: 650 14px/1.3 Figtree, system-ui, sans-serif !important;
}
.purchase-panel .bundle-visible .checkout-summary .chosen-editions > small {
  padding: 5px 8px !important;
  border-radius: 5px;
  background: #fff !important;
  color: #315e85 !important;
  font: 500 11px/1.25 Figtree, system-ui, sans-serif !important;
}
.purchase-panel .bundle-visible .checkout-summary .selection-covers { gap: 7px !important; }
.purchase-panel .bundle-visible .checkout-summary .selection-cover {
  width: 32px !important;
  height: 44px !important;
}
.purchase-panel .bundle-visible .checkout-summary .selection-price-line {
  grid-template-columns: auto auto !important;
  gap: 5px 7px !important;
}
.purchase-panel .bundle-visible .checkout-summary .selection-price-line > strong {
  font-size: 27px !important;
  color: #233b50;
}
.purchase-panel .bundle-visible .checkout-summary .selection-price-line > s { color: #596f82; }
.purchase-panel .bundle-visible .checkout-summary .selection-price-line > .sale-chip:last-child {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
}
.purchase-panel .bundle-visible .checkout-summary .add-to-cart {
  min-height: 52px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 14px -8px rgb(40 104 169 / .55) !important;
}
.purchase-panel .bundle-visible .checkout-summary .add-to-cart:hover {
  box-shadow: 0 8px 17px -8px rgb(40 104 169 / .58) !important;
}
.purchase-panel .bundle-visible .checkout-summary .add-to-cart:active {
  box-shadow: 0 3px 8px -6px rgb(40 104 169 / .5) !important;
}

@media (max-width: 360px) {
  .offer-announcement { gap: 7px; padding-inline: 10px; font-size: 11px; }
  .offer-announcement strong { padding-inline: 6px; font-size: 9px; }
  .purchase-panel .bundle-visible { padding: 11px !important; }
  .purchase-panel .bundle-visible .bundle-heading { gap: 8px !important; }
  .purchase-panel .bundle-visible .bundle-heading h2 { font-size: 15px !important; }
  .purchase-panel .addon-selection > .v7-addon { grid-template-columns: 20px 36px minmax(0, 1fr); column-gap: 8px; padding: 10px 8px; }
  .purchase-panel .addon-selection > .v7-addon > .v7-mini-book { width: 36px; }
  .purchase-panel .bundle-visible .checkout-summary .selection-covers { gap: 5px !important; }
  .purchase-panel .bundle-visible .checkout-summary .selection-cover { width: 29px !important; height: 40px !important; }
  .purchase-panel .bundle-visible .checkout-summary .selection-price-line > strong { font-size: 25px !important; }
  .purchase-panel .bundle-visible .checkout-summary .chosen-editions > [data-selection-summary] { font-size: 13px !important; }
}
