.blamery-simple-heatmap-widget,
.blamery-simple-heatmap-widget * {
  box-sizing: border-box;
}

.blamery-simple-heatmap-widget {
  --purple: #A389FA;
  --purple-strong: #8E6BFA;
  --lime: #C7F76A;
  --lime-strong: #B8EF4F;
  --text: #1B1B1F;
  --muted: #6B7280;
  --grid: rgba(27, 27, 31, 0.12);
  --card: #FFFFFF;
  --soft: #FAFAFC;

  width: 100%;
  margin: 36px 0;
  padding: 30px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 7% 0%, rgba(163, 137, 250, 0.16), transparent 28%),
    radial-gradient(circle at 94% 12%, rgba(199, 247, 106, 0.20), transparent 32%),
    var(--card);
  border: 1px solid rgba(27, 27, 31, 0.08);
  box-shadow: 0 20px 60px rgba(20, 20, 30, 0.10);
  font-family: inherit;
  color: var(--text);
  overflow: hidden;
  position: relative;
}

.blamery-simple-heatmap-head h3 {
  margin: 0;
  color: var(--text);
  font-family: inherit;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.blamery-simple-heatmap-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}

/* Generated by JS to avoid WordPress breaking internal scale markup */
.blamery-simple-heatmap-scale {
  display: grid;
  grid-template-columns: max-content minmax(220px, 1fr) max-content;
  align-items: center;
  gap: 18px;
  margin: 26px 0 24px;
  color: var(--muted);
  font-family: inherit;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
}

.blamery-simple-heatmap-scale-label {
  display: block;
  white-space: nowrap;
}

.blamery-simple-heatmap-scale-bar {
  display: block;
  width: 100%;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--purple-strong) 0%,
    rgba(163, 137, 250, 0.34) 28%,
    #FAFAFC 50%,
    rgba(199, 247, 106, 0.46) 72%,
    var(--lime-strong) 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(27, 27, 31, 0.08),
    0 8px 18px rgba(27, 27, 31, 0.06);
}

.blamery-simple-heatmap-scroll {
  width: 100%;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(27, 27, 31, 0.10);
  background: #FFFFFF;
}

.blamery-simple-heatmap-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.25;
}

.blamery-simple-heatmap-table th,
.blamery-simple-heatmap-table td {
  padding: 14px 14px;
  border-right: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
  text-align: right;
  vertical-align: middle;
}

.blamery-simple-heatmap-table thead th {
  background: rgba(250, 250, 252, 0.92);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  position: sticky;
  top: 0;
  z-index: 4;
}

.blamery-simple-heatmap-table thead th:first-child {
  text-align: left;
  left: 0;
  z-index: 6;
}

.blamery-simple-heatmap-table tbody th {
  width: 310px;
  min-width: 310px;
  text-align: left;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  font-weight: 650;
  position: sticky;
  left: 0;
  z-index: 3;
}

.blamery-simple-heatmap-table td {
  min-width: 110px;
  color: #1B1B1F;
  font-weight: 700;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease,
    opacity 0.28s ease;
  opacity: 0;
  transform: scale(0.98);
}

.blamery-simple-heatmap-widget.is-visible .blamery-simple-heatmap-table td {
  opacity: 1;
  transform: scale(1);
}

.blamery-simple-heatmap-table td:hover {
  transform: scale(1.035);
  filter: saturate(1.12) brightness(1.03);
  box-shadow: inset 0 0 0 2px rgba(27, 27, 31, 0.22);
  position: relative;
  z-index: 5;
}

.blamery-simple-heatmap-table tr:last-child th,
.blamery-simple-heatmap-table tr:last-child td {
  border-bottom: 0;
}

.blamery-simple-heatmap-table th:last-child,
.blamery-simple-heatmap-table td:last-child {
  border-right: 0;
}

.blamery-simple-heatmap-note {
  margin-top: 16px;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  font-style: italic;
}

.blamery-simple-heatmap-tooltip {
  position: fixed;
  display: none;
  z-index: 99999;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(27, 27, 31, 0.94);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  pointer-events: none;
  box-shadow: 0 16px 35px rgba(27, 27, 31, 0.25);
}

@media (max-width: 767px) {
  .blamery-simple-heatmap-widget {
    padding: 22px 16px;
    border-radius: 22px;
  }

  .blamery-simple-heatmap-head h3 {
    font-size: 28px;
  }

  .blamery-simple-heatmap-head p {
    font-size: 15px;
  }

  .blamery-simple-heatmap-scale {
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 20px 0 18px;
    font-size: 13px;
  }

  .blamery-simple-heatmap-scale-label {
    white-space: normal;
  }

  .blamery-simple-heatmap-scale-bar {
    height: 18px;
  }

  .blamery-simple-heatmap-scroll {
    border-radius: 16px;
  }

  .blamery-simple-heatmap-table {
    min-width: 760px;
    font-size: 14px;
  }

  .blamery-simple-heatmap-table th,
  .blamery-simple-heatmap-table td {
    padding: 12px 12px;
  }

  .blamery-simple-heatmap-table tbody th {
    width: 260px;
    min-width: 260px;
  }

  .blamery-simple-heatmap-note {
    font-size: 12px;
  }
}