/* Church Branches Generator - Branch Page Styles */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --text-color: #0b0f17;
  --muted-color: #4c5b6d;
  --bg: #f7f8fb;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  --cbg-primary: #d4a625;
  --cbg-secondary: #7b1f1f;
  --cbg-title-font: "Inter", sans-serif;
  --cbg-title-weight: 700;
  --cbg-body-font: "Inter", sans-serif;
  --cbg-body-weight: 400;
  /* FALLBACK IMAGE IF NONE IS SET */
  --cbg-hero-image: url("https://womenofconnections.org/testingsite/wp-content/uploads/2026/03/318b640e08877549ff0fd0796e94431e9cdf7f77-scaled.jpg");
}

body {
  font-family: var(--cbg-body-font);
  overflow-x: hidden;
}

@media (min-width: 1200px) {
  .page-header .entry-title,
  .site-footer .footer-inner,
  .site-footer:not(.dynamic-footer),
  .site-header .header-inner,
  .site-header:not(.dynamic-header),
  body:not([class*="elementor-page-"]) .site-main {
    max-width: 100%;
  }
}

@media (min-width: 992px) {
  .page-header .entry-title,
  .site-footer .footer-inner,
  .site-footer:not(.dynamic-footer),
  .site-header .header-inner,
  .site-header:not(.dynamic-header),
  body:not([class*="elementor-page-"]) .site-main {
    max-width: 100%;
  }
}

.branch-page-wrapper {
  overflow-x: hidden;
  width: 100vw;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  font-family: var(--cbg-body-font);
  font-weight: var(--cbg-body-weight);
}

.branch-page-wrapper p,
.branch-page-wrapper li,
.branch-page-wrapper a,
.branch-page-wrapper .btn {
  font-family: var(--cbg-body-font);
}

.branch-page-wrapper h1,
.branch-page-wrapper h2,
.branch-page-wrapper h3,
.branch-page-wrapper h4 {
  font-family: var(--cbg-title-font);
  font-weight: var(--cbg-title-weight);
}

.branch-header-content {
  padding: 1rem 2rem 0 2rem;
}

.branch-header-content p {
  font-size: 1.2rem;

  @media (max-width: 900px) {
    font-size: 1rem;
  }
}

.branch-info {
  display: flex;
  flex-direction: column;
}

.branch-hero {
  position: relative;
  width: 100vw;
  min-height: 400px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    var(--cbg-hero-image) no-repeat scroll center/cover;
  background-attachment: scroll;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 3rem 2rem;
  flex-shrink: 0;
}

.branch-hero .hero-content {
  position: relative;
  color: #fff;
  max-width: 600px;
}

.branch-hero h1 {
  font-size: 56px;
  margin: 0 0 0.6rem 0;
  line-height: 1.1;
  text-align: left;
}

.branch-hero p {
  font-size: 1rem;
  max-width: 100%;
  margin: 0;
  color: #f1f1f1;
  line-height: 1.5;
  opacity: 0.85;
  text-align: left;
}

.branch-content {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 2rem;
  flex-grow: 1;
  background: var(--bg);
}

.branch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.branch-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.get-directions-btn {
  margin-top: auto;
  margin-top: 1.5rem;
}

.get-directions-btn .btn {
  width: 100% !important;
  text-align: center !important;
  display: block !important;
  position: static !important;
  left: auto !important;
  top: auto !important;
  background: var(--cbg-primary) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 0.88rem 1.27rem !important;
  font-size: 1.3rem !important;
  font-weight: var(--cbg-body-weight) !important;
  cursor: pointer !important;
  transition:
    transform 0.2s ease,
    filter 0.2s ease !important;
}

.get-directions-btn .btn:hover {
  filter: brightness(0.92) !important;
  transform: translateY(-2px) !important;
}

.section-title {
  font-size: 1.9rem;
  margin: 0 0 1rem 0;
  color: var(--text-color);
}

.info-list {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 0;
}

.info-item {
  background: #fff;
  border: 1px solid #e4e7ee;
  border-radius: 12px;
  padding: 1rem;
  min-height: 3%;
  display: grid;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.12);
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
}

.info-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.info-item h4 {
  font-size: 1.6rem;
  margin: 0;
  color: #222;
}

.info-item p {
  margin: 0;
  color: var(--muted-color);
  font-size: 1.4rem;
  font-weight: var(--cbg-body-weight);
}

