#gfm-maxi {
    --gfm-accent: #ffcf20;
    --gfm-outline: #c29515;
    --gfm-display-size: min(var(--gfm-size, 144px), 35vw, max(60px, 34svh));
    --gfm-offset: var(--gfm-bottom, 18px);
    --gfm-inset-left: calc(12px + env(safe-area-inset-left, 0px));
    --gfm-inset-right: calc(12px + env(safe-area-inset-right, 0px));
    --gfm-tool-size: clamp(22px, calc((var(--gfm-display-size) - 4px) / 2), 34px);
    --gfm-gap: 9px;
    --gfm-panel-width: min(274px, calc(100vw - var(--gfm-inset-left) - var(--gfm-inset-right) - var(--gfm-display-size) - var(--gfm-tool-size) - var(--gfm-gap)));
    position: fixed;
    right: var(--gfm-inset-right);
    bottom: calc(var(--gfm-offset) + env(safe-area-inset-bottom, 0px));
    z-index: 10000;
    display: flex;
    align-items: center;
    color: #171103;
    font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
    isolation: isolate;
    pointer-events: none;
    contain: layout style;
}
#gfm-maxi[data-side=left] { right: auto; left: calc(var(--gfm-inset-left) + var(--gfm-panel-width) + var(--gfm-gap)); }
#gfm-maxi[data-side=left].gfm-minimized { left: var(--gfm-inset-left); }
#gfm-maxi *, #gfm-maxi *::before, #gfm-maxi *::after { box-sizing: border-box; }
#gfm-maxi [hidden] { display: none !important; }
#gfm-maxi button {
    font: inherit;
    line-height: 1.25;
    letter-spacing: normal;
    text-transform: none;
    cursor: pointer;
    margin: 0;
    border: 0;
    box-shadow: none;
    min-width: 0;
    min-height: 0;
    background: none;
    color: inherit;
    padding: 0;
}
#gfm-maxi button:focus-visible, #gfm-maxi a:focus-visible, #gfm-maxi .gfm-bubble-content:focus-visible {
    outline: 2px solid #8d48db;
    outline-offset: -2px;
}
#gfm-maxi .gfm-stage { position: relative; width: var(--gfm-display-size); height: var(--gfm-display-size); }
#gfm-maxi .gfm-pet {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    touch-action: pan-y;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    cursor: grab;
    overflow: visible;
}
#gfm-maxi .gfm-pet:active { cursor: grabbing; }
#gfm-maxi .gfm-tools { display: grid; gap: 4px; pointer-events: auto; }
#gfm-maxi .gfm-tool {
    display: grid;
    place-items: center;
    width: var(--gfm-tool-size);
    height: var(--gfm-tool-size);
    color: #211800;
    font-size: 15px;
    font-weight: 800;
}
#gfm-maxi .gfm-tool span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid var(--gfm-outline);
    border-radius: 50%;
    background: #ffeb9b;
    box-shadow: 0 1px 4px #221c3622;
}
#gfm-maxi .gfm-tool:hover span, #gfm-maxi .gfm-tool[aria-expanded=true] span { background: #ffe57f; }

