:root{
  --kgnet-wabc-bottom: 24px;
  --kgnet-wabc-side: 24px;
  --kgnet-wabc-left: 24px;

  /* Brand palette (gold/black/white) */
  --kgnet-wabc-gold: #C9A14A;
  --kgnet-wabc-gold2: #E6C56A;
  --kgnet-wabc-black: #0B0B0D;
  --kgnet-wabc-white: #FFFFFF;

  --kgnet-wabc-shadow: 0 14px 40px rgba(0,0,0,.35);
  --kgnet-wabc-radius: 999px;
  --kgnet-wabc-gap: 10px;

  --kgnet-wabc-wa: #25D366;
}

/* Floating buttons */
.kgnet-wabc-float{
  position: fixed;
  z-index: 99999;
  bottom: var(--kgnet-wabc-bottom);
  right: var(--kgnet-wabc-side);
  left: auto;
  display: flex;
  flex-direction: column;
  gap: var(--kgnet-wabc-gap);
  align-items: flex-end;
  pointer-events: none;
}

.kgnet-wabc-float[data-position="left"]{
  left: var(--kgnet-wabc-left);
  right: auto;
  align-items: flex-start;
}

.kgnet-wabc-btn{
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--kgnet-wabc-radius);
  padding: 12px;
  border: 1px solid rgba(201,161,74,.45);
  background: rgba(11,11,13,.86);
  color: #fff;
  text-decoration: none !important;
  box-shadow: var(--kgnet-wabc-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, opacity .16s ease;
  font: 700 13px/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.kgnet-wabc-btn:hover{
  transform: translateY(-2px);
  border-color: rgba(230,197,106,.65);
  background: rgba(11,11,13,.92);
}

.kgnet-wabc-ic{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(201,161,74,.30);
}

.kgnet-wabc-btn--whatsapp .kgnet-wabc-ic{
  background: rgba(37,211,102,.12);
  border-color: rgba(37,211,102,.35);
}

.kgnet-wabc-btn svg{ fill:#fff; opacity:.95; }
.kgnet-wabc-label{ white-space: nowrap; letter-spacing: .2px; }

.kgnet-wabc-btn--top{
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}
.kgnet-wabc-btn--top.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Modal */
.kgnet-wabc-modal{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}
.kgnet-wabc-modal.is-open{ display: block; }

.kgnet-wabc-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.kgnet-wabc-modal__panel{
  position: absolute;
  right: calc(var(--kgnet-wabc-side) + 0px);
  bottom: calc(var(--kgnet-wabc-bottom) + 72px);
  width: min(360px, calc(100vw - 24px));
  background: var(--kgnet-wabc-white);
  border: 2px solid rgba(201,161,74,.70);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  overflow: hidden;
  transform: translateY(8px);
  opacity: 0;
  animation: kgnetWabcIn .16s ease forwards;
}

.kgnet-wabc-float[data-position="left"] + .kgnet-wabc-modal,
.kgnet-wabc-modal[data-position="left"] .kgnet-wabc-modal__panel{ left: calc(var(--kgnet-wabc-left) + 0px); right: auto; }

@keyframes kgnetWabcIn{
  to { transform: translateY(0); opacity: 1; }
}

.kgnet-wabc-modal__head{
  background: linear-gradient(135deg, rgba(201,161,74,.18), rgba(0,0,0,.04));
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(201,161,74,.35);
}

.kgnet-wabc-modal__title{
  display: flex;
  gap: 10px;
  align-items: center;
  color: #111;
  font: 800 14px/1.15 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.kgnet-wabc-modal__badge{
  background: rgba(201,161,74,.20);
  color: #111;
  border: 1px solid rgba(201,161,74,.55);
  border-radius: 999px;
  padding: 4px 8px;
  font: 900 11px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.kgnet-wabc-modal__close{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  color: #111;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.kgnet-wabc-modal__close:hover{ border-color: rgba(201,161,74,.55); }

.kgnet-wabc-modal__body{
  padding: 14px;
  color: #111;
}

.kgnet-wabc-modal__sub{
  margin: 0 0 12px;
  color: rgba(0,0,0,.72);
  font: 600 13px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.kgnet-wabc-modal__actions{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.kgnet-wabc-action{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 12px;
  border-radius: 12px;
  text-decoration: none !important;
  font: 900 13px/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  border: 1px solid rgba(0,0,0,.12);
  transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease;
}
.kgnet-wabc-action:hover{ transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.14); }

.kgnet-wabc-action--gold{
  background: linear-gradient(135deg, var(--kgnet-wabc-gold), var(--kgnet-wabc-gold2));
  color: #0b0b0d;
  border-color: rgba(201,161,74,.60);
}

.kgnet-wabc-action--whatsapp{
  background: var(--kgnet-wabc-wa);
  color: #0b0b0d;
  border-color: rgba(37,211,102,.65);
}

.kgnet-wabc-modal__meta{
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px dashed rgba(201,161,74,.45);
  padding-top: 10px;
}

.kgnet-wabc-legal{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.kgnet-wabc-legal a{
  color: rgba(0,0,0,.70);
  font: 800 12px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-decoration: none;
}
.kgnet-wabc-legal a:hover{ color: #000; text-decoration: underline; }

.kgnet-wabc-by{
  display: flex;
  gap: 6px;
  align-items: center;
  color: rgba(0,0,0,.55);
  font: 800 12px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.kgnet-wabc-by a{
  color: #000;
  text-decoration: none;
}
.kgnet-wabc-by a:hover{ text-decoration: underline; }

.kgnet-wabc-noscroll{ overflow: hidden; }

@media (max-width: 520px){
  .kgnet-wabc-modal__panel{
    right: 12px;
    bottom: 96px;
  }
}

/* Responsive: tablets & phones */
@media (max-width: 900px){
  .kgnet-wabc-label{ display:none !important; } /* icons only on smart devices */
  .kgnet-wabc-btn{ padding: 10px; }
  .kgnet-wabc-ic{ width: 38px; height: 38px; }
  .kgnet-wabc-float{ gap: 8px; }
  .kgnet-wabc-modal__panel{
    width: min(340px, calc(100vw - 18px));
    bottom: calc(var(--kgnet-wabc-bottom) + 66px);
  }
  .kgnet-wabc-modal__head{ padding: 12px; }
  .kgnet-wabc-modal__body{ padding: 12px; }
}

/* Extra small phones */
@media (max-width: 520px){
  .kgnet-wabc-btn{ padding: 9px; }
  .kgnet-wabc-ic{ width: 36px; height: 36px; }
  .kgnet-wabc-modal__panel{
    right: 10px;
    bottom: 88px;
    width: min(330px, calc(100vw - 16px));
  }
  .kgnet-wabc-modal__meta{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}


/* Ultra-compact mobile (force icons only) */
@media (max-width: 1024px){
  .kgnet-wabc-label{ display:none !important; }
}
@media (max-width: 768px){
  .kgnet-wabc-btn{ padding: 8px; }
  .kgnet-wabc-ic{ width: 34px; height: 34px; }
  .kgnet-wabc-btn svg{ width: 18px; height: 18px; }
  .kgnet-wabc-modal__panel{ width: min(320px, calc(100vw - 14px)); }
}


/* v1.2.0 responsive + sizing */
.kgnet-wabc-label{ font-size: 12px; }

/* Desktop: allow labels (if enabled), Mobile/Tablet: icons only */
@media (max-width: 1024px){
  .kgnet-wabc-label{ display:none !important; }
  .kgnet-wabc-btn{ padding: 7px !important; }
  .kgnet-wabc-ic{ width: 32px !important; height: 32px !important; }
}

/* Phones */
@media (max-width: 600px){
  .kgnet-wabc-btn{ padding: 6px !important; }
  .kgnet-wabc-ic{ width: 30px !important; height: 30px !important; }
  .kgnet-wabc-float{ gap: 6px !important; }
  .kgnet-wabc-modal__panel{ width: min(310px, calc(100vw - 12px)) !important; }
}
