/* Floating "Buy Portal" and "Chat" buttons rendered by Site.master on every page
   (except payment pages; see Site.master.cs). Copied from the homepage styles
   (style.css, refinements.css, portal-purchase.css, homepage-aio.css) so they look the
   same on pages that do not load those files. Colours have fallbacks for pages without
   the homepage CSS variables. The chat dialog rules are scoped to #chat-choice so other
   dialogs on a page are not affected. */

/* Chat button */
.chat-launch{position:fixed;bottom:max(16px,env(safe-area-inset-bottom));right:16px;z-index:30;display:flex;align-items:center;gap:7px;border:1px solid #fff;background:var(--green,#123f2b);color:#fff;border-radius:30px;padding:12px 17px;font:700 16px Manrope,sans-serif;box-shadow:0 2px 8px #223e2e30;cursor:pointer}
.chat-launch:active{filter:brightness(.94)}
@media (hover:hover) and (pointer:fine){.chat-launch:hover{background:#23533b}}
@media(max-width:600px){.chat-launch{width:48px;height:48px;padding:11px;justify-content:center;right:10px;bottom:10px}.chat-launch span{display:none}}

/* Chat dialog */
#chat-choice{border:1px solid #dfe5d8;border-radius:20px;padding:42px;width:min(560px,calc(100% - 32px));max-height:90vh;background:var(--ivory,#fcfaf5);color:var(--ink,#24252a);box-shadow:0 25px 80px #0003;font-family:Manrope,sans-serif}
#chat-choice::backdrop{background:#102d21aa;backdrop-filter:blur(5px)}
#chat-choice p{font-size:18px;line-height:1.65;color:var(--muted,#465047)}
#chat-choice .eyebrow{font-size:11px;font-weight:700;letter-spacing:.2em;color:var(--green,#123f2b);margin:0 0 23px}
#chat-choice .dialog-heading{font-family:'DM Serif Display',Georgia,serif;font-size:38px;font-weight:500;letter-spacing:-.055em;line-height:1.15;margin:0 0 18px;color:var(--ink,#24252a)}
#chat-choice .widget-close{position:absolute;top:12px;right:12px;border:0;background:none;font-size:28px;color:var(--green,#123f2b);width:44px;height:44px;cursor:pointer}
#chat-choice .chat-option{display:flex;align-items:center;gap:10px;width:100%;margin:10px 0;padding:14px 18px;border:1px solid #aabb9e;border-radius:12px;color:var(--green,#123f2b);background:#edf2e4;font:600 17px Manrope,sans-serif;text-align:left;text-decoration:none;cursor:pointer;box-sizing:border-box}
#chat-choice .chat-option:active{filter:brightness(.94)}
@media (hover:hover) and (pointer:fine){#chat-choice .chat-option:hover{background:#e0ebd3}}
#chat-choice #chat-status{font-size:16px;margin:16px 0 0}
@media(max-width:650px){#chat-choice{padding:32px 24px}#chat-choice .dialog-heading{font-size:32px}}

@keyframes chat-choice-entrance{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media (prefers-reduced-motion:no-preference){
  .chat-launch,#chat-choice .chat-option{transition:background-color 220ms ease,color 220ms ease,filter 200ms ease,transform 120ms ease}
  .chat-launch:active,#chat-choice .chat-option:active{transform:scale(.98)}
  #chat-choice[open]{animation:chat-choice-entrance 200ms ease-out both}
}

/* Buy Portal button (sits above the Chat button) */
.portal-buy-dock{position:fixed;right:24px;bottom:88px;z-index:45;display:flex;gap:8px;align-items:center;justify-content:center;min-height:48px;padding:11px 20px;border:2px solid #fff;border-radius:100px;background:#123e2b;color:#fff;font:700 15px Manrope,sans-serif;text-decoration:none;box-shadow:0 5px 22px #123e2b33}
.portal-buy-dock svg{width:18px;height:18px}
.portal-buy-dock:hover{background:#254e35;color:#fff}
.portal-buy-dock:focus-visible{outline:3px solid #63863c;outline-offset:4px}
.portal-buy-dock[hidden]{display:none!important}
.portal-buy-dock~footer{padding-bottom:90px}
@media(max-width:639px){.portal-buy-dock{right:16px;bottom:calc(78px + env(safe-area-inset-bottom,0px));min-height:44px;padding:9px 16px;font-size:14px}}