#gfm-maxi .gfm-bubble {
    --gfm-panel: #ffcf20;
    position: absolute;
    inset: 0 calc(100% + var(--gfm-gap)) 0 auto;
    width: var(--gfm-panel-width);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gfm-outline);
    border-radius: 10px;
    background: var(--gfm-panel);
    box-shadow: 0 4px 16px #32204226;
    pointer-events: auto;
}
#gfm-maxi .gfm-bubble[data-important] { --gfm-panel: #ffdb48; --gfm-outline: #987006; }
#gfm-maxi .gfm-bubble::after {
    content: "";
    position: absolute;
    top: calc(50% - 5px);
    right: -6px;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    background: var(--gfm-panel);
    border-top: 1px solid var(--gfm-outline);
    border-right: 1px solid var(--gfm-outline);
    pointer-events: none;
}
#gfm-maxi .gfm-head {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    padding: 1px 5px 0 9px;
    color: #171103;
}
#gfm-maxi .gfm-head strong { font-size: 13px; }
#gfm-maxi .gfm-close {
    min-height: 25px;
    padding: 0 6px;
    border-radius: 6px;
    background: #ffed9a;
    color: #171103;
    font-size: 11px;
    font-weight: 750;
}
#gfm-maxi .gfm-close:hover { background: #fff4c5; }
#gfm-maxi .gfm-bubble-content {
    flex: 1;
    min-height: 0;
    padding: 1px 8px 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    border-radius: 0 0 9px 9px;
}
#gfm-maxi .gfm-message { margin: 0; font: inherit; line-height: 1.32; overflow-wrap: anywhere; }
#gfm-maxi .gfm-link, #gfm-maxi .gfm-shop-fallback {
    display: inline-block;
    margin-top: 3px;
    color: #171103;
    font-size: .92em;
    font-weight: 700;
    text-decoration: underline;
}
#gfm-maxi .gfm-menu, #gfm-maxi .gfm-actions { display: flex; gap: 4px; flex-wrap: wrap; }
#gfm-maxi .gfm-menu { margin-bottom: 4px; gap: 3px; }
#gfm-maxi .gfm-menu button, #gfm-maxi .gfm-menu a, #gfm-maxi .gfm-product {
    display: grid;
    place-items: center;
    min-height: 25px;
    border: 1px solid #c29515;
    border-radius: 6px;
    background: #fff0ab;
}
#gfm-maxi .gfm-menu button, #gfm-maxi .gfm-menu a { width: 28px; }
#gfm-maxi .gfm-menu button:hover, #gfm-maxi .gfm-menu a:hover, #gfm-maxi .gfm-product:hover { background: #fff7d4; border-color: #987006; }
#gfm-maxi .gfm-actions { column-gap: 9px; }
#gfm-maxi .gfm-actions button {
    min-height: 25px;
    color: #171103;
    font-size: 11px;
    text-decoration: underline;
}
#gfm-maxi .gfm-products {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    margin-top: 3px;
}
#gfm-maxi .gfm-product img, #gfm-maxi .gfm-menu img { display: block; width: 15px; height: 15px; }
#gfm-maxi .gfm-shop-fallback { grid-column: 1 / -1; }

