/* ==========================================================================
   Produits numériques (SPEC.md §22) — catalogue, page d'un produit, barre
   d'achat mobile, « Mes achats ». Les couleurs viennent de variables.css ;
   la couleur du bouton d'achat, choisie dans l'administration, arrive par la
   propriété --buy-color posée sur le bouton.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Catalogue : en-tête, carte (<x-card.product>)
   -------------------------------------------------------------------------- */
.products-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.products-head__title { margin: 0 0 var(--space-1); font-size: var(--text-2xl); }
.products-head__lead { margin: 0; max-width: 60ch; color: var(--text-secondary); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-4);
}

@media (max-width: 575.98px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: box-shadow var(--transition), transform var(--transition);
}

.product-card.is-hoverable:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* Miniature carrée, bord à bord ; à défaut de carrée, l'horizontale garde son format */
.product-card__media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: var(--text-2xl);
}

.product-card__media--wide { aspect-ratio: 16 / 9; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card.is-hoverable:hover .product-card__media img { transform: scale(1.04); }

/* Pastille de remise : sombre, en haut à droite */
.product-card__badge {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius);
    background: var(--text);
    color: var(--on-primary);
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.5;
}

.product-card__badge--muted { background: var(--text-secondary); }

.product-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4);
}

.product-card__title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.product-card__title a { color: var(--text); text-decoration: none; }

.product-card__excerpt {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.product-card__meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); color: var(--text-muted); }
.product-card__meta i { margin-right: var(--space-1); }

/* Prix sous un filet, en pied de carte : prix normal barré, puis prix à payer */
.product-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-1) var(--space-2);
    margin: auto 0 0;
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
}

.product-card__price strong { font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 600; color: var(--text); }
.product-card__price s { font-size: var(--text-sm); color: var(--text-muted); }
.product-card__price s + strong { color: var(--danger); }

/* Sur mobile, deux cartes par rangée : texte resserré, sans extrait */
@media (max-width: 575.98px) {
    .product-card__body { gap: var(--space-1); padding: var(--space-3); }
    .product-card__title { font-size: var(--text-sm); line-height: 1.35; }
    .product-card__excerpt { display: none; }
    .product-card__meta { font-size: var(--text-xs); }
    .product-card__price { padding-top: var(--space-2); }
    .product-card__price strong { font-size: var(--text-base); }
    .product-card__price s { font-size: var(--text-xs); }
    .product-card__badge { top: var(--space-2); right: var(--space-2); padding: 2px var(--space-2); font-size: var(--text-xs); }
}

@media (prefers-reduced-motion: reduce) {
    .product-card, .product-card__media img { transition: none; }
    .product-card.is-hoverable:hover, .product-card.is-hoverable:hover .product-card__media img { transform: none; }
}

/* --------------------------------------------------------------------------
   Page d'un produit : colonne de lecture
   -------------------------------------------------------------------------- */
