/* Shared navigation typography. See STYLES.md before changing these values. */
:root {
  --pwa-mobile-nav-font-size: var(--frame-nav-font-size, 12.3px);
  --pwa-mobile-nav-font-weight: 700;
  --pwa-mobile-nav-icon-size: var(--frame-nav-icon-size, 26px);
  --pwa-mobile-nav-icon-stroke: var(--frame-nav-icon-stroke, 2.4);
}

body.solid-shell {
  min-height: 100vh;
  background: #eef7f8;
  background-image: none;
}

body.solid-shell .navbar.navbar-default,
body.solid-shell .navbar-style,
body.solid-shell .navbar-header {
  background-color: #075161;
}

body.solid-shell .ch-content {
  background: #eef7f8;
}

body.solid-shell .footer-container {
  background: #075161;
}

body.solid-shell .footer-container .footer {
  background: #075161;
  color: #beecf7;
}

body.solid-shell .footer-container .footer a {
  color: #ffffff;
}

@media (max-width: 767px) {
  body.pwa-shell.solid-shell .footer-container {
    display: none !important;
  }
}

/* Canonical customer menu for dashboard navigation and standalone header bridges.
   The hidden Bootstrap navbar supplies links and the real logout form. */
body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) #topMenuToggle {
  display: block !important;
  position: relative;
  float: right;
  width: 44px;
  min-height: 44px;
  margin: 4px 0 4px auto;
  padding: 10px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) .navbar .navbar-header {
  float: none;
  /* width: 100%; */
}

body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) #navbar,
body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) #navbar.collapse.in,
body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) #navbar.collapsing {
  display: none !important;
}

body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) #topMenuToggle .icon-bar {
  width: 20px;
  margin-right: auto;
  margin-left: auto;
  background: #fff;
  transition: transform .15s ease, opacity .15s ease;
}

body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) #topMenuToggle[aria-expanded="true"] .icon-bar:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) #topMenuToggle[aria-expanded="true"] .icon-bar:nth-child(3) {
  opacity: 0;
}

body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) #topMenuToggle[aria-expanded="true"] .icon-bar:nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) .pwa-menu-rail-menu {
  position: fixed;
  right: 32px;
  bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  z-index: 100000021;
  width: min(424px, calc(100vw - 64px));
  max-height: calc(100svh - 150px);
  overflow-x: hidden;
  overflow-y: auto;
  display: block;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(7, 81, 97, .24);
  animation: pwaRailIn .18s ease both;
}

body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) .pwa-menu-rail-menu[hidden] {
  display: none !important;
}

body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) .pwa-menu-rail-menu.from-top {
  top: var(--pwa-dashboard-menu-top, 62px);
  right: 32px;
  bottom: auto;
}

body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) .pwa-menu-rail-menu .rail-item {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 12px 20px;
  border: 0;
  border-bottom: 1px solid rgba(7, 81, 97, .1);
  border-radius: 0;
  background: transparent;
  color: #3d4e58;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) .pwa-menu-rail-menu .rail-item:hover,
body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) .pwa-menu-rail-menu .rail-item:active {
  background: #eaf7f8;
  color: #3d4e58;
  text-decoration: none;
}

body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) .pwa-menu-rail-menu .ri-ic {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf7f8;
  color: #075161;
}

body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) .pwa-menu-rail-menu .ri-ic svg {
  width: 23px;
  height: 23px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) .pwa-menu-rail-menu .ri-tx {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) .pwa-menu-rail-menu .ri-tx b {
  color: #3d4e58;
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) .pwa-menu-rail-menu .rail-sep {
  height: 8px;
  background: #eaf7f8;
}

@media (min-width: 768px) {
  body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) .pwa-menu-rail-menu .rail-item--mobile-only {
    display: none;
  }
}