#gfm-maxi[data-chat] {
    --gfm-panel-width: min(330px, calc(100vw - var(--gfm-inset-left) - var(--gfm-inset-right) - var(--gfm-display-size) - var(--gfm-tool-size) - var(--gfm-gap)));
    bottom: max(calc(var(--gfm-offset) + env(safe-area-inset-bottom, 0px)), calc(var(--gfm-chat-keyboard, 0px) + 8px));
}
#gfm-maxi[data-chat] .gfm-bubble {
    top: auto;
    height: clamp(146px, calc(var(--gfm-chat-view, 100dvh) - var(--gfm-offset) - 14px), 392px);
    border-radius: 13px;
    box-shadow: 0 6px 26px #47350047;
}
#gfm-maxi[data-chat] .gfm-bubble::after {
    top: auto;
    bottom: calc(var(--gfm-display-size) / 2 - 5px);
}
#gfm-maxi[data-chat] .gfm-head {
    min-height: 35px;
    padding: 3px 6px 3px 9px;
    border-bottom: 1px solid #9473123d;
}
#gfm-maxi .gfm-chat {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    gap: 5px;
    padding: 5px 6px 6px;
    border-radius: 0 0 12px 12px;
    background: #fff7d5;
}
#gfm-maxi .gfm-chat-log {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 1px 0;
    outline-offset: -2px;
}
#gfm-maxi .gfm-chat-line {
    align-self: flex-start;
    flex: none;
    max-width: 100%;
    padding: 6px 8px;
    border: 1px solid #dfc778;
    border-radius: 9px 9px 9px 3px;
    background: #fffbeb;
    overflow-wrap: anywhere;
}
#gfm-maxi .gfm-chat-line[data-kind=visitor] {
    align-self: flex-end;
    background: #ffe58a;
    border-radius: 9px 9px 3px 9px;
}
#gfm-maxi .gfm-chat-line[data-kind=notice] { border-color: #806000; }
#gfm-maxi .gfm-chat-line p { margin: 0; font: inherit; color: inherit; white-space: pre-wrap; }
#gfm-maxi .gfm-chat-link {
    display: block;
    margin-top: 5px;
    padding: 4px 6px;
    border: 1px solid #cba33d;
    border-radius: 5px;
    background: #fff0ae;
    color: #171103;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
}
#gfm-maxi .gfm-chat-link:hover { background: #ffe478; }
#gfm-maxi .gfm-chat-quick {
    display: flex;
    gap: 4px;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: thin;
}
#gfm-maxi .gfm-chat-quick button {
    flex: none;
    padding: 4px 6px;
    border: 1px solid #c9ad5a;
    border-radius: 12px;
    background: #fff4be;
    color: #171103;
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
}
#gfm-maxi .gfm-chat-quick button:hover { background: #ffe478; }
#gfm-maxi .gfm-chat-quick .gfm-chat-restart { background: transparent; }
#gfm-maxi .gfm-send:disabled { opacity: .6; cursor: wait; }
#gfm-maxi .gfm-chat-form { display: flex; align-items: stretch; gap: 4px; margin: 0; }
#gfm-maxi input.gfm-question {
    flex: 1;
    width: 0;
    min-width: 0;
    height: 34px;
    margin: 0;
    padding: 3px 6px;
    border: 1px solid #806000;
    border-radius: 6px;
    box-shadow: none;
    background: #fff8da;
    color: #171103;
    font: 16px/1.25 system-ui, sans-serif;
}
#gfm-maxi input.gfm-question::placeholder { font-size: 12px; color: #524615; }
#gfm-maxi .gfm-send { flex: none; padding: 0 7px; border: 1px solid #987006; border-radius: 6px; background: #ffe784; color: #171103; font-size: 11px; font-weight: 750; }
#gfm-maxi .gfm-send:hover { background: #fff2b5; }

#gfm-maxi canvas.gfm-pic, #gfm-maxi .gfm-poster {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    pointer-events: none;
    filter: drop-shadow(0 3px 2px #2c1b4a2d);
}
#gfm-maxi canvas.gfm-pic { visibility: hidden; }
#gfm-maxi canvas.gfm-pic[data-ready] { visibility: visible; }
#gfm-maxi canvas.gfm-pic[data-ready] + .gfm-poster { visibility: hidden; }
#gfm-maxi .gfm-poster {
    object-fit: contain;
    transform-origin: 59% 94%;
    animation: gfm-puppy-breath 2.8s ease-in-out infinite alternate;
}
#gfm-maxi .gfm-fallback, #gfm-maxi .gfm-pic[data-failed] { display: none; }
#gfm-maxi .gfm-pic[data-failed] ~ .gfm-fallback, #gfm-maxi .gfm-restore {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 20px;
    background: var(--gfm-accent);
    color: #171103;
    font-weight: 700;
    box-shadow: 0 3px 10px #39246c33;
}
#gfm-maxi .gfm-restore { pointer-events: auto; }
#gfm-maxi .gfm-heart {
    position: absolute;
    top: 12%;
    left: 55%;
    font-size: 26px;
    color: #f0529a;
    opacity: 0;
    pointer-events: none;
    text-shadow: 0 2px 2px #fff;
}
#gfm-maxi.gfm-love .gfm-heart { animation: gfm-heart 1s ease-out both; }
#gfm-maxi.gfm-paused * { animation-play-state: paused !important; }
@keyframes gfm-heart {
    0% { opacity: 0; transform: translateY(0) scale(.5); }
    25% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-35px) scale(1.3); }
}
@keyframes gfm-puppy-breath {
    from { transform: scale(.992, .988); }
    to { transform: scale(1.006, 1.008); }
}
@media (max-width: 767px) {
    #gfm-maxi {
        --gfm-display-size: min(var(--gfm-mobile, 94px), 35vw, max(60px, 25svh));
        --gfm-offset: min(var(--gfm-mobile-bottom, 76px), 24svh);
        --gfm-inset-left: calc(8px + env(safe-area-inset-left, 0px));
        --gfm-inset-right: calc(8px + env(safe-area-inset-right, 0px));
        font-size: 12px;
    }
    #gfm-maxi.gfm-no-mobile { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    #gfm-maxi *, #gfm-maxi *::before, #gfm-maxi *::after { animation: none !important; transition: none !important; }
    #gfm-maxi.gfm-love .gfm-heart { opacity: 1; }
}


