/* Hide Branda bar and PWA add-to-home while CookieConsent is in use. */
#branda-cookie-notice,
.cookie-notice-container,
#pwaforwp-add-to-home-click,
#iossafari-a2h-banner {
  display: none !important;
}

#cc-main {
  --cc-bg: #f7f3ea;
  --cc-primary-color: #000;
  --cc-secondary-color: #000;
  --cc-btn-primary-bg: #1b3d4a;
  --cc-btn-primary-color: #fff;
  --cc-btn-primary-hover-bg: #122c36;
  --cc-btn-secondary-bg: #e8efe8;
  --cc-btn-secondary-color: #1b3d4a;
  --cc-btn-secondary-hover-bg: #d5e0d8;
  --cc-toggle-on-bg: #1b3d4a;
  --cc-footer-bg: #efe8d9;
  --cc-font-family: "Times New Roman", Times, serif;
  --cc-z-index: 99990;
  font-size: 18px;
}

#cc-main .cm__title,
#cc-main .cm__desc,
#cc-main .cm__link-group,
#cc-main .cm__link-group a,
#cc-main .cc__link,
#cc-main .pm__title,
#cc-main .pm__section-title,
#cc-main .pm__section-desc {
  color: #000 !important;
  font-family: "Times New Roman", Times, serif !important;
}

#cc-main .cm__title {
  font-size: 20px !important;
}

#cc-main .cm__desc,
#cc-main .cm__link-group,
#cc-main .cm__link-group a,
#cc-main .cc__link {
  font-size: 18px !important;
}

#cc-main .cm__btn,
#cc-main .pm__btn {
  font-family: "Times New Roman", Times, serif !important;
  font-size: 18px !important;
}

#cc-main .cm__texts {
  padding: 0.4rem 0 0 !important;
}

#cc-main .cm__title,
#cc-main .cm__desc {
  padding-left: 0.9rem;
  padding-right: 0.9rem;
  line-height: 1.25;
}

#cc-main .cm__title + .cm__desc {
  margin-top: 0.25em !important;
}

#cc-main .cm__btns {
  padding: 0.45rem 0.9rem 0.55rem !important;
}

#cc-main .cm__btn {
  min-width: 0 !important;
  padding: 0.4em 1.15em !important;
}

#cc-main .cm__links {
  padding: 0 0.9rem 0.35rem !important;
}

@media screen and (min-width: 641px) {
  #cc-main .cm--bar .cm__body,
  #cc-main .cm--bar .cm__links {
    max-width: 72rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  #cc-main .cm--bar .cm__title,
  #cc-main .cm--bar .cm__desc {
    padding-left: 0;
    padding-right: 0;
  }

  #cc-main .cm--bar.cm--inline .cm__body {
    align-items: center;
    gap: 0.85rem;
    padding-top: 0.4rem;
    padding-bottom: 0.15rem;
  }

  #cc-main .cm--bar .cm__btns {
    flex-shrink: 0;
    padding: 0 !important;
  }

  #cc-main .cm--bar .cm__links {
    padding-top: 0 !important;
    padding-bottom: 0.35rem !important;
  }

  html.show--consent .donate-float {
    bottom: 11rem !important;
  }
}

/* Homepage hero slider: readable type, soft halo, photo dim. */
.elementor-7 .elementor-element-4d4a491 .swiper-slide {
  isolation: isolate;
}

.elementor-7 .elementor-element-4d4a491 .swiper-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 28, 0.3);
  z-index: 1;
  pointer-events: none;
}

.elementor-7 .elementor-element-4d4a491 .swiper-slide-inner {
  z-index: 2;
  overflow: visible !important;
}

.elementor-7 .elementor-element-4d4a491 .swiper-slide-inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: 78%;
  height: 70%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.72) 28%,
    rgba(255, 255, 255, 0.32) 52%,
    rgba(255, 255, 255, 0) 74%
  );
  pointer-events: none;
  z-index: 0;
}

.elementor-7 .elementor-element-4d4a491 .swiper-slide-contents {
  position: relative;
  z-index: 1;
  text-shadow: none !important;
  overflow: visible !important;
  padding: 1.5rem 1.75rem !important;
  background: none !important;
}

.elementor-7 .elementor-element-4d4a491 .elementor-slide-heading,
.elementor-7 .elementor-element-4d4a491 .elementor-slide-description,
.elementor-7 .elementor-element-4d4a491 .elementor-slide-button {
  position: relative;
  z-index: 1;
}

.elementor-7 .elementor-element-4d4a491 .elementor-slide-heading,
.elementor-7 .elementor-element-4d4a491 .elementor-slide-description {
  line-height: 1.2 !important;
  margin-bottom: 0.55em !important;
  padding: 0.08em 0.2em;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.4),
    0 0 2px rgba(0, 0, 0, 0.25) !important;
}

.elementor-7 .elementor-element-4d4a491 .elementor-slide-description .blue,
.home .elementor-element-4d4a491 .blue {
  font-size: 1em !important;
  line-height: inherit !important;
}

@media screen and (max-width: 767px) {
  .elementor-7 .elementor-element-6cba34c > .elementor-container {
    min-height: 580px !important;
  }

  .elementor-7 .elementor-element-4d4a491 .swiper-slide {
    height: 580px !important;
  }

  .elementor-7 .elementor-element-4d4a491 .elementor-slide-button {
    margin-bottom: 1.35rem;
  }
}

/* Prayer Requests: full-width bar at the bottom on phones. */
@media screen and (max-width: 640px) {
  .donate-float {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: none !important;
    z-index: 99980 !important;
    transform: none !important;
    transform-origin: center bottom !important;
  }

  .donate-float a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 3.75rem !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  #cc-main {
    --cc-modal-margin: 0.5rem;
  }

  #cc-main .cm--box {
    max-width: 18.75rem;
  }

  /* Cookie box sits just above the Prayer Requests bar. */
  #cc-main .cm--bottom {
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }

  #cc-main .cm__desc {
    max-height: 16vh;
    padding-bottom: 0.2em;
  }
}

/* SCMC Gifts: two product cards per row on phones. */
@media screen and (max-width: 767px) {
  .elementor-32671 .elementor-element-48e9e96 > .elementor-widget-container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .elementor-32671 .elementor-element-48e9e96 .elementor-loop-container.elementor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-column-gap: 0.75rem !important;
    grid-row-gap: 1.1rem !important;
  }

  .elementor-32671 .elementor-element-48e9e96 .e-loop-item {
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    height: 100% !important;
  }

  .elementor-32671 .elementor-element-48e9e96 .e-loop-item > .e-con,
  .elementor-32671 .elementor-element-48e9e96 .e-loop-item .e-con-inner {
    height: 100% !important;
  }

  .elementor-32671 .elementor-element-48e9e96 .e-loop-item .elementor-element-7b82173 {
    margin-top: auto !important;
    width: 100% !important;
  }

  .elementor-32671 .elementor-element-48e9e96 .e-loop-item img {
    max-width: 100% !important;
    height: auto;
  }

  .elementor-32671 .elementor-element-48e9e96 .e-loop-item .elementor-heading-title,
  .elementor-32671 .elementor-element-48e9e96 .e-loop-item h2,
  .elementor-32671 .elementor-element-48e9e96 .e-loop-item h3 {
    font-size: 15px !important;
    line-height: 1.25 !important;
  }

  .elementor-32671 .elementor-element-48e9e96 .e-loop-item .elementor-button {
    width: 100% !important;
    padding-left: 0.5em !important;
    padding-right: 0.5em !important;
    font-size: 12px !important;
    white-space: normal !important;
  }
}
