.intent-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.intent-grid button {
  min-width: 0;
  min-height: 72px;
  padding: 11px 10px;
  gap: 8px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  color: #f5f5f6;
  background: #24282e;
  border: 1px solid #626771;
  border-radius: 12px;
  box-shadow: 0 4px 10px #0005;
  overflow: visible;
  transform: none;
  transition: background-color 160ms, border-color 160ms, box-shadow 160ms, color 160ms;
}

.intent-grid button::before,
.intent-grid button span::after {
  content: none;
  display: none;
}

.intent-grid button span {
  min-width: 0;
  min-height: 0;
  display: block;
  font-size: 14px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -.015em;
}

.intent-grid button svg {
  flex: 0 0 28px;
  width: 28px;
  height: 32px;
  color: #d8dbe1;
  overflow: visible;
}

.intent-grid button:hover {
  transform: none;
  background: #24282e;
  border-color: #626771;
}

.intent-grid button.active {
  color: #fff;
  background: var(--red);
  border-color: #ff8791;
  box-shadow: 0 4px 12px #0006;
}

.intent-grid button.active svg { color: #fff; }

.intent-grid button.active::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 7px;
  width: 5px;
  height: 3px;
  border-left: 1.7px solid #fff;
  border-bottom: 1.7px solid #fff;
  transform: rotate(-45deg);
}

.intent-grid button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .intent-grid button:hover:not(.active) {
    background: #363940;
    border-color: #c3949a;
    box-shadow: 0 7px 16px #0006;
  }
  .intent-grid button.active:hover { background: #bf0010; }
}

.intent-grid button:active { box-shadow: 0 2px 5px #0005; }

@media (max-width: 700px), (min-width: 951px) and (max-width: 1199px) {
  .intent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intent-grid button { padding: 10px; }
}

@media (max-width: 359px) {
  .intent-grid { grid-template-columns: 1fr; }
  .intent-grid button { min-height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .intent-grid button { transition: none; }
}
