.cafe-demo-trigger{display:block;width:100%;padding:0;border:0;border-radius:24px;background:transparent;cursor:pointer;box-shadow:0 16px 42px #284f7c17;transition:transform .2s,box-shadow .2s}
.cafe-demo-trigger:hover{transform:translateY(-3px);box-shadow:0 22px 48px #284f7c28}
.cafe-demo-trigger:focus-visible,.cafe-demo-dialog button:focus-visible,.cafe-demo-compose input:focus-visible{outline:3px solid #7952d7;outline-offset:3px}
.cafe-demo-overlay[hidden]{display:none}
.cafe-demo-overlay{position:fixed;inset:0;z-index:100;background:#10233bcc;display:grid;place-items:center;padding:18px;backdrop-filter:blur(5px)}
.cafe-demo-dialog{width:min(100%,430px);height:min(760px,calc(100dvh - 36px));display:flex;flex-direction:column;border:7px solid #14202d;border-radius:36px;overflow:hidden;background:#9db7d0;box-shadow:0 26px 90px #0006}
.cafe-demo-head{position:static;z-index:auto;height:83px;flex:none;display:flex;align-items:center;gap:12px;padding:13px 18px;background:#2D2E30;color:#fff;border:0;backdrop-filter:none}
.cafe-demo-head img,.cafe-demo-row img{display:block;flex:none;border-radius:50%;object-fit:cover}
.cafe-demo-head div{flex:1;min-width:0;line-height:1.35}.cafe-demo-head strong{display:block;font-size:16px}.cafe-demo-head small{display:block;font-size:11px;opacity:.75}
.cafe-demo-head button{border:0;background:#ffffffbd;color:#163326;border-radius:50%;width:34px;height:34px;font-size:24px;line-height:1;cursor:pointer}
.cafe-demo-head button.cafe-demo-clear{flex:none;width:auto;height:30px;padding:0 9px;border:1px solid #ffffff80;border-radius:10px;background:#ffffff18;color:#fff;font-size:11px;font-weight:700;line-height:1;white-space:nowrap}
.cafe-demo-head button.cafe-demo-clear:hover{background:#ffffff30}
.cafe-demo-messages{flex:1;min-height:0;overflow:auto;margin:7px 7px 5px;padding:10px;border-radius:14px;display:flex;flex-direction:column;gap:8px;background:#9db7d0}
.cafe-demo-date{align-self:center;border-radius:16px;background:#486b88;color:#fff;font-size:11px;padding:3px 12px}
.cafe-demo-row{display:flex;align-items:flex-end;gap:7px;max-width:86%}.cafe-demo-row p{margin:0;padding:10px 11px;border-radius:4px 15px 15px 15px;background:white;color:#1b3043;font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 1px 2px #1b304321}
.cafe-demo-row.mine{align-self:flex-end}.cafe-demo-row.mine p{background:#a9ec86;border-radius:15px 4px 15px 15px}
.cafe-demo-menu{display:grid;grid-template-columns:1fr 1fr;flex:none;background:#f9f7ee;border-top:1px solid #e5e1d5}.cafe-demo-menu button{height:90px;border:0;background:transparent;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;color:#513a27;cursor:pointer;font:inherit}.cafe-demo-menu button+button{border-left:1px solid #dfd8c8}.cafe-demo-menu button:hover{background:#eee8d9}.cafe-demo-menu span{font-size:25px;line-height:1}.cafe-demo-menu strong{font-size:15px}
.cafe-demo-compose{display:flex;align-items:center;gap:8px;padding:10px 12px 0;background:white}.cafe-demo-compose input{flex:1;min-width:0;border:0;border-radius:22px;padding:10px 14px;background:#edf1f6;font:inherit;font-size:13px;color:#203344}.cafe-demo-compose button{width:36px;height:36px;border:0;border-radius:50%;background:#06c755;color:#fff;cursor:pointer;font-size:17px}
body.cafe-demo-open{overflow:hidden}
@media(max-width:480px){.cafe-demo-overlay{padding:0}.cafe-demo-dialog{height:100dvh;width:100%;border:0;border-radius:0}.cafe-demo-menu button{height:76px}}
.cafe-demo-trigger[hidden],.cafe-demo-phone[hidden]{display:none}
.cafe-demo-phone{width:100%;aspect-ratio:1008/1560;display:flex;flex-direction:column;overflow:hidden;border:7px solid #14202d;border-radius:36px;background:#9db7d0;box-shadow:0 16px 42px #284f7c17}
.cafe-demo-phone .cafe-demo-head{height:68px;padding:9px 13px}
.cafe-demo-phone .cafe-demo-head strong{font-size:14px}
.cafe-demo-phone .cafe-demo-messages{margin:6px 6px 4px;padding:8px;gap:7px}
.cafe-demo-phone .cafe-demo-row{max-width:86%}
.cafe-demo-phone .cafe-demo-row p{font-size:12px;padding:8px 9px}
.cafe-demo-phone .cafe-demo-menu button{height:70px}
.cafe-demo-phone .cafe-demo-menu span{font-size:21px}
.cafe-demo-phone .cafe-demo-menu strong{font-size:13px}
.cafe-demo-phone .cafe-demo-compose{padding:7px 9px 0}
.cafe-demo-phone .cafe-demo-compose input{padding:8px 11px;font-size:12px}
@media(max-width:480px){.cafe-demo-phone{height:auto;width:100%;border:7px solid #14202d;border-radius:30px}.cafe-demo-phone .cafe-demo-menu button{height:70px}}
.maps-booking-visual .cafe-demo-trigger{position:absolute;inset:0;width:100%;height:100%;z-index:1;border:0;border-radius:0;background:transparent;box-shadow:none;cursor:pointer}
.maps-booking-visual .cafe-demo-trigger:hover{transform:none;box-shadow:none}
.maps-booking-visual .cafe-demo-trigger[hidden]{display:none}
.maps-booking-visual .cafe-demo-phone{position:absolute;top:8.3%;left:9.1%;width:81.8%;height:87.4%;aspect-ratio:auto;z-index:2;border:0;border-radius:0 0 40px 40px;box-shadow:none;background:#9db7d0}
.maps-booking-visual .cafe-demo-phone[hidden]{display:none}
.maps-booking-visual .cafe-demo-head{height:66px;padding:9px 10px;border-radius:0;gap:8px;color:#fff}
@media(max-width:480px){.maps-booking-visual .cafe-demo-phone{top:8.3%;left:9.1%;width:81.8%;height:87.4%;border:0;border-radius:0 0 32px 32px}}
.maps-booking-visual-wrap{width:100%;max-width:400px;justify-self:center;display:flex;flex-direction:column;align-items:center}
.maps-booking-visual-wrap .maps-booking-visual{width:100%}
.cafe-demo-cta{margin-top:14px;min-width:190px;min-height:46px;padding:10px 22px;border:0;border-radius:12px;background:transparent;display:inline-flex;align-items:center;justify-content:center;gap:12px;font:inherit;cursor:pointer;transition:transform .2s}
.cafe-demo-cta strong{font-size:16px;letter-spacing:.4px;background:linear-gradient(110deg,#079eae,#2868d4 54%,#7950d8,#079eae);background-size:250% 100%;background-clip:text;-webkit-background-clip:text;color:transparent;animation:cafe-cta-gradient 6s ease-in-out infinite}
.cafe-demo-cta:hover{transform:translateY(-2px)}
.cafe-demo-cta:focus-visible{outline:3px solid #7952d7;outline-offset:3px}
.cafe-demo-cta[hidden]{display:none}
@keyframes cafe-cta-gradient{0%,100%{background-position:0 50%}50%{background-position:100% 50%}}
@media(prefers-reduced-motion:reduce){.cafe-demo-cta strong{animation:none}}
/* 真的 AI 對話（web_demo.py）：系統說明、輸入中、LINE 卡片、圖文選單 */
.cafe-demo-sys{align-self:center;max-width:88%;text-align:center;font-size:11px;line-height:1.6;color:#2c4257;background:#ffffffde;border-radius:10px;padding:6px 10px}
.cafe-demo-sys a{color:#05a14b;font-weight:700;text-decoration:none}
.cafe-demo-card .line-flex{box-shadow:0 1px 2px #1b304321}
.cafe-demo-quick{display:flex;gap:6px;overflow-x:auto;flex:none;padding:2px 0;scrollbar-width:none}.cafe-demo-quick::-webkit-scrollbar{display:none}
.cafe-demo-quick button{flex:none;padding:6px 12px;border:1px solid #06c755;border-radius:999px;background:#fff;color:#06a35b;font:inherit;font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer}
.cafe-demo-row img.cafe-demo-pic{width:auto;max-width:200px;height:auto;border-radius:12px}
.cafe-demo-typing p{display:flex;gap:4px;align-items:center;padding:13px 14px}
.cafe-demo-typing i{width:6px;height:6px;border-radius:50%;background:#9aa8b6;animation:cafe-dot 1s infinite}
.cafe-demo-typing i:nth-child(1){background:#0bbfb0}.cafe-demo-typing i:nth-child(2){background:#2875ee;animation-delay:.15s}.cafe-demo-typing i:nth-child(3){background:#8945df;animation-delay:.3s}
@keyframes cafe-dot{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
.cafe-demo-menu.cafe-demo-richmenu{position:relative;display:block;padding:0;background:#fff}
.cafe-demo-richmenu img{display:block;width:100%;height:100%;object-fit:cover}
.cafe-demo-richmenu button{position:absolute;height:auto;padding:0;border:0!important;background:transparent;cursor:pointer}
.cafe-demo-richmenu button:hover{background:#ffffff26}
.cafe-demo-arrow{display:inline-flex;width:18px;height:24px;flex:none;color:#6970dd;opacity:.96;filter:drop-shadow(0 2px 4px #4569d455)}.cafe-demo-arrow svg{display:block;width:100%;height:100%;overflow:visible}.cafe-demo-arrow .arrow-track{fill:none;stroke:url(#cafeArrowLight);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 2px #5678dd50)}.cafe-demo-arrow .arrow-flow{fill:none;stroke:#fff;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:5 25;stroke-dashoffset:0;opacity:.92;animation:cafe-arrow-light 2.3s linear infinite}@keyframes cafe-arrow-light{from{stroke-dashoffset:30}to{stroke-dashoffset:0}}@media(prefers-reduced-motion:reduce){.cafe-demo-arrow .arrow-flow{animation:none;stroke-dasharray:none;opacity:0}}
.cafe-demo-menu.cafe-demo-menu-wait{visibility:hidden}
.maps-booking-visual .cafe-demo-phone{height:89.6%;border-radius:0 0 34px 34px}.maps-booking-visual .cafe-demo-phone .cafe-demo-compose{padding:7px 14px 10px}
@media(max-width:480px){.maps-booking-visual .cafe-demo-phone{height:89.6%;border-radius:0 0 28px 28px}.maps-booking-visual .cafe-demo-phone .cafe-demo-compose{padding:7px 12px 9px}}
.cafe-demo-video{background:#000}.cafe-demo-audio{width:220px;max-width:70%;height:40px}

/* 手機版：示範手機等比例放大，外框左右離螢幕 8px（圖的外框佔寬度 87.5%） */
@media (max-width:480px){.maps-booking{overflow-x:clip}.maps-booking-visual-wrap{justify-content:flex-start!important;align-items:flex-start}.maps-booking-visual-wrap .maps-booking-visual{width:calc((100vw - 16px) / .875);max-width:none;flex:none;margin-left:calc((100% - (100vw - 16px) / .875) / 2);margin-right:0}}
/* 示範手機的螢幕：照手機圖的螢幕範圍（x 94～910、下緣 1517，左下右下圓角半徑約 108，原圖 1008×1560），左下右下貼合外框 */
.maps-booking-visual .cafe-demo-phone{left:9.33%;width:80.95%;height:88.97%;border-radius:0 0 13.2% 13.2%/0 0 7.8% 7.8%}
