.dfshw-widget {
  --dfshw-bg: rgba(13, 8, 20, .96);
  --dfshw-card: rgba(255, 255, 255, .055);
  --dfshw-border: rgba(203, 154, 255, .24);
  --dfshw-text: #f8f4ff;
  --dfshw-muted: #b9abc7;
  --dfshw-purple: var(--dfs-purple, #a34dff);
  --dfshw-pink: var(--dfs-pink, #ff4fd8);
  --dfshw-shadow: 0 24px 70px rgba(0, 0, 0, .52), 0 0 40px rgba(163, 77, 255, .16);
  position: fixed;
  z-index: 80;
  bottom: calc(100px + env(safe-area-inset-bottom));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dfshw-text);
}

.dfshw-widget--right { right: 18px; }
.dfshw-widget--left { left: 18px; }

.dfshw-launcher {
  min-height: 54px;
  border: 1px solid rgba(203, 154, 255, .36);
  border-radius: 999px;
  padding: 7px 16px 7px 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, .24), transparent 36%),
    linear-gradient(135deg, var(--dfshw-purple), var(--dfshw-pink));
  box-shadow: 0 18px 45px rgba(0, 0, 0, .38), 0 0 34px rgba(163, 77, 255, .28);
  cursor: pointer;
  font-weight: 950;
  letter-spacing: -.02em;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.dfshw-launcher:hover,
.dfshw-launcher[aria-expanded="true"] {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 22px 52px rgba(0, 0, 0, .44), 0 0 45px rgba(255, 79, 216, .28);
}

.dfshw-launcher__icon {
  width: 39px;
  height: 39px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #190d22;
  background: #fff;
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
  box-shadow: inset 0 -6px 14px rgba(163, 77, 255, .18);
}

.dfshw-launcher__label {
  white-space: nowrap;
}

.dfshw-panel {
  position: absolute;
  bottom: calc(100% + 14px);
  width: min(420px, calc(100vw - 28px));
  max-height: min(650px, calc(100dvh - 145px));
  overflow: hidden;
  border: 1px solid var(--dfshw-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 79, 216, .15), transparent 210px),
    radial-gradient(circle at 0% 12%, rgba(163, 77, 255, .23), transparent 250px),
    var(--dfshw-bg);
  box-shadow: var(--dfshw-shadow);
  backdrop-filter: blur(22px);
}

.dfshw-widget--right .dfshw-panel { right: 0; }
.dfshw-widget--left .dfshw-panel { left: 0; }

.dfshw-panel[hidden] { display: none !important; }

.dfshw-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 20px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.dfshw-panel__topline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.dfshw-panel__eyebrow {
  display: inline-flex;
  margin-bottom: 0;
  padding: 6px 10px;
  border: 1px solid rgba(255, 79, 216, .24);
  border-radius: 999px;
  color: #ffd8f6;
  background: rgba(255, 79, 216, .10);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}


.dfshw-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2aa8ff, #0879ff);
  box-shadow: 0 10px 24px rgba(8, 121, 255, .28);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.dfshw-support:hover,
.dfshw-support:focus {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(8, 121, 255, .36);
  text-decoration: none;
}

.dfshw-support__icon {
  width: 14px;
  height: 14px;
  display: block;
}

.dfshw-panel__header h2 {
  margin: 0;
  color: #fff;
  font-size: 23px;
  line-height: 1.03;
  letter-spacing: -.045em;
  font-weight: 950;
}

.dfshw-panel__header p {
  margin: 8px 0 0;
  color: var(--dfshw-muted);
  font-size: 13px;
  line-height: 1.45;
}

.dfshw-panel__close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.dfshw-panel__close:hover {
  background: rgba(255, 255, 255, .13);
}

.dfshw-panel__list {
  max-height: calc(min(650px, calc(100dvh - 145px)) - 115px);
  overflow: auto;
  padding: 12px;
}

.dfshw-item + .dfshw-item { margin-top: 9px; }

.dfshw-question {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(203, 154, 255, .19);
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, .052);
  cursor: pointer;
  text-align: left;
  font-weight: 900;
  line-height: 1.25;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.dfshw-question:hover,
.dfshw-question[aria-expanded="true"] {
  border-color: rgba(203, 154, 255, .52);
  background: linear-gradient(135deg, rgba(124, 44, 255, .24), rgba(255, 79, 216, .13));
}

.dfshw-question[aria-expanded="true"] {
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.dfshw-question b {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .10);
  font-size: 17px;
  line-height: 1;
  transition: transform .18s ease;
}

.dfshw-question[aria-expanded="true"] b { transform: rotate(45deg); }

.dfshw-answer[hidden] { display: none !important; }

.dfshw-answer {
  margin-top: 2px;
  padding: 0 1px 1px;
}

.dfshw-answer__body {
  padding: 15px;
  border: 1px solid rgba(203, 154, 255, .15);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  color: #e9dff1;
  background: rgba(0, 0, 0, .18);
  font-size: 14px;
  line-height: 1.62;
}

.dfshw-answer__body > :first-child { margin-top: 0; }
.dfshw-answer__body > :last-child { margin-bottom: 0; }
.dfshw-answer__body p { margin: 0 0 12px; }
.dfshw-answer__body strong { color: #fff; }
.dfshw-answer__body a { color: #ffd8f6; text-decoration: underline; }
.dfshw-answer__body ul,
.dfshw-answer__body ol { padding-left: 20px; }

.dfshw-answer__body img,
.dfshw-answer__body video,
.dfshw-answer__body iframe,
.dfshw-answer__body .wp-video,
.dfshw-answer__body .wp-video video {
  width: 100% !important;
  max-width: 100%;
  border-radius: 16px;
}

.dfshw-answer__body img,
.dfshw-answer__body video,
.dfshw-answer__body iframe {
  margin: 12px 0;
  border: 1px solid rgba(255, 255, 255, .10);
  background: #08050d;
}

.dfshw-answer__body iframe {
  aspect-ratio: 16 / 9;
  height: auto;
}

@media (min-width: 1024px) {
  .dfshw-widget { bottom: 24px; }
}

body.dfs-drawer-open .dfshw-widget {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
}

@media (max-width: 560px) {
  .dfshw-widget {
    bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .dfshw-widget--right {
    right: 12px !important;
    left: auto !important;
  }

  .dfshw-widget--left {
    left: 12px !important;
    right: auto !important;
  }

  .dfshw-launcher {
    min-height: 44px;
    padding: 5px 12px 5px 6px;
    gap: 8px;
    font-size: 14px;
    border-radius: 999px;
  }

  .dfshw-launcher__icon {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .dfshw-panel {
    width: min(360px, calc(100vw - 24px));
    max-height: calc(100dvh - 150px);
    border-radius: 22px;
  }

  .dfshw-widget--right .dfshw-panel {
    right: 0 !important;
    left: auto !important;
  }

  .dfshw-widget--left .dfshw-panel {
    left: 0 !important;
    right: auto !important;
  }

  .dfshw-panel__header {
    padding: 16px 16px 12px;
  }

  .dfshw-panel__topline {
    gap: 6px;
  }

  .dfshw-support {
    min-height: 26px;
    padding: 5px 9px;
    font-size: 10px;
  }

  .dfshw-panel__header h2 {
    font-size: 20px;
  }

  .dfshw-panel__list {
    max-height: calc(100dvh - 250px);
    padding: 10px;
  }
}
