/* Login-links ("magic links") – front-end pieces. */
.thb-magic {
  margin: 22px 0 0;
  padding: 18px 20px;
  border: 1px solid #d7dbc8;
  border-radius: 14px;
  background: #f5f7ee;
  color: #1a2e05;
  font-size: 15px;
  line-height: 1.55;
}
.thb-magic__title { margin: 0 0 4px; font-weight: 700; font-size: 16px; }
.thb-magic__text { margin: 0 0 12px; color: #3c4a1e; }
.thb-magic__form { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.thb-magic__form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #c8d0b0;
  border-radius: 10px;
  font-size: 16px;
  background: #fff;
}
.thb-magic__form .thb-magic__btn,
.thb-magic__form .thb-cmp__btn,
.thb-magic__form button {
  flex: 0 0 auto;
  padding: 12px 18px;
  border-radius: 10px;
  background: #334010;
  color: #fff;
  border: 0;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}
.thb-magic__form button:hover { background: #22300a; }
.thb-magic__form button[disabled] { opacity: .6; cursor: default; }
.thb-magic__form--page { margin: 18px auto 0; max-width: 460px; }
.thb-magic__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.thb-magic__msg { margin: 10px 0 0; font-weight: 600; color: #1a2e05; }
.thb-magic__msg.is-error { color: #a33; }

/* Inline "send me a link" button inside WooCommerce notices (checkout). */
.woocommerce-error .thb-magic-send,
.woocommerce-message .thb-magic-send,
.sl-error .thb-magic-send {
  display: inline-block;
  margin: 6px 6px 2px 0;
  padding: 8px 14px;
  border-radius: 8px;
  background: #334010;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}
.woocommerce-error .thb-magic-send.is-busy,
.sl-error .thb-magic-send.is-busy { opacity: .6; pointer-events: none; }
.thb-magic-sent { display: block; margin-top: 6px; font-weight: 600; }

@media (max-width: 600px) {
  .thb-magic { padding: 16px; border-radius: 12px; }
  .thb-magic__form button { flex: 1 1 100%; }
}

/* Landing hero form + invalid-link page: stack input and button. */
.sl-magic { margin: 12px 0 10px; max-width: 520px; }
.thb-magic__form--page { flex-direction: column; }
.thb-magic__form--page input[type="email"] { flex-basis: auto; }

/* Accounts for everyone: the "Opret en kundekonto?" checkbox is pre-checked server-side and hidden. */
.woocommerce-checkout .woocommerce-account-fields .create-account { display: none !important; }
