.bd-quote-launcher,
.bd-quote-overlay,
.bd-quote-overlay * {
  box-sizing: border-box;
}

.bd-quote-launcher {
  position: fixed;
  z-index: 2147483647;
  right: 22px;
  bottom: max(22px, env(safe-area-inset-bottom));
  min-height: 62px;
  padding: 5px 20px 5px 0;
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  border: 1px solid rgba(126, 224, 255, 0.72);
  outline: 0 !important;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(110deg, rgba(4, 40, 76, 0.82), rgba(8, 112, 160, 0.7) 68%, rgba(22, 169, 212, 0.66));
  box-shadow: 0 14px 36px rgba(5, 40, 80, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px) saturate(1.28);
  font-family: Poppins, Arial, sans-serif;
  transition: transform 160ms ease, box-shadow 160ms ease;
  animation: bdLauncherIn 520ms 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bd-quote-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(5, 40, 80, 0.42);
}

.bd-quote-launcher img {
  position: relative;
  top: -17px;
  left: -42px;
  width: 112px;
  height: 112px;
  margin: -25px -24px -25px -18px;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(1, 20, 42, 0.3));
  transform-origin: 50% 85%;
  animation: bdMascotBreathe 2.8s 1.4s ease-in-out infinite;
}

.bd-quote-launcher span {
  display: grid;
  text-align: left;
  line-height: 1.12;
}

.bd-quote-launcher:focus,
.bd-quote-launcher:focus-visible {
  outline: 0 !important;
}

.bd-quote-launcher small {
  color: #bdeeff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bd-quote-launcher strong {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 800;
}

.bd-quote-overlay {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility 0s linear 220ms, opacity 180ms ease;
}

.bd-quote-overlay.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.bd-quote-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 24, 52, 0.04);
}

#bd-quote-overlay .bd-quote-sheet {
  position: absolute;
  inset: auto 16px 16px auto !important;
  height: min(var(--bd-quote-height, 720px), calc(100dvh - 32px));
  width: min(690px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.88) !important;
  border-radius: 25px;
  background-color: rgba(239, 249, 253, 0.82) !important;
  background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(207, 239, 250, 0.08)) !important;
  box-shadow: 0 28px 90px rgba(1, 16, 39, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.18);
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
  transform: translateX(44px) scale(0.985);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), height 180ms ease;
}

#bd-quote-overlay.is-open .bd-quote-sheet {
  transform: translateX(0) scale(1);
}

.bd-quote-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  appearance: none;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  outline: 0 !important;
  color: #12395f !important;
  background: transparent !important;
  box-shadow: none !important;
  font: 700 30px/1 Arial, sans-serif;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.bd-quote-sheet-mascot {
  position: absolute;
  z-index: 4;
  top: -25px;
  right: 52px;
  left: auto;
  width: 122px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 13px 17px rgba(4, 27, 55, 0.25));
}

.bd-quote-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: inherit;
  background: transparent;
}

html.bd-quote-open,
html.bd-quote-open body {
  overflow: hidden !important;
}

@media (max-width: 700px) {
  .bd-quote-launcher {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 56px;
    padding: 4px 16px 4px 0;
  }

  .bd-quote-launcher img {
    top: -16px;
    left: -42px;
    width: 106px;
    height: 106px;
    margin: -25px -24px -25px -18px;
  }

  .bd-quote-launcher strong {
    font-size: 13px;
  }

  #bd-quote-overlay .bd-quote-sheet {
    inset: auto 0 0 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: min(var(--bd-quote-height, 625px), calc(100dvh - 58px));
    border-width: 1px 0 0;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
  }

  .bd-quote-sheet-mascot {
    top: -42px;
    right: 36px;
    left: auto;
    width: 104px;
  }

  #bd-quote-overlay.is-open .bd-quote-sheet {
    transform: translateY(0);
  }

  .bd-quote-close {
    top: 7px;
    right: 9px;
    width: 40px;
    height: 40px;
  }
}

@keyframes bdLauncherIn {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bdMascotBreathe {
  0%, 72%, 100% { transform: scale(1); }
  80% { transform: scale(1.07); }
  88% { transform: scale(0.98); }
}

@media (prefers-reduced-motion: reduce) {
  .bd-quote-launcher,
  .bd-quote-launcher img,
  .bd-quote-overlay,
  .bd-quote-sheet {
    transition: none;
  }
}
