/*
 * Nutria Buyer UX V2
 * Phase 2A — Hero campagne / résumé sticky
 * Presentation only. No product-card rules live in this file.
 */

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a {
  --buyer-green: var(--nutria-color-green, #8ca536);
  --buyer-orange: var(--nutria-color-orange, #f2ad3a);
  --buyer-brown: var(--nutria-color-brown, #603819);
  --buyer-brown-dark: var(--nutria-color-brown-dark, #3d2517);
  --buyer-cream: var(--nutria-color-cream, #fffaf1);
  --buyer-cream-deep: var(--nutria-color-cream-deep, #f5eedf);
}

/* Give the campaign story a little more presence without touching products. */
.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-campaign-shop-layout {
  grid-template-columns: minmax(21rem, .82fr) minmax(0, 1.58fr);
  gap: clamp(1.35rem, 2.8vw, 2.6rem);
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-campaign-shop-summary {
  min-width: 0;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 {
  position: sticky;
  inset-block-start: 5.65rem;
  grid-template-rows: auto auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgb(96 56 25 / .14);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 14px 34px rgb(61 40 23 / .09);
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 .nutria-public-campaign-card__cover {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8.35;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--buyer-cream-deep);
}

/* Never target every direct <img> in the cover: logo/product layers are images too. */
.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 .nutria-campaign-composition__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Keep the official organization logo obvious, like the validated Phase 1 cards. */
.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 .nutria-campaign-composition__logo {
  position: absolute;
  z-index: 6;
  inset: 1rem auto auto 1rem;
  width: min(22%, 5rem);
  height: auto;
  max-height: 5rem;
  padding: .45rem;
  border: 1px solid rgb(96 56 25 / .12);
  border-radius: .85rem;
  background: rgb(255 255 255 / .96);
  object-fit: contain;
  box-shadow: 0 8px 22px rgb(61 40 23 / .13);
}

/* The product preview remains part of the existing cover composition. */
.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 :is(.nutria-campaign-composition__product, .nutria-campaign-composition__product-stage) {
  border-radius: .85rem;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-status {
  position: absolute;
  z-index: 8;
  inset: 1rem 1rem auto auto;
  width: fit-content;
  margin: 0;
  padding: .42rem .72rem;
  border: 1px solid rgb(140 165 54 / .35);
  border-radius: 999px;
  background: rgb(255 255 255 / .94);
  color: var(--buyer-brown-dark);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.15;
  box-shadow: 0 6px 18px rgb(61 40 23 / .11);
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-status::before {
  display: inline-block;
  width: .55rem;
  height: .55rem;
  margin-inline-end: .38rem;
  border-radius: 50%;
  background: var(--buyer-green);
  content: "";
  vertical-align: .02em;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 .nutria-public-campaign-card__body {
  display: flex;
  gap: .72rem;
  padding: 1.2rem 1.25rem 1.25rem;
  flex-direction: column;
  align-content: stretch;
}

/* Structure name becomes the visual anchor of the campaign. */
.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 .nutria-public-campaign-card__organization {
  order: 0;
  margin: 0;
  color: var(--buyer-green);
  font-family: var(--nutria-font-family-display);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: .96;
  text-transform: none;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 .nutria-public-campaign-card__body > h3 {
  order: 1;
  margin: 0;
  color: var(--buyer-brown-dark);
  font-family: var(--nutria-font-family-sans);
  font-size: clamp(1.5rem, 2.25vw, 2rem);
  font-weight: 850;
  letter-spacing: -.02em;
  line-height: 1.08;
  text-transform: none;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-story {
  order: 2;
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--nutria-color-ink-soft, #5d5045);
  font-size: .98rem;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-meta {
  order: 3;
  display: flex;
  align-items: flex-start;
  gap: .65rem 1rem;
  flex-wrap: wrap;
  padding-block: .7rem .1rem;
  border-block-start: 1px solid rgb(96 56 25 / .12);
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-meta .nutria-public-campaign-card__period {
  margin: 0;
  color: var(--buyer-brown-dark);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.4;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-meta .nutria-public-campaign-card__categories,
.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-meta .nutria-campaign-category-badges {
  display: flex;
  gap: .35rem;
  margin: 0;
  flex-wrap: wrap;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-meta .nutria-campaign-category-badge {
  min-height: 1.7rem;
  padding: .24rem .55rem;
  border-color: rgb(140 165 54 / .28);
  background: rgb(140 165 54 / .12);
  color: var(--buyer-brown-dark);
  font-size: .72rem;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 .nutria-progress-gauge {
  order: 4;
  gap: .48rem;
  margin: .25rem 0 0;
  padding: .95rem 1rem;
  border: 0;
  border-radius: .8rem;
  background: linear-gradient(135deg, rgb(140 165 54 / .10), rgb(242 173 58 / .07));
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 .nutria-progress-gauge__amount {
  color: var(--buyer-green);
  font-family: var(--nutria-font-family-sans);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 850;
  line-height: 1;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 .nutria-progress-gauge__meta,
.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 .nutria-progress-gauge__orders {
  color: var(--buyer-brown-dark);
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 .nutria-progress-gauge__track {
  height: .7rem;
  border: 0;
  background: #e9dfcf;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 .nutria-progress-gauge__track span {
  min-width: .65rem;
  background: linear-gradient(90deg, var(--buyer-green), #b9cf5f);
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 .nutria-progress-gauge__track span::after {
  display: none;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-support {
  order: 5;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: .75rem;
  align-items: center;
  padding: .85rem .95rem;
  border-radius: .8rem;
  background: rgb(140 165 54 / .11);
  color: var(--buyer-brown-dark);
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-support > span {
  color: var(--buyer-green);
  font-size: 2rem;
  line-height: 1;
  text-align: center;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-support p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.4;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-support strong {
  color: var(--buyer-green);
  font-weight: 850;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 .nutria-public-campaign-card__footer {
  order: 6;
  display: flex;
  align-items: flex-start;
  gap: .45rem 1rem;
  margin: 0;
  padding-top: .15rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 .nutria-public-campaign-card__footer p {
  margin: 0;
  color: var(--nutria-color-muted, #76634f);
  font-size: .76rem;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 .nutria-public-campaign-card__footer strong {
  color: var(--buyer-brown-dark);
}

/* Tablet: preserve the existing one-column campaign flow. */
@media (max-width: 64rem) {
  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-campaign-shop-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 {
    position: static;
    width: min(100%, 46rem);
  }
}

/* Mobile: compact enough to expose the first product quickly. */
@media (max-width: 48rem) {
  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 .nutria-public-campaign-card__cover {
    aspect-ratio: 16 / 7;
  }

  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 .nutria-campaign-composition__logo {
    inset: .65rem auto auto .65rem;
    width: min(22%, 3.8rem);
    height: auto;
    max-height: 3.8rem;
    padding: .35rem;
    border-radius: .7rem;
  }

  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-status {
    inset: .65rem .65rem auto auto;
    padding: .34rem .55rem;
    font-size: .68rem;
  }

  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 .nutria-public-campaign-card__body {
    gap: .5rem;
    padding: .85rem;
  }

  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 .nutria-public-campaign-card__organization {
    font-size: clamp(1.7rem, 9vw, 2.2rem);
  }

  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 .nutria-public-campaign-card__body > h3 {
    font-size: 1.25rem;
  }

  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-story {
    font-size: .88rem;
    line-height: 1.38;
    -webkit-line-clamp: 3;
  }

  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-meta {
    gap: .4rem .7rem;
    padding-top: .5rem;
  }

  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-meta .nutria-public-campaign-card__period {
    display: block;
    font-size: .74rem;
  }

  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 .nutria-progress-gauge {
    gap: .35rem;
    padding: .72rem .8rem;
  }

  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-hero-v2 .nutria-progress-gauge__amount {
    font-size: 1.65rem;
  }

  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-support {
    grid-template-columns: 1.8rem minmax(0, 1fr);
    gap: .55rem;
    padding: .7rem .75rem;
  }

  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-support > span {
    font-size: 1.5rem;
  }

  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-campaign-support p {
    font-size: .78rem;
  }
}

/* 0.2.7 — compact product gallery; the existing card becomes the modal. */
.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card:not(.is-gallery-modal-open) {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(96 56 25 / .13);
  border-radius: .9rem;
  background: #fff;
  box-shadow: 0 8px 24px rgb(61 40 23 / .08);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card:not(.is-gallery-modal-open):focus-visible {
  outline: 3px solid rgb(140 165 54 / .42);
  outline-offset: 3px;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card:not(.is-gallery-modal-open) > .nutria-public-card__media {
  overflow: hidden;
  border-radius: .85rem .85rem 0 0;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card:not(.is-gallery-modal-open) > .nutria-public-card__media img,
.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card:not(.is-gallery-modal-open) > .nutria-public-card__media .nutria-public-card__composition,
.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card:not(.is-gallery-modal-open) > .nutria-public-card__media .nutria-public-card__textile-stage {
  transition: transform .28s ease;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card:not(.is-gallery-modal-open) > .nutria-public-card__body {
  display: grid;
  gap: .52rem;
  padding: .7rem;
  background: #fff;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card:not(.is-gallery-modal-open) > .nutria-public-card__body > :not(h2):not(.nutria-public-price-summary):not(.nutria-public-service-fee-note):not(.nutria-public-benefit):not(.nutria-buyer-product-actions) {
  display: none !important;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card:not(.is-gallery-modal-open) > .nutria-public-card__body h2 {
  display: -webkit-box;
  min-height: 2.55em;
  margin: 0;
  overflow: hidden;
  color: var(--buyer-brown-dark);
  font-size: clamp(.78rem, 3.4vw, .95rem);
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card:not(.is-gallery-modal-open) > .nutria-public-card__body h2 + .nutria-public-price-summary {
  margin-top: .18rem;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card:not(.is-gallery-modal-open) .nutria-public-price-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .35rem;
  margin: 0 0 .12rem;
  color: var(--buyer-brown);
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card:not(.is-gallery-modal-open) .nutria-public-price-summary > span {
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card:not(.is-gallery-modal-open) .nutria-public-price-summary .nutria-public-card__price {
  color: var(--buyer-brown-dark);
  font-size: .88rem;
  font-weight: 850;
  white-space: nowrap;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card:not(.is-gallery-modal-open) .nutria-public-benefit.nutria-buyer-benefit-card {
  display: grid !important;
  grid-template-columns: 1.45rem minmax(0, 1fr);
  grid-template-areas: "icon label" "icon amount";
  width: 100% !important;
  gap: 0 .38rem !important;
  margin: .08rem 0 0 !important;
  padding: .42rem .48rem !important;
  border-radius: .62rem !important;
  background: rgb(140 165 54 / .14) !important;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card:not(.is-gallery-modal-open) .nutria-buyer-benefit-icon {
  width: 1.35rem;
  height: 1.35rem;
  font-size: .7rem;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card:not(.is-gallery-modal-open) .nutria-buyer-benefit-label {
  font-size: .56rem;
  line-height: 1.15;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card:not(.is-gallery-modal-open) .nutria-buyer-benefit-amount {
  font-size: 1.02rem;
  line-height: 1.08;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card:not(.is-gallery-modal-open) .nutria-buyer-benefit-note {
  display: none;
}

.nutria-buyer-product-modal-close {
  display: none;
}

.nutria-buyer-product-modal-backdrop {
  position: fixed;
  z-index: 9998;
  inset: 0;
  background: rgb(45 29 18 / .68);
  backdrop-filter: blur(5px);
  animation: nutria-gallery-backdrop-in .18s ease both;
}

.nutria-buyer-product-modal-backdrop[hidden] {
  display: none;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card.is-gallery-modal-open {
  position: fixed !important;
  z-index: 9999;
  inset: clamp(.65rem, 3vw, 2.25rem) !important;
  width: min(72rem, calc(100vw - 1.3rem)) !important;
  height: fit-content;
  max-width: none !important;
  max-height: calc(100vh - clamp(1.3rem, 6vw, 4.5rem));
  margin: auto;
  overflow: auto;
  border: 1px solid rgb(96 56 25 / .14);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 28px 80px rgb(31 20 12 / .32);
  cursor: default;
  overscroll-behavior: contain;
  animation: nutria-gallery-modal-in .22s ease both;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card.is-gallery-modal-open > .nutria-public-card__body > * {
  visibility: visible;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card.is-gallery-modal-open > .nutria-public-card__body {
  padding: clamp(1rem, 2vw, 1.45rem);
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card.is-gallery-modal-open > .nutria-public-card__media {
  align-self: stretch;
  overflow: hidden;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card.is-gallery-modal-open .nutria-buyer-product-modal-close {
  position: sticky;
  z-index: 8;
  top: .7rem;
  right: .7rem;
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: end;
  width: 2.65rem;
  height: 2.65rem;
  margin: .7rem .7rem -3.35rem 0;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(96 56 25 / .14);
  border-radius: 50%;
  background: rgb(255 255 255 / .96);
  color: var(--buyer-brown-dark);
  font-size: 1.65rem;
  line-height: 1;
  box-shadow: 0 6px 18px rgb(61 40 23 / .14);
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card:not(.is-gallery-modal-open):hover {
    border-color: rgb(140 165 54 / .5);
    box-shadow: 0 14px 30px rgb(61 40 23 / .16);
    transform: translateY(-2px) scale(1.025);
  }
}

@media (max-width: 48rem) {
  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card.is-gallery-modal-open {
    inset: .45rem !important;
    width: calc(100vw - .9rem) !important;
    max-height: calc(100vh - .9rem);
    border-radius: .8rem;
  }

  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card.is-gallery-modal-open > .nutria-public-card__media {
    max-height: min(42vh, 24rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nutria-buyer-product-modal-backdrop,
  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes nutria-gallery-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes nutria-gallery-modal-in {
  from { opacity: 0; transform: translateY(.75rem) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.nutria-campaign-page .nutria-campaign-product-intro { font-size: .82rem; margin: .1rem 0; color: #694c36; }
.nutria-campaign-page .nutria-campaign-shop-product-list > .nutria-public-card { cursor: default; }
.nutria-campaign-page .nutria-buyer-product-actions .nutria-campaign-quantity,
.nutria-campaign-page .nutria-buyer-product-actions .nutria-campaign-configured { grid-column: 2; justify-self: end; }
.nutria-campaign-page .nutria-campaign-quantity { display: inline-flex; align-items: center; gap: .75rem; padding: .2rem; border: 1px solid #dce6c3; border-radius: 11px; background: #f4f7e9; color: #4b6420; }
.nutria-campaign-page .nutria-campaign-quantity button { width: 38px; height: 38px; border: 0; border-radius: 8px; background: #8eaa30; color: #fff; font-size: 1.3rem; cursor: pointer; }
.nutria-campaign-page .nutria-campaign-quantity button:disabled { opacity: .5; cursor: default; }
.nutria-campaign-page .nutria-campaign-quantity strong { min-width: 1.25rem; text-align: center; }
.nutria-campaign-page .nutria-campaign-configured { display: grid; gap: .3rem; text-align: center; }
.nutria-campaign-page .nutria-campaign-configured__status { font-size: .82rem; font-weight: 700; color: #779624; }
.nutria-campaign-page .nutria-campaign-cart-feedback { font-size: .78rem; margin: .25rem 0 0; color: #526b25; }
.nutria-campaign-page .nutria-campaign-cart-confirmation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .65rem .7rem;
  align-items: center;
  padding: .85rem;
  border: 1px solid rgb(142 170 48 / .3);
  border-radius: .85rem;
  background: #f7f8eb;
  box-shadow: 0 8px 22px rgb(76 96 29 / .08);
  animation: nutria-cart-confirmation-in .22s ease both;
}
.nutria-campaign-page .nutria-campaign-cart-confirmation__icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  place-items: center;
  background: #8eaa30;
  color: #fff;
  font-size: 1rem;
  font-weight: 850;
}
.nutria-campaign-page .nutria-campaign-cart-confirmation__copy {
  display: grid;
  gap: .12rem;
  min-width: 0;
}
.nutria-campaign-page .nutria-campaign-cart-confirmation__copy strong {
  color: #3f5420;
  font-size: .94rem;
  line-height: 1.2;
}
.nutria-campaign-page .nutria-campaign-cart-confirmation__copy > span {
  color: #695947;
  line-height: 1.35;
}
.nutria-campaign-page .nutria-campaign-cart-confirmation__actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}
.nutria-campaign-page .nutria-campaign-cart-confirmation__actions button {
  min-height: 2.55rem;
  padding: .6rem .75rem;
  border: 1px solid #8eaa30;
  border-radius: .65rem;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}
.nutria-campaign-page .nutria-campaign-cart-confirmation__continue {
  background: #fff;
  color: #526b25;
}
.nutria-campaign-page .nutria-campaign-cart-confirmation__cart {
  background: #8eaa30;
  color: #fff;
}
.nutria-campaign-page .nutria-campaign-cart-confirmation__actions button:hover,
.nutria-campaign-page .nutria-campaign-cart-confirmation__actions button:focus-visible {
  box-shadow: 0 6px 14px rgb(76 96 29 / .16);
  transform: translateY(-1px);
}

@keyframes nutria-cart-confirmation-in {
  from { opacity: 0; transform: translateY(.35rem) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .nutria-campaign-page .nutria-campaign-cart-confirmation { animation: none; }
  .nutria-campaign-page .nutria-campaign-cart-confirmation__actions button { transition: none; }
}

@media (max-width: 48rem) {
  .nutria-campaign-page .nutria-buyer-product-actions .nutria-campaign-quantity,
  .nutria-campaign-page .nutria-buyer-product-actions .nutria-campaign-configured { grid-column: 1; justify-self: stretch; width: 100%; }
  .nutria-campaign-page .nutria-campaign-quantity { justify-content: space-between; box-sizing: border-box; }
}

@media (max-width: 30rem) {
  .nutria-campaign-page .nutria-campaign-cart-confirmation__actions { grid-template-columns: minmax(0, 1fr); }
}

/* Phase 2A corrective: give the existing product card the visual weight seen in the approved mockup.
 * Presentation only: the product renderer, prices, links and business rules remain untouched. */
.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-campaign-shop-products,
.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-campaign-shop-product-list {
  width: 100%;
  min-width: 0;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-campaign-shop-product-list {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: stretch;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-campaign-shop-product-list > .nutria-public-card {
  display: grid !important;
  grid-template-columns: minmax(13rem, 34%) minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 15.5rem !important;
  align-items: stretch !important;
  border-radius: 1rem;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-campaign-shop-product-list > .nutria-public-card .nutria-public-card__media {
  width: 100%;
  min-width: 0;
  min-height: 15.5rem !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  background: #fff;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-campaign-shop-product-list > .nutria-public-card .nutria-buyer-main-product-image {
  width: 100%;
  height: 100%;
  padding: clamp(.8rem, 1.5vw, 1.2rem);
  object-fit: contain;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-campaign-shop-product-list > .nutria-public-card .nutria-public-card__body {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.45rem);
  align-content: center;
}

@media (max-width: 48rem) {
  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-campaign-shop-product-list > .nutria-public-card {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
  }

  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-campaign-shop-product-list > .nutria-public-card .nutria-public-card__media {
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
  }
}



/* 0.2.3 — product-card visual hierarchy correction.
 * Keeps the existing renderer/data, but presents customization and project
 * support with the visual weight approved in the Phase 2 mockup. */
.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-product-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .45rem;
  min-height: 2rem;
  margin: 0 0 .1rem;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-product-badges .nutria-buyer-personalizable {
  position: static !important;
  inset: auto !important;
  display: inline-flex !important;
  align-items: center;
  min-height: 1.8rem;
  margin: 0 !important;
  padding: .34rem .62rem !important;
  border: 1px solid rgb(140 165 54 / .28);
  border-radius: 999px;
  background: rgb(140 165 54 / .15) !important;
  color: #603819 !important;
  font-size: .72rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-personalization-wheel {
  position: relative;
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: conic-gradient(#ef4444 0 14%, #f59e0b 14% 29%, #f4d03f 29% 43%, #8CA536 43% 57%, #38a3db 57% 72%, #635bff 72% 86%, #d946ef 86% 100%);
  box-shadow: 0 2px 8px rgb(96 56 25 / .16);
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-personalization-wheel::after {
  position: absolute;
  inset: auto -.28rem -.22rem auto;
  display: grid;
  width: .9rem;
  height: .9rem;
  place-items: center;
  border: 1px solid rgb(96 56 25 / .12);
  border-radius: 50%;
  background: #fff;
  color: #76634f;
  content: "IA";
  font-size: .42rem;
  font-weight: 800;
  line-height: 1;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-campaign-shop-product-list > .nutria-public-card .nutria-public-card__body {
  gap: .72rem;
  align-content: start !important;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-campaign-shop-product-list > .nutria-public-card .nutria-public-benefit.nutria-buyer-benefit-card {
  display: grid !important;
  grid-template-columns: 2.45rem minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon amount"
    "icon note";
  align-items: center;
  width: min(100%, 24rem) !important;
  gap: .05rem .7rem !important;
  margin: .15rem 0 .1rem !important;
  padding: .78rem .9rem !important;
  border: 0 !important;
  border-radius: .8rem !important;
  background: rgb(140 165 54 / .13) !important;
  color: #603819 !important;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-benefit-icon {
  grid-area: icon;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  background: #8CA536;
  color: #fff;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-benefit-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-benefit-label {
  grid-area: label;
  color: #603819;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-benefit-amount {
  grid-area: amount;
  color: #8CA536;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 900;
  line-height: 1.02;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-benefit-note {
  grid-area: note;
  color: #603819;
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.25;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-product-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 11.5rem;
  min-height: 2.65rem;
  margin-top: .1rem;
  padding: .62rem .9rem !important;
  border: 0 !important;
  border-radius: .7rem !important;
  background: #8CA536 !important;
  color: #fff !important;
  font-weight: 850 !important;
  text-decoration: none !important;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-product-cta::after {
  margin-left: .55rem;
  content: "→";
  font-size: 1rem;
}

@media (max-width: 48rem) {
  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-product-badges {
    justify-content: flex-start;
  }

  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-campaign-shop-product-list > .nutria-public-card .nutria-public-benefit.nutria-buyer-benefit-card,
  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-product-cta {
    width: 100% !important;
  }
}

/* 0.2.4 — consolidate product choice directly on the campaign card. */
.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-personalization-wheel {
  display: none !important;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-personalization-wheel-img {
  display: block;
  width: 2.05rem;
  height: 2.05rem;
  flex: 0 0 2.05rem;
  padding: 0 !important;
  border: 0;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 2px 8px rgb(96 56 25 / .12);
}

/* The same official wheel used to be rendered inside the media area.
 * It is now represented once, beside the Personnalisable badge. */
.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-campaign-shop-product-list .nutria-public-card__media img[src*="roue-chromatique.png"] {
  display: none !important;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-original-product-trigger {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 13rem);
  align-items: end;
  gap: .8rem 1rem;
  width: 100%;
  margin-top: .15rem;
  padding-top: .8rem;
  border-top: 1px solid rgb(96 56 25 / .12);
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-price-details {
  min-width: 0;
  margin: 0;
  color: #603819;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-price-details > summary {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.6rem;
  padding: .25rem 0;
  color: #603819;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 850;
  list-style: none;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-price-details > summary::-webkit-details-marker {
  display: none;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-price-details__arrow {
  display: inline-grid;
  width: 1.4rem;
  height: 1.4rem;
  place-items: center;
  color: #603819;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-price-details[open] .nutria-buyer-price-details__arrow {
  transform: rotate(180deg);
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-price-details__content {
  display: grid;
  gap: .38rem;
  padding: .45rem 0 .15rem;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-price-details__content p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .8rem;
  margin: 0;
  color: #76634f;
  font-size: .76rem;
  line-height: 1.35;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-price-details__content strong {
  color: #603819;
  font-size: .76rem;
  text-align: right;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-product-actions .nutria-buyer-product-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100% !important;
  min-width: 0;
  min-height: 3rem;
  margin: 0;
  padding: .72rem 1rem !important;
  border: 0 !important;
  border-radius: .85rem !important;
  background: linear-gradient(180deg, #9db634 0%, #8CA536 100%) !important;
  color: #fff !important;
  cursor: pointer;
  font: inherit;
  font-weight: 900 !important;
  line-height: 1.1;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgb(108 132 30 / .16);
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-product-actions .nutria-buyer-product-cta::after {
  content: none !important;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-product-actions .nutria-buyer-product-cta:hover,
.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-product-actions .nutria-buyer-product-cta:focus-visible {
  background: linear-gradient(180deg, #a8bf3e 0%, #92ab31 100%) !important;
}

/* During the direct-routing bridge the legacy dialog may be opened for a few
 * milliseconds only so Nutria's existing chooser can execute. Never expose it
 * to the buyer. If the bridge cannot resolve, the class is removed and legacy
 * behaviour becomes available again as a safe fallback. */
html.nutria-buyer-direct-routing dialog[open],
html.nutria-buyer-direct-routing [role="dialog"][aria-modal="true"] {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 48rem) {
  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-product-actions {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-price-details__content p {
    grid-template-columns: minmax(0, 1fr);
    gap: .08rem;
  }

  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-price-details__content strong {
    text-align: left;
  }
}

/* Compact-gallery cascade lock: these rules intentionally follow the legacy
 * full-card presentation so the resting/hover states stay compact. */
.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-campaign-shop-product-list > .nutria-buyer-gallery-card:not(.is-gallery-modal-open) > .nutria-public-card__body {
  padding: .7rem !important;
  gap: .42rem !important;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-campaign-shop-product-list > .nutria-buyer-gallery-card:not(.is-gallery-modal-open) .nutria-public-price-summary .nutria-public-card__price {
  font-size: .88rem !important;
  line-height: 1.2 !important;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-campaign-shop-product-list > .nutria-buyer-gallery-card:not(.is-gallery-modal-open) .nutria-public-benefit.nutria-buyer-benefit-card {
  grid-template-columns: 1.35rem minmax(0, 1fr) !important;
  grid-template-areas: "icon label" "icon amount" !important;
  width: 100% !important;
  gap: 0 .35rem !important;
  margin: 0 !important;
  padding: .35rem .42rem !important;
  border-radius: .58rem !important;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-campaign-shop-product-list > .nutria-buyer-gallery-card:not(.is-gallery-modal-open) .nutria-buyer-benefit-icon {
  width: 1.25rem !important;
  height: 1.25rem !important;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-campaign-shop-product-list > .nutria-buyer-gallery-card:not(.is-gallery-modal-open) .nutria-buyer-benefit-label {
  font-size: .52rem !important;
  line-height: 1.1 !important;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-campaign-shop-product-list > .nutria-buyer-gallery-card:not(.is-gallery-modal-open) .nutria-buyer-benefit-amount {
  font-size: 1rem !important;
  line-height: 1 !important;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-campaign-shop-product-list > .nutria-buyer-gallery-card:not(.is-gallery-modal-open) .nutria-buyer-benefit-note {
  display: none !important;
}

/* Compact purchase row: reuse the existing quote/cart controls while keeping
 * the detailed purchase block available inside the product modal. */
.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card:not(.is-gallery-modal-open) > .nutria-public-card__body > .nutria-buyer-product-actions {
  display: grid !important;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-self: stretch;
  margin-top: .1rem;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card:not([data-campaign-personalizable="1"]):not([data-campaign-composable="1"]):not(.is-gallery-modal-open) .nutria-campaign-card-controls--simple {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  grid-column: 1 / -1;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card:not(.is-gallery-modal-open) .nutria-buyer-product-actions > :not(.nutria-campaign-card-controls):not(.nutria-buyer-price-details) {
  display: none !important;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card:not(.is-gallery-modal-open) .nutria-buyer-price-details > summary {
  display: flex;
  width: 100%;
  min-height: 2.5rem;
  gap: .35rem;
  padding: .3rem 0;
  color: #76634f;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-gallery-card:not(.is-gallery-modal-open) .nutria-buyer-price-details > summary > span[aria-hidden="true"] {
  flex: 0 0 auto;
  margin-left: auto;
  color: #8a715b;
  font-size: 10px;
}

.nutria-campaign-page .nutria-campaign-card-controls {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  min-width: 0;
}

.nutria-campaign-page .nutria-buyer-gallery-card[data-campaign-personalizable="1"]:not(.is-gallery-modal-open) .nutria-campaign-card-controls,
.nutria-campaign-page .nutria-buyer-gallery-card[data-campaign-composable="1"]:not(.is-gallery-modal-open) .nutria-campaign-card-controls {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  gap: .45rem;
}

.nutria-campaign-page .nutria-buyer-gallery-card[data-campaign-personalizable="1"]:not(.is-gallery-modal-open) .nutria-campaign-card-info,
.nutria-campaign-page .nutria-buyer-gallery-card[data-campaign-composable="1"]:not(.is-gallery-modal-open) .nutria-campaign-card-info {
  align-self: flex-start;
}

.nutria-campaign-page .nutria-buyer-gallery-card[data-campaign-personalizable="1"]:not(.is-gallery-modal-open) .nutria-campaign-card-configure,
.nutria-campaign-page .nutria-buyer-gallery-card[data-campaign-composable="1"]:not(.is-gallery-modal-open) .nutria-campaign-card-configure {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 100%;
  padding-inline: .45rem;
  white-space: nowrap;
  overflow-wrap: normal;
}

.nutria-campaign-page .nutria-campaign-card-controls--simple {
  justify-content: flex-end;
}

.nutria-campaign-page .nutria-campaign-card-add-label {
  margin-right: auto;
  color: #81766f;
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .035em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nutria-campaign-page .nutria-campaign-card-info,
.nutria-campaign-page .nutria-campaign-card-configure {
  min-height: 2.5rem;
  border: 0;
  background: transparent;
  color: var(--buyer-brown, #4f2d12);
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}

.nutria-campaign-page .nutria-campaign-card-configure {
  display: inline-flex;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: .55rem .7rem;
  border: 1px solid #8eaa30;
  border-radius: .7rem;
  background: #8eaa30;
  color: #fff;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.nutria-campaign-page .nutria-campaign-card-add {
  display: grid;
  position: relative;
  box-sizing: border-box;
  flex: 0 0 3rem;
  width: 3rem;
  min-width: 3rem;
  max-width: 3rem;
  height: 3rem;
  min-height: 3rem;
  max-height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  place-items: center;
  background: #8eaa30;
  box-shadow: 0 5px 12px rgb(76 96 29 / .18);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.nutria-campaign-page .nutria-campaign-card-add__icon {
  width: 1.35rem;
  height: auto;
  filter: brightness(0) invert(1);
}

.nutria-campaign-page .nutria-campaign-card-add__plus {
  position: absolute;
  top: .2rem;
  right: .34rem;
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
  line-height: 1;
}

.nutria-campaign-page .nutria-campaign-card-quantity {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding: .15rem;
  border: 1px solid #dce6c3;
  border-radius: .72rem;
  background: #f4f7e9;
  color: #4b6420;
}

.nutria-campaign-page .nutria-campaign-card-quantity button {
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: 0;
  border-radius: .58rem;
  background: #8eaa30;
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 850;
  cursor: pointer;
}

.nutria-campaign-page .nutria-campaign-card-quantity button:disabled {
  opacity: .5;
  cursor: default;
}

.nutria-campaign-page .nutria-campaign-card-quantity strong {
  min-width: 1.15rem;
  text-align: center;
}

.nutria-campaign-page .nutria-buyer-gallery-card.is-gallery-modal-open .nutria-campaign-card-controls {
  display: none !important;
}

.nutria-campaign-page .nutria-campaign-card-info:focus-visible,
.nutria-campaign-page .nutria-campaign-card-configure:focus-visible,
.nutria-campaign-page .nutria-campaign-card-add:focus-visible,
.nutria-campaign-page .nutria-campaign-card-quantity button:focus-visible {
  outline: 3px solid rgb(140 165 54 / .35);
  outline-offset: 2px;
}

@media (max-width: 30rem) {
  .nutria-campaign-page .nutria-campaign-card-controls {
    gap: .35rem;
  }

  .nutria-campaign-page .nutria-campaign-card-info,
  .nutria-campaign-page .nutria-campaign-card-configure {
    font-size: .72rem;
  }
}

/* 0.2.5 — direct campaign-card choice must never expose the legacy product modal. */
html.nutria-buyer-direct-routing .nutria-dialog,
html.nutria-buyer-direct-routing .nutria-product-sheet-dialog,
html.nutria-buyer-direct-routing [class*="dialog"][aria-hidden="false"],
html.nutria-buyer-direct-routing [class*="modal"][aria-hidden="false"] {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* 0.2.6 — card is the only product-entry surface; legacy modal entry is hidden. */
.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-direct-card {
  cursor: pointer;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-original-product-trigger {
  display: none !important;
}

/* Keep the CTA on the first row while the details are closed. When opened,
 * details consume a full row and the CTA moves underneath, eliminating any
 * text/button collision at intermediate desktop widths. */
.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-product-actions {
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 13rem);
  align-items: start;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-price-details {
  grid-column: 1;
  min-width: 0;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-price-details + .nutria-buyer-product-cta {
  grid-column: 2;
  justify-self: end;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-price-details[open] {
  grid-column: 1 / -1;
  width: 100%;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-price-details[open] + .nutria-buyer-product-cta {
  grid-column: 2;
  justify-self: end;
  width: min(100%, 13rem) !important;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-price-details__content {
  gap: .5rem;
  margin-top: .15rem;
  padding: .7rem .8rem;
  border: 1px solid rgb(96 56 25 / .10);
  border-radius: .7rem;
  background: #fcfaf3;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-price-details__content p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .55rem 1rem;
  flex-wrap: wrap;
  min-width: 0;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-price-details__content p > span {
  flex: 0 1 10rem;
  min-width: 0;
}

.nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-price-details__content p > strong {
  flex: 1 1 13rem;
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

@media (max-width: 48rem) {
  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-product-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-price-details,
  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-price-details + .nutria-buyer-product-cta,
  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-price-details[open],
  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-price-details[open] + .nutria-buyer-product-cta {
    grid-column: 1;
    width: 100% !important;
    justify-self: stretch;
  }

  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-price-details__content p > strong {
    text-align: left;
  }

  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-product-actions .nutria-buyer-product-cta {
    gap: .45rem;
    min-height: 44px;
    padding-inline: .75rem !important;
    font-size: clamp(.88rem, 3.6vw, 1rem);
    white-space: nowrap;
  }

  .nutria-campaign-page.nutria-buyer-ux-v2-phase2a .nutria-buyer-product-actions .nutria-buyer-product-cta span:first-child {
    white-space: nowrap;
  }
}
