/*
 * AnnGhar UI — Base / Reset
 * ------------------------------------------------------------------
 * Scoped entirely under .ag-ui so nothing here ever leaks onto (or is
 * affected by) the active theme's global styles, on any page this
 * class wraps.
 */

.ag-ui,
.ag-ui * {
	box-sizing: border-box;
}

.ag-ui {
	background: var(--ag-bg);
	color: var(--ag-text);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.ag-ui h1,
.ag-ui h2,
.ag-ui h3,
.ag-ui h4 {
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--ag-primary-dark);
	margin: 0 0 8px;
}

.ag-ui a {
	color: var(--ag-primary);
}

.ag-ui p {
	margin: 0 0 1em;
}

.ag-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* WooCommerce's own notices still render inside our shell (e.g. on
   the address/account forms) — restyle rather than hide, so
   validation/success messages from core remain fully functional. */
.ag-ui .woocommerce-message,
.ag-ui .woocommerce-error,
.ag-ui .woocommerce-info {
	border-radius: var(--ag-radius-sm);
	border: 1px solid var(--ag-border);
	background: var(--ag-white);
	box-shadow: var(--ag-shadow);
	padding: 16px 20px;
	margin: 0 0 24px;
	list-style: none;
}

.ag-ui .woocommerce-message {
	border-left: 4px solid var(--ag-primary);
}

.ag-ui .woocommerce-error {
	border-left: 4px solid var(--ag-danger);
}

/* Accessibility helpers */

.ag-ui :focus-visible {
	outline: 2px solid var(--ag-primary-dark);
	outline-offset: 2px;
}

.ag-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ag-skip-link:focus {
	position: static;
	width: auto;
	height: auto;
	clip: auto;
	display: inline-block;
	margin: 0 0 12px;
	padding: 8px 14px;
	background: var(--ag-primary);
	color: var(--ag-white);
	border-radius: var(--ag-radius-sm);
}
