.ai-subtitle { margin-top: .85rem; color: #0b1c30; font-size: clamp(1.25rem, 2.1vw, 1.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.ai-description { margin-top: 1.25rem; max-width: 34rem; color: #45464d; line-height: 1.7; }
.ai-benefits { display: grid; gap: .8rem; margin-top: 1.75rem; }
.ai-benefits li { display: flex; align-items: flex-start; gap: .65rem; color: #0b1c30; font-weight: 600; line-height: 1.5; }
.ai-benefits .material-symbols-outlined { flex: none; color: #df5902; font-size: 1.4rem; font-variation-settings: "FILL" 1, "wght" 500; }

.ai-stage { display: grid; justify-items: center; gap: .9rem; }
.ai-phone { --ai-head: #075e54; --ai-chat: #efeae2; --ai-out: #d9fdd3; display: flex; flex-direction: column; overflow: hidden; width: min(100%, 340px); height: 660px; border: 10px solid #131b2e; border-radius: 44px; background: var(--ai-chat); box-shadow: 0 28px 80px rgba(15, 23, 42, .14); }
.ai-phone-head { display: flex; align-items: center; gap: .6rem; padding: 1.15rem .9rem .7rem; background: var(--ai-head); color: #fff; }
.ai-avatar { display: grid; flex: none; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: 9999px; background: #df5902; }
.ai-avatar img { width: 1.55rem; height: auto; }
.ai-contact { display: grid; line-height: 1.2; }
.ai-contact strong { font-size: .95rem; font-weight: 700; }
.ai-contact span { color: rgba(255, 255, 255, .8); font-size: .72rem; }

.ai-chat-view { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: .75rem .65rem; overscroll-behavior: contain; scrollbar-width: none; }
.ai-chat-view::-webkit-scrollbar { display: none; }
.ai-chat-view:focus-visible { outline: 2px solid #df5902; outline-offset: -2px; }
.ai-chat { display: flex; flex-direction: column; gap: .4rem; }
.ai-msg { display: flex; }
.ai-msg.is-hidden { display: none; }
.ai-msg-out { justify-content: flex-end; }
.ai-bubble { position: relative; max-width: 86%; padding: .42rem .6rem .3rem; border-radius: .7rem; background: #fff; color: #0b1c30; font-size: .84rem; line-height: 1.38; box-shadow: 0 1px 1px rgba(11, 28, 48, .1); }
.ai-msg-in .ai-bubble { border-top-left-radius: .15rem; }
.ai-msg-out .ai-bubble { border-top-right-radius: .15rem; background: var(--ai-out); }
.ai-bubble-wide { width: 100%; max-width: 92%; }
.ai-time { display: block; margin-top: .1rem; color: #667781; font-size: .62rem; text-align: right; }

.ai-products { display: grid; gap: .4rem; margin-top: .4rem; }
.ai-product { display: flex; align-items: center; gap: .55rem; padding: .3rem; border: 1px solid #e5eeff; border-radius: .55rem; }
.ai-product svg { flex: none; width: 2.9rem; height: 2.9rem; border-radius: .45rem; background: #fff3e4; }
.ai-product strong { display: block; font-size: .8rem; font-weight: 700; line-height: 1.25; }
.ai-product span { color: #df5902; font-size: .78rem; font-weight: 700; }

.ai-summary { margin-top: .3rem; }
.ai-summary div { display: flex; justify-content: space-between; gap: .5rem; padding: .18rem 0; }
.ai-summary-total { margin-top: .2rem; border-top: 1px solid #e5eeff; padding-top: .35rem !important; font-weight: 800; }

.ai-pay { display: block; margin-top: .4rem; padding: .55rem .6rem; border-radius: .55rem; background: #009ee3; color: #fff; font-size: .8rem; font-weight: 700; text-align: center; transition: background .25s ease, transform .2s ease; }
.ai-pay-busy, .ai-pay-done { display: none; }
.ai-pay.is-pressed { background: #0077b0; transform: scale(.97); }
.ai-pay.is-pressed .ai-pay-idle { display: none; }
.ai-pay.is-pressed .ai-pay-busy { display: inline; }
.ai-pay.is-done { background: #e5eeff; color: #45464d; }
.ai-pay.is-done .ai-pay-idle { display: none; }
.ai-pay.is-done .ai-pay-done { display: inline; }
.ai-approved { display: flex; align-items: center; gap: .5rem; }
.ai-approved .material-symbols-outlined { color: #1a8f4c; font-size: 1.7rem; font-variation-settings: "FILL" 1, "wght" 500; }
.ai-approved strong { display: block; font-weight: 800; line-height: 1.25; }
.ai-approved small { color: #667781; font-size: .72rem; }

.ai-typing { display: none; width: fit-content; margin-top: .4rem; padding: .55rem .7rem; border-radius: .7rem; border-top-left-radius: .15rem; background: #fff; box-shadow: 0 1px 1px rgba(11, 28, 48, .1); }
.ai-typing.is-visible { display: flex; gap: .22rem; }
.ai-typing span { width: .4rem; height: .4rem; border-radius: 9999px; background: #8696a0; }

.ai-phone-input { display: flex; align-items: center; gap: .45rem; padding: .5rem .6rem .8rem; }
.ai-phone-input > span:first-child { flex: 1 1 auto; padding: .45rem .8rem; border-radius: 9999px; background: #fff; color: #667781; font-size: .78rem; }
.ai-phone-send { display: grid; flex: none; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 9999px; background: var(--ai-head); color: #fff; }
.ai-phone-send .material-symbols-outlined { font-size: 1.15rem; }

.ai-footer { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; color: #45464d; font-size: .8rem; }
.ai-control { display: none; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid #c6c6cd; border-radius: 9999px; background: #fff; color: #0b1c30; transition: border-color .2s ease, color .2s ease; }
.ai-stage.is-animated .ai-control { display: grid; }
.ai-control:hover { border-color: #df5902; color: #df5902; }
.ai-control:focus-visible { outline: 2px solid #df5902; outline-offset: 2px; }
.ai-control .material-symbols-outlined { font-size: 1.25rem; }

.ai-sr { position: absolute; overflow: hidden; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 480px) {
  .ai-phone { height: 600px; }
}

@media (prefers-reduced-motion: no-preference) {
  .ai-stage.is-animated .ai-msg:not(.is-hidden) { animation: ai-in .32s ease both; }
  .ai-typing.is-visible { animation: ai-in .2s ease both; }
  .ai-typing span { animation: ai-dot 1.1s ease-in-out infinite; }
  .ai-typing span:nth-child(2) { animation-delay: .15s; }
  .ai-typing span:nth-child(3) { animation-delay: .3s; }
  @keyframes ai-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes ai-dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
}
