/* Add-to-Home-Screen banner. Its z-index deliberately sits below the app's
 * modal/snackbar layer (10) and above the Chatra widget (5). */
#pv-a2hs-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  background: #3f5f42;
  color: #fff;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 14px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.25s ease-out;
}

#pv-a2hs-banner.pv-visible {
  transform: translateY(0);
}

#pv-a2hs-banner img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex: none;
}

#pv-a2hs-banner .pv-a2hs-text {
  flex: 1;
  line-height: 1.3;
}

#pv-a2hs-banner .pv-a2hs-text strong {
  display: block;
  font-family: "Raleway", sans-serif;
  font-size: 15px;
}

#pv-a2hs-banner button {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  flex: none;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 14px;
}

#pv-a2hs-banner .pv-a2hs-add {
  padding: 8px 16px;
  color: #3f5f42;
  background: #fff;
}

#pv-a2hs-banner .pv-a2hs-dismiss {
  width: 34px;
  height: 34px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 20px;
  line-height: 1;
}

#pv-a2hs-banner .pv-a2hs-dismiss:hover,
#pv-a2hs-banner .pv-a2hs-dismiss:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}

#pv-a2hs-banner .pv-a2hs-dismiss:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (min-width: 600px) {
  #pv-a2hs-banner {
    left: auto;
    right: 16px;
    bottom: 16px;
    max-width: 420px;
    border-radius: 12px;
  }
}

/* iOS instructional modal: bottom sheet on iPhone, popover on iPad. */
#pv-a2hs-modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(26, 28, 26, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s ease-out;
  font-family: "Roboto", system-ui, sans-serif;
}

#pv-a2hs-modal-scrim.pv-visible {
  opacity: 1;
}

.pv-a2hs-modal-card {
  position: absolute;
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease-out;
}

.pv-a2hs-sheet {
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 480px;
  max-height: 100vh;
  max-height: 100dvh;
  margin: 0 auto;
  border-radius: 20px 20px 0 0;
  padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%);
}

#pv-a2hs-modal-scrim.pv-visible .pv-a2hs-sheet {
  transform: translateY(0);
}

.pv-a2hs-drag-handle {
  width: 100%;
  padding: 10px 0 6px;
  display: flex;
  justify-content: center;
}

.pv-a2hs-drag-handle span {
  width: 36px;
  height: 5px;
  border-radius: 999px;
  background: #c3c8be;
}

/* Keep the iPad popover close to Safari's top-right Share button. */
.pv-a2hs-popover {
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  right: 70px;
  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - env(safe-area-inset-top, 0px) - 26px);
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 26px);
  border-radius: 20px;
  padding: 20px;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
}

#pv-a2hs-modal-scrim.pv-visible .pv-a2hs-popover {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pv-a2hs-popover-arrow {
  position: absolute;
  top: -10px;
  right: 40px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #fff;
}

.pv-a2hs-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: #eeeeea;
  color: #434841;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pv-a2hs-modal-close svg {
  width: 16px;
  height: 16px;
}

.pv-a2hs-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  text-align: center;
  padding-top: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.pv-a2hs-modal-body > * {
  flex-shrink: 0;
}

.pv-a2hs-sheet .pv-a2hs-modal-body {
  max-height: calc(100vh - env(safe-area-inset-bottom, 0px) - 49px);
  max-height: calc(100dvh - env(safe-area-inset-bottom, 0px) - 49px);
}

.pv-a2hs-popover .pv-a2hs-modal-body {
  max-height: calc(100vh - env(safe-area-inset-top, 0px) - 66px);
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 66px);
}

.pv-a2hs-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  overflow: hidden;
  background: #e8e8e5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.pv-a2hs-modal-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-a2hs-modal-body h2 {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 21px;
  color: #1a1c1a;
  margin: 0 0 6px;
}

.pv-a2hs-modal-body p.pv-a2hs-modal-sub {
  font-size: 14px;
  color: #434841;
  margin: 0 0 20px;
  max-width: 280px;
}

.pv-a2hs-steps {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.pv-a2hs-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #eeeeea;
  border: 1px solid rgba(67, 72, 65, 0.15);
  border-radius: 14px;
  padding: 12px;
}

.pv-a2hs-step-icon {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 999px;
  background: #fff;
  color: #274428;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.pv-a2hs-step-icon svg {
  width: 18px;
  height: 18px;
}

.pv-a2hs-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #1a1c1a;
}

.pv-a2hs-step p b {
  font-weight: 700;
}

.pv-a2hs-step .pv-a2hs-step-note {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: #434841;
}

.pv-a2hs-inline-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  transform: translateY(-1px);
  margin: 0 2px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(67, 72, 65, 0.25);
  color: #1a1c1a;
}

.pv-a2hs-inline-icon svg {
  width: 13px;
  height: 13px;
}
