/* Derma Direct Account Guard. Kept small and neutral so it sits inside the
   theme's own login, register and checkout styles. */

:root {
	--dd-ag-accent: #000;
	--dd-ag-accent-text: #fff;
	--dd-ag-muted: #5a5555;
	--dd-ag-line: #ececec;
	--dd-ag-radius: 6px;
}

/* Login form: code button as the main action. */
.dd-ag-code-block {
	clear: both;
	margin: 0 0 20px;
}

/* Same size and look as the theme's own buttons (Log in / Register):
   bold 16px, padding .618em 1em, line-height 16px, 6px corners, black.
   No hover change: WooCommerce's default button hover is overridden. */
.woocommerce form button.dd-ag-code-button,
.woocommerce form button.dd-ag-code-button:hover,
.woocommerce form button.dd-ag-code-button:focus,
.woocommerce form button.dd-ag-code-button:active,
button.dd-ag-code-button,
button.dd-ag-code-button:hover,
button.dd-ag-code-button:focus,
button.dd-ag-code-button:active {
	display: block;
	width: 100%;
	margin: 0;
	background: var(--dd-ag-accent);
	background-image: none;
	color: var(--dd-ag-accent-text);
	border: 0;
	border-radius: var(--dd-ag-radius);
	padding: 0.618em 1em;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	text-decoration: none;
	opacity: 1;
	box-shadow: none;
	cursor: pointer;
}

.dd-ag-code-help {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--dd-ag-muted);
}

.dd-ag-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 22px 0 4px;
	font-size: 14px;
	color: var(--dd-ag-muted);
}

.dd-ag-divider::before,
.dd-ag-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--dd-ag-line);
}

/* Checkout login puts email and password side by side; stack them once the
   code button sits between them. */
.dd-ag-enhanced .form-row-first,
.dd-ag-enhanced .form-row-last {
	float: none;
	width: 100%;
}

/* Code entry and link screens. */
.dd-ag-screen {
	max-width: 520px;
	margin: 0 auto;
}

.dd-ag-panel {
	background: #fff;
	padding: 35px;
	border-radius: 12px;
}

.dd-ag-lead {
	font-size: 16px;
}

.dd-ag-code-input {
	font-size: 28px !important;
	letter-spacing: 10px;
	text-align: center;
	font-variant-numeric: tabular-nums;
	width: 100%;
	border: 1px solid #000;
	border-radius: var(--dd-ag-radius);
	padding: 10px;
}

.dd-ag-secondary-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: 14px;
}

.dd-ag-link-button {
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
}

.dd-ag-small {
	font-size: 13px;
	color: var(--dd-ag-muted);
	margin-top: 18px;
}

/* "Looks like you already have an account" prompt. */
.dd-ag-prompt {
	display: block;
}

.dd-ag-prompt:focus,
.dd-ag-prompt:focus-visible {
	outline: none;
}

.dd-ag-prompt__title {
	display: block;
	font-size: 17px;
	margin-bottom: 6px;
}

.dd-ag-prompt p {
	margin: 0 0 10px;
}

.dd-ag-prompt__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	align-items: center;
	margin-top: 12px !important;
}

.dd-ag-prompt .dd-ag-prompt__primary {
	background: var(--dd-ag-accent);
	color: var(--dd-ag-accent-text);
	border-radius: var(--dd-ag-radius);
	padding: 10px 18px;
	text-decoration: none;
	font-weight: 600;
}

.dd-ag-prompt .dd-ag-prompt__secondary {
	text-decoration: underline;
}

.dd-ag-prompt--done {
	opacity: 0.6;
}

.dd-ag-inline-link {
	font-weight: 600;
	text-decoration: underline;
}

@media (max-width: 600px) {
	.dd-ag-panel {
		padding: 22px;
	}

	.dd-ag-prompt__actions {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}
}
