/* ======================================================================
   Promotions on the cards and « Partager » (inc/ux-zzz-partage-promo.php, assets/js/ux-partage.js).
   Charte: Jost, terracotta #BD4C29 for actions, line icon, 44 px touch targets.
   ====================================================================== */

/* ---------- Promotion: struck regular price, then the current price ---------- */
.ab-promo { display: inline; font: inherit; color: inherit; }
.ab-promo del { margin-right: .15em; font-size: .86em; font-weight: 400; color: var(--gris, #7A7167); text-decoration-thickness: 1px; }
.ab-promo ins { text-decoration: none; background: none; color: inherit; font-weight: inherit; }
/* Chosen pill (dark or terracotta background): the struck price stays readable. */
.soin-choix input:checked + span .ab-promo del,
.ms-unique .ab-promo del,
.v3-chips a.on .ab-promo del,
.tr-dur button.on .ab-promo del,
.ab-fiche-formules .btn .ab-promo del { color: rgba(255, 255, 255, .78); }

/* « Promo » label. */
.ab-promo-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #BD4C29; color: #fff; font: 500 12.5px/1.2 var(--police-texte, Jost, sans-serif); letter-spacing: .02em; white-space: nowrap; }
.ab-promo-photo { position: absolute; z-index: 2; pointer-events: none; }
.soin-visuel .ab-promo-photo { top: 12px; left: 12px; }
.ac-pop-photo { position: relative; }
.ac-pop-photo .ab-promo-photo, .of-photo-boite .ab-promo-photo { bottom: 12px; left: 50%; transform: translateX(-50%); }
.soin-tete-sans-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.soin-tete-sans-photo .ab-promo-photo { position: static; }
.ab-promo-ligne { margin-top: 4px; padding: 2px 8px; font-size: 11.5px; }
.in-pr { display: flex; flex-direction: column; align-items: flex-end; }

/* ---------- Partager ---------- */
.ab-partage { position: relative; display: inline-flex; flex: 0 0 auto; padding: 0 !important; vertical-align: middle; }
.ab-partage-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: transparent; color: #BD4C29; font: 500 15px/1 var(--police-texte, Jost, sans-serif); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .2s ease; }
.ab-partage-btn:hover { background: rgba(189, 76, 41, .08); }
.ab-partage-btn:focus-visible { outline: 2px solid #BD4C29; outline-offset: 2px; }
.ab-partage-ico { display: block; flex: 0 0 auto; }
.ab-partage-texte .ab-partage-btn { padding: 0 14px 0 10px; }
.ab-partage-mot { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Over a photo: a white disc. */
.ab-partage-photo { position: absolute; top: 10px; right: 10px; z-index: 3; }
.ab-partage-photo .ab-partage-btn, .ab-partage-carte .ab-partage-btn { background: rgba(255, 255, 255, .94); box-shadow: 0 6px 18px -8px rgba(46, 42, 37, .45); }
.ab-partage-photo .ab-partage-btn:hover, .ab-partage-carte .ab-partage-btn:hover { background: #fff; }
.soin-tete-sans-photo .ab-partage-photo { position: static; margin-left: auto; }

/* Category cards: the whole card is a link, the button sits beside it in the corner. */
.pr-carte-li { position: relative; }
.ab-partage-carte { position: absolute; top: 4px; right: 4px; z-index: 3; }

/* Offer cards (Escales, Romantica): the photo box keeps the arch of the photo. */
.of-photo-boite { position: relative; }

/* Product page: one button per formula, at the end of its line. */
.ab-fiche-formules li:has(> .ab-partage) { grid-template-columns: 1fr auto 44px auto; }
.ab-fiche-formules li.ab-formule-choisie { margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 10px; background: rgba(189, 76, 41, .07); box-shadow: inset 3px 0 0 #BD4C29; }
.ab-fiche-partage { margin: 10px 0 0; }
.ab-fiche-partage .ab-partage-fiche { margin-left: -10px; }

/* Institut: the line is a link; the button sits at its right end. */
.in-soin { position: relative; }
.in-soin:has(> .ab-partage) a { padding-right: 56px; }
.ab-partage-ligne { position: absolute; top: calc(50% - 6px); right: 6px; transform: translateY(-50%); }

/* Tarifs: under the two buttons. */
.tr-partage { margin: 8px 0 0; }
.tr-partage .ab-partage-tarif { margin-left: -10px; }

/* Menu (copy, WhatsApp, e-mail) when the phone share sheet is not available. */
.ab-partage-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; display: flex; flex-direction: column; min-width: 200px; padding: 6px; border: 1px solid var(--filet, #E6DED3); border-radius: 12px; background: #fff; box-shadow: 0 18px 40px -18px rgba(46, 42, 37, .45); text-align: left; }
.ab-partage-menu[hidden] { display: none; }
.ab-partage-texte .ab-partage-menu, .ab-partage-fiche .ab-partage-menu, .ab-partage-tarif .ab-partage-menu { right: auto; left: 0; }
.ab-partage-menu > * { display: flex; align-items: center; min-height: 44px; margin: 0; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: var(--encre, #2E2A25); font: 400 15.5px/1.2 var(--police-texte, Jost, sans-serif); text-align: left; text-decoration: none; cursor: pointer; }
.ab-partage-menu > *:hover, .ab-partage-menu > *:focus-visible { background: var(--creme, #FBF8F4); color: #BD4C29; outline: none; }
.ab-partage-ok { position: absolute; bottom: calc(100% + 6px); right: 0; z-index: 41; padding: 6px 12px; border-radius: 8px; background: var(--encre, #2E2A25); color: #fff; font: 400 13.5px/1.3 var(--police-texte, Jost, sans-serif); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.ab-partage-ok:empty { display: none; }
.ab-partage-ok.on { opacity: 1; }
.ab-partage-texte .ab-partage-ok, .ab-partage-fiche .ab-partage-ok, .ab-partage-tarif .ab-partage-ok { right: auto; left: 0; }

@media (max-width: 480px) {
	.ab-fiche-formules li:has(> .ab-partage) { gap: 8px; }
	.ab-partage-menu { min-width: 190px; }
}
@media (prefers-reduced-motion: reduce) {
	.ab-partage-btn, .ab-partage-ok { transition: none; }
}

/* Spa privatif and ritual pages: the text column is reordered on small screens; « Partager » follows the two buttons. */
.v3-fiche-texte > .ab-fiche-partage { order: 9; }
