/*
 * WooCommerce: token alignment only (Phase 2).
 *
 * Loaded on shop, product, cart, checkout and account pages only.
 * Layout and behaviour stay WooCommerce's own until Phase 6;
 * nothing here may hide or move cart or checkout controls.
 */

.shop-main {
	padding-block: var(--space-l) var(--space-2xl);
}

.woocommerce,
.woocommerce-page {
	color: var(--color-text);
}

/* Classic WooCommerce buttons pick up the NORTIA button style. */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	min-height: var(--tap-target);
	padding: var(--space-xs) var(--space-m);
	border-radius: var(--radius-s);
	background: var(--color-surface);
	color: var(--color-text);
	font-weight: 400;
	letter-spacing: var(--tracking-label);
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	background: var(--color-accent);
	color: var(--color-on-accent);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	background: var(--color-text);
	color: var(--color-bg);
}

.woocommerce .price,
.woocommerce-Price-amount {
	color: var(--color-text);
}

/* "Üye Ol" jump target: keep the "Kayıt ol" heading above the form in view. */
.register-anchor {
	display: block;
	scroll-margin-block-start: 5rem;
}

/* Marketing e-mail consent (inc/consent-woocommerce.php): registration form
   and checkout. Optional and unchecked; long text beside a 44px tap area. */
.nortia-consent {
	font-size: var(--text-sm);
	line-height: var(--leading-body);
}

.nortia-consent a {
	text-decoration-line: underline;
}

.woocommerce form .nortia-consent__label {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: start;
	gap: var(--space-xs);
	line-height: var(--leading-body);
}

.nortia-consent__input {
	inline-size: 1.125rem;
	block-size: 1.125rem;
	margin: 0.2em 0 0;
	accent-color: var(--color-accent);
}

/* Checkout block: sits under the e-mail field. */
.wp-block-woocommerce-checkout .nortia-consent {
	margin-block-start: var(--space-s);
}

/* Required distance-sales consent: above the "Place order" button. The error
   text under it is WooCommerce's own validation message style. */
.nortia-consent--required {
	margin-block-end: var(--space-s);
}

.nortia-consent__required,
.nortia-consent abbr.required {
	text-decoration: none;
	border: 0;
	cursor: help;
}

.nortia-consent__error {
	margin-block-start: var(--space-2xs);
}

.woocommerce-message,
.woocommerce-info {
	border-top-color: var(--color-accent);
	background: var(--color-surface);
}