.product-detail {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.product-detail__head { padding: var(--space-4) var(--space-4) var(--space-3); }
.product-detail__title { margin: 0 0 var(--space-2); font-size: var(--text-2xl); line-height: 1.2; overflow-wrap: anywhere; }

.product-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.product-detail__meta i { margin-right: var(--space-1); color: var(--primary); }
.product-detail__meta a { color: inherit; text-decoration: none; }
.product-detail__meta a:hover { color: var(--primary-dark); text-decoration: underline; }
.product-detail__excerpt { margin: 0 0 var(--space-3); max-width: 70ch; font-size: var(--text-lg); line-height: 1.5; color: var(--text-secondary); overflow-wrap: anywhere; }

.product-detail__media { position: relative; background: var(--neutral-soft); }
.product-detail__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.product-detail__media .product-card__badge { font-size: var(--text-base); }

.product-detail__section { padding: var(--space-4); border-top: 1px solid var(--border); }
.product-detail__media + .product-detail__section { border-top: 0; }
.product-detail__section > h2 { margin: 0 0 var(--space-3); font-size: var(--text-lg); }

@media (min-width: 992px) {
    .product-detail__head { padding: var(--space-5) var(--space-5) var(--space-4); }
    .product-detail__section { padding: var(--space-5); }
}

.product-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--primary-deep); }
.product-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Texte enrichi saisi dans l'éditeur : description, réponses de la FAQ */
.rich-text { line-height: 1.7; overflow-wrap: anywhere; }
.rich-text > :last-child { margin-bottom: 0; }
.rich-text h2, .rich-text h3, .rich-text h4 { margin: var(--space-4) 0 var(--space-2); color: var(--primary-deep); }
.rich-text h2 { font-size: var(--text-lg); }
.rich-text h3, .rich-text h4 { font-size: var(--text-base); }
.rich-text > :first-child { margin-top: 0; }
.rich-text img { max-width: 100%; height: auto; border-radius: var(--radius); }
.rich-text a { color: var(--primary); text-decoration: underline; }
.rich-text ul, .rich-text ol { padding-left: var(--space-5); }
.rich-text blockquote { margin: var(--space-3) 0; padding: var(--space-2) var(--space-4); border-left: 3px solid var(--primary); background: var(--primary-softer); color: var(--text-secondary); }

.product-contents { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }

.product-contents li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.product-contents__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 44px;
    height: 44px;
    font-size: var(--text-lg);
    border-radius: var(--radius);
    background: var(--primary-soft);
    color: var(--primary);
}

/* Couleur selon le format : PDF en rouge doux, audio en jaune, vidéo en orange */
.product-contents__icon--pdf { background: var(--danger-soft); color: var(--danger); }
.product-contents__icon--audio { background: var(--accent-light); color: var(--file-audio); }
.product-contents__icon--video { background: var(--file-video-soft); color: var(--file-video); }
.product-contents__icon--doc { background: var(--file-doc-soft); color: var(--file-doc); }
.product-contents__icon--sheet { background: var(--success-soft); color: var(--success); }
.product-contents__icon--slides { background: var(--file-slides-soft); color: var(--file-slides); }
.product-contents__icon--image { background: var(--file-image-soft); color: var(--file-image); }
.product-contents__icon--archive { background: var(--neutral-soft); color: var(--text-secondary); }

.product-contents__title { flex: 1 1 auto; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.product-contents__meta { flex: 0 0 auto; font-size: var(--text-xs); color: var(--text-muted); white-space: nowrap; }

/* FAQ : une question par bloc, sur fond doux, numérotée */
.product-faq { --bs-accordion-bg: transparent; --bs-accordion-border-width: 0; display: grid; gap: var(--space-3); counter-reset: faq; }
.product-faq .accordion-item { overflow: hidden; border: 0; border-radius: var(--radius-lg); background: var(--neutral-soft); counter-increment: faq; }
.product-faq .accordion-button { padding: var(--space-4) var(--space-5); background: transparent; box-shadow: none; font-weight: 700; color: var(--text); }
.product-faq .accordion-button::before { content: counter(faq) ". "; flex: 0 0 auto; margin-right: var(--space-1); }
.product-faq .accordion-button:not(.collapsed) { background: transparent; color: var(--text); }
.product-faq .accordion-button:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.product-faq .accordion-body { padding: 0 var(--space-5) var(--space-4); }

@media (max-width: 575.98px) {
    .product-faq .accordion-button { padding: var(--space-3) var(--space-4); }
    .product-faq .accordion-body { padding: 0 var(--space-4) var(--space-3); }
}

.product-reviews__summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); }
.product-reviews__summary strong { font-family: var(--font-heading); font-size: var(--text-lg); color: var(--primary-dark); }
.product-reviews__summary span { color: var(--text-secondary); font-size: var(--text-sm); }

