/* Akum Engage: uses the Akum theme's tokens when present, with fallbacks. */
.ae-sr, .ae-hp { position: absolute !important; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ae-form, .ae-form__row, .ae-chat__form { position: relative; }
.ae-lock { overflow: hidden; }

/* ---------- Newsletter form ---------- */
.ae-form { display: grid; gap: .5rem; width: 100%; }
.ae-form__row { display: flex; background: #fff; border-radius: 999px; overflow: hidden; border: 1px solid rgba(30, 26, 22, .15); }
.ae-form__row[hidden] { display: none; }
.ae-form input[type="email"] { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; padding: 0 1.2rem !important; min-height: 50px; font: inherit; color: #1E1A16; box-shadow: none !important; outline: none; }
.ae-form button[type="submit"] { border: 0; background: var(--kasaya, #6B1D24); color: #FBF8F2; padding: 0 1.4rem; font: 700 .78rem/1 var(--f-body, sans-serif); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.ae-form button[type="submit"]:hover { background: var(--kasaya-deep, #4E1419); }
.ae-form button[disabled] { opacity: .6; }
.ae-form__msg { margin: 0; min-height: 1.2em; font-size: .85rem; }
.ae-form__msg.is-error { color: #F29C94; }
.ae-form__msg.is-ok { font-weight: 600; }
.ae-code { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; border: 2px dashed var(--gold, #B38A3D); border-radius: 6px; background: rgba(179, 138, 61, .1); }
.ae-code[hidden] { display: none; }
.ae-code__label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.ae-code__value { font-size: 1.3rem; letter-spacing: .08em; }
.ae-code__copy { margin-left: auto; border: 0; border-radius: 4px; padding: .45rem .8rem; background: var(--gold, #B38A3D); color: #17130F; font-weight: 700; cursor: pointer; }
.ae-code__note { margin: 0; font-size: .82rem; opacity: .85; }

/* ---------- Modal ---------- */
.ae-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1rem; }
.ae-modal[hidden] { display: none; }
.ae-modal__scrim { position: absolute; inset: 0; background: rgba(23, 19, 15, .6); animation: ae-fade .25s; }
.ae-modal__panel { position: relative; display: grid; grid-template-columns: 220px 1fr; width: min(760px, 100%); background: var(--lokta, #F3ECE0); color: var(--ink, #1E1A16); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); animation: ae-rise .35s cubic-bezier(.2, .7, .2, 1); overflow: hidden; }
.ae-modal__art { position: relative; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #8a2a31, var(--kasaya, #6B1D24) 60%, var(--kasaya-deep, #4E1419)); color: #FBF8F2; }
.ae-modal__art::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(217, 191, 134, .5); }
.ae-modal__pct { display: grid; justify-items: center; font-size: 4.2rem; font-weight: 700; line-height: .9; color: var(--gold-soft, #D9BF86); }
.ae-modal__pct small { font-size: 1.2rem; letter-spacing: .4em; margin: .4rem -.4em 0 0; color: #FBF8F2; }
.ae-modal__body { padding: 2.25rem 2rem 1.75rem; display: grid; gap: .75rem; }
.ae-modal__kicker { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text, #85652A); }
.ae-modal__body h2 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; }
.ae-modal__text { margin: 0 0 .5rem; color: var(--ink-2, #3A332C); }
.ae-modal__fine { margin: 0; font-size: .75rem; color: var(--smoke, #6A6158); }
.ae-modal__no { justify-self: start; border: 0; background: none; padding: 0; color: var(--smoke, #6A6158); text-decoration: underline; cursor: pointer; font-size: .82rem; }
.ae-modal .ae-form__msg.is-error { color: #B3261E; }
.ae-x { position: absolute; top: .5rem; right: .6rem; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(30, 26, 22, .06); color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.ae-x:hover { background: rgba(30, 26, 22, .12); }
@media (max-width: 640px) {
	.ae-modal { align-items: end; padding: 0; }
	.ae-modal__panel { grid-template-columns: 1fr; border-radius: 14px 14px 0 0; }
	.ae-modal__art { height: 110px; }
	.ae-modal__pct { font-size: 2.8rem; grid-auto-flow: column; align-items: end; gap: .5rem; }
	.ae-modal__pct small { margin: 0 0 .35rem; }
	.ae-modal__body { padding: 1.5rem 1.25rem 1.25rem; }
}
@keyframes ae-fade { from { opacity: 0; } }
@keyframes ae-rise { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Left ribbon ---------- */
.ae-ribbon { position: fixed; left: 0; top: 50%; z-index: 900; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; animation: ae-slide .5s .8s both cubic-bezier(.2, .7, .2, 1); }
.ae-ribbon[hidden] { display: none; }
.ae-ribbon__btn { writing-mode: vertical-rl; transform: rotate(180deg); border: 0; padding: 1.1rem .6rem; background: var(--kasaya, #6B1D24); color: #FBF8F2; font: 700 .82rem/1 var(--f-body, sans-serif); letter-spacing: .14em; text-transform: uppercase; border-radius: 6px 0 0 6px; box-shadow: 4px 0 18px -6px rgba(0, 0, 0, .4); cursor: pointer; }
.ae-ribbon__btn:hover { background: var(--kasaya-deep, #4E1419); }
.ae-ribbon__x { order: -1; width: 24px; height: 24px; margin-bottom: 4px; border: 0; border-radius: 50%; background: var(--ink, #1E1A16); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
@keyframes ae-slide { from { transform: translate(-100%, -50%); } }
@media (max-width: 1023px) {
	/* Phones/tablets: a small pill above the bottom bar instead of a vertical tab. */
	.ae-ribbon { top: auto; left: 10px; bottom: calc(var(--tabbar-h, 0px) + 12px); transform: none; flex-direction: row; align-items: center; animation-name: ae-slide-m; transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .35s; }
	.ae-ribbon.is-tucked { transform: translateX(calc(-100% - 14px)); opacity: 0; pointer-events: none; }
	.ae-ribbon__btn { writing-mode: horizontal-tb; transform: none; padding: .55rem .95rem .55rem .85rem; font-size: .72rem; letter-spacing: .1em; border-radius: 999px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .45); }
	.ae-ribbon__btn::before { content: "🎁 "; }
	.ae-ribbon__x { order: 2; width: 24px; height: 24px; margin: 0 0 0 -8px; font-size: 13px; box-shadow: 0 0 0 2px #fff; }
}
@keyframes ae-slide-m { from { transform: translateX(-100%); } }

/* ---------- Chat launcher badge ---------- */
.chat-float, [data-akum-chat] { position: relative; }
.ae-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #D93025; color: #fff; font: 700 11px/20px var(--f-body, sans-serif); text-align: center; box-shadow: 0 0 0 2px #fff; }
.ae-chat-open .chat-float { opacity: 0; pointer-events: none; }

/* ---------- Chat widget ---------- */
.ae-chat { position: fixed; right: 1rem; bottom: 1rem; z-index: 950; display: flex; flex-direction: column; width: 380px; height: min(620px, calc(100vh - 2rem)); background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(23, 19, 15, .55), 0 0 0 1px rgba(30, 26, 22, .08); font-family: var(--f-body, sans-serif); animation: ae-rise .3s cubic-bezier(.2, .7, .2, 1); }
.ae-chat[hidden] { display: none; }
.ae-chat__head { position: relative; display: flex; align-items: center; padding: 1rem 3rem 1rem 1rem; background: var(--kasaya, #6B1D24); color: #FBF8F2; }
.ae-chat__who { display: flex; align-items: center; gap: .7rem; }
.ae-chat__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold, #B38A3D); color: #17130F; font-weight: 700; font-size: 1.1rem; }
.ae-chat__who strong { display: block; font-size: 1rem; }
.ae-chat__status { display: flex; align-items: center; gap: .35rem; font-size: .75rem; opacity: .85; }
.ae-chat__status.is-online::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5BD68A; }
.ae-x--light { top: 50%; transform: translateY(-50%); color: #FBF8F2; background: rgba(255, 255, 255, .12); }
.ae-x--light:hover { background: rgba(255, 255, 255, .25); }
.ae-chat__body { flex: 1; overflow-y: auto; padding: 1rem; background: var(--lokta, #F3ECE0); display: flex; flex-direction: column; gap: .5rem; }
.ae-msg { max-width: 82%; }
.ae-msg p { margin: 0; padding: .6rem .8rem; border-radius: 14px; font-size: .9rem; line-height: 1.45; word-wrap: break-word; }
.ae-msg time { display: block; margin-top: 2px; font-size: .68rem; color: var(--smoke, #6A6158); }
.ae-msg--visitor { align-self: flex-end; text-align: right; }
.ae-msg--visitor p { background: var(--kasaya, #6B1D24); color: #FBF8F2; border-bottom-right-radius: 4px; text-align: left; }
.ae-msg--agent, .ae-msg--system { align-self: flex-start; }
.ae-msg--agent p, .ae-msg--system p { background: #fff; color: var(--ink, #1E1A16); border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.ae-msg--product { align-self: stretch; max-width: none; }
.ae-prod { display: flex; gap: .7rem; align-items: center; padding: .55rem; background: #fff; border: 1px solid var(--line, #DDD3C4); border-radius: 10px; text-decoration: none; color: var(--ink, #1E1A16); }
.ae-prod img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; flex: none; }
.ae-prod small { display: block; font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text, #85652A); }
.ae-prod strong { display: block; font-size: .88rem; line-height: 1.25; }
.ae-prod em { font-style: normal; font-size: .78rem; color: var(--smoke, #6A6158); }
.ae-pending { opacity: .85; }
.ae-chat__quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem 1rem 0; background: var(--lokta, #F3ECE0); }
.ae-chat__quick[hidden] { display: none; }
.ae-chat__quick button { border: 1px solid var(--kasaya, #6B1D24); background: #fff; color: var(--kasaya, #6B1D24); border-radius: 999px; padding: .4rem .8rem; font-size: .78rem; font-weight: 600; cursor: pointer; }
.ae-chat__quick button:hover { background: var(--kasaya, #6B1D24); color: #fff; }
.ae-chat__email { padding: .75rem 1rem; background: #FFF7EC; border-top: 1px solid #F0DDBF; font-size: .82rem; }
.ae-chat__email[hidden] { display: none; }
.ae-chat__email p { margin: 0 0 .4rem; }
.ae-chat__email div { display: flex; gap: .4rem; }
.ae-chat__email input { flex: 1; min-width: 0; min-height: 38px; padding: 0 .7rem; border: 1px solid var(--line-2, #CBBFAE); border-radius: 6px; }
.ae-chat__email button { border: 0; border-radius: 6px; padding: 0 .9rem; background: var(--ink, #1E1A16); color: #fff; font-weight: 600; cursor: pointer; }
.ae-chat__form { display: flex; align-items: flex-end; gap: .5rem; padding: .7rem .75rem; border-top: 1px solid var(--line, #DDD3C4); background: #fff; }
.ae-chat__form textarea { flex: 1; min-height: 42px; max-height: 120px; resize: none; padding: .6rem .75rem; border: 1px solid var(--line-2, #CBBFAE); border-radius: 10px; font: inherit; font-size: .92rem; background: var(--rice, #FBF8F2); }
.ae-chat__form textarea:focus { outline: none; border-color: var(--kasaya, #6B1D24); }
.ae-chat__form button { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--kasaya, #6B1D24); color: #fff; font-size: 1rem; cursor: pointer; }
.ae-chat__wa { display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem; background: #F0FAF4; color: #1A7A43; font-size: .82rem; font-weight: 700; text-decoration: none; border-top: 1px solid #D6EFE0; }
.ae-chat__wa:hover { background: #E1F5E9; color: #146336; }
@media (max-width: 599px) {
	.ae-chat { inset: 0; width: 100%; height: 100%; border-radius: 0; }
}

/* Keep the offer out of the way while a drawer, the chat or a modal is open. */
body.is-locked .ae-ribbon, .ae-chat-open .ae-ribbon, .ae-lock .ae-ribbon { display: none; }
