.recipe-chat-widget{--chat-accent:#dd4820;position:fixed;right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));z-index:80;font-family:inherit;line-height:1.5;color:#202723}
.recipe-chat-widget [hidden]{display:none!important}
.recipe-chat-launcher{display:flex;align-items:center;justify-content:center;gap:10px;min-height:58px;padding:0 23px;background:var(--chat-accent);color:#fff;border:1px solid #c93d19;border-radius:99px;box-shadow:0 6px 20px #8a36192b;font-size:16px;font-weight:650;text-decoration:none;transition:transform .16s,box-shadow .16s}
.recipe-chat-launcher:hover{transform:translateY(-2px);box-shadow:0 9px 25px #8a361938;background:#ca3b16;color:#fff}
.recipe-chat-launcher svg{width:23px;height:23px;flex-shrink:0}
.recipe-chat-panel{width:440px;height:min(740px,calc(100dvh - 48px));display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #e1e5df;border-radius:22px;box-shadow:0 16px 64px #20302024,0 3px 12px #20302014;animation:chat-panel-enter .18s ease-out}
.recipe-chat-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px 15px 20px;background:#fff;border-bottom:1px solid #e9ece6;flex-shrink:0}
.recipe-chat-heading{display:flex;align-items:center;gap:10px;min-width:0}
.recipe-chat-heading>svg{width:22px;height:22px;color:var(--chat-accent);flex-shrink:0}
.recipe-chat-heading h2{font-size:16px;line-height:1.5;margin:0;font-weight:700;letter-spacing:0}
.recipe-chat-heading p{font-size:12px;line-height:1.5;color:#6c756b;margin:3px 0 0}
.recipe-chat-close{width:44px;height:44px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border:0;border-radius:12px;background:#f3f5f0;color:#53614b;cursor:pointer}
.recipe-chat-close:hover{background:#e8ede3}
.recipe-chat-close svg{width:20px;height:20px}
.recipe-chat-frame-wrap{position:relative;flex:1;min-height:0}
.recipe-chat-frame{display:block;width:100%;height:100%;border:0;background:#fff}
.recipe-chat-loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;padding:24px;background:#fff;color:#63715a;font-size:14px}
.recipe-chat-loading p{margin:0}
.recipe-chat-loading a,.recipe-chat-loading button{font-size:14px;color:#ac3918;text-decoration:underline;background:none;border:0;cursor:pointer;padding:8px}
.recipe-chat-spinner{width:24px;height:24px;border:2px solid #f4dfd5;border-top-color:var(--chat-accent);border-radius:50%;animation:chat-spinner .8s linear infinite}
.recipe-chat-notice:empty{display:none}
.recipe-chat-notice{margin:0;padding:8px 18px;font-size:13px;background:#fff2e9;color:#86522f;flex-shrink:0}
.recipe-chat-widget :is(a,button):focus-visible,.recipe-step-chat:focus-visible{outline:3px solid #dd704a;outline-offset:3px}
.recipe-step-chat{display:inline-flex;align-items:center;gap:7px;margin-top:12px;padding:9px 12px;min-height:44px;color:#b43d1b;border:1px solid #edd7cb;border-radius:10px;background:#fffaf7;font:inherit;font-size:14px;text-decoration:none;cursor:pointer}
.recipe-step-chat:hover{background:#fff0e5;border-color:#dcb39f}
.recipe-step-chat svg{width:16px;height:16px}
.chat-entry-link{color:#c43d1a}
body:has(.recipe-chat-widget){padding-bottom:90px}
@keyframes chat-panel-enter{from{transform:translateY(12px);opacity:0}to{transform:translateY(0);opacity:1}}
@keyframes chat-spinner{to{transform:rotate(360deg)}}
@media(max-width:600px){
 .recipe-chat-widget{right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom))}
 .recipe-chat-launcher{min-height:54px;padding:0 19px;font-size:15px}
 .recipe-chat-widget[data-open="true"]{right:0;bottom:0;left:0}
 .recipe-chat-panel{width:100%;height:min(790px,88dvh);border-radius:22px 22px 0 0;border-bottom:0;box-shadow:0 -8px 45px #20302024}
 .recipe-chat-top{padding:10px 12px 10px 17px}
 .recipe-chat-heading p{display:none}
 .recipe-chat-notice{padding:7px 16px}
}
@media(prefers-reduced-motion:reduce){.recipe-chat-panel,.recipe-chat-spinner{animation:none}.recipe-chat-launcher{transition:none}}
@media print{.recipe-chat-widget,.recipe-step-chat,.chat-entry-link{display:none!important}body:has(.recipe-chat-widget){padding-bottom:0}}
