/* Guided chat assistant (2.6.9). */
.mkt-chat { position: fixed; right: 24px; bottom: 24px; z-index: 9990; font-family: Inter, sans-serif; }
.mkt-chat-toggle { width: 60px; height: 60px; border-radius: 50%; border: 0; background: #162241; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 10px 28px rgba(22,34,65,.32); transition: transform .2s, background .2s; margin-left: auto; }
.mkt-chat-toggle:hover { background: #866a33; transform: translateY(-2px); }
.mkt-chat-toggle:focus-visible { outline: 3px solid #b8975a; outline-offset: 3px; }
.mkt-chat-icon-close, .mkt-chat.is-open .mkt-chat-icon-open { display: none; }
.mkt-chat.is-open .mkt-chat-icon-close { display: block; }
.mkt-chat-panel { position: absolute; right: 0; bottom: 76px; width: 370px; max-height: min(600px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #fbfaf7; border: 1px solid #e4e2da; border-top: 3px solid #b8975a; box-shadow: 0 24px 60px rgba(22,34,65,.22); }
.mkt-chat-panel[hidden] { display: none; }
.mkt-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #162241; color: #fff; }
.mkt-chat-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #b8975a; }
.mkt-chat-head strong { display: block; font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; }
.mkt-chat-head span { display: block; font-size: 12.5px; color: #d4bd8a; margin-top: 2px; }
.mkt-chat-body { flex: 1; overflow-y: auto; padding: 16px 16px 6px; }
.mkt-chat-msg { background: #fff; border: 1px solid #e4e2da; padding: 11px 14px; font-size: 14.5px; line-height: 1.55; color: #2e3446; margin: 0 28px 10px 0; border-radius: 0 12px 12px 12px; }
.mkt-chat-msg--me { background: #162241; color: #fff; border-color: #162241; margin: 0 0 10px 48px; border-radius: 12px 0 12px 12px; }
.mkt-chat-opts { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 12px; }
.mkt-chat-opt { display: block; width: 100%; text-align: left; font: inherit; font-size: 14px; font-weight: 500; color: #162241; background: #fff; border: 1px solid #d9c49a; padding: 10px 14px; border-radius: 20px; cursor: pointer; text-decoration: none; line-height: 1.4; box-sizing: border-box; }
.mkt-chat-opt:hover { background: #f4efe3; }
.mkt-chat-opt:focus-visible { outline: 2px solid #866a33; outline-offset: 2px; }
.mkt-chat-opt--main { background: #866a33; border-color: #866a33; color: #fff; }
.mkt-chat-opt--main:hover { background: #6f5729; }
.mkt-chat-back { border-color: transparent; background: transparent; color: #676c7c; padding-left: 4px; }
.mkt-chat-back:hover { background: transparent; color: #162241; }
.mkt-chat-note { margin: 0; padding: 8px 16px 12px; font-size: 11.5px; line-height: 1.4; color: #676c7c; border-top: 1px solid #ece9e1; }
@media (max-width: 640px) {
  .mkt-chat { right: 14px; bottom: 14px; }
  .mkt-chat-toggle { width: 54px; height: 54px; }
  .mkt-chat-panel { position: fixed; left: 10px; right: 10px; bottom: 78px; width: auto; max-height: calc(100vh - 100px); }
}
@media print { .mkt-chat { display: none; } }

/* Animated chatbot feel (2.6.10): pulse, greeting pop-up, typing dots, replies that slide in. */
.mkt-chat-toggle { position: relative; }
.mkt-chat-toggle::after { content: ""; position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: #3fb27f; border: 2px solid #162241; }
.mkt-chat.is-open .mkt-chat-toggle::after { display: none; }
.mkt-chat:not(.is-open):not(.was-opened) .mkt-chat-toggle { animation: mkt-chat-pulse 2.6s ease-out 1.5s infinite; }
@keyframes mkt-chat-pulse { 0% { box-shadow: 0 10px 28px rgba(22,34,65,.32), 0 0 0 0 rgba(184,151,90,.55); } 70% { box-shadow: 0 10px 28px rgba(22,34,65,.32), 0 0 0 16px rgba(184,151,90,0); } 100% { box-shadow: 0 10px 28px rgba(22,34,65,.32), 0 0 0 0 rgba(184,151,90,0); } }
.mkt-chat-icon-open { animation: mkt-chat-wiggle 6s ease-in-out 3s infinite; transform-origin: 50% 80%; }
@keyframes mkt-chat-wiggle { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-12deg); } 94% { transform: rotate(10deg); } 97% { transform: rotate(-6deg); } }
.mkt-chat-online { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3fb27f; margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(63,178,127,.6); animation: mkt-chat-online 2s infinite; }
@keyframes mkt-chat-online { 70% { box-shadow: 0 0 0 6px rgba(63,178,127,0); } 100% { box-shadow: 0 0 0 0 rgba(63,178,127,0); } }

.mkt-chat-teaser { position: absolute; right: 0; bottom: 74px; display: flex; align-items: flex-start; gap: 4px; width: max-content; max-width: 250px; background: #fff; border: 1px solid #e4e2da; border-radius: 14px 14px 2px 14px; box-shadow: 0 12px 30px rgba(22,34,65,.18); padding: 4px 4px 4px 0; animation: mkt-chat-pop .45s cubic-bezier(.2,1.4,.4,1) both; }
.mkt-chat-teaser[hidden] { display: none; }
.mkt-chat-teaser-open { background: none; border: 0; font: inherit; font-size: 14px; line-height: 1.45; color: #162241; text-align: left; padding: 8px 0 8px 14px; cursor: pointer; }
.mkt-chat-teaser-x { background: none; border: 0; color: #8b90a0; font-size: 18px; line-height: 1; padding: 4px 6px; cursor: pointer; }
.mkt-chat-teaser-x:hover { color: #162241; }

.mkt-chat-panel:not([hidden]) { animation: mkt-chat-open .28s cubic-bezier(.2,.9,.3,1.15) both; transform-origin: 100% 100%; }
@keyframes mkt-chat-open { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes mkt-chat-pop { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }

/* Replies from Manoj carry his photo. */
.mkt-chat-msg:not(.mkt-chat-msg--me) { position: relative; margin-left: 38px; }
.mkt-chat-msg:not(.mkt-chat-msg--me)::before { content: ""; position: absolute; left: -38px; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--mkt-chat-avatar) center / cover #e4e2da; border: 1.5px solid #d9c49a; }
.mkt-chat-msg + .mkt-chat-msg:not(.mkt-chat-msg--me)::before { visibility: hidden; }
.mkt-chat-msg--me + .mkt-chat-msg:not(.mkt-chat-msg--me)::before { visibility: visible; }
.mkt-chat-opts { margin-left: 38px; }

.mkt-chat-typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.mkt-chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: #b8975a; animation: mkt-chat-dot 1s infinite ease-in-out; }
.mkt-chat-typing i:nth-child(2) { animation-delay: .15s; }
.mkt-chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes mkt-chat-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }

.mkt-chat-in { animation: mkt-chat-in .32s ease-out both; }
.mkt-chat-msg--me.mkt-chat-in { animation-name: mkt-chat-in-me; }
@keyframes mkt-chat-in { from { opacity: 0; transform: translate(-10px, 6px); } to { opacity: 1; transform: none; } }
@keyframes mkt-chat-in-me { from { opacity: 0; transform: translate(10px, 6px); } to { opacity: 1; transform: none; } }
.mkt-chat-wait { display: none !important; }

@media (max-width: 640px) { .mkt-chat-teaser { bottom: 66px; max-width: 220px; } }
@media (prefers-reduced-motion: reduce) {
  .mkt-chat-toggle, .mkt-chat-icon-open, .mkt-chat-online, .mkt-chat-teaser, .mkt-chat-panel:not([hidden]), .mkt-chat-in, .mkt-chat-typing i { animation: none !important; }
}