/* Compact countdown: one row with Cerrar, no extra text or layout shift. */
#gfm-maxi .gfm-head-tools { display:flex; align-items:center; gap:5px; flex:none; }
#gfm-maxi .gfm-countdown { position:relative; display:grid; place-items:center; width:24px; height:24px; flex:0 0 24px; color:#5b219f; font-size:11px; font-weight:800; line-height:1; font-variant-numeric:tabular-nums; }
#gfm-maxi .gfm-countdown svg { position:absolute; inset:0; width:100%; height:100%; overflow:visible; transform:rotate(-90deg); }
#gfm-maxi .gfm-countdown circle { fill:none; stroke-width:2.5; }
#gfm-maxi .gfm-countdown-track { stroke:#5b219f35; }
#gfm-maxi .gfm-countdown-ring { stroke:currentColor; stroke-linecap:round; stroke-dasharray:100; stroke-dashoffset:0; }
#gfm-maxi .gfm-counting .gfm-countdown-ring { animation:gfm-countdown-drain var(--gfm-duration, 12s) linear forwards; }
@keyframes gfm-countdown-drain { to { stroke-dashoffset:100; } }
@media (prefers-reduced-motion:reduce) { #gfm-maxi .gfm-counting .gfm-countdown-ring { animation-timing-function:steps(var(--gfm-seconds, 12),end); } }

#gfm-maxi.gfm-obstructed:not([data-chat]):not(:has(.gfm-bubble[data-important]:not([hidden]))), #gfm-maxi.gfm-modal-block:not([data-chat]) { visibility:hidden; pointer-events:none; }
#gfm-maxi .gfm-confetti { position:absolute; inset:0; pointer-events:none; overflow:visible; }
#gfm-maxi .gfm-confetti i { position:absolute; left:50%; top:30%; width:6px; height:9px; border-radius:2px; background:var(--gfm-color); animation:gfm-confetti-flight 1.25s ease-out both; }
@keyframes gfm-confetti-flight { 0% { opacity:1;transform:translate(0,0) rotate(0); } 65% {opacity:1;} 100% { opacity:0;transform:translate(var(--gfm-x),var(--gfm-y)) rotate(290deg); } }
@media(prefers-reduced-motion:reduce){#gfm-maxi .gfm-confetti{display:none}}

/* 2.0.6: native in-note and chat OAuth CTA */
#gfm-maxi .gfm-auth-slot[hidden]{display:none!important}
#gfm-maxi .gfm-google-form{display:block;width:100%;margin:7px 0 3px;padding:0}
#gfm-maxi .gfm-google-access{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;margin:5px 0 3px;padding:9px 8px;border:1px solid #5420ac;border-radius:10px;background:linear-gradient(150deg,#9053f4,#6022c9);box-shadow:0 3px 0 #47158f;color:#fff!important;text-decoration:none!important;font-family:inherit;font-size:13px;font-weight:800;line-height:1.25;text-align:center;cursor:pointer;white-space:normal}
#gfm-maxi .gfm-google-access:hover{background:#702cd9;color:#fff!important}
#gfm-maxi .gfm-google-access:focus-visible{outline:2px solid #1a1040;outline-offset:2px}
#gfm-maxi .gfm-google-logo{width:24px;height:24px;flex:0 0 24px;background:#fff;border-radius:50%;padding:4px;box-sizing:border-box;object-fit:contain}
#gfm-maxi:not([data-chat]) .gfm-bubble:has(.gfm-auth-slot:not([hidden])){top:auto;bottom:0;height:auto;min-height:0;max-height:calc(100dvh - var(--gfm-offset) - 12px)}
#gfm-maxi:not([data-chat]) .gfm-bubble:has(.gfm-auth-slot:not([hidden])) .gfm-bubble-content{flex:0 1 auto}
#gfm-maxi:not([data-chat]) .gfm-bubble:has(.gfm-auth-slot:not([hidden]))::after{top:auto;bottom:calc(var(--gfm-display-size) / 2 - 5px)}

/* Maxi AI opt-in and non-blocking status */
#gfm-maxi .gfm-ai-typing{opacity:.8;font-style:italic;}

/* 2.1.1: action row and distinct purple advice buttons. */
#gfm-maxi .gfm-menu {align-items:center;gap:4px;}
#gfm-maxi .gfm-menu .gfm-talk-button {width:auto;flex:1 1 82px;min-width:0;min-height:28px;padding:4px 6px;background:linear-gradient(135deg,#7627cc,#4c1297);border:1px solid #4c1297;color:#fff;font-size:10px;font-weight:850;line-height:1.15;text-align:center;white-space:normal;overflow-wrap:normal;box-shadow:0 2px 0 #3b106f;}
#gfm-maxi .gfm-menu .gfm-talk-button:hover {background:#5815ab;border-color:#4c1297;color:#fff;}
#gfm-maxi .gfm-actions {margin-top:7px;gap:5px;}
#gfm-maxi .gfm-actions .gfm-advice-button {flex:1 1 75px;min-height:28px;padding:5px 6px;border:1px solid #5815aa;border-radius:7px;background:linear-gradient(135deg,#8434df,#5a19ae);color:#fff;font-size:11px;font-weight:750;text-decoration:none;text-align:center;box-shadow:0 2px 0 #42107f;}
#gfm-maxi .gfm-actions .gfm-advice-button:hover {background:#51109e;color:#fff;}

/* 2.1.2: visible opt-in, separate from analytics notice. */



#gfm-maxi .gfm-chat-privacy { flex: none; font-size: 10px; color: #59420b; text-decoration: underline; white-space: nowrap; padding: 3px 2px; }

/* 2.1.9: spontaneous speech fits the message, not the pet's height.
   Interactive menus, sign-in and the full chat keep their existing layouts. */
#gfm-maxi:not([data-chat]) .gfm-bubble:not(:has(.gfm-menu:not([hidden]), .gfm-products:not([hidden]), .gfm-auth-slot:not([hidden]))) {
    top: auto;
    bottom: 0;
    width: max-content;
    max-width: var(--gfm-panel-width);
    height: auto;
    min-height: 0;
    max-height: max(0px, calc(100dvh - var(--gfm-offset) - env(safe-area-inset-bottom, 0px) - 12px));
}
#gfm-maxi:not([data-chat]) .gfm-bubble:not(:has(.gfm-menu:not([hidden]), .gfm-products:not([hidden]), .gfm-auth-slot:not([hidden]))) .gfm-head {
    gap: 10px;
}
#gfm-maxi:not([data-chat]) .gfm-bubble:not(:has(.gfm-menu:not([hidden]), .gfm-products:not([hidden]), .gfm-auth-slot:not([hidden]))) .gfm-bubble-content {
    flex: 0 1 auto;
    min-width: 0;
}
#gfm-maxi:not([data-chat]) .gfm-bubble:not(:has(.gfm-menu:not([hidden]), .gfm-products:not([hidden]), .gfm-auth-slot:not([hidden]))) .gfm-link {
    overflow-wrap: anywhere;
    max-width: 100%;
}