.info-item a {
  color: var(--muted-color);
  text-decoration: none;
}

.info-item a:hover {
  text-decoration: underline;
}

.about-text {
  line-height: 1.7;
  color: #2c3442;
  margin-bottom: 1.35rem;
  font-size: 1.3rem;
}

.about-text p {
  margin: 0 0 1rem 0;
}

.about-text > :last-child {
  margin-bottom: 0;
}

.services-card {
  background: var(--cbg-secondary);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1.25rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.services-card h3 {
  margin: 0 0 0.8rem 0 !important;
  font-size: 1.6rem;

  @media (max-width: 900px) {
    font-size: 1.1rem;
  }
}

.service-row {
  margin-top: 0.65rem;
}

.service-row h4 {
  margin: 0.15rem 0;
  font-size: 1.4rem;
  color: #fff;
}

.service-row p {
  margin: 0;
  color: #f5e8e8;
  font-size: 1rem;
  font-weight: var(--cbg-body-weight);
}

.service-day-time {
  font-weight: 500 !important;
}

.cta-section {
  background:
    linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
    url("https://womenofconnections.org/testingsite/wp-content/uploads/2026/03/3e6dcb812923b318fcc4366dc15a9ddb40506824.jpg")
      no-repeat center/cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 7rem 0;
  margin: 3rem 0 0 0;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-section h2 {
  margin: 0 0 0.8rem 0;
  font-size: 2rem;
  color: var(--text-color);
}

.cta-section p {
  margin: 0 0 1.5rem 0;
  color: var(--text-color);
  font-size: 1.34rem;
  font-weight: var(--cbg-body-weight);
}

.cta-buttons {
  display: inline-flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  border: 0;
  border-radius: 8px;
  padding: 0.88rem 1.27rem;
  cursor: pointer;
  font-weight: var(--cbg-body-weight);
  font-size: 1.3rem;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
  text-decoration: none !important;
  display: inline-block;
}

.btn-primary {
  background: var(--cbg-primary);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(0.92);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--cbg-primary);
  color: var(--cbg-primary);
}

.btn-outline:hover {
  background: var(--cbg-primary);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 1040px) {
  .branch-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .branch-content {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .about-text {
    font-size: 1.1rem;
  }

  .branch-hero {
    height: auto;
    min-height: 280px;
    padding: 2rem 1.5rem;
    background-attachment: scroll;
    align-items: flex-end;
    justify-content: flex-start;
  }

  .branch-hero h1 {
    font-size: 42px;
  }

  .branch-hero p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .branch-content {
    padding: 1.5rem;
  }

  .branch-card {
    padding: 1.25rem;
    gap: 1.5rem;
  }

  .branch-grid {
    gap: 1rem;
  }

  .cta-section {
    padding: 1.5rem;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  .branch-hero {
    height: auto;
    min-height: 260px;
    padding: 1.5rem 1rem;
    align-items: flex-end;
    justify-content: flex-start;
  }

  .branch-hero h1 {
    font-size: 32px;
    margin-bottom: 0.5rem;
  }

  .branch-hero p {
    font-size: 0.8rem;
  }

  .branch-content {
    width: 100%;
    padding: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .info-item {
    padding: 0.75rem 0.8rem;
    gap: 0.8rem;
  }

  .info-item h4 {
    font-size: 1rem;
  }

  .info-item p {
    font-size: 0.9rem;
  }

  .info-item-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    flex-shrink: 0;
  }
}

/* Get Directions Popup Styles (responsive) */
.branch-directions-popup {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.branch-directions-popup.popup-hidden {
  display: none !important;
}

.directions-popup-content {
  background: #ffffff;
  border-radius: 12px;
  max-width: 900px;
  width: calc(100% - 40px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.32);
  position: relative;
  animation: slideUp 0.28s ease-out;
  padding: 20px;
  box-sizing: border-box;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.directions-popup-content h2 {
  margin: 0 0 0.9rem 0;
  font-size: 1.6rem;
  line-height: 1.2;
}

.directions-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 26px;
  color: #777;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
  z-index: 10001;
}

.directions-popup-close:hover {
  color: #333;
}

.directions-map {
  margin: 1rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.directions-map iframe {
  display: block;
  width: 100%;
  height: clamp(200px, 30vh, 360px);
  border: none;
}

.directions-info {
  background: linear-gradient(
    90deg,
    rgba(212, 166, 37, 0.06),
    rgba(123, 31, 31, 0.03)
  );
  border-left: 6px solid var(--cbg-primary);
  padding: 1.2rem 1rem;
  border-radius: 8px;
  margin: 1rem 0 1.25rem 0;
  line-height: 1.55;
  color: #1f2937;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  font-size: 1rem;
}

.directions-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.15rem;
  color: var(--cbg-secondary);
}

.directions-info p {
  margin: 0.4rem 0;
}

.directions-boxes-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1rem 0;
}

.travel-tips-box {
  color: rgb(255, 255, 255);
  background: var(--cbg-primary);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nearby-landmarks-box {
  background: #ffffff;
  border: 2px solid #731e1d;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.travel-tips-box h3,
.nearby-landmarks-box h3 {
  margin: 0 0 0.7rem 0 !important;
  font-size: 1.6rem !important;
}

.travel-tips-box ul,
.nearby-landmarks-box ul {
  margin: 0;
  padding-left: 1.2rem;
}

.travel-tips-box li {
  margin: 0.6rem 0 !important;
  color: #f5f6f5 !important;
  font-size: 1.1rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;

  @media (max-width: 900px) {
    font-size: 1rem !important;
  }
}

.nearby-landmarks-box li {
  margin: 0.6rem 0 !important;
  color: #383837 !important;
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;

  @media (max-width: 900px) {
    font-size: 1rem !important;
  }
}

@media (max-width: 900px) {
  .directions-popup-content {
    width: calc(100% - 32px);
    padding: 16px;
  }
  .directions-map iframe {
    height: clamp(180px, 28vh, 320px);
  }
}

@media (max-width: 640px) {
  .branch-directions-popup {
    align-items: flex-end;
    padding: 12px;
  }
  .directions-popup-content {
    width: calc(100% - 12px);
    border-radius: 12px 12px 0 0;
    padding: 14px 14px 20px 14px;
    max-height: 92vh;
  }
  .directions-popup-close {
    top: 8px;
    right: 8px;
    font-size: 22px;
    width: 30px;
    height: 30px;
  }
  .directions-popup-content h2 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }
  .directions-info {
    font-size: 0.98rem;
    padding: 0.9rem;
  }
  .directions-boxes-container {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
}

/* Branch Carousel Styles */
.cbg-carousel-wrapper {
  --cbg-primary: #d4a625;
  --cbg-secondary: #7b1f1f;
  --cbg-title-font: "Inter", sans-serif;
  --cbg-body-font: "Inter", sans-serif;
  padding: 2rem 0;
  position: relative;
  font-family: var(--cbg-body-font);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.cbg-carousel-wrapper h2,
.cbg-carousel-wrapper h3,
.cbg-carousel-wrapper h4 {
  font-family: var(--cbg-title-font);
}

.cbg-carousel-container {
  overflow: hidden;
  margin: 0 60px;
}

.cbg-carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 0;
  cursor: grab;
}

.cbg-carousel-track::-webkit-scrollbar {
  display: none;
}

.cbg-carousel-card {
  flex: 0 0 700px;
  height: 490px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.cbg-carousel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.cbg-card-image {
  height: 320px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.cbg-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.cbg-card-title {
  margin: 0.5rem 0 0 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0b0f17;
  text-align: center;
  font-family: var(--cbg-title-font);
}

.cbg-card-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cbg-btn {
  flex: 1;
  padding: 0.85rem 0.5rem;
  border-radius: 8px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cbg-body-font);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none !important;
  color: #fff !important;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--cbg-primary) !important;
  border: none !important;
}

.cbg-btn:hover {
  filter: brightness(0.9);
  transform: translateY(-1px);
}

.cbg-carousel-card .cbg-btn[data-popup-id] {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid var(--cbg-primary) !important;
}

.cbg-carousel-card .cbg-btn[data-popup-id]:hover {
  background: var(--cbg-primary) !important;
  color: #fff !important;
}

.cbg-carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 15px;
}

.cbg-nav-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: all 0.2s ease;
  color: #333;
  padding: 0;
}

.cbg-nav-btn:hover {
  color: var(--cbg-primary);
}

.cbg-nav-btn svg {
  width: 56px;
  height: 56px;
}

@media (max-width: 900px) {
  .cbg-carousel-card {
    flex: 0 0 550px;
    height: 420px;
  }
  .cbg-card-image {
    height: 240px;
  }
}

@media (max-width: 768px) {
  .cbg-carousel-wrapper {
    padding: 1rem 0;
  }
  .cbg-carousel-container {
    margin: 0 15px;
    overflow: visible;
  }
  .cbg-carousel-track {
    flex-direction: column;
    overflow-x: visible;
    overflow-y: auto;
    gap: 1rem;
    max-height: none;
    cursor: grab;
  }
  .cbg-carousel-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
  }
  .cbg-card-image {
    height: 180px;
  }
  .cbg-card-content {
    padding: 1rem;
  }
  .cbg-card-title {
    font-size: 1.2rem;
    margin-top: 0.25rem;
  }
  .cbg-card-buttons {
    margin-top: 1rem;
  }
  .cbg-btn {
    padding: 0.7rem 0.5rem;
    font-size: 0.9rem;
  }
  .cbg-carousel-nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .cbg-carousel-card {
    max-width: 100%;
  }
  .cbg-card-image {
    height: 160px;
  }
  .cbg-nav-btn {
    width: 36px;
    height: 36px;
  }
}

/* Carousel Popup Styles */
.cbg-directions-popup {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.cbg-popup-hidden {
  display: none !important;
}

.cbg-directions-popup-content {
  background: #ffffff;
  border-radius: 12px;
  max-width: 900px;
  width: calc(100% - 40px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.32);
  position: relative;
  animation: slideUp 0.28s ease-out;
  padding: 20px;
  box-sizing: border-box;
}

.cbg-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--cbg-secondary) !important;
  border: none !important;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.15s ease;
  z-index: 10001;
  padding: 0;
}

.cbg-popup-close:hover {
  filter: brightness(0.9);
}

.cbg-popup-close:hover {
  color: #333;
}

.cbg-directions-popup-content h2 {
  margin: 0 0 0.9rem 0;
  font-size: 1.6rem;
  line-height: 1.2;
  font-family: var(--cbg-title-font);
}

.cbg-directions-popup-content h3 {
  margin: 0 0 0.7rem 0 !important;
  font-size: 1.6rem !important;
  font-family: var(--cbg-title-font);
}

.cbg-directions-popup-content .directions-map {
  margin: 1rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cbg-directions-popup-content .directions-map iframe {
  display: block;
  width: 100%;
  height: clamp(200px, 30vh, 360px);
  border: none;
}

.cbg-directions-popup-content .directions-info {
  background: linear-gradient(90deg, rgba(212, 166, 37, 0.06), rgba(123, 31, 31, 0.03));
  border-left: 6px solid var(--cbg-primary);
  padding: 1.2rem 1rem;
  border-radius: 8px;
  margin: 1rem 0 1.25rem 0;
  line-height: 1.55;
  color: #1f2937;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  font-size: 1rem;
}

.cbg-directions-popup-content .directions-info p {
  margin: 0.4rem 0;
}

.cbg-directions-popup-content .directions-boxes-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1rem 0;
}

.cbg-directions-popup-content .travel-tips-box {
  color: rgb(255, 255, 255);
  background: var(--cbg-primary);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cbg-directions-popup-content .nearby-landmarks-box {
  background: #ffffff;
  border: 2px solid #731e1d;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cbg-directions-popup-content .travel-tips-box ul,
.cbg-directions-popup-content .nearby-landmarks-box ul {
  margin: 0;
  padding-left: 1.2rem;
}

.cbg-directions-popup-content .travel-tips-box li {
  margin: 0.6rem 0 !important;
  color: #f5f6f5 !important;
  font-size: 1.1rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

.cbg-directions-popup-content .nearby-landmarks-box li {
  margin: 0.6rem 0 !important;
  color: #383837 !important;
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}

@media (max-width: 900px) {
  .cbg-directions-popup-content {
    width: calc(100% - 32px);
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .cbg-directions-popup {
    align-items: flex-end;
    padding: 12px;
  }
  .cbg-directions-popup-content {
    width: calc(100% - 12px);
    border-radius: 12px 12px 0 0;
    padding: 14px 14px 20px 14px;
    max-height: 92vh;
  }
  .cbg-directions-popup-content h2 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }
  .cbg-directions-popup-content .directions-boxes-container {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
}