/* activate.css -- the activation page's interactive block (2026-11-03).

   Linked AFTER actions.css on the four activation pages alone (/activare,
   /hu/aktivalas, /en/activate, /de/aktivierung); no other page carries it, and
   tools/check/css_checks.py measures it like the thirteen shared sheets. The
   block reuses the order form's field vocabulary (.of-field, .of-label,
   .of-input, .of-submit from pricing.css) and paints only with tokens the four
   theme blocks define, so the dark theme needs nothing of its own.

   js/activate.js switches the block's states with the `hidden` attribute and
   one class (.is-error on the status line); it writes no markup. The guard
   below keeps `hidden` winning over any display an .article rule sets. */

.act {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid var(--line2);
  background: var(--panel);
}

.act [hidden] {
  display: none !important;
}

/* With JS off the block is this one paragraph; the module hides it and shows
   the sign-in step (the same .js switch pricing.css uses for .of-nojs). */
.js .act-nojs {
  display: none;
}

.article .act-nojs,
.article .act-rule {
  margin-top: 0;
  color: var(--ink);
}

.act-buttons {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.act-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  font: 600 15px/1 "Barlow", sans-serif;
  background: var(--fill);
  color: var(--onacc);
  border: none;
}

.act-btn:hover {
  background: var(--fill2);
  color: var(--onacc);
}

.act-btn[disabled],
.act-link[disabled] {
  opacity: 0.6;
  cursor: default;
}

.article .act-user {
  margin-top: 0;
  color: var(--ink);
}

.act-link {
  cursor: pointer;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--acc);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.act-link:hover {
  color: var(--acc2);
}

.act-form {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

/* A long e-mail address breaks rather than widening the card on a phone. */
.act-who {
  word-break: break-all;
}

.act-form .act-submit {
  min-height: 44px;
}

.act-code {
  font: 600 18px/1 "Barlow", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article .act-status {
  margin-top: 14px;
  font: 400 14px/1.5 "Barlow", sans-serif;
  color: var(--mut);
}

.article .act-status.is-error {
  padding-left: 10px;
  border-left: 2px solid var(--warn);
  color: var(--warn);
}

.article .act-done-title {
  margin-top: 0;
  font: 600 26px/1.2 "Barlow Condensed", sans-serif;
  color: var(--ink);
}

.act-until {
  color: var(--ink);
}

@media (max-width: 560px) {
  .act {
    padding: 18px;
  }

  .act-form {
    grid-template-columns: 1fr;
  }
}
