#bqb-widget {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 9999;
  width: min(320px, calc(100vw - 24px));
  font-family: inherit;
}

.bqb-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 18px 20px;
  border-radius: 18px 0 0 18px;
  background: #203a78;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.bqb-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bqb-title {
  margin: 0 28px 8px 0;
  font-size: 18px;
  line-height: 1.3;
  color: #fff;
}

.bqb-text {
  margin: 0 0 14px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
}

.bqb-cta {
  display: inline-block;
  text-decoration: none;
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
  color: #203a78;
  font-weight: 600;
}

.bqb-secondary {
  display: inline-block;
  margin-top: 10px;
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 6px 10px;
  background: #203a78;
  color: #fff;
  font: inherit;
  cursor: pointer;
  font-size: 0.8rem;
}

.bqb-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.bqb-close:focus,
.bqb-cta:focus,
.bqb-secondary:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  #bqb-widget {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    transform: none;
    width: auto;
  }

  .bqb-box {
    border-radius: 18px;
    padding: 16px;
  }

  .bqb-title {
    font-size: 16px;
  }

  .bqb-text {
    font-size: 13px;
  }

  .bqb-cta {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .bqb-secondary {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}