@media (max-width: 767px) {
  body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) .pwa-menu-rail-menu {
    width: min(268px, calc(100vw - 64px));
  }

  body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) .pwa-menu-rail-menu .rail-item {
    min-height: 48px;
    gap: 11px;
    padding: 11px 13px;
  }

  body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) .pwa-menu-rail-menu .ri-ic {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) .pwa-menu-rail-menu .ri-ic svg {
    width: 19px;
    height: 19px;
  }

  body.pwa-shell:is(.pwa-dashboard-page, .pwa-search-results-page) .pwa-menu-rail-menu .ri-tx b {
    font-size: 15px;
  }
}

/* Shared sheet frame. Geometry is measured against the page by ui/sheets.js. */
.cohouse-sheet-backdrop { position: fixed; inset: 0; background: rgba(7, 45, 54, .58); }
body.pwa-shell dialog.cohouse-sheet-layer:not([open]) { display: none; }
body.cohouse-sheet-open { overflow: hidden; }
body.pwa-shell .cohouse-sheet-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
  border: 2px solid #ffd259;
  border-radius: 8px;
  background: #fff;
  color: #12333b;
  font: 400 16px/1.6 "Open Sans", system-ui, sans-serif;
}
body.pwa-shell .cohouse-sheet-content > :is(header, .modal-header) {
  flex: none;
  min-height: 64px;
  box-sizing: border-box;
  padding: 10px 16px;
  border-radius: 0;
  background: #075161;
  color: #fff;
}
body.pwa-shell .cohouse-sheet-content > form {
  display: flex; flex-direction: column; flex: 1 1 auto;
  min-height: 0; max-height: inherit; margin: 0;
}
body.pwa-shell .cohouse-sheet-content > form > :is(.modal-header, .modal-footer) { flex: none; }
body.pwa-shell .cohouse-sheet-content .modal-body p { font-size: 18px; line-height: 1.6; }
body.pwa-shell .cohouse-sheet-content > :is(header, .modal-header) :is(h2, h3, h4, b) {
  margin: 0;
  color: inherit;
  font: 700 20px/1.3 "Open Sans", system-ui, sans-serif;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.pwa-shell .cohouse-sheet-content > :is(header, .modal-header) button {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 44px; width: 44px; height: 44px; padding: 0;
}
body.pwa-shell .cohouse-sheet-content > :is(header, .modal-header) button svg { width: 32px; height: 32px; }
body.pwa-shell .cohouse-sheet-content > :is(.str-sheet__body, .pa-dialog-body, .cl-sheet__body, .modal-body, .agreement-sheet__body) {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 16px; font-size: 18px; line-height: 1.6;
}
body.pwa-shell .cohouse-sheet-content :is(.cl-help, .pa-help-dialog, #pa-help-content) { font-size: 18px; line-height: 1.6; }
body.pwa-shell .cohouse-sheet-content > :is(.str-sheet__foot, .pa-dialog-foot, .frame-sheet__foot, .cl-sheet__actions, .modal-footer) {
  flex: none; position: static; margin: 0; padding: 10px 16px;
  border-top: 1px solid #d9e7ea; border-radius: 0; background: #fff;
}
body.pwa-shell .cohouse-sheet-content :is(.str-sheet__foot, .pa-dialog-foot, .frame-sheet__foot, .cl-sheet__actions, .modal-footer) > button {
  min-height: 48px; font-size: 18px; line-height: 1.3;
}
body.pwa-shell .cohouse-sheet-content :focus-visible { outline: 2px solid #349fb7; outline-offset: 2px; }
.cohouse-confirm > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cohouse-confirm > header button { border: 0; background: transparent; color: #fff; font-size: 32px; }
.cohouse-confirm .modal-footer { display: flex; gap: 10px; }
.cohouse-confirm .modal-footer button { flex: 1; margin: 0; padding: 10px 16px; border: 1px solid #349fb7; border-radius: 8px; background: #fff; color: #075161; font-weight: 700; }
.cohouse-confirm .modal-footer .cohouse-confirm__accept { border-color: #00b894; background: #00b894; color: #fff; }
