/* Floating WhatsApp chat (inc/whatsapp.php). */
.gt-wa { --gt-wa-green: var(--wp--preset--color--sky, #38bdf8); --gt-wa-brand: var(--wp--preset--color--primary, #2563eb); --gt-wa-brand-dark: #1d4ed8; --gt-wa-sky: var(--wp--preset--color--sky, #38bdf8); position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 9998; display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; font-family: var(--wp--preset--font-family--body, Inter, system-ui, sans-serif); transition: bottom .25s ease; }
.gt-wa *, .gt-wa *::before, .gt-wa *::after { box-sizing: border-box; }

.gt-wa__btn { display: inline-flex; align-items: center; gap: .55rem; height: 60px; min-width: 60px; padding: 0 1.05rem; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--gt-wa-brand) 0%, #1e40af 100%); color: #fff; font: inherit; font-weight: 600; font-size: .98rem; cursor: pointer; box-shadow: 0 10px 28px rgba(37, 99, 235, .38), 0 4px 10px rgba(11, 18, 32, .18); position: relative; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.gt-wa__btn svg { width: 30px; height: 30px; flex: none; }
.gt-wa__btn:hover { background: linear-gradient(135deg, var(--gt-wa-brand-dark) 0%, var(--wp--preset--color--navy, #0b1220) 100%); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37, 99, 235, .45), 0 6px 14px rgba(11, 18, 32, .2); }
.gt-wa__btn::after { content: ""; position: absolute; top: 6px; left: 42px; width: 12px; height: 12px; border-radius: 50%; background: var(--gt-wa-green); border: 2px solid #fff; }
.gt-wa__btn[aria-expanded="true"]::after { display: none; }
.gt-wa__btn:focus-visible { outline: 3px solid var(--wp--preset--color--sky, #38bdf8); outline-offset: 3px; }
.gt-wa__btn[aria-expanded="true"] .gt-wa__label { display: none; }
.gt-wa__btn[aria-expanded="true"] { padding: 0; width: 60px; justify-content: center; }

/* Gentle attention pulse, once, a few seconds after load. */
.gt-wa__btn.is-pulse { animation: gt-wa-pulse 1.6s ease-out 2; }
@keyframes gt-wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, .6), 0 10px 28px rgba(37, 99, 235, .38); } 100% { box-shadow: 0 0 0 18px rgba(56, 189, 248, 0), 0 10px 28px rgba(37, 99, 235, .38); } }

.gt-wa__panel { width: min(360px, calc(100vw - 2rem)); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(11, 18, 32, .28), 0 6px 18px rgba(11, 18, 32, .12); transform-origin: bottom right; animation: gt-wa-in .22s ease-out; }
.gt-wa__panel[hidden] { display: none; }
@keyframes gt-wa-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

.gt-wa__head { display: flex; align-items: center; gap: .75rem; padding: .95rem 1rem; background: var(--wp--preset--color--navy, #0b1220); color: #fff; }
.gt-wa__avatar { position: relative; display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--wp--preset--color--primary, #2563eb); }
.gt-wa__avatar img { width: 24px; height: 24px; object-fit: contain; }
.gt-wa__avatar::after { content: ""; position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--gt-wa-green); border: 2px solid var(--wp--preset--color--navy, #0b1220); }
.gt-wa__who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.gt-wa__who strong { font-size: 1rem; font-weight: 700; }
.gt-wa__who span { font-size: .8rem; color: var(--wp--preset--color--muted-light, #cbd5e1); }
.gt-wa__close { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.gt-wa__close:hover { background: rgba(255, 255, 255, .12); }
.gt-wa__close:focus-visible { outline: 2px solid var(--wp--preset--color--sky, #38bdf8); }

.gt-wa__body { padding: 1rem; background: #eef2f7; background-image: radial-gradient(rgba(11, 18, 32, .045) 1px, transparent 1px); background-size: 14px 14px; }
.gt-wa__bubble { position: relative; max-width: 88%; margin: 0 0 .9rem; padding: .7rem .85rem; background: #fff; color: #0f172a; border-radius: 4px 14px 14px 14px; font-size: .93rem; line-height: 1.45; box-shadow: 0 1px 2px rgba(11, 18, 32, .1); }
.gt-wa__topics { display: flex; flex-wrap: wrap; gap: .45rem; }
.gt-wa__topic { padding: .45rem .8rem; border: 1.5px solid var(--wp--preset--color--primary, #2563eb); border-radius: 999px; background: #fff; color: var(--wp--preset--color--primary, #2563eb); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; transition: background .15s ease, color .15s ease; }
.gt-wa__topic:hover, .gt-wa__topic:focus-visible { background: var(--wp--preset--color--primary, #2563eb); color: #fff; outline: none; }

.gt-wa__form { display: flex; align-items: flex-end; gap: .5rem; padding: .7rem .75rem .35rem; background: #fff; border-top: 1px solid #e2e8f0; }
.gt-wa__form textarea { flex: 1; height: 42px; min-height: 42px !important; max-height: 120px; margin: 0; padding: .6rem .8rem; border: 1.5px solid #cbd5e1; border-radius: 21px; font: inherit; font-size: .93rem; line-height: 1.35; color: #0f172a; resize: none; }
.gt-wa__form textarea:focus { outline: none; border-color: var(--gt-wa-brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .16); }
.gt-wa__send { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: var(--gt-wa-brand); color: #fff; cursor: pointer; }
.gt-wa__send svg { width: 20px; height: 20px; }
.gt-wa__send:hover { background: var(--gt-wa-brand-dark); }
.gt-wa__send:focus-visible { outline: 3px solid var(--wp--preset--color--sky, #38bdf8); outline-offset: 2px; }
.gt-wa__note { margin: 0; padding: 0 1rem .7rem; background: #fff; color: #64748b; font-size: .74rem; }

.gt-wa__teaser { display: flex; align-items: center; margin: 0; background: #fff; border-radius: 14px 14px 4px 14px; box-shadow: 0 10px 28px rgba(11, 18, 32, .18); animation: gt-wa-in .25s ease-out; }
.gt-wa__teaser[hidden] { display: none; }
.gt-wa__teaser-text { padding: .7rem .4rem .7rem .95rem; border: 0; background: none; color: #0f172a; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; text-align: left; }
.gt-wa__teaser-x { width: 34px; height: 34px; margin-right: .2rem; border: 0; border-radius: 50%; background: none; color: #64748b; font-size: 1.25rem; cursor: pointer; }
.gt-wa__teaser-x:hover { background: #f1f5f9; }

@media (max-width: 600px) {
	.gt-wa { right: .9rem; bottom: .9rem; }
	.gt-wa__label { display: none; }
	.gt-wa__btn { width: 58px; height: 58px; min-width: 58px; padding: 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.gt-wa, .gt-wa__panel, .gt-wa__teaser, .gt-wa__btn { animation: none !important; transition: none !important; }
}
@media print { .gt-wa { display: none !important; } }

/* Product pages: "Ask about this on WhatsApp" under Add to cart. */
.gt-wa-inline { margin: .9rem 0 0; }
.gt-wa-inline__btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: .6rem 1.15rem; border: 1.5px solid var(--wp--preset--color--primary, #2563eb); border-radius: 999px; background: #fff; color: var(--wp--preset--color--primary, #2563eb); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; transition: background .15s ease, color .15s ease; }
.gt-wa-inline__btn svg { width: 22px; height: 22px; color: var(--wp--preset--color--primary, #2563eb); }
.gt-wa-inline__btn:hover { background: var(--wp--preset--color--primary, #2563eb); color: #fff; }
.gt-wa-inline__btn:hover svg { color: #fff; }
.gt-wa-inline__btn:focus-visible { outline: 3px solid var(--wp--preset--color--sky, #38bdf8); outline-offset: 2px; }