.product-reviews { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) {
    .product-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Avis encadré : défilement sous la miniature, liste du bas de page */
.review-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); }
.review-card__head { display: flex; align-items: center; gap: var(--space-3); }
.review-card__who { flex: 1 1 auto; min-width: 0; }
.review-card__author { display: flex; align-items: center; gap: var(--space-2); margin: 0; font-weight: 500; color: var(--text-secondary); }
.review-card__author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-card__author i { flex: 0 0 auto; color: var(--text); }
.review-card__date { margin: 0; font-size: var(--text-xs); color: var(--text-muted); }
.review-card__opinion { flex: 0 0 auto; font-size: var(--text-xl); color: var(--success); }
.review-card__opinion.is-negative { color: var(--danger); }
.review-card__comment { margin: 0; font-size: var(--text-base); line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }

/* Défilement des avis : la bande glisse d'elle-même (products.js) et se fait aussi défiler au doigt ; les bords s'estompent */
.review-slider {
    padding: var(--space-4) 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.review-slider::-webkit-scrollbar { display: none; }
.review-slider:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.review-slider__track { display: flex; gap: var(--space-4); width: max-content; margin: 0; padding: 0 var(--space-4); list-style: none; }
.review-slider .review-card { flex: 0 0 auto; width: min(78vw, 400px); }
.review-slider .review-card__comment { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; }

/* --------------------------------------------------------------------------
   Bloc d'achat : prix, décompte, bouton
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
    .product-aside { position: sticky; top: calc(var(--header-height) + var(--space-4)); }
}

.product-buy { box-shadow: var(--shadow); }

.product-buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); margin-bottom: var(--space-3); }
.product-buy__price strong { font-family: var(--font-heading); font-size: var(--text-2xl); line-height: 1.1; color: var(--primary-deep); }
.product-buy__price s { font-size: var(--text-lg); color: var(--text-muted); }

.product-buy__discount {
    padding: 2px var(--space-2);
    border-radius: var(--radius-pill);
    background: var(--danger);
    color: var(--on-primary);
    font-size: var(--text-sm);
    font-weight: 700;
}

.product-countdown { margin-bottom: var(--space-3); padding: var(--space-3); border-radius: var(--radius); background: var(--accent-light); }
.product-countdown__label { margin: 0 0 var(--space-2); font-size: var(--text-sm); font-weight: 600; color: var(--accent-text); }
.product-countdown__date { margin: 0; font-weight: 700; color: var(--primary-deep); }
.product-countdown__units { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); margin: 0; padding: 0; list-style: none; text-align: center; }
.product-countdown__units li { padding: var(--space-2) 0; border-radius: var(--radius-sm); background: var(--surface); }
.product-countdown__units strong { display: block; font-family: var(--font-heading); font-size: var(--text-xl); line-height: 1.1; color: var(--primary-deep); font-variant-numeric: tabular-nums; }
.product-countdown__units span { font-size: var(--text-xs); color: var(--text-secondary); }
/* Unité à « 00 » : case grisée. Battement à chaque changement de valeur (products.js). */
.product-countdown__units li { transition: background-color .2s ease; }
.product-countdown__units li.is-zero { background: var(--neutral-soft); }
.product-countdown__units li.is-zero strong { color: var(--text-muted); }
.product-countdown__units li.is-beating { animation: product-countdown-beat .45s ease-out; }
@keyframes product-countdown-beat {
    0% { transform: scale(1); }
    30% { transform: scale(1.12); }
    60% { transform: scale(.97); }
    100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .product-countdown__units li { transition: none; }
    .product-countdown__units li.is-beating { animation: none; }
}

.product-buy__stock, .product-buy__soldout, .product-buy__owned { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3); font-weight: 600; }
.product-buy__stock { color: var(--danger); font-size: 15px}

