.ggj-click-response {
  --ggj-cr-accent: #2563eb;
  --ggj-cr-navy: #172033;
  --ggj-cr-border: #e5e7eb;
  --ggj-cr-muted: #667085;
  --ggj-cr-bg: #ffffff;
  width: 100%;
  max-width: min(100%, var(--wp--style--global--content-size, 840px));
  margin-right: auto;
  margin-left: auto;
  overflow: hidden;
  box-sizing: border-box;
  color: #151515;
}

.editor-styles-wrapper .ggj-click-response,
.block-editor-block-list__layout .ggj-click-response,
.post_content .ggj-click-response {
  max-width: min(100%, var(--wp--style--global--content-size, 840px));
}

.ggj-click-response *,
.ggj-click-response *::before,
.ggj-click-response *::after {
  box-sizing: border-box;
}

.ggj-click-response a {
  color: inherit;
  text-decoration: none;
}

.ggj-click-response a:hover {
  color: var(--ggj-cr-accent);
}

.ggj-click-response.has-frame,
.ggj-rapid-trigger.has-frame {
  padding: 16px;
  border: 1px solid var(--ggj-cr-border);
  background: #ffffff;
}

.ggj-click-response__chart {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  margin: 1.25rem 0 1.5rem;
}

.ggj-click-response__bar-row {
  display: grid;
  grid-template-columns: minmax(104px, 180px) minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 2px 6px 2px 2px;
  min-height: 30px;
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.ggj-click-response__bar-row:hover,
.ggj-click-response__bar-row:focus-within {
  background: #f5f7fa;
  box-shadow: inset 0 0 0 999px #f5f7fa;
}

.ggj-click-response.value-end .ggj-click-response__bar-row {
  grid-template-columns: minmax(104px, 180px) minmax(0, 1fr) 64px;
}

.ggj-click-response__bar-name {
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #202020;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  text-align: right;
}

.ggj-click-response__bar-name a {
  display: block;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.ggj-click-response__bar-row.is-highlighted {
	background: var(--ggj-cr-highlight, #eaf3ff);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ggj-cr-highlight, #eaf3ff) 72%, #94a3b8);
}

.ggdb-color-palette-label {
	margin: 12px 0 8px;
	color: #475569;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
}

.ggdb-color-palette {
	display: grid;
	grid-template-columns: repeat(5, 28px);
	gap: 8px;
	margin: 0 0 8px;
}

.ggdb-color-swatch {
	width: 28px !important;
	min-width: 28px !important;
	height: 28px !important;
	padding: 0 !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 4px !important;
	box-shadow: none !important;
	color: #0f172a !important;
	font-size: 12px !important;
	line-height: 1 !important;
}

.ggdb-color-swatch.is-selected {
	outline: 2px solid #0f172a;
	outline-offset: 2px;
}

.ggdb-editor-block {
	position: relative;
	margin-bottom: 2rem;
	padding: 2px;
}

.ggdb-editor-block::before {
	content: "";
	position: absolute;
	inset: -4px;
	z-index: 1;
	border: 1px solid transparent;
	border-radius: 4px;
	pointer-events: none;
}

.ggdb-editor-block:hover::before,
.ggdb-editor-block.is-selected::before {
	border-color: #93c5fd;
}

.ggdb-editor-block .ggj-click-response,
.ggdb-editor-block .ggj-rapid-trigger {
	pointer-events: none;
}

.ggj-click-response__bar-cell {
  position: relative;
  display: block;
  padding-right: 0;
  min-width: 0;
  max-width: 100%;
}

.ggj-click-response.value-end .ggj-click-response__bar-cell {
  display: block;
}

.ggj-click-response.value-right .ggj-click-response__bar-cell::before {
  content: none;
}

.ggj-click-response__bar-track {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 14px;
  overflow: visible;
  background: #eef1f5;
  border-radius: 0;
  z-index: 1;
}

.ggj-click-response.value-end .ggj-click-response__bar-track {
  width: 100%;
  background: #eef1f5;
}

.ggj-click-response__bar {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  width: var(--bar-width, 0%);
  min-width: 2px;
  border-radius: 0;
  background: var(--ggj-cr-accent);
}

.ggj-click-response.is-rounded .ggj-click-response__bar-track,
.ggj-click-response.is-rounded .ggj-click-response__bar {
  border-radius: 999px;
}

.ggj-click-response__bar-row.is-fastest .ggj-click-response__bar {
  background: #1d9a72;
}

.ggj-click-response__bar-row.is-fast .ggj-click-response__bar {
  background: #2f7dd1;
}

.ggj-click-response__bar-row.is-slow .ggj-click-response__bar,
.ggj-click-response__legend-item.is-slow .ggj-click-response__legend-swatch {
  background: #d97706;
}

.ggj-click-response__bar-row.is-too-slow .ggj-click-response__bar,
.ggj-click-response__legend-item.is-too-slow .ggj-click-response__legend-swatch {
  background: #777777;
}

.ggj-click-response__bar-value {
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ggj-cr-navy);
  text-align: right;
  white-space: nowrap;
}

.ggj-click-response.value-right .ggj-click-response__bar-value {
  position: absolute;
  top: 50%;
  left: min(calc(var(--bar-width, 0%) + 8px), calc(100% - 54px));
  transform: translateY(-50%);
  z-index: 1;
  text-align: left;
}

.ggj-click-response__bar-stdev {
  display: none;
}

.ggj-click-response__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 1rem;
  color: var(--ggj-cr-muted);
  font-size: 0.78rem;
}

.ggj-click-response__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ggj-click-response__legend-item small {
  color: #8a8f98;
  font-size: 0.72rem;
}

.ggj-click-response__legend-swatch {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: var(--ggj-cr-accent);
}

.ggj-click-response__legend-item.is-fastest .ggj-click-response__legend-swatch {
  background: #1d9a72;
}

.ggj-click-response__legend-item.is-fast .ggj-click-response__legend-swatch {
  background: #2f7dd1;
}

.ggj-click-response__table-wrap {
  margin-top: 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--ggj-cr-border);
  border-radius: 0;
  background: var(--ggj-cr-bg);
}

