:root {
  --ieq-black: #070707;
  --ieq-ink: #201915;
  --ieq-muted: #766a5f;
  --ieq-line: rgba(199, 162, 87, 0.28);
  --ieq-gold: #c7a257;
  --ieq-gold-soft: #ead9b1;
  --ieq-cream: #fbf7ef;
  --ieq-wine: #7d2f1d;
  --ieq-green: #1f4c3c;
  --ieq-white: #ffffff;
  --ieq-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

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

.ieq-widget {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 999998;
  color: var(--ieq-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ieq-widget button,
.ieq-widget a {
  font: inherit;
}

.ieq-launcher {
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(199, 162, 87, 0.55);
  border-radius: 999px;
  padding: 8px 17px 8px 8px;
  color: var(--ieq-white);
  background:
    linear-gradient(135deg, rgba(125, 47, 29, 0.54), rgba(31, 76, 60, 0.35)),
    var(--ieq-black);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ieq-launcher:hover,
.ieq-launcher:focus-visible {
  transform: translateY(-2px);
  border-color: var(--ieq-gold);
  background:
    linear-gradient(135deg, rgba(125, 47, 29, 0.72), rgba(31, 76, 60, 0.46)),
    #111;
}

.ieq-launcher__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ieq-black);
  background: linear-gradient(135deg, var(--ieq-gold-soft), var(--ieq-gold));
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.94rem;
  font-weight: 700;
}

.ieq-launcher__copy {
  display: grid;
  gap: 1px;
  text-align: left;
}

.ieq-launcher__copy strong {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.05;
}

.ieq-launcher__copy small {
  color: var(--ieq-gold-soft);
  font-size: 0.74rem;
  font-weight: 700;
}

.ieq-panel {
  position: absolute;
  left: 0;
  bottom: 82px;
  width: min(430px, calc(100vw - 36px));
  height: min(760px, calc(100vh - 118px));
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid rgba(199, 162, 87, 0.32);
  border-radius: 22px;
  background: var(--ieq-cream);
  box-shadow: var(--ieq-shadow);
}

.ieq-panel[hidden] {
  display: none;
}

.ieq-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 15px;
  color: var(--ieq-white);
  background:
    linear-gradient(135deg, rgba(199, 162, 87, 0.14), rgba(125, 47, 29, 0.22)),
    var(--ieq-black);
}

.ieq-eyebrow {
  margin: 0 0 5px;
  color: var(--ieq-gold-soft);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ieq-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0;
}

.ieq-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ieq-open,
.ieq-close {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--ieq-white);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.ieq-open {
  padding: 0 13px;
  font-size: 0.82rem;
  font-weight: 800;
}

.ieq-close {
  width: 38px;
  padding: 0;
  cursor: pointer;
}

.ieq-close span {
  transform: translateY(-1px);
  font-size: 1.6rem;
  line-height: 1;
}

.ieq-frameWrap {
  min-height: 0;
  background: #f7efe2;
}

.ieq-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f7efe2;
}

@media (max-width: 767px) {
  .ieq-widget {
    left: 14px;
    right: 14px;
    bottom: 92px;
  }

  .ieq-launcher {
    width: 100%;
    justify-content: flex-start;
  }

  .ieq-panel {
    position: fixed;
    inset: 14px 12px 92px;
    width: auto;
    height: auto;
    border-radius: 18px;
  }
}
