.prayer-widget,
.prayer-widget * {
  box-sizing: border-box;
}

.prayer-widget {
  position: fixed;
  right: 24px;
  bottom: calc(max(24px, env(safe-area-inset-bottom)) + var(--audience-banner-offset, 0px));
  z-index: 100000;
  width: 360px;
  max-width: calc(100vw - 48px);
  color: #193c52;
  font-family: 'Roboto', sans-serif;
  text-align: left;
}

.prayer-widget [hidden] {
  display: none !important;
}

.prayer-popup {
  position: relative;
  overflow: auto;
  max-height: calc(100dvh - 48px - var(--audience-banner-offset, 0px));
  padding: 26px;
  border: 1px solid #dce7ed;
  border-top: 4px solid #d5ad59;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 56px rgba(14, 51, 75, .22), 0 2px 8px rgba(14, 51, 75, .08);
  animation: prayer-appear .24s ease-out;
}

.prayer-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 10px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #526c7d;
  cursor: pointer;
}

.prayer-popup__close:hover {
  background: #eef5f9;
  color: #0165a1;
}

.prayer-popup__symbol {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  background: #eaf3f9;
  color: #0165a1;
}

.prayer-widget svg {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.prayer-popup__eyebrow {
  margin: 0 0 8px;
  color: #0165a1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.prayer-popup__title {
  margin: 0 0 12px;
  color: #174766;
  font-family: 'Cinzel Decorative', Georgia, serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.4;
}

.prayer-popup__description {
  margin: 0 0 22px;
  color: #526c7d;
  font-size: 15px;
  line-height: 1.65;
}

.prayer-popup__cta,
.prayer-popup__launcher {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 18px;
  border: 0;
  background: #0165a1;
  color: #fff;
  font: 500 15px/1.4 'Roboto', sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease;
}

.prayer-popup__cta {
  width: 100%;
  border-radius: 10px;
}

.prayer-popup__cta:hover,
.prayer-popup__launcher:hover {
  background: #004e7e;
  color: #fff;
  text-decoration: none;
}

.prayer-popup__destination {
  margin: 10px 0 0;
  color: #526c7d;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.prayer-popup__launcher {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  border-radius: 28px;
  box-shadow: 0 5px 24px rgba(14, 51, 75, .2);
  animation: prayer-appear .24s ease-out;
}

.prayer-popup__launcher svg {
  color: #f1d494;
}

.prayer-popup__close:focus-visible,
.prayer-popup__cta:focus-visible,
.prayer-popup__launcher:focus-visible {
  outline: 3px solid #d5ad59;
  outline-offset: 4px;
}

.prayer-popup:focus {
  outline: none;
}

@media (max-width: 480px) {
  .prayer-widget {
    right: 12px;
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + var(--audience-banner-offset, 0px));
    max-width: calc(100vw - 24px);
  }

  .prayer-popup {
    max-height: calc(100dvh - 24px - var(--audience-banner-offset, 0px));
    padding: 22px;
  }

  .prayer-popup__title {
    font-size: 21px;
  }

  .prayer-popup__launcher {
    font-size: 14px;
  }
}

@keyframes prayer-appear {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .prayer-popup,
  .prayer-popup__launcher {
    animation: none;
    transition: none;
  }
}
