/* Fullscreen referral iframe */
html, body { height: 100%; margin: 0; padding: 0; }
.ref-frame{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Floating widget */
.widget{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 240px;
  max-width: calc(100vw - 24px);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  overflow: hidden;
  z-index: 99999;
  border: 1px solid rgba(0,0,0,.06);
}

.widget.dragging { opacity: .98; }

.widget-header{
  background: #f6c51d;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: grab;
  user-select: none;
  touch-action: none; /* mobile drag */
}

.widget-header:active{ cursor: grabbing; }

.widget-title{
  font-weight: 900;
  font-size: 14px;
  color: #111;
}

.widget-close{
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 0;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  font-size: 18px;
  line-height: 32px;
}

.widget-body{ padding: 8px; }

.widget-input{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
  outline: none;
  font-size: 14px;
  height: 42px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.widget-input:focus{
  border-color: rgba(246,197,29,.7);
  box-shadow: 0 0 0 4px rgba(246,197,29,.25);
}

.btn{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 12px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  font-size: 14px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.btn-primary{
  background: #f6c51d;
  color: #111;
}

.btn-secondary{
  background: #f3f4f6;
  color: #111;
}

.widget-msg{
  font-size: 12px;
  color: #d11;
  min-height: 16px;
}

/* Panel area (inside widget) */
.hidden{ display:none !important; }

.widget-panel{
  display: block;
}

.panel-frame{
  width: 100%;
  height: 200px;   
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
}

.panel-toolbar{
  display:flex;
  justify-content:flex-end;
  margin-top: 10px;
}

.panel-toolbar .btn{
  width: auto;
  margin: 0;
  padding: 10px 12px;
}

/* Minimized launcher button */
.launcher{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 0;
  background: #f6c51d;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  cursor: grab;
  user-select: none;
  touch-action: none; /* mobile drag */
  z-index: 99999;
  font-size: 20px;
  font-weight: 900;
  color: #111;
}

.launcher:active{ cursor: grabbing; }

/* Mobile একটু ছোট */
@media (max-width: 420px){
  .widget{ width: 240px; }
  .panel-frame{ height: 190px; }
}
