/* Marketing consent checkbox (app/components/MarketingConsent.tsx), shared by
   the enquiry, contact, reservation and newsletter forms. Unticked by default,
   separate from submitting. Same square box as the enquiry form's .eq__check,
   drawn from the site tokens so it follows the time-of-day theme. */

.tempo-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
  text-align: left;
}

.tempo-consent__box {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--color-border-strong, currentColor);
  border-radius: 0;
  background: transparent;
  position: relative;
}

.tempo-consent__box:checked {
  background: var(--color-text, currentColor);
  border-color: var(--color-text, currentColor);
}

.tempo-consent__box:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 9px;
  border: 2px solid var(--color-bg, #fff);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.tempo-consent__box:focus-visible {
  outline: 2px solid var(--color-text, currentColor);
  outline-offset: 2px;
}

.tempo-consent__label {
  font-size: var(--text-xs, 0.75rem);
  line-height: 1.5;
  color: var(--color-text-secondary, inherit);
  cursor: pointer;
}

.tempo-consent__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  /* A 44px touch target without enlarging the drawn box. */
  .tempo-consent {
    min-height: 44px;
  }
  .tempo-consent__box {
    margin-top: 1px;
  }
}
