:root {
  --rgwa-green: #25D366;
  --rgwa-charcoal: #24211D;
  --rgwa-gold: #C5963F;
  --rgwa-gold-light: #D6AE5A;
  --rgwa-cream: #FFF9F1;
  --rgwa-text: #292621;
  --rgwa-muted: #716A62;
  --rgwa-border: #E4D8C8;
}

.rgwa-widget,
.rgwa-widget * { box-sizing: border-box; }

.rgwa-widget {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 999999;
  font-family: Arial, Helvetica, sans-serif;
}

.rgwa-launcher {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--rgwa-green);
  color: #fff;
  min-height: 52px;
  padding: 10px 20px 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rgwa-launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.2); }
.rgwa-wa-icon { width: 28px; height: 28px; border-radius: 50%; background:#fff; color:var(--rgwa-green); display:grid; place-items:center; flex:0 0 auto; }
.rgwa-wa-icon svg { width: 23px; height: 23px; fill: currentColor; display:block; }

.rgwa-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 14px);
  width: 390px;
  max-width: calc(100vw - 44px);
  background: #fff;
  border: 1px solid rgba(197,150,63,.25);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0,0,0,.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.985);
  transform-origin: bottom left;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.rgwa-panel.rgwa-open { opacity:1; visibility:visible; transform:translateY(0) scale(1); }