/* Private SMM tracking inside the existing chat */
#gfm-maxi .gfm-maxi-order-card{display:flex;flex-direction:column;gap:5px;border:1px solid #e2bb55;border-radius:8px;background:#fffdf2;padding:8px;margin-top:8px;min-width:0;overflow-wrap:anywhere;color:#201503}
#gfm-maxi .gfm-maxi-order-card strong{font-size:13px;line-height:1.35}
#gfm-maxi .gfm-maxi-order-card .gfm-maxi-order-state{font-size:11px;line-height:1.35}
#gfm-maxi .gfm-maxi-order-card .gfm-maxi-order-percent{align-self:flex-end;color:#18743a}
#gfm-maxi .gfm-maxi-order-progress{display:block;width:100%;height:10px;accent-color:#16a34a;border:0;border-radius:99px;overflow:hidden}
#gfm-maxi .gfm-maxi-order-progress::-webkit-progress-bar{background:#e7e2d4;border-radius:99px}
#gfm-maxi .gfm-maxi-order-progress::-webkit-progress-value{background:#16a34a;border-radius:99px}
#gfm-maxi .gfm-maxi-order-progress::-moz-progress-bar{background:#16a34a;border-radius:99px}
#gfm-maxi .gfm-maxi-order-speed{font:inherit;font-weight:700;font-size:12px;color:#332200;background:#ffe48c;border:1px solid #d5a530;border-radius:6px;padding:6px;cursor:pointer}
#gfm-maxi .gfm-maxi-order-speed:disabled{opacity:.65;cursor:default}

