/* Order Generator: built-in offline activation (steps 2 and 3 of the card).
   Scoped to the generator slot inside the .og-card; inherits the card's font
   and adapts to light/dark themes via the card's custom properties. */

.og-auth { display: contents; }
.og-auth-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.og-auth-sub { margin: 0; font-size: 0.85em; opacity: .8; }
.og-auth-help { margin: 0; font-size: 12px; opacity: .75; }

.og-auth-input {
	display: block;
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid var(--og-line);
	border-radius: 8px;
	background: var(--og-field);
	color: inherit;
	font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
	font-size: 16px; /* 16px+ prevents iOS zoom on focus. */
	letter-spacing: .06em;
}
.og-auth-input:focus { border-color: var(--og-accent); }
.og-auth-input[disabled], .og-auth-button[disabled] { opacity: .6; }

.og-auth-button {
	display: block;
	width: 100%;
	padding: 11px 12px;
	border: none;
	border-radius: 8px;
	background: var(--og-ok);
	color: #fff;
	font: inherit;
	font-size: 1em;
	font-weight: 700;
	cursor: pointer;
}
.og-auth-button:hover { filter: brightness(1.1); }

.og-generator a:focus-visible,
.og-auth-input:focus-visible,
.og-auth-button:focus-visible,
.og-auth-copy:focus-visible {
	outline: 3px solid var(--og-accent);
	outline-offset: 2px;
}

.og-auth-state { min-height: 0; margin: 0; font-size: 0.9em; }
.og-auth-state:empty { display: none; }
.og-auth-state.is-error { color: var(--og-err); font-weight: 600; }

/* Step 3: Auth code */
.og-auth-out { margin: 0; }
.og-auth-out:empty::before {
	content: attr(data-empty);
	display: block;
	padding: 12px;
	border: 1px dashed var(--og-line);
	border-radius: 8px;
	font-size: 0.9em;
	opacity: .7;
}
.og-auth-field { margin: 0; }
.og-auth-k { font-size: 0.8em; opacity: .8; margin-bottom: 4px; }
.og-auth-code { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.og-auth-v {
	font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
	font-size: 1em;
	letter-spacing: .04em;
	padding: 10px 12px;
	border: 1px solid var(--og-line);
	border-radius: 8px;
	background: var(--og-soft);
	color: inherit;
	user-select: all;
	overflow-wrap: anywhere;
}
.og-auth-code .og-auth-v { flex: 1 1 160px; min-width: 0; }
.og-auth-copy {
	flex: none;
	padding: 8px 14px;
	border: 1px solid var(--og-line);
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: .9em;
	font-weight: 600;
	cursor: pointer;
}
.og-auth-copy:hover { border-color: currentColor; }
.og-auth-norm { margin: 8px 0 0; font-size: 12px; opacity: .8; }
.og-auth-norm code { font-family: Consolas, "Cascadia Mono", "Courier New", monospace; letter-spacing: .04em; }

.og-auth-details { font-size: 0.85em; }
.og-auth-details summary { cursor: pointer; opacity: .85; }
.og-auth-lic { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.og-auth-lic .og-auth-v { font-size: .9em; }
.og-auth-v-small { font-size: .9em; }

.og-auth-selftest { font-size: 0.75em; opacity: .65; }
.og-auth-selftest.is-ok { opacity: .85; }

/* Kept in the DOM (the code still fills them in) but not shown to customers. */
.og-auth-help,
.og-auth-norm,
.og-auth-details,
.og-auth-selftest { display: none !important; }

/* Keep the button readable in every state, even if the theme restyles button:hover/:focus/:active. */
.og-card .og-auth-button,
.og-card .og-auth-button:hover,
.og-card .og-auth-button:focus,
.og-card .og-auth-button:active { background: var(--og-ok) !important; background-color: var(--og-ok) !important; color: #fff !important; border: none !important; box-shadow: none; text-decoration: none; }
.og-card .og-auth-button:hover { filter: brightness(1.12); }
.og-card .og-auth-button[disabled],
.og-card .og-auth-button[disabled]:hover { opacity: .6; filter: none; cursor: not-allowed; }
.og-card .og-auth-copy,
.og-card .og-auth-copy:hover,
.og-card .og-auth-copy:focus,
.og-card .og-auth-copy:active { background: transparent !important; color: inherit !important; }
