* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #fff;
}

body {
  min-height: 100vh;
  background: #fff;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  color: #000;
}

/* Inset from the top-left, same idea as the demo form. The checkbox stays put. */
.stage {
  position: relative;
  width: 304px;
  height: 78px;
  margin: 24px 0 0 28px;
}

/* —— checkbox widget: 304 × 78, same as the demo iframe —— */
.widget {
  width: 304px;
  height: 78px;
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  padding: 0 0 0 12px;
  position: relative;
}

.checkbox {
  position: relative;
  width: 28px;
  height: 28px;
  margin: 0 12px 2px 0;
  padding: 0;
  border: 0;
  background: transparent;
  flex: 0 0 28px;
  cursor: pointer;
}

.checkbox-border {
  position: absolute;
  inset: 0;
  background: #fff;
  border: 2px solid #444746;
  border-radius: 2px;
}

.checkbox:hover .checkbox-border {
  border-color: #b2b2b2;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
}

.checkbox-spinner {
  display: none;
  position: absolute;
  left: -4px;
  top: -4px;
  width: 36px;
  height: 36px;
  border: 6px solid #4d90fe;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.checkbox.is-loading .checkbox-border {
  visibility: hidden;
}

.checkbox.is-loading .checkbox-spinner {
  display: block;
}

.checkbox.is-loading {
  pointer-events: none;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

.widget-label {
  flex: 1;
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
}

.brand {
  width: 70px;
  height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
  flex: 0 0 70px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  background: url("https://www.gstatic.com/recaptcha/api2/logo_48.png") center / 32px 32px no-repeat;
}

.brand-name {
  margin-top: 5px;
  font-size: 10px;
  line-height: 10px;
  color: #555;
}

.brand-links {
  margin-top: 2px;
  font-size: 8px;
  line-height: 10px;
  color: #555;
  white-space: nowrap;
}

/* Same width as the checkbox. Sits above it and does not move the bar. */
.challenge {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: 304px;
  background: #fff;
  border: 1px solid #d3d3d3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  user-select: none;
}

.challenge .grid .cell-answer,
.challenge .grid [data-fomo-bookmark],
.challenge .grid a[data-fomo-bookmark] {
  pointer-events: auto !important;
  cursor: grab !important;
  touch-action: none;
  -webkit-user-drag: element;
}

.challenge-head {
  min-height: 108px;
  padding: 10px 12px 8px;
  background: #1a73e8;
  color: #fff;
}

.challenge-kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
}

.challenge-target {
  margin: 1px 0 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}

.challenge-hint {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
  opacity: 0.95;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 96px);
  grid-template-rows: repeat(3, 96px);
  gap: 3px;
  justify-content: center;
  padding: 5px 0 4px;
  background: #fff;
}

.cell {
  width: 96px;
  height: 96px;
  margin: 0;
  padding: 0;
  border: 0;
  background-color: #bdbdbd;
  overflow: hidden;
  font: inherit;
  color: inherit;
  line-height: 0;
}

.cell-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  filter: saturate(0.82) contrast(1.1) brightness(0.94);
}

.grid a.cell {
  display: block;
  text-decoration: none;
}

.challenge-foot {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 2px;
  border-top: 1px solid #dfdfdf;
  background: #fff;
}

.foot-actions {
  display: flex;
  align-items: center;
}

.icon {
  width: 36px;
  height: 36px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
  opacity: 0.55;
}

.reload-btn {
  margin: 0;
  padding: 0;
  border: 0;
  background-color: transparent;
  pointer-events: auto;
  cursor: pointer;
}

.reload-btn:hover,
.reload-btn:focus-visible {
  opacity: 0.85;
  outline: none;
}

.icon-reload {
  background-image: url("https://www.gstatic.com/recaptcha/api2/refresh_2x.png");
}

.icon-audio {
  background-image: url("https://www.gstatic.com/recaptcha/api2/audio_2x.png");
}

.icon-info {
  background-image: url("https://www.gstatic.com/recaptcha/api2/info_2x.png");
}

.verify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 34px;
  padding: 0 12px;
  background: #1a73e8;
  color: #fff;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