/* Jauge d'une offre limitée : part du stock encore disponible. Jaune ; rouge quand il reste peu d'exemplaires. */
.product-stock { margin: 0 0 var(--space-3); }
.product-stock__figures { display: flex; justify-content: space-between; gap: var(--space-3); margin: 0 0 var(--space-1); font-size: var(--text-sm); color: var(--text-secondary); }
.product-stock__figures strong { color: var(--text); font-variant-numeric: tabular-nums; }
.product-stock__track { height: 12px; overflow: hidden; border-radius: 999px; background: var(--border); }
.product-stock__bar {
    display: block; height: 100%; min-width: 6px; border-radius: inherit; background-color: var(--accent);
    background-image: linear-gradient(45deg, var(--stripe-light) 25%, transparent 25%, transparent 50%, var(--stripe-light) 50%, var(--stripe-light) 75%, transparent 75%, transparent);
    background-size: 24px 24px; transition: width 1.6s cubic-bezier(.22, .61, .36, 1); animation: product-stock-stripes 1s linear infinite;
}
.product-stock.is-low .product-stock__bar { background-color: var(--danger); }
.product-stock.is-low .product-stock__figures span:last-child strong { color: var(--danger); }
@keyframes product-stock-stripes { from { background-position: 24px 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
    .product-stock__bar { transition: none; animation: none; }
}
.product-buy__soldout { color: var(--text-secondary); }
.product-buy__owned { color: var(--success); }
.product-buy__hint { color: var(--text-secondary); }

.product-buy__assurances { display: grid; gap: var(--space-2); margin: var(--space-3) 0 0; padding: 0; list-style: none; font-size: var(--text-sm); color: var(--text-secondary); }
.product-buy__assurances i { width: 1.25em; margin-right: var(--space-2); color: var(--primary); text-align: center; }

/* Bouton d'achat : couleur de l'administration quand elle est donnée */
.buy-button { font-weight: 700; transform-origin: center; }
.buy-button i { margin-right: var(--space-2); }

.buy-button[style*="--buy-color"] { border-color: var(--buy-color); background: var(--buy-color); color: var(--text); }
.buy-button[style*="--buy-color"].buy-button--on-dark { color: var(--on-primary); }
.buy-button[style*="--buy-color"]:hover,
.buy-button[style*="--buy-color"]:focus-visible { filter: brightness(.93); }

/* Animations du bouton d'achat (App\Enums\BuyButtonAnimation) */
.buy-button--shake { animation: buy-shake 2s ease-in-out infinite; }
.buy-button--wiggle { animation: buy-wiggle 2.4s ease-in-out infinite; }
.buy-button--bounce { animation: buy-bounce 1.8s ease-in-out infinite; }
.buy-button--breathe { animation: buy-breathe 2.2s ease-in-out infinite; }

/* Secouer : une secousse brève toutes les deux secondes */
@keyframes buy-shake {
    0%, 70%, 100% { transform: translateX(0); }
    74%, 82%, 90% { transform: translateX(-5px); }
    78%, 86%, 94% { transform: translateX(5px); }
}

@keyframes buy-wiggle {
    0%, 60%, 100% { transform: rotate(0); }
    68% { transform: rotate(-3deg); }
    76% { transform: rotate(3deg); }
    84% { transform: rotate(-2deg); }
    92% { transform: rotate(2deg); }
}

@keyframes buy-bounce {
    0%, 55%, 100% { transform: translateY(0); }
    65% { transform: translateY(-8px); }
    75% { transform: translateY(0); }
    85% { transform: translateY(-4px); }
}

@keyframes buy-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.045); }
}

@media (prefers-reduced-motion: reduce) {
    .buy-button { animation: none; }
}

/* --------------------------------------------------------------------------
   Barre d'achat mobile : zone blanche fixée en bas de l'écran. Elle prend la
   place du menu bas d'écran sur la page d'un produit en vente.
   -------------------------------------------------------------------------- */
