.bsp,
.bsp * {
  box-sizing: border-box;
}

.bsp {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  direction: rtl;
  font-family: inherit;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .32s ease, visibility .32s ease;
}

.bsp.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bsp__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 20%, color-mix(in srgb, var(--bsp-primary) 20%, transparent), transparent 40%), rgba(7, 20, 17, .78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bsp__dialog {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(330px, .92fr) minmax(390px, 1.08fr);
  width: min(930px, 100%);
  max-height: calc(100vh - 44px);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 30px;
  box-shadow: 0 35px 110px rgba(0, 0, 0, .4);
  transform: translateY(30px) scale(.965);
  transition: transform .44s cubic-bezier(.2, .8, .2, 1);
}

.bsp.is-visible .bsp__dialog {
  transform: none;
}

.bsp__scroll {
  display: contents;
}

.bsp__close {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 92px;
  height: 42px;
  padding: 0 10px 0 12px;
  color: var(--bsp-secondary);
  font: 800 13px/1 inherit;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 999px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .16);
  cursor: pointer;
  transition: transform .2s ease, color .2s ease, background .2s ease;
}

.bsp__close-x {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: #fff;
  font: 400 22px/1 Arial, sans-serif;
  background: var(--bsp-primary);
  border-radius: 50%;
}

.bsp__close:hover {
  color: #fff;
  background: var(--bsp-primary);
  transform: translateY(-1px);
}

.bsp__close:hover .bsp__close-x {
  color: var(--bsp-primary);
  background: #fff;
}

.bsp__media {
  position: relative;
  min-height: 585px;
  overflow: hidden;
  background: var(--bsp-secondary);
}

.bsp__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(4, 35, 27, .45));
  pointer-events: none;
}

.bsp__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 585px;
  object-fit: cover;
  object-position: center;
}

.bsp__badge {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  padding: 9px 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  background: var(--bsp-primary);
  border: 3px solid rgba(255, 255, 255, .8);
  border-radius: 99px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--bsp-primary) 38%, transparent);
}

.bsp__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 46px 36px;
  overflow-y: auto;
  background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--bsp-primary) 8%, transparent), transparent 34%), linear-gradient(145deg, #fff, #f7fbf9);
}

.bsp__logo-wrap {
  align-self: flex-start;
  width: 116px;
  max-height: 52px;
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}

.bsp__logo {
  display: block;
  width: 100%;
  height: 52px;
  object-fit: cover;
}

.bsp__eyebrow {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 7px 13px;
  color: var(--bsp-primary);
  font-size: 12px;
  font-weight: 900;
  background: color-mix(in srgb, var(--bsp-primary) 9%, transparent);
  border-radius: 99px;
}

.bsp h2 {
  margin: 0 0 11px;
  color: #123d32;
  font-size: clamp(25px, 3vw, 35px);
  font-weight: 950;
  line-height: 1.42;
  letter-spacing: -.7px;
}

.bsp__description {
  margin: 0 0 16px;
  color: #53635e;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.9;
}

.bsp__address {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 13px;
  padding: 15px;
  background: #eff7f4;
  border: 1px solid rgba(19, 91, 71, .11);
  border-radius: 18px;
}

.bsp__address-icon {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--bsp-secondary);
  border-radius: 13px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--bsp-secondary) 20%, transparent);
}

.bsp__address-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.bsp__address span {
  display: block;
  margin-bottom: 4px;
  color: var(--bsp-primary);
  font-size: 12px;
  font-weight: 900;
}

.bsp__address strong {
  display: block;
  color: #24463d;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.85;
}

.bsp__note {
  margin-bottom: 15px;
  color: #6f615a;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.8;
}

.bsp__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.bsp__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 14px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-decoration: none !important;
  border-radius: 14px;
  transition: transform .2s, box-shadow .2s;
}

.bsp__button:hover {
  color: #fff !important;
  transform: translateY(-2px);
}

.bsp__button svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.bsp__button--google {
  background: linear-gradient(135deg, var(--bsp-primary), color-mix(in srgb, var(--bsp-primary) 80%, #7b003e));
  box-shadow: 0 12px 25px color-mix(in srgb, var(--bsp-primary) 24%, transparent);
}

.bsp__button--neshan {
  background: linear-gradient(135deg, color-mix(in srgb, var(--bsp-secondary) 85%, #2b8b70), var(--bsp-secondary));
  box-shadow: 0 12px 25px color-mix(in srgb, var(--bsp-secondary) 22%, transparent);
}

.bsp__continue {
  align-self: center;
  margin-top: 13px;
  padding: 5px 9px;
  color: #78827f;
  font: 600 12px/1.8 inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed #abb4b1;
  cursor: pointer;
}

.bsp-lock {
  overflow: hidden !important;
}

@media (max-width: 780px) {
  .bsp {
    align-items: center;
    padding: 10px;
  }

  .bsp__dialog {
    display: block;
    width: 100%;
    max-height: calc(100dvh - 20px);
    overflow: hidden;
    border-radius: 24px;
  }

  .bsp__scroll {
    display: block;
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .bsp__close {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 88px;
    height: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  }

  .bsp__media {
    height: auto;
    min-height: 0;
    background: #eef3f1;
  }

  .bsp__media::after {
    background: linear-gradient(180deg, transparent 72%, rgba(4, 35, 27, .3));
  }

  .bsp__media img {
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
    object-position: center;
  }

  .bsp__content {
    overflow: visible;
    padding: 22px 19px 20px;
  }

  .bsp__logo-wrap {
    width: 98px;
    height: 42px;
    margin-bottom: 9px;
  }

  .bsp__logo {
    height: 42px;
  }

  .bsp__eyebrow {
    margin-bottom: 8px;
  }

  .bsp h2 {
    margin-bottom: 7px;
    font-size: 23px;
  }

  .bsp__description {
    margin-bottom: 13px;
    font-size: 13px;
    line-height: 1.8;
  }

  .bsp__address {
    padding: 12px;
  }

  .bsp__actions {
    grid-template-columns: 1fr;
  }

  .bsp__button {
    min-height: 48px;
  }

  .bsp__badge {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 380px) {
  .bsp {
    padding: 6px;
  }

  .bsp__dialog,
  .bsp__scroll {
    max-height: calc(100dvh - 12px);
    border-radius: 19px;
  }

  .bsp__content {
    padding: 19px 14px 16px;
  }

  .bsp h2 {
    font-size: 21px;
  }

  .bsp__logo-wrap {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bsp,
  .bsp__dialog,
  .bsp__button,
  .bsp__close {
    transition: none !important;
  }
}
