/*
 * Copyright © 410 Gone (contact@410-gone.fr). All rights reserved.
 * See LICENSE.txt for license details (http://opensource.org/licenses/osl-3.0.php).
 *
 * AI shopping assistant panel. Every class is prefixed "ga-" (no clash with Luma / Hyvä styles);
 * colours are variables a store theme can override (e.g. .ga-panel { --ga-accent: … }).
 */
.ga-panel, .ga-flottant, .ga-voile {
    --ga-ink: #212529; --ga-muted: #6c757d; --ga-line: #e6e8eb; --ga-accent: #d12046; --ga-accent-dark: #ad0a2d;
    --ga-green: #5a9e1b; --ga-amber: #b36b00; --ga-ia1: #6d3df5; --ga-ia2: #d12046;
    --ga-shadow: rgba(0, 0, 0, .08) 0 6px 12px;
    font-family: quicksand, Arial, sans-serif;
}
.ga-panel *, .ga-flottant * { box-sizing: border-box; }
/* Small round bubble bottom right (no text); on mobile .ga-cache slides it out while scrolling down. z-index 25:
   under the cookie banner and the Hyvä drawers (mini cart, menu), above the page */
.ga-flottant { position: fixed; right: 18px; bottom: 18px; z-index: 25; display: grid; place-items: center;
    width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; font-size: 22px; line-height: 1; color: #fff; cursor: pointer;
    background: linear-gradient(135deg, var(--ga-ia1), var(--ga-ia2)); box-shadow: 0 4px 14px rgba(109, 61, 245, .35);
    transition: transform .25s ease, opacity .25s ease; }
.ga-flottant:hover { filter: brightness(1.08); }
.ga-flottant.ga-cache { transform: translateY(90px); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .ga-flottant { transition: none; } }
/* ✨ button next to the search magnifier (theme header, desktop and mobile) */
.ga-loupe { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; margin: 0 4px;
    border: 0; border-radius: 50%; cursor: pointer; font-size: 17px; line-height: 1; color: #fff; padding: 0;
    background: linear-gradient(135deg, #6d3df5, #d12046); box-shadow: 0 2px 8px rgba(109, 61, 245, .3); vertical-align: middle; }
.ga-loupe:hover { filter: brightness(1.08); }
/* Hyvä Pharmashopi : la loupe rouge est posée en absolu à droite du champ ; ✨ juste à sa gauche, dans le champ (comme le
   micro de GDD), le texte saisi s'arrête avant les deux boutons */
#search_mini_form .ga-loupe:has(+ .ps-search-button) { position: absolute; right: 50px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; margin: 0; z-index: 102; }
#search_mini_form:has(.ga-loupe) .ps-search-input { padding-right: 92px; }
.ga-voile { position: fixed; inset: 0; background: rgba(20, 20, 30, .35); opacity: 0; pointer-events: none;
    transition: opacity .2s; z-index: 9995; }
.ga-voile.ga-on { opacity: 1; pointer-events: auto; }
.ga-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: #fff; z-index: 9999;
    display: flex; flex-direction: column; transform: translateX(105%); transition: transform .25s ease;
    box-shadow: -8px 0 30px rgba(0, 0, 0, .15); color: var(--ga-ink); font-size: 14px; }
.ga-panel.ga-on { transform: none; }
.ga-panel a { text-decoration: none; color: inherit; }
.ga-panel button { font-family: inherit; cursor: pointer; }
.ga-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--ga-line); }
.ga-badge { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 17px;
    background: linear-gradient(135deg, var(--ga-ia1), var(--ga-ia2)); }
.ga-titre { font-size: 16px; font-weight: 700; }
.ga-beta { font-size: 10px; font-weight: 700; color: var(--ga-ia1); border: 1px solid var(--ga-ia1); border-radius: 8px; padding: 1px 6px; }
.ga-sous { font-size: 12px; color: var(--ga-muted); }
.ga-fermer { margin-left: auto; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--ga-muted); }
.ga-fil { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.ga-accueil p { margin: 0 0 12px; line-height: 1.5; }
.ga-accueil p.ga-info { font-size: 12px; color: var(--ga-muted); line-height: 1.45; }
.ga-accueil p.ga-info a { color: inherit !important; text-decoration: underline !important; }
.ga-bulle { align-self: flex-end; background: #f1edff; color: #2a1c66; border-radius: 16px 16px 4px 16px; padding: 10px 14px;
    max-width: 85%; font-weight: 500; }
.ga-rep { display: flex; flex-direction: column; gap: 10px; }
.ga-texte { line-height: 1.5; font-size: 14.5px; white-space: pre-wrap; }
.ga-etape { font-size: 12px; color: var(--ga-muted); display: flex; align-items: center; gap: 8px; }
.ga-etape-txt { transition: opacity .2s ease, transform .2s ease; }
.ga-etape-txt.ga-out { opacity: 0; transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .ga-etape-txt { transition: none; } }
.ga-dots span { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: var(--ga-ia1);
    animation: ga-b 1s infinite ease-in-out; }
.ga-dots span:nth-child(2) { animation-delay: .15s; }
.ga-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes ga-b { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ga-alerte { border-radius: 8px; padding: 12px 14px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.ga-alerte a { align-self: flex-start; border-radius: 3px; padding: 8px 12px; font-weight: 700; color: #fff !important; background: var(--ga-amber); }
.ga-pharmacien { background: #fff6e5; border-left: 4px solid var(--ga-amber); }
.ga-consultation { background: #fdecef; border-left: 4px solid var(--ga-accent); }
.ga-sources { font-size: 12px; color: var(--ga-muted); line-height: 1.6; }
.ga-sources .ga-src-t { font-weight: 600; }
.ga-sources .ga-src b { font-weight: 600; color: var(--ga-ink); }
.ga-carrousel-wrap { position: relative; margin: 0 -16px; }
.ga-carrousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 12px; scrollbar-width: none; }
.ga-carrousel::-webkit-scrollbar { display: none; }
.ga-tile { flex: 0 0 172px; scroll-snap-align: start; background: #fff; border-radius: 4px; box-shadow: var(--ga-shadow);
    padding: 10px 10px 12px; display: flex; flex-direction: column; }
.ga-img { position: relative; display: block; height: 140px; margin-bottom: 8px; }
.ga-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ga-promo { position: absolute; top: 0; left: 0; z-index: 1; background: var(--ga-accent); color: #fff; font-weight: 700;
    font-size: 12px; padding: 3px 7px; border-radius: 3px; }
.ga-brand { font-size: 12px; min-height: 15px; margin-bottom: 4px; }
.ga-name { font-weight: 600; font-size: 13px; line-height: 1.25; height: 2.5em; overflow: hidden; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ga-stars { margin-top: 6px; font-size: 15px; color: #f5c518; letter-spacing: 1px; min-height: 20px; }
.ga-stars small { color: var(--ga-ink); font-size: 12px; letter-spacing: 0; margin-left: 4px; }
.ga-off { color: #ccc; }
.ga-stock { font-size: 12px; margin-top: 6px; }
.ga-stock::before { content: "✔ "; color: var(--ga-green); font-weight: 700; }
.ga-price { color: var(--ga-accent); font-weight: 700; font-size: 20px; margin: 8px 0 10px; }
.ga-price s { color: var(--ga-muted); font-size: 14px; font-weight: 500; }
.ga-cart { margin-top: auto; border-radius: 3px; background: var(--ga-accent); color: #fff !important; font-weight: 700;
    font-size: 13px; padding: 10px 6px; text-align: center; }
.ga-cart:hover { background: var(--ga-accent-dark); }
button.ga-cart { border: 0; font-family: inherit; cursor: pointer; }
.ga-cart.ga-ok { background: var(--ga-green); }
.ga-cart:disabled { opacity: .8; }
.ga-r-ajout { margin-top: 4px; padding: 10px; }
.ga-fleche { position: absolute; top: 76px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2); font-size: 18px; z-index: 2; }
.ga-g { left: 4px; }
.ga-d { right: 4px; }
.ga-routine { border: 1px solid #e6e1fb; background: #fcfbff; border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ga-r-titre { font-weight: 700; }
.ga-r-sous { font-size: 12px; color: var(--ga-muted); margin-top: -4px; }
.ga-r-liste { display: flex; flex-direction: column; gap: 6px; }
.ga-r-etape { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; background: #fff;
    border-radius: 6px; padding: 6px 8px; box-shadow: rgba(0, 0, 0, .05) 0 2px 6px; }
.ga-r-etape img { width: 44px; height: 44px; object-fit: contain; }
.ga-r-etape span { font-size: 13px; line-height: 1.3; font-weight: 600; }
.ga-r-etape small { display: block; font-weight: 500; color: var(--ga-ia1); font-size: 11px; }
.ga-r-etape b { color: var(--ga-accent); }
.ga-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ga-chip { border: 1px solid #d9d2fb; background: #faf8ff; color: #3b2a8f; border-radius: 16px; padding: 7px 12px;
    font-size: 13px; font-weight: 600; text-align: left; }
.ga-chip:hover { background: #f1edff; }
.ga-suivi { display: flex; flex-direction: column; gap: 8px; border: 1px solid #e6e1fb; background: #fcfbff; border-radius: 8px; padding: 12px; }
.ga-s-titre { font-weight: 700; }
.ga-s-erreur { color: var(--ga-accent); font-size: 13px; }
.ga-suivi label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.ga-suivi input { font: inherit; font-size: 15px; padding: 9px 10px; border: 1px solid #cfd3d7; border-radius: 4px; }
.ga-suivi button { border: 0; border-radius: 3px; background: var(--ga-accent); color: #fff; font-weight: 700; padding: 11px; }
.ga-suivi button:disabled { opacity: .5; }
.ga-contact { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
    background: #f6f7f9; border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.ga-contact a { background: var(--ga-accent); color: #fff !important; border-radius: 3px; padding: 8px 12px; font-weight: 700; white-space: nowrap; }
.ga-avis { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--ga-muted); }
.ga-avis button { border: 1px solid var(--ga-line); background: #fff; border-radius: 14px; padding: 2px 9px; font-size: 14px; }
.ga-foot { border-top: 1px solid var(--ga-line); padding: 10px 12px 12px; }
.ga-saisie { display: flex; gap: 8px; align-items: center; border: 1.5px solid #cfc6fb; border-radius: 24px; padding: 4px 4px 4px 14px; margin: 0; }
.ga-saisie:focus-within { border-color: var(--ga-ia1); }
.ga-q { flex: 1; border: 0 !important; outline: 0; font: inherit; font-size: 15px; min-width: 0; box-shadow: none !important; height: auto !important; padding: 6px 0 !important; }
.ga-envoyer { width: 38px; height: 38px; border-radius: 50%; border: 0; color: #fff; font-size: 17px; padding: 0;
    background: linear-gradient(135deg, var(--ga-ia1), var(--ga-ia2)); }
.ga-envoyer:disabled { opacity: .4; }
/* reCAPTCHA badge hidden: the mention required by Google is in the information message. */
.ga-captcha { height: 0; overflow: hidden; }
@media (max-width: 760px) {
    .ga-panel { width: 100vw; }
    .ga-fleche { display: none; }
    .ga-flottant { right: 12px; bottom: 76px; width: 46px; height: 46px; font-size: 19px; }
}

/* Category of the products: button under the carousel, link in the text */
.ga-rayons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ga-rayon { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1px solid var(--ga-line);
    border-radius: 22px; background: #fff; color: var(--ga-ink) !important; text-decoration: none !important;
    font-size: 13px; line-height: 1.3; }
.ga-rayon:hover { border-color: var(--ga-accent); color: var(--ga-accent) !important; }
.ga-rayon b { font-weight: 600; }
.ga-lien-rayon { color: var(--ga-accent) !important; text-decoration: underline !important; font-weight: 600; }
.ga-lien-produit { color: inherit !important; text-decoration: underline !important; text-decoration-color: var(--ga-accent) !important;
    text-underline-offset: 2px; }
.ga-lien-produit:hover { color: var(--ga-accent) !important; }