.rgwa-panel-head {
  position: relative;
  padding: 15px 34px 20px;
  background: var(--rgwa-charcoal);
  color: #fff;
  border-bottom: 2px solid var(--rgwa-gold);
}
.rgwa-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--rgwa-gold-light); margin-bottom: 10px; }
.rgwa-heading { font-family: Georgia, 'Times New Roman', serif; font-size: 26px; font-weight: 600; line-height: 1.2; }
.rgwa-close { position:absolute; top:11px; right:12px; width:30px; height:30px; display:grid; place-items:center; border:0; background:transparent; color:#fff; font-size:27px; line-height:1; cursor:pointer; padding:0; }

.rgwa-agent { text-align:center; padding: 18px 24px 15px; background:#fff; }
.rgwa-avatar-wrap { position:relative; width:76px; height:76px; margin:0 auto 10px; }
.rgwa-avatar { width:76px; height:76px; border-radius:50%; object-fit:cover; display:block; border:3px solid #fff; box-shadow:0 3px 14px rgba(0,0,0,.16); }
.rgwa-avatar-fallback { display:grid; place-items:center; background:var(--rgwa-charcoal); color:var(--rgwa-gold-light); font-family:Georgia,serif; font-size:30px; font-weight:700; }
.rgwa-online-dot { position:absolute; right:1px; bottom:4px; width:17px; height:17px; border-radius:50%; background:var(--rgwa-green); border:3px solid #fff; }
.rgwa-role { font-size:12px; color:#918980; margin-bottom:4px; }
.rgwa-agent-name { font-size:18px; font-weight:700; color:var(--rgwa-text); }

.rgwa-quick { padding: 14px 18px 16px; background: var(--rgwa-cream); border-top:1px solid var(--rgwa-border); }
.rgwa-prompt { font-size:13px; font-weight:700; color:var(--rgwa-text); margin:0 0 10px; }
.rgwa-question { width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 12px; margin:0 0 8px; border:1px solid var(--rgwa-border); border-radius:6px; background:#fff; color:var(--rgwa-text); text-align:left; font-size:13px; font-weight:600; line-height:1.35; cursor:pointer; transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease; }
.rgwa-question:last-child { margin-bottom:0; }
.rgwa-question:hover { background:var(--rgwa-charcoal); border-color:var(--rgwa-gold); color:#fff; transform:translateX(2px); }
.rgwa-chevron { color:var(--rgwa-gold); font-size:20px; line-height:1; flex:0 0 auto; }
.rgwa-question:hover .rgwa-chevron { color:var(--rgwa-gold-light); }

.rgwa-intro { padding: 15px 18px 17px; background:#fff; color:#5f5952; border-top:1px solid #eee8e1; font-size:13px; line-height:1.55; }

@media (max-width: 700px) {
  .rgwa-widget { left:14px; bottom:14px; }
  .rgwa-launcher { min-height:48px; padding:9px 16px 9px 11px; font-size:15px; }
  .rgwa-wa-icon { width:26px; height:26px; }
  .rgwa-wa-icon svg { width:21px; height:21px; }
  .rgwa-panel { width:min(360px, calc(100vw - 28px)); max-width:calc(100vw - 28px); }
  .rgwa-panel-head { padding:14px 30px 18px; }
  .rgwa-heading { font-size:23px; }
}

@media (max-width: 420px) {
  .rgwa-launcher-text { font-size:14px; }
  .rgwa-panel { max-height:72vh; overflow-y:auto; }
  .rgwa-question { font-size:12.5px; }
}


/* =========================================
   ROSHNI GHAR FINAL COLOR PATCH
   Only requested visual changes; popup size/layout unchanged.
========================================= */

/* 1) Floating WhatsApp button: green + full pill shape */
.rgwa-widget .rgwa-launcher {
  background: #25D366 !important;
  color: #FFFFFF !important;
  border-radius: 999px !important;
}

.rgwa-widget .rgwa-launcher:hover,
.rgwa-widget .rgwa-launcher:focus {
  background: #20BD5A !important;
  color: #FFFFFF !important;
}

/* Keep WhatsApp icon exactly in the original style */
.rgwa-widget .rgwa-wa-icon {
  background: #FFFFFF !important;
  color: #25D366 !important;
}

/* 2) Replace pink/red accents with Roshni Ghar gold */
.rgwa-widget .rgwa-close {
  border: 1px solid #C5963F !important;
  color: #D6AE5A !important;
  background: transparent !important;
  border-radius: 6px !important;
}

.rgwa-widget .rgwa-close:hover,
.rgwa-widget .rgwa-close:focus {
  background: #C5963F !important;
  color: #FFFFFF !important;
}

.rgwa-widget .rgwa-question {
  border-color: #C5963F !important;
  color: #C5963F !important;
  background: #FFFFFF !important;
}

.rgwa-widget .rgwa-question .rgwa-chevron {
  color: #C5963F !important;
}

.rgwa-widget .rgwa-question:hover,
.rgwa-widget .rgwa-question:focus {
  background: #24211D !important;
  border-color: #C5963F !important;
  color: #D6AE5A !important;
}

.rgwa-widget .rgwa-question:hover .rgwa-chevron,
.rgwa-widget .rgwa-question:focus .rgwa-chevron {
  color: #D6AE5A !important;
}

/* =========================================
   FINAL TWO-FIX PATCH
   1) WhatsApp icon + text in ONE line
   2) Avatar forced in PHP to Roshni Ghar logo
========================================= */

.rgwa-launcher {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 330px !important;
  max-width: calc(100vw - 28px) !important;
  white-space: nowrap !important;
  gap: 10px !important;
}

.rgwa-launcher .rgwa-wa-icon {
  display: inline-grid !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.rgwa-launcher .rgwa-launcher-text {
  display: inline-block !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

@media (max-width: 420px) {
  .rgwa-launcher {
    min-width: 305px !important;
    max-width: calc(100vw - 20px) !important;
    padding-left: 14px !important;
    padding-right: 18px !important;
  }

  .rgwa-launcher .rgwa-launcher-text {
    font-size: 14px !important;
    white-space: nowrap !important;
  }
}

/* =========================================
   MOBILE THIRD OPTION - EXACT HARD 2 LINES
========================================= */
.rgwa-q3-mobile {
  display: none !important;
}

@media (max-width: 480px) {
  .rgwa-question-three {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 64px !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    overflow: visible !important;
  }

  .rgwa-question-three .rgwa-q3-desktop {
    display: none !important;
  }

  .rgwa-question-three .rgwa-q3-mobile {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: calc(100% - 26px) !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.35 !important;
    text-align: left !important;
  }

  .rgwa-question-three .rgwa-q3-mobile br {
    display: block !important;
  }

  .rgwa-question-three .rgwa-chevron {
    flex: 0 0 auto !important;
    margin-left: 8px !important;
  }
}


/* =========================================
   POSITION ONLY: FLOATING BUTTON ON RIGHT
   No other styling/layout changes
========================================= */
.rgwa-launcher {
  left: auto !important;
  right: 28px !important;
}

@media (max-width: 480px) {
  .rgwa-launcher {
    left: auto !important;
    right: 16px !important;
  }
}
