/* Bundles (inc/bundles.php): FINAL v2 1673:14941 / 1674:17090 (Bundles page), 1684:85746 / 1684:88408 (bundle page)
   and the 1655:452 cross-sell card. Loaded after the catalogue or product page sheets, whose classes the views reuse. */

/* The bundle views have no Woo or single-product body class, so drop style.css's content-page rhythm here. */
body:has(.usr-bundles, .usr-bundle) .usr-main { padding: 0; }

/* Format strip tile: the cheapest bundle's packs side by side. */
.catalog-v2-format__image.usr-bundles-tile__image { display: flex; align-items: center; justify-content: center; }
.catalog-v2-format__image.usr-bundles-tile__image img { flex: 0 0 50%; width: 50%; height: 100%; object-fit: contain; }

/* Bundles page: three columns at 1440, two on tablets, one on phones. */
.usr-bundles .catalog-v2-names__label.usr-bundles-names__label { color: #4a4a4a; }
.usr-bundles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: stretch; gap: 24px; margin: 0; padding: 0; list-style: none; }
.usr-bundles-grid__cell { display: flex; min-width: 0; margin: 0; }
.usr-bundle-card { display: flex; flex-direction: column; width: 100%; min-width: 0; overflow: hidden; border-radius: 20px; background: #fff; }
.usr-bundle-card__packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); aspect-ratio: 432 / 268; background: #fff; }
.usr-bundle-card__pack { display: block; min-width: 0; height: 100%; overflow: hidden; }
.usr-bundle-card__pack img,
.usr-bundle-card__pack .usr-card__img--empty { display: block; width: 100%; height: 100%; object-fit: contain; }
.usr-bundle-card__body { display: flex; flex: 1; flex-direction: column; gap: 7px; min-width: 0; padding: 20px 22px 24px; }
.usr-bundle-card__body p { margin: 0; overflow-wrap: anywhere; }
.usr-bundle-card__title { margin: 0 0 5px; color: #13266b; font-size: 24px; font-weight: 500; line-height: 30px; letter-spacing: 0; overflow-wrap: anywhere; }
.usr-bundle-card__title a { color: inherit; text-decoration: none; }
.usr-bundle-card__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.usr-bundle-card__composition { color: #191919; font-size: 14px; line-height: 20px; }
.usr-bundle-card__packline { color: #4a4a4a; font-size: 14px; line-height: 20px; }
.usr-bundle-card .usr-bundle-card__price { margin-bottom: 16px; color: #13266b; font-size: 18px; font-weight: 500; line-height: 27px; }
.usr-bundle-card__price :is(.woocommerce-Price-amount, .woocommerce-Price-currencySymbol, bdi) { color: inherit; font: inherit; }
.usr-bundle-card__cta { display: inline-flex; align-self: flex-start; align-items: center; justify-content: center; min-height: 44px; margin-top: auto; padding: 0 22px; border: 1.25px solid #13266b; border-radius: 999px; color: #13266b; font-size: 18px; font-weight: 500; line-height: 27px; text-decoration: none; }
.usr-bundle-card__cta:hover { background: #13266b; color: #fff; text-decoration: none; }
.usr-bundle-card__held { color: #13266b; font-size: 14px; line-height: 20px; }
.usr-bundle-card a:focus-visible { outline: 2px solid #264bd0; outline-offset: 4px; }

/* Bundle page: the product page layout, with the packs' images in two columns. */
.usr-pdp.usr-bundle .usr-bundle-gallery { display: grid; gap: 12px; min-width: 0; }
.usr-bundle-gallery__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.usr-bundle-gallery__cell { position: relative; min-width: 0; margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: 18.6px; background: #fff; }
.usr-bundle-gallery__cell--pack { aspect-ratio: 347 / 520; }
.usr-bundle-gallery__img { display: block; width: 100%; height: 100%; object-fit: contain; }
.usr-bundle-gallery__cell--photo .usr-bundle-gallery__img { object-fit: cover; }
.usr-bundle-gallery__label { position: absolute; bottom: 8px; left: 11px; z-index: 1; display: inline-block; max-width: calc(100% - 22px); padding: 4.6px 9.3px; border-radius: 999px; background: #fff; color: #13266b; font-size: 13px; font-weight: 500; line-height: 18.6px; }
.usr-bundle-purchase { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.usr-pdp .usr-bundle-lockup { margin: 0; }
.usr-pdp .usr-bundle-lockup__line { margin: 8px 0 0; color: #191919; font-size: 18px; font-weight: 400; line-height: 27px; }
.usr-bundle-lockup__price { color: #13266b; font-weight: 500; }
.usr-bundle-lockup__price :is(.woocommerce-Price-amount, .woocommerce-Price-currencySymbol, bdi),
.usr-bundle-offer__price :is(.woocommerce-Price-amount, .woocommerce-Price-currencySymbol, bdi),
.usr-bundle-offer__add :is(.woocommerce-Price-amount, .woocommerce-Price-currencySymbol, bdi) { color: inherit; font: inherit; }
.usr-bundle-packs { display: grid; gap: 10px; margin-top: 16px; }
.usr-pdp .usr-bundle-packs__title { margin: 0; color: #13266b; font-size: 18px; font-weight: 700; line-height: 27px; letter-spacing: 0; }
.usr-bundle-pack { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 14px 12px 12px; border: 1px solid #e0d7c8; border-radius: 14px; background: #fff; }
.usr-bundle-pack__media { display: block; width: 64px; height: 64px; overflow: hidden; border-radius: 10px; background: #fff; }
.usr-bundle-pack__media img,
.usr-bundle-pack__media .usr-card__img--empty { display: block; width: 100%; height: 100%; object-fit: contain; }
.usr-bundle-pack__copy { display: grid; gap: 3px; min-width: 0; }
.usr-pdp .usr-bundle-pack__copy p { margin: 0; }
.usr-pdp .usr-bundle-pack__name { margin: 0; color: #13266b; font-size: 18px; font-weight: 500; line-height: 27px; letter-spacing: 0; }
.usr-pdp .usr-bundle-pack__details { color: #191919; font-size: 14px; line-height: 20px; }
.usr-pdp .usr-bundle-pack__price { color: #13266b; font-size: 14px; line-height: 20px; }
.usr-pdp .usr-bundle-pack__held { color: #13266b; font-size: 18px; font-weight: 700; line-height: 27px; }
.usr-bundle-pack__see { display: inline-flex; align-items: center; justify-self: start; gap: 6px; min-height: 27px; color: #13266b; font-size: 18px; font-weight: 500; line-height: 27px; text-decoration: none; overflow-wrap: anywhere; }
.usr-bundle-pack__see:hover { text-decoration: underline; text-underline-offset: 4px; }
.usr-bundle-receipt { padding: 20px 22px 14px; border: 1px solid #e0d7c8; border-radius: 16px; background: #fff; }
.usr-pdp .usr-bundle-receipt__title { margin: 0; padding-bottom: 8px; color: #13266b; font-size: 24px; font-weight: 500; line-height: 30px; letter-spacing: 0; }
.usr-bundle-receipt__lines { margin: 0; padding: 0; list-style: none; }
.usr-bundle-receipt__line { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin: 0; padding: 10px 0; border-top: 1px solid #ece7de; color: #191919; font-size: 18px; line-height: 27px; }
.usr-bundle-receipt__item { min-width: 0; overflow-wrap: anywhere; }
.usr-bundle-receipt__amount { flex: none; padding-top: 3px; color: #4a4a4a; font-size: 14px; line-height: 20px; text-align: right; white-space: nowrap; }
.usr-pdp .usr-bundle-receipt__total { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 14px 0 6px; border-top: 1px solid #e0d7c8; color: #191919; font-size: 18px; font-weight: 700; line-height: 27px; }
.usr-bundle-receipt__sum { color: #13266b; text-align: right; }
.usr-bundle-buybox { display: grid; gap: 16px; }
.usr-pdp .usr-bundle-buybox p { margin: 0; }
.usr-pdp .usr-bundle-buybox__note { color: #4a4a4a; font-size: 18px; line-height: 27px; }
.usr-pdp .usr-bundle-buybox .usr-pdp-add-error:not(:empty) { margin: 0; }
.usr-pdp.usr-bundle .usr-bundle-faq { background: #fff; }

/* Product page: "Make it a bundle." below the buy column. */
.usr-pdp .usr-bundle-offer { display: grid; gap: 10px; margin-top: 24px; padding: 20px; border: 1px solid #e0d7c8; border-radius: 18px; background: #fff; }
.usr-bundle-offer__head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.usr-bundle-offer__packs { display: flex; flex: none; gap: 6px; }
.usr-bundle-offer__pack { display: block; width: 56px; height: 56px; overflow: hidden; border: 1px solid #ece7de; border-radius: 10px; background: #fff; }
.usr-bundle-offer__pack img,
.usr-bundle-offer__pack .usr-card__img--empty { display: block; width: 100%; height: 100%; object-fit: contain; }
.usr-bundle-offer__heading { display: grid; gap: 12px; min-width: 0; }
.usr-pdp .usr-bundle-offer p { margin: 0; }
.usr-pdp .usr-bundle-offer__title { margin: 0; color: #13266b; font-size: 24px; font-weight: 500; line-height: 30px; letter-spacing: 0; }
.usr-pdp .usr-bundle-offer__name { color: #191919; font-size: 18px; font-weight: 500; line-height: 27px; }
.usr-pdp .usr-bundle-offer__packline { color: #4a4a4a; font-size: 14px; line-height: 20px; }
.usr-pdp .usr-bundle-offer__price { color: #191919; font-size: 18px; line-height: 27px; }
.usr-bundle-offer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.usr-bundle-offer__add { display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; min-height: 44px; margin: 0; padding: 8px 22px; border: 1.25px solid #13266b; border-radius: 999px; background: #fff; color: #13266b; font-family: inherit; font-size: 18px; font-weight: 500; line-height: 27px; text-align: center; cursor: pointer; }
.usr-bundle-offer__add:hover { background: #ecf3ff; }
.usr-bundle-offer__add.is-adding { cursor: wait; }
.usr-bundle-offer__add.is-added { background: #13266b; color: #fff; }
.usr-bundle-offer__see { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #13266b; font-size: 18px; font-weight: 500; line-height: 27px; text-decoration: none; }
.usr-bundle-offer__see:hover { text-decoration: underline; text-underline-offset: 4px; }
.usr-pdp .usr-bundle-offer__error { color: #191919; font-size: 18px; line-height: 27px; }
.usr-bundle-offer__error[hidden] { display: none; }
/* "Make it two." leads with the packs; it and the compare card add the compositions. */
.usr-pdp .usr-bundle-offer__packline--lead { color: #191919; font-size: 18px; font-weight: 500; line-height: 27px; }
.usr-pdp .usr-bundle-offer__composition { color: #4a4a4a; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.usr-pdp a.usr-bundle-offer__compare,
.usr-pdp a.usr-bundle-offer__compare:is(:hover, :focus) { text-decoration: none; }
/* Three packs: the heading drops under the images when they leave it too little room. */
.usr-bundle-offer--many .usr-bundle-offer__head { flex-wrap: wrap; }
.usr-bundle-offer--many .usr-bundle-offer__heading { flex: 1 1 200px; }

@media (max-width: 720px) {
  .usr-bundles-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .usr-bundle-card { border-radius: 16px; }
  .usr-bundle-card__packs { aspect-ratio: 358 / 200; }
  .usr-bundle-card__body { padding: 14px 14px 16px; }
  .usr-bundle-card__title { margin-bottom: 0; font-size: 18px; font-weight: 700; line-height: 27px; }
  .usr-bundle-card .usr-bundle-card__price { margin-bottom: 8px; font-weight: 700; }
  .usr-bundle-card__cta { align-self: stretch; }

  .usr-pdp.usr-bundle .usr-bundle-gallery { gap: 10px; margin-bottom: 24px; }
  .usr-bundle-gallery__row { gap: 10px; }
  .usr-bundle-gallery__cell { border-radius: 14px; }
  .usr-bundle-gallery__cell--pack { aspect-ratio: 174 / 220; }
  .usr-bundle-gallery__label { bottom: 8px; left: 12px; max-width: calc(100% - 24px); padding: 5px 10px; font-size: 14px; line-height: 20px; }
  .usr-bundle-gallery__label-format { display: none; }
  .usr-bundle-receipt { padding: 20px 18px 14px; }

  .usr-pdp .usr-bundle-offer { padding: 16px; border-radius: 16px; }
  .usr-bundle-offer__add { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .usr-bundle-card__cta, .usr-bundle-offer__add { transition: background-color .15s ease, color .15s ease; }
}

/* An AP kit price (inc/bundle-pricing.php): the packs' sum struck through, then the bundle price and what it saves. */
.usr-bundle-was { color: #6b6b6b; font-weight: 400; text-decoration-thickness: 1px; }
.usr-bundle-now { text-decoration: none; }
.usr-bundle-save { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 999px; background: #ecf3ff; color: #13266b; font-size: 14px; font-weight: 500; line-height: 22px; white-space: nowrap; vertical-align: 1px; }
.usr-bundle-receipt__amount .usr-bundle-was { margin-right: 4px; }
.usr-bundle-add .usr-bundle-was,
.usr-bundle-offer__add .usr-bundle-was { color: inherit; opacity: .6; }