/* MAXI 3: compact mobile chat, accessible private cards and thinking indicator. */
#gfm-maxi .gfm-chat{background:linear-gradient(155deg,#fffdf2,#fff4c4);gap:8px;padding:9px;}
#gfm-maxi .gfm-chat-line{padding:9px 11px;border-radius:15px 15px 15px 5px;box-shadow:0 2px 5px #765c1410;max-width:96%;line-height:1.4;}
#gfm-maxi .gfm-chat-line[data-kind=visitor]{border-radius:15px 15px 5px 15px;background:#ffe489;max-width:88%;}
#gfm-maxi .gfm-chat-quick{flex-wrap:wrap;overflow-x:visible;max-height:100px;overflow-y:auto;gap:5px;}
#gfm-maxi .gfm-maxi-payment-card{border:1px solid #d8c6f5;background:#faf7ff;border-radius:12px;padding:10px;margin-top:8px;color:#342052;}
#gfm-maxi .gfm-maxi-payment-card p{margin-top:4px;font-size:12px;}
#gfm-maxi .gfm-maxi-payment-state{font-weight:700;color:#6639b5;}
#gfm-maxi .gfm-v3-dots{display:inline-block;letter-spacing:5px;color:#8359c8;animation:gfm-v3-pulse 1.1s ease-in-out infinite;}
@keyframes gfm-v3-pulse{0%,100%{opacity:.35}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){#gfm-maxi .gfm-v3-dots{animation:none}}
@media(max-width:480px){#gfm-maxi[data-chat] .gfm-bubble{height:clamp(146px,calc(var(--gfm-chat-view,100dvh) - var(--gfm-offset) - 24px),480px);}#gfm-maxi .gfm-chat-form{min-width:0;}#gfm-maxi .gfm-question{min-width:0;flex:1;}}

.gfm-maxi-ticket-form select,.gfm-maxi-ticket-form input,.gfm-maxi-ticket-form textarea{width:100%;box-sizing:border-box;min-width:0;border:1px solid #c6ab62;border-radius:8px;padding:8px;font:inherit;background:#fffdf4;color:#282018}.gfm-maxi-ticket-form input[hidden]{display:none!important}.gfm-maxi-ticket-form textarea{resize:vertical}.gfm-maxi-ticket-messages{max-height:230px;overflow:auto;overflow-wrap:anywhere}.gfm-maxi-ticket-messages p{white-space:pre-wrap;margin:4px 0}.gfm-maxi-ticket-messages small{display:block;margin-bottom:10px;color:#655a43}

/* MAXI 3.1.1: recent purchase selector */
#gfm-maxi .gfm-maxi-purchase-label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;min-width:0;text-align:left}
#gfm-maxi .gfm-maxi-ticket-form .gfm-maxi-purchase-select{appearance:none;-webkit-appearance:none;display:block;width:100%;max-width:100%;min-height:42px;padding:9px 30px 9px 10px;border:1px solid #c6ab62;border-radius:10px;background:#fffdf4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23655320' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center;color:#282018;text-overflow:ellipsis;font-size:13px;font-weight:400;cursor:pointer}
#gfm-maxi .gfm-maxi-purchase-select:focus-visible{outline:2px solid #795b10;outline-offset:1px}
#gfm-maxi .gfm-maxi-purchase-select:disabled{opacity:.75;cursor:default}
#gfm-maxi .gfm-maxi-purchase-preview{display:flex;flex-direction:column;gap:2px;background:#fff4c6;border:1px solid #e2bb55;border-radius:8px;padding:7px 9px;overflow-wrap:anywhere;min-width:0}
#gfm-maxi .gfm-maxi-purchase-preview[hidden]{display:none!important}
#gfm-maxi .gfm-maxi-purchase-preview small{font-size:11px;line-height:1.35;color:#655a43}
@media(max-width:600px){#gfm-maxi .gfm-maxi-ticket-form .gfm-maxi-purchase-select{font-size:16px;min-height:44px}}

/* MAXI 3.1.2 — direct purchase navigation inside chat */
#gfm-maxi .gfm-chat-catalog-card{width:100%;max-width:100%;box-sizing:border-box}
#gfm-maxi .gfm-chat-catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:9px}
#gfm-maxi .gfm-chat-product{display:flex;min-width:0;min-height:60px;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:6px 3px;box-sizing:border-box;border:1px solid #e2c375;border-radius:9px;background:#fffdf5;color:#282018;text-decoration:none;text-align:center;font-size:10px;font-weight:650;line-height:1.25;overflow-wrap:anywhere}
#gfm-maxi .gfm-chat-product img{display:block;width:26px;height:26px;object-fit:contain}
#gfm-maxi .gfm-chat-product:hover{background:#ffe89b;border-color:#a07819}
#gfm-maxi .gfm-chat-product:focus-visible{outline:2px solid #806000;outline-offset:1px}
#gfm-maxi .gfm-chat-catalog-card .gfm-chat-link{margin-top:8px;min-height:32px;display:flex;align-items:center;justify-content:center}
@media(max-width:360px){#gfm-maxi .gfm-chat-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

#gfm-maxi .gfm-crm-panel{padding:8px;border:1px solid #8b5cf6;border-radius:12px;background:#fff;color:#2b174a;max-height:40vh;overflow:auto;font-size:12px}#gfm-maxi .gfm-crm-panel[hidden]{display:none}#gfm-maxi .gfm-crm-panel textarea{width:100%;min-height:52px;box-sizing:border-box}#gfm-maxi .gfm-crm-log{max-height:120px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}#gfm-maxi .gfm-crm-panel p{margin:5px 0}
#gfm-maxi[data-live-human] .gfm-chat-quick>button:not([data-live-privacy]){display:none!important}