.ggj-click-response__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 360px;
  table-layout: fixed;
  font-size: 0.92rem;
}

.ggj-click-response__table th:first-child,
.ggj-click-response__table td:first-child {
  width: 42%;
}

.ggj-click-response__table th:not(:first-child),
.ggj-click-response__table td:not(:first-child) {
  width: 29%;
}

.ggj-click-response__table th,
.ggj-click-response__table td {
  padding: 0.78rem 0.9rem;
  border-bottom: 1px solid #eef1f5;
  text-align: center;
  vertical-align: middle;
}

.ggj-click-response__table th {
  background: #f8fafc;
  color: var(--ggj-cr-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.ggj-click-response__table tr:last-child td {
  border-bottom: 0;
}

.ggj-click-response__mouse {
  font-weight: 650;
  overflow-wrap: anywhere;
}

.ggj-click-response-notice {
  padding: 0.9rem 1rem;
  border: 1px solid #c7d2fe;
  border-radius: 4px;
  background: #f8fbff;
  color: #1e3a8a;
}

.ggj-rapid-trigger {
  width: 100%;
  max-width: min(100%, var(--wp--style--global--content-size, 840px));
  margin-right: auto;
  margin-left: auto;
  color: #151515;
}

.ggj-rapid-trigger {
  --ggj-rt-blue: #8ddfd2;
  --ggj-rt-track: #eef1f5;
  --ggj-rt-border: #e5e7eb;
}

.wp-block-ggdb-rapid-trigger-accuracy,
.editor-styles-wrapper .ggj-rapid-trigger {
  margin-bottom: 2rem;
}

.ggj-rapid-trigger__selector {
  margin: 0 0 18px;
}

.ggj-rapid-trigger__selector label {
  display: grid;
  gap: 6px;
  max-width: 360px;
  position: relative;
}

.ggj-rapid-trigger__selector span {
  color: var(--ggj-cr-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.ggj-rapid-trigger__selector select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 42px;
  padding: 0 38px 0 12px;
  border: 1px solid var(--ggj-rt-border);
  border-radius: 3px;
  background:
    linear-gradient(45deg, transparent 50%, #334155 50%) calc(100% - 18px) 52% / 6px 6px no-repeat,
    linear-gradient(135deg, #334155 50%, transparent 50%) calc(100% - 13px) 52% / 6px 6px no-repeat,
    #ffffff;
  color: #172033;
  font-size: 0.92rem;
}

.ggj-rapid-trigger__panel {
  display: none;
}

.ggj-rapid-trigger__panel.is-active {
  display: block;
}

.ggj-rapid-trigger *,
.ggj-rapid-trigger *::before,
.ggj-rapid-trigger *::after {
  box-sizing: border-box;
}

.ggj-rapid-trigger__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}

.ggj-rapid-trigger__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin: 0 0 14px;
}

.ggj-rapid-trigger__summary h3 {
  margin: 0 0 6px;
  font-size: 1.06rem;
  line-height: 1.45;
}

.ggj-rapid-trigger__summary p {
  margin: 0;
  color: var(--ggj-cr-muted);
  font-size: 0.84rem;
}

.ggj-rapid-trigger__head h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  line-height: 1.45;
}

.ggj-rapid-trigger__head p {
  margin: 0;
  color: var(--ggj-cr-muted);
  font-size: 0.84rem;
}

.ggj-rapid-trigger__avg {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: right;
  white-space: nowrap;
}

.ggj-rapid-trigger__avg span {
  display: inline;
  color: var(--ggj-cr-muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.ggj-rapid-trigger__avg strong {
  color: var(--ggj-rt-blue);
  font-size: 1.12rem;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.ggj-rapid-trigger__avg small {
  display: block;
  margin-top: 2px;
  color: var(--ggj-cr-muted);
  font-size: 0.74rem;
}

.ggj-rapid-trigger__chart {
  display: grid;
  gap: 8px;
}

.ggj-rapid-trigger__row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 2px 8px;
}

.ggj-rapid-trigger__label {
  color: #202020;
  font-size: 0.8rem;
  text-align: right;
}

.ggj-rapid-trigger__track {
  position: relative;
  height: 14px;
  overflow: visible;
  background: var(--ggj-rt-track);
}

.ggj-rapid-trigger__bar {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  width: var(--rt-width, 0%);
  min-width: 2px;
  background: var(--ggj-rt-blue);
}

.ggj-rapid-trigger__value {
  position: absolute;
  top: 50%;
  left: min(calc(var(--rt-width, 0%) + 8px), calc(100% - 58px));
  transform: translateY(-50%);
  color: var(--ggj-cr-navy);
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .ggj-click-response__bar-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 0.34rem 4px;
  }

  .ggj-click-response.value-end .ggj-click-response__bar-row {
    grid-template-columns: 1fr;
  }

  .ggj-click-response__bar-name {
    grid-column: auto;
    font-size: 0.8rem;
    text-align: left;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .ggj-click-response__bar-name a {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .ggj-click-response__bar-track {
    height: 12px;
  }

  .ggj-click-response__bar-cell {
    grid-column: auto;
    padding-right: 0;
  }

  .ggj-click-response.value-right .ggj-click-response__bar-cell::before {
    content: none;
  }

  .ggj-click-response__bar-track {
    width: 100%;
    max-width: 100%;
  }

  .ggj-click-response__bar-value {
    font-size: 0.82rem;
  }

  .ggj-click-response.value-right .ggj-click-response__bar-value {
    left: min(calc(var(--bar-width, 0%) + 6px), calc(100% - 52px));
    right: auto;
    transform: translateY(-50%);
    text-align: left;
  }

  .ggj-click-response.value-end .ggj-click-response__bar-value {
    display: block;
    margin-top: 4px;
    text-align: right;
  }

  .ggj-click-response__legend {
    gap: 7px 10px;
    font-size: 0.74rem;
  }

  .ggj-click-response__legend-item small {
    display: none;
  }

  .ggj-click-response__table th,
  .ggj-click-response__table td {
    padding: 0.68rem 0.72rem;
  }

  .ggj-rapid-trigger__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .ggj-rapid-trigger__summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .ggj-rapid-trigger__avg {
    justify-content: flex-start;
    max-width: none;
    margin-left: auto;
    text-align: left;
  }

  .ggj-rapid-trigger__row {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 0.34rem 6px;
  }

  .ggj-rapid-trigger__value {
    left: min(calc(var(--rt-width, 0%) + 6px), calc(100% - 52px));
  }
}
