.vmd-waqa {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999999;
  font-family: inherit;
}

/* Floating button */
.vmd-waqa__fab {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  background: var(--vmd-waqa-btn, #67c46b);
  color: #fff;
  position: relative;
}

/* Toggle icons inside the same button */
.vmd-waqa__ico {
  font-size: 30px;
  line-height: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.vmd-waqa__ico--x {
  opacity: 0;
  pointer-events: none;
}

.vmd-waqa.is-open .vmd-waqa__ico--wa {
  opacity: 0;
  pointer-events: none;
}

.vmd-waqa.is-open .vmd-waqa__ico--x {
  opacity: 1;
  pointer-events: none;
}

/* Panel */
.vmd-waqa__panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: 360px;
  max-width: calc(100vw - 32px);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: all 180ms ease;
  background: #fff;
}

/* Red header background extension (goes behind the white card) */
.vmd-waqa__panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;

  /* Adjust these if you want more/less red under the card */
  height: 55%;
  min-height: 210px;

  background: var(--vmd-waqa-primary, #990000);
  z-index: 0;
}

.vmd-waqa__header,
.vmd-waqa__body {
  position: relative;
  z-index: 1;
}

.vmd-waqa.is-open .vmd-waqa__panel {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Header */
.vmd-waqa__header {
  padding: 26px 26px 18px;
  background: var(--vmd-waqa-primary, #990000);
  color: #fff;
}

.vmd-waqa__brand {
  font-weight: 700;
  font-size: 14px;
  opacity: 0.95;
  margin-bottom: 18px;
}

.vmd-waqa__headrow {
  display: block;
}

.vmd-waqa__titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}


.vmd-waqa__title {
  font-size: 22px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.vmd-waqa__subtitle {
  margin-top: 10px;
  font-size: 17px;
  opacity: 0.95;
  width:auto;
}

/* Avatars */
.vmd-waqa__avatars {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.vmd-waqa__avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  border: 0px solid rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.18);
}

.vmd-waqa__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Body */
.vmd-waqa__body {
  padding: 18px 18px 22px;
  background: transparent;
}

.vmd-waqa__card {
  border-radius: 18px;
  background: #fff;
  padding: 18px 18px 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.vmd-waqa__cardtitle {
  font-weight: 800;
  font-size: 20px;
  text-align: center;
  margin-bottom: 10px;
  color: #111;
}

.vmd-waqa__cardtext {
  text-align: center;
  color: #666;
  font-size: 15px;
  margin-bottom: 14px;
}

.vmd-waqa__qrwrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.vmd-waqa__qr {
  width: 160px;
  height: 160px;
  max-width: 100%;
  border-radius: 10px;
  display: block;
  background: #fff;
}

/* Button */
.vmd-waqa__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 13px;
  background: var(--vmd-waqa-btn, #67c46b);
  color: #fff !important;
  transition: background-color 150ms ease, transform 150ms ease;
}

.vmd-waqa__btn:hover {
  background: #7ad97e;
  transform: translateY(-1px);
}

.vmd-waqa__btn i {
  font-size: 18px;
}

/* Mobile tweaks */
@media (max-width: 420px) {
  .vmd-waqa__title {
    font-size: 20px;
  }
}

.vmd-waqa__logo{
  display:block;
  max-height: 35px;
  width:auto;
  margin: 0 0 40px 0;
}
