/* Colors and layout for the Our Healing Room wellness coach. */
#ina-coach-launcher {
  position: fixed;
  z-index: 20;
  inset: auto var(--ina-coach-right, max(1rem, env(safe-area-inset-right))) var(--ina-coach-bottom, max(1rem, env(safe-area-inset-bottom))) auto;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  box-sizing: border-box;
  max-width: calc(100vw - 2rem);
  min-height: 56px;
  width: max-content;
  margin: 0;
  padding: .48rem 1.1rem .52rem;
  border: 1px solid #819a81;
  border-radius: 1.05rem 1.05rem .42rem 1.05rem;
  color: #253d35;
  background: linear-gradient(145deg, #edf5e9, #c5dcc5);
  box-shadow: inset 0 1px 0 #f4faef, 0 4px 14px #29362b25;
  text-align: left;
  text-decoration: none;
  font: 400 16px/1.2 system-ui, sans-serif;
  letter-spacing: normal;
}
#ina-coach-launcher strong { color: inherit; font: 600 1.12em/1.1 Georgia, serif; }
#ina-coach-launcher small { color: #394e40; font: 500 .76em/1.2 system-ui, sans-serif; }
#ina-coach-launcher:hover { color: #1d3b2c; background: linear-gradient(145deg, #f5f9f1, #d2e5cc); }
#ina-coach-launcher:focus-visible { outline: 3px solid #27483e; outline-offset: 2px; box-shadow: 0 0 0 7px #f5fbef; }
#ina-coach-launcher[hidden], .coach-embedded #ina-coach-launcher { display: none; }
@media (prefers-reduced-motion: no-preference) {
  #ina-coach-launcher:not(:hover):not(:focus-visible) { animation: ina-coach-arrive 2.8s ease-in-out 1; }
  @keyframes ina-coach-arrive {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
  }
}

html.ina-coach-open { overflow: hidden; }
#ina-coach-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) auto;
  width: min(28rem, calc(100vw - 2rem));
  height: min(43rem, calc(100vh - 2rem));
  height: min(43rem, calc(100dvh - 2rem));
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #869487;
  border-radius: 1rem;
  box-shadow: 0 .9rem 3.5rem #18352945;
  background: #f8faf4;
  color: #233e32;
  font: 400 16px/1.35 system-ui, sans-serif;
  text-align: left;
}
#ina-coach-dialog:not([open]) { display: none; }
#ina-coach-dialog[open] { display: flex; flex-direction: column; }
#ina-coach-dialog::backdrop { background: #253e344a; }
#ina-coach-dialog .ina-coach-bar {
  box-sizing: border-box;
  display: flex;
  flex: none;
  justify-content: flex-end;
  align-items: center;
  gap: .75rem;
  padding: .1rem .35rem .1rem 1rem;
  color: #34483b;
  background: #f8faf4;
  border-bottom: 1px solid #dfe4d9;
}
#ina-coach-dialog .ina-coach-full {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .2rem;
  font: 600 .88em/1.25 system-ui, sans-serif;
  color: #244838;
  text-decoration: none;
}
#ina-coach-dialog .ina-coach-full:hover, #ina-coach-dialog .ina-coach-full:focus-visible {
  text-decoration: underline;
  text-underline-offset: .2em;
}
#ina-coach-dialog form { margin: 0; }
#ina-coach-dialog button {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  height: 44px;
  width: 44px;
  min-width: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #274338;
  background: transparent;
  cursor: pointer;
}
#ina-coach-dialog button:hover { background: #e7eee3; }
#ina-coach-dialog button svg { width: 1.18rem; height: 1.18rem; }
#ina-coach-dialog :focus-visible { outline: 3px solid #284d41; outline-offset: 1px; }
#ina-coach-dialog iframe { display: block; flex: 1; width: 100%; min-height: 0; margin: 0; padding: 0; border: 0; }
@media (max-width: 540px) {
  #ina-coach-dialog {
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
}
@media print {
  #ina-coach-launcher, #ina-coach-dialog[open] { display: none; }
}
/* At the bottom of a phone-sized page, the last control can scroll above the guide. */
@media screen and (max-width: 48rem) {
  .ohr-guide-clearance {
    height: calc(4.5rem + max(1rem, env(safe-area-inset-bottom)));
    pointer-events: none;
  }
}