.buy-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1035;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.buy-bar__price { display: flex; flex: 0 1 auto; flex-direction: column; min-width: 0; line-height: 1.15; }
.buy-bar__price strong { font-family: var(--font-heading); font-size: var(--text-lg); color: var(--primary-deep); white-space: nowrap; }
.buy-bar__price s { font-size: var(--text-xs); color: var(--text-muted); white-space: nowrap; }
.buy-bar .buy-button { flex: 1 1 auto; min-height: 48px; }

@media (max-width: 991.98px) {
    body:has(.buy-bar) .bottom-nav { display: none; }
    body:has(.buy-bar) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    /* La bannière d'installation ne recouvre pas la barre d'achat */
    body:has(.buy-bar) .install-banner { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* --------------------------------------------------------------------------
   « Mes achats » : liste, fiche d'un achat, avis
   -------------------------------------------------------------------------- */
.purchases { display: grid; gap: var(--space-4); width: 100%; max-width: 760px; margin-inline: auto; }

.purchases__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3); }
.purchases__title { margin: 0 0 var(--space-1); font-size: var(--text-xl); overflow-wrap: anywhere; }
.purchases__lead { margin: 0; color: var(--text-secondary); font-size: var(--text-sm); overflow-wrap: anywhere; }
.purchases__back { color: var(--text-secondary); text-decoration: none; }
.purchases__back i { margin-right: var(--space-2); }

.purchases__access-title { margin: 0 0 var(--space-2); font-size: var(--text-lg); }
.purchases__access-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); }
.purchases__access-form .field { margin-bottom: 0; }
.purchases__access-form .btn { margin-bottom: 0; }
.purchases__access .form-text { margin-top: var(--space-3); }

.purchase-list { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }

.purchase-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.purchase-item__thumb {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--primary-soft);
    color: var(--primary);
    font-size: var(--text-xl);
}

.purchase-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.purchase-item__body { flex: 1 1 auto; min-width: 0; }
.purchase-item__title { margin: 0 0 var(--space-1); font-size: var(--text-base); overflow-wrap: anywhere; }
.purchase-item__title a { color: var(--primary-deep); text-decoration: none; }
.purchase-item__meta { margin: 0; font-size: var(--text-sm); color: var(--text-secondary); }
.purchase-item__hint { margin: var(--space-1) 0 0; font-size: var(--text-xs); color: var(--primary); }
.purchase-item__hint i { margin-right: var(--space-1); }
.purchase-item__arrow { flex: 0 0 auto; color: var(--text-muted); }

.purchase-hero { overflow: hidden; }
.purchase-hero__image { display: block; width: 100%; height: auto; max-height: 260px; object-fit: cover; }

.purchase-files { margin: 0; padding: 0; list-style: none; }
.purchase-files__item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); }
.purchase-files__item:last-child { border-bottom: 0; }
.purchase-files__main { flex: 1 1 auto; min-width: 0; }
.purchase-files__title { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.purchase-files__meta { margin: 0; font-size: var(--text-xs); color: var(--text-muted); }
.purchase-files__done { color: var(--success); font-weight: 600; }
.purchase-files__done i { margin-right: var(--space-1); }
.purchase-files__item .btn { flex: 0 0 auto; }

@media (max-width: 575.98px) {
    .purchase-files__item { padding-inline: var(--space-3); }
    .purchase-files__item .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .purchase-files__item .btn i { margin-right: 0; }
}

.purchase-mail { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); }

.review-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.review-choice__option { position: relative; margin: 0; cursor: pointer; }
.review-choice__option input { position: absolute; opacity: 0; }

.review-choice__option span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 52px;
    border: 2px solid var(--border-strong);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--text-secondary);
    transition: border-color var(--transition), background-color var(--transition), color var(--transition);
}

.review-choice__option input:checked + span { border-color: var(--success); background: var(--success-soft); color: var(--success); }
.review-choice__option.is-negative input:checked + span { border-color: var(--danger); background: var(--danger-soft); color: var(--danger-dark); }
.review-choice__option input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
