/* London Baby 2026 - Ask Chat mobile functional compact final
   Purpose: fix mobile controls, reduce quick action size, restore input/new/close interaction. */
:root{
  --lb-navy:#071326;
  --lb-muted:#667186;
  --lb-baby-gold:#c99a2e;
  --lb-glass-gold:rgba(201,154,46,.64);
}

html body .ask-chat-backdrop:not([hidden]){
  pointer-events:auto!important;
  touch-action:pan-y!important;
}
html body .ask-chat-panel,
html body .ask-chat-header,
html body .ask-chat-body,
html body .ask-chat-form,
html body .ask-chat-prompt-dock{
  pointer-events:auto!important;
}

/* Keep header actions actually tappable on iPhone. */
html body .ask-chat-header-actions{
  z-index:2147482600!important;
  pointer-events:auto!important;
  align-self:center!important;
}
html body .ask-chat-new,
html body .ask-chat-close{
  z-index:2147482601!important;
  pointer-events:auto!important;
  touch-action:manipulation!important;
  user-select:none!important;
  -webkit-user-select:none!important;
  -webkit-tap-highlight-color:transparent!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  line-height:1!important;
  padding:0!important;
}
html body .ask-chat-new{
  font-size:clamp(24px,6.2vw,32px)!important;
  font-weight:950!important;
  letter-spacing:-.03em!important;
}
html body .ask-chat-close{
  font-size:clamp(54px,13vw,68px)!important;
  font-weight:650!important;
  padding-bottom:.06em!important;
}

/* Compact mobile quick actions, still styled after the main header action buttons. */
html body .ask-chat-prompt-dock{
  width:calc(100% - 56px)!important;
  max-width:760px!important;
  margin:0 auto!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  padding:12px 0 14px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
html body .ask-chat-prompt-dock .ask-chat-quick-card{
  min-height:76px!important;
  height:76px!important;
  padding:9px 8px!important;
  border-radius:22px!important;
  gap:5px!important;
  display:grid!important;
  grid-template-rows:auto auto!important;
  place-items:center!important;
  align-content:center!important;
  justify-content:center!important;
  border:1.25px solid var(--lb-glass-gold)!important;
  background:
    radial-gradient(circle at 50% 0%,rgba(255,255,255,.96),rgba(255,255,255,0) 44%),
    linear-gradient(180deg,rgba(255,255,255,.90),rgba(230,239,247,.75))!important;
  color:var(--lb-navy)!important;
  box-shadow:0 10px 22px rgba(43,61,82,.08),inset 0 1px 0 rgba(255,255,255,.96)!important;
}
html body .ask-chat-prompt-dock .ask-chat-quick-icon{
  width:30px!important;
  height:30px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:999px!important;
  background:radial-gradient(circle at 50% 25%,rgba(255,255,255,.98),rgba(230,238,246,.76))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 5px 10px rgba(43,61,82,.08)!important;
  color:var(--lb-navy)!important;
}
html body .ask-chat-prompt-dock .ask-chat-quick-icon svg{
  width:17px!important;
  height:17px!important;
  display:block!important;
  stroke:currentColor!important;
  stroke-width:2.3!important;
  fill:none!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
html body .ask-chat-prompt-dock .ask-chat-quick-label{
  display:block!important;
  max-width:100%!important;
  color:var(--lb-navy)!important;
  font-size:clamp(9px,2.55vw,12px)!important;
  font-weight:950!important;
  letter-spacing:.055em!important;
  line-height:1.02!important;
  text-transform:uppercase!important;
  text-align:center!important;
  white-space:normal!important;
}

/* Restore working input field and make the dock tappable above Safari chrome. */
html body .ask-chat-form{
  z-index:2147482550!important;
  pointer-events:auto!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:10px!important;
  padding:12px 26px calc(12px + env(safe-area-inset-bottom))!important;
}
html body .ask-chat-form textarea,
html body #askChatInput{
  pointer-events:auto!important;
  -webkit-user-select:text!important;
  user-select:text!important;
  touch-action:manipulation!important;
  opacity:1!important;
  min-height:56px!important;
  max-height:108px!important;
  font-size:clamp(18px,4.6vw,22px)!important;
  color:var(--lb-navy)!important;
  caret-color:#2b7cff!important;
  background:rgba(255,255,255,.9)!important;
  position:relative!important;
  z-index:2147482551!important;
}
html body .ask-chat-form textarea::placeholder{color:rgba(7,19,38,.35)!important;}
html body .ask-chat-form button,
html body #askChatSend{
  pointer-events:auto!important;
  min-width:86px!important;
  min-height:56px!important;
  height:56px!important;
  border-radius:24px!important;
  position:relative!important;
  z-index:2147482551!important;
}
html body .ask-chat-form button:disabled,
html body #askChatSend:disabled{
  opacity:.62!important;
}

/* Prevent the old floating/generated extra prompt from reappearing near the Send button. */
html body .ask-chat-form + .ask-chat-prompts,
html body .ask-chat-form ~ .ask-chat-prompts,
html body .ask-chat-form + .ask-chat-prompt-dock{
  display:none!important;
}

@media (max-width:430px){
  html body .ask-chat-header{
    padding-left:20px!important;
    padding-right:20px!important;
    gap:12px!important;
  }
  html body .ask-chat-new,
  html body .ask-chat-close{
    width:74px!important;
    height:74px!important;
    min-width:74px!important;
    min-height:74px!important;
  }
  html body .ask-chat-prompt-dock{
    width:calc(100% - 48px)!important;
    gap:9px!important;
  }
  html body .ask-chat-prompt-dock .ask-chat-quick-card{
    height:72px!important;
    min-height:72px!important;
    border-radius:20px!important;
  }
}

@media (max-width:380px){
  html body .ask-chat-new,
  html body .ask-chat-close{
    width:66px!important;
    height:66px!important;
    min-width:66px!important;
    min-height:66px!important;
  }
  html body .ask-chat-prompt-dock .ask-chat-quick-card{
    height:68px!important;
    min-height:68px!important;
    padding:7px 6px!important;
  }
  html body .ask-chat-prompt-dock .ask-chat-quick-icon{
    width:27px!important;
    height:27px!important;
  }
}
