/* ============================================
   MY ACCOUNT — Krem.no
   Styles for the WooCommerce my-account page (login + registration form,
   later: dashboard, orders, addresses, etc.).
   Uses body.woocommerce-account prefix to beat WC's woocommerce.css defaults.
   All values use CSS variables from theme.json.
   ============================================ */

/*
 * Article width:
 *   - Login/register (no .krem-account-layout in DOM) → narrow centered card
 *   - Dashboard (has .krem-account-layout) → full width
 * Detection via :has() for clean scoping; body class filter provides a fallback.
 */
body.woocommerce-account .site-main > article:not(:has(.krem-account-layout)) {
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
	padding: var(--wp--custom--spacing--xl) 0 var(--wp--custom--spacing--2-xl);
}

body.woocommerce-account .site-main > article:has(.krem-account-layout) {
	padding: var(--wp--custom--spacing--lg) 0 var(--wp--custom--spacing--2-xl);
}

/* Fallback for the body-class filter path (in case :has() is unsupported) */
body.krem-account-dashboard .site-main > article {
	max-width: none;
	padding: var(--wp--custom--spacing--lg) 0 var(--wp--custom--spacing--2-xl);
}

/* The h2 ("Logg inn", "Register") inside .woocommerce — already covered by
   the page-hero above, so demote it to a quiet sub-label. */
body.woocommerce-account .woocommerce > h2 {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	color: var(--wp--preset--color--text);
	margin: 0 0 var(--wp--custom--spacing--md);
	text-align: center;
}

/* ============================================
   FORM CARD (login + register)
   Flex column with gap eliminates all <p> margin-collapse and inline-flex
   line-box overflow issues — spacing between rows is deterministic.
   ============================================ */
body.woocommerce-account .woocommerce-form-login,
body.woocommerce-account .woocommerce-form-register {
	display: flex;
	flex-direction: column;
	gap: var(--wp--custom--spacing--md);
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--border-radius--lg);
	box-shadow: var(--wp--custom--shadow--card);
	padding: var(--wp--custom--spacing--xl);
}

/* Register form: row wrap so first/last name sit side by side */
body.woocommerce-account .woocommerce-form-register {
	flex-flow: row wrap;
}

body.woocommerce-account .woocommerce-form-register > * {
	flex: 0 0 100%;
}

body.woocommerce-account .woocommerce-form-register .form-row-first,
body.woocommerce-account .woocommerce-form-register .form-row-last {
	flex: 0 0 calc(50% - var(--wp--custom--spacing--md) / 2);
}

body.woocommerce-account .woocommerce-form-register .clear {
	display: none;
}

/* Intro paragraph under each form's h2 (Logg inn / Registrer) */
body.woocommerce-account .krem-auth-intro {
	margin: 0 0 var(--wp--custom--spacing--md);
	font-size: var(--wp--preset--font-size--small);
	color: #666;
	line-height: 1.5;
}

/* Hint for returning guests */
body.woocommerce-account .krem-register-hint {
	background: var(--wp--preset--color--cream);
	border: 1px solid var(--wp--preset--color--border);
	border-left: 4px solid var(--wp--preset--color--primary);
	border-radius: var(--wp--custom--border-radius--default);
	padding: var(--wp--custom--spacing--sm) var(--wp--custom--spacing--md);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--text);
	line-height: 1.5;
	margin: 0;
}

/* ============================================
   FIELDS
   ============================================ */
body.woocommerce-account .woocommerce-form-row {
	display: block;
	margin: 0;
}

body.woocommerce-account .woocommerce-form-row label {
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	color: var(--wp--preset--color--text);
	margin-bottom: 0.4rem;
}

body.woocommerce-account .woocommerce-form-row .required {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	margin-left: 0.15rem;
}

body.woocommerce-account .woocommerce-Input.input-text {
	width: 100%;
	height: 48px;
	padding: 0 var(--wp--custom--spacing--md);
	border: 2px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--border-radius--default);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--white);
	box-shadow: none;
	transition: border-color var(--wp--custom--transition);
}

body.woocommerce-account .woocommerce-Input.input-text:focus {
	border-color: var(--wp--preset--color--primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(204, 46, 46, 0.15);
}

/* ============================================
   PASSWORD INPUT (with show/hide eye button)
   WC wraps the password in <span class="password-input"> and injects a
   <button class="show-password-input"> after it.
   ============================================ */
body.woocommerce-account .password-input {
	position: relative;
	display: block;
}

body.woocommerce-account .password-input .input-text {
	padding-right: 3rem;
}

body.woocommerce-account .show-password-input {
	position: absolute;
	top: 50%;
	right: 0.75rem;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
	color: var(--wp--preset--color--text-muted);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--wp--custom--border-radius--sm);
	transition: color var(--wp--custom--transition);
}

body.woocommerce-account .show-password-input::before {
	content: '';
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/><circle cx='12' cy='12' r='3'/></svg>") center/contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/><circle cx='12' cy='12' r='3'/></svg>") center/contain no-repeat;
}

body.woocommerce-account .show-password-input.display-password::before {
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-10-7-10-7a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 10 7 10 7a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/><line x1='2' y1='2' x2='22' y2='22'/></svg>") center/contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-10-7-10-7a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 10 7 10 7a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/><line x1='2' y1='2' x2='22' y2='22'/></svg>") center/contain no-repeat;
}

body.woocommerce-account .show-password-input:hover,
body.woocommerce-account .show-password-input:focus-visible {
	color: var(--wp--preset--color--primary);
	outline: none;
}

/* ============================================
   "REMEMBER ME" CHECKBOX
   ============================================ */
body.woocommerce-account .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text);
	cursor: pointer;
	margin: 0 0 var(--wp--custom--spacing--md);
	user-select: none;
}

body.woocommerce-account .woocommerce-form__input-checkbox {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--wp--preset--color--primary);
	cursor: pointer;
}

/* ============================================
   SUBMIT BUTTON (matches .btn--primary)
   ============================================ */
body.woocommerce-account .woocommerce-button.button,
body.woocommerce-account .woocommerce-Button.button,
body.woocommerce-account button.woocommerce-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 0.875rem 2rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: var(--wp--custom--border-radius--pill);
	cursor: pointer;
	transition: all var(--wp--custom--transition);
	text-decoration: none;
	box-shadow: none;
	margin-top: var(--wp--custom--spacing--sm);
}

body.woocommerce-account .woocommerce-button.button:hover,
body.woocommerce-account .woocommerce-Button.button:hover,
body.woocommerce-account button.woocommerce-button:hover {
	background: var(--wp--preset--color--primary-dark);
	border-color: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--white);
	transform: translateY(-2px);
	box-shadow: var(--wp--custom--shadow--md);
}

/* All <p> rows inside the flex form: reset native <p> margins so the form's
   `gap` is the single source of truth for vertical spacing. */
body.woocommerce-account .woocommerce-form-login p,
body.woocommerce-account .woocommerce-form-register p {
	margin: 0;
}

/* ============================================
   LOST PASSWORD LINK
   Flex item: add margin-top on top of the form's `gap` for extra breathing
   room above the link.
   ============================================ */
body.woocommerce-account .woocommerce-LostPassword {
	margin-top: var(--wp--custom--spacing--lg);
	text-align: center;
	font-size: var(--wp--preset--font-size--small);
}

body.woocommerce-account .woocommerce-LostPassword a {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-underline-offset: 3px;
	font-weight: 600;
	transition: color var(--wp--custom--transition);
}

body.woocommerce-account .woocommerce-LostPassword a:hover {
	color: var(--wp--preset--color--primary-dark);
}

/* ============================================
   NOTICES (errors above the form)
   ============================================ */
body.woocommerce-account .woocommerce-notices-wrapper:not(:empty) {
	margin-bottom: var(--wp--custom--spacing--md);
}

body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--text);
	border-left: 4px solid var(--wp--preset--color--primary);
	border-radius: var(--wp--custom--border-radius--default);
	padding: var(--wp--custom--spacing--md) var(--wp--custom--spacing--lg);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	list-style: none;
	margin: 0 0 var(--wp--custom--spacing--md);
}

/* Suppress WC's icon font ::before (woocommerce-notices.css not loaded on account pages) */
body.woocommerce-account .woocommerce-error::before,
body.woocommerce-account .woocommerce-message::before,
body.woocommerce-account .woocommerce-info::before {
	display: none;
	content: none;
}

body.woocommerce-account .woocommerce-message {
	border-left-color: var(--wp--preset--color--primary);
}

body.woocommerce-account .woocommerce-error li,
body.woocommerce-account .woocommerce-message li,
body.woocommerce-account .woocommerce-info li {
	margin: 0;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
	body.woocommerce-account .woocommerce-Input.input-text,
	body.woocommerce-account .woocommerce-button.button,
	body.woocommerce-account .woocommerce-Button.button,
	body.woocommerce-account button.woocommerce-button,
	body.woocommerce-account .show-password-input,
	body.woocommerce-account .woocommerce-LostPassword a {
		transition-duration: 0s;
	}

	body.woocommerce-account .woocommerce-button.button:hover,
	body.woocommerce-account button.woocommerce-button:hover {
		transform: none;
	}
}

/* ============================================
   ============================================
   LOGGED-IN AREA (dashboard, orders, addresses, account details)
   ============================================
   ============================================ */

/*
 * Two-column layout: nav left (240px), content right (flexible).
 * Our my-account.php template override wraps nav + content in .krem-account-layout.
 */
body.woocommerce-account .krem-account-layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: var(--wp--custom--spacing--xl);
	align-items: start;
}

/* Reset WC default float layout (belt and suspenders) */
body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
	max-width: none;
}

/* ============================================
   ACCOUNT NAVIGATION (sidebar)
   ============================================ */

body.woocommerce-account .woocommerce-MyAccount-navigation {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--border-radius--lg);
	padding: var(--wp--custom--spacing--sm);
	position: sticky;
	top: calc(var(--wp--custom--sizes--header-height) + var(--wp--custom--spacing--lg));
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: var(--wp--custom--spacing--sm) var(--wp--custom--spacing--md);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--text);
	text-decoration: none;
	border-radius: var(--wp--custom--border-radius--default);
	transition: all var(--wp--custom--transition);
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
	background: var(--wp--preset--color--background-alt);
	color: var(--wp--preset--color--primary);
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a:hover {
	background: var(--wp--preset--color--primary-dark);
}

/* Logout link — separated visually */
body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: var(--wp--custom--spacing--sm);
	padding-top: var(--wp--custom--spacing--sm);
	border-top: 1px solid var(--wp--preset--color--border);
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var(--wp--preset--color--text-muted);
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
	background: transparent;
	color: var(--wp--preset--color--primary);
}

/* ============================================
   CONTENT AREA
   ============================================ */

body.woocommerce-account .woocommerce-MyAccount-content {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--border-radius--lg);
	padding: var(--wp--custom--spacing--xl);
	min-width: 0;
	overflow: hidden;
}

body.woocommerce-account .woocommerce-MyAccount-content > p {
	margin: 0 0 var(--wp--custom--spacing--md);
	line-height: 1.6;
	color: var(--wp--preset--color--text);
}

body.woocommerce-account .woocommerce-MyAccount-content > p:last-child {
	margin-bottom: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content a:not(.recipe-card__link):not(.button) {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color var(--wp--custom--transition);
}

body.woocommerce-account .woocommerce-MyAccount-content a:not(.recipe-card__link):not(.button):hover {
	color: var(--wp--preset--color--primary-dark);
}

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3,
body.woocommerce-account .woocommerce-MyAccount-content legend {
	font-family: var(--wp--preset--font-family--heading);
	color: var(--wp--preset--color--text);
	margin: 0 0 var(--wp--custom--spacing--md);
}

body.woocommerce-account .woocommerce-MyAccount-content h2 {
	font-size: var(--wp--preset--font-size--large);
}

body.woocommerce-account .woocommerce-MyAccount-content h3,
body.woocommerce-account .woocommerce-MyAccount-content legend {
	font-size: 1.15rem;
}

/* ============================================
   ORDERS TOOLBAR (status filter + date range)
   ============================================ */

body.woocommerce-account .krem-orders-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--custom--spacing--md);
	margin-bottom: var(--wp--custom--spacing--lg);
	padding-bottom: var(--wp--custom--spacing--md);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

body.woocommerce-account .krem-orders-toolbar__filters {
	display: flex;
	align-items: center;
	gap: var(--wp--custom--spacing--md);
	flex-wrap: wrap;
}

/* Status select */
body.woocommerce-account .krem-orders-toolbar select {
	height: 40px;
	padding: 0 2rem 0 var(--wp--custom--spacing--sm);
	border: 2px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--border-radius--default);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23333' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") right 0.6rem center / 12px no-repeat;
	appearance: none;
	cursor: pointer;
	transition: border-color var(--wp--custom--transition);
}

body.woocommerce-account .krem-orders-toolbar select:focus {
	border-color: var(--wp--preset--color--primary);
	outline: none;
}

body.woocommerce-account .krem-orders-toolbar select option[value=""] {
	color: var(--wp--preset--color--text-muted);
}

/* Date range — "Fra [date] Til [date]" inline row */
body.woocommerce-account .krem-orders-toolbar__date-range {
	display: flex;
	align-items: center;
	gap: var(--wp--custom--spacing--xs);
}

body.woocommerce-account .krem-orders-toolbar__date-label {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	color: var(--wp--preset--color--text-muted);
	white-space: nowrap;
}

body.woocommerce-account .krem-orders-toolbar input[type="date"] {
	height: 40px;
	padding: 0 var(--wp--custom--spacing--sm);
	border: 2px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--border-radius--default);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--white);
	cursor: pointer;
	transition: border-color var(--wp--custom--transition);
}

body.woocommerce-account .krem-orders-toolbar input[type="date"]:focus {
	border-color: var(--wp--preset--color--primary);
	outline: none;
}

/* Muted placeholder look when empty */
body.woocommerce-account .krem-orders-toolbar input[type="date"]:invalid,
body.woocommerce-account .krem-orders-toolbar input[type="date"][value=""] {
	color: var(--wp--preset--color--text-muted);
}

/* Reset link */
body.woocommerce-account .krem-orders-toolbar__reset {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
	flex-shrink: 0;
	transition: color var(--wp--custom--transition);
}

body.woocommerce-account .krem-orders-toolbar__reset:hover {
	color: var(--wp--preset--color--primary-dark);
}

/* Empty state when filters match nothing */
body.woocommerce-account .krem-orders-empty-filtered {
	text-align: center;
	padding: var(--wp--custom--spacing--xl) var(--wp--custom--spacing--md);
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--small);
}

body.woocommerce-account .krem-orders-empty-filtered a {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ============================================
   ORDERS TABLE
   ============================================ */

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table,
body.woocommerce-account .woocommerce-orders-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--border-radius--default);
	overflow: hidden;
	margin: 0 0 var(--wp--custom--spacing--lg);
	background: var(--wp--preset--color--white);
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table thead,
body.woocommerce-account .woocommerce-orders-table thead {
	background: var(--wp--preset--color--background-alt);
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
body.woocommerce-account .woocommerce-orders-table th {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	text-align: left;
	padding: var(--wp--custom--spacing--md);
	color: var(--wp--preset--color--text);
	border: none;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table td,
body.woocommerce-account .woocommerce-orders-table td {
	padding: var(--wp--custom--spacing--md);
	border-top: 1px solid var(--wp--preset--color--border);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text);
	vertical-align: middle;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table tbody tr:first-child td,
body.woocommerce-account .woocommerce-orders-table tbody tr:first-child td {
	border-top: none;
}

/* Order status badge */
body.woocommerce-account .woocommerce-orders-table__cell-order-status mark,
body.woocommerce-account .order-status {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--text);
	border-radius: var(--wp--custom--border-radius--pill);
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

body.woocommerce-account .order-status.status-completed {
	background: var(--wp--preset--color--success);
	color: var(--wp--preset--color--white);
}

body.woocommerce-account .order-status.status-processing,
body.woocommerce-account .order-status.status-on-hold {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}

body.woocommerce-account .order-status.status-cancelled,
body.woocommerce-account .order-status.status-failed {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

/* "Vis" / "Betal" / "Avbryt" action buttons in orders table — outline pill */
body.woocommerce-account .woocommerce-orders-table .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.4rem 0.9rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.03em;
	background: transparent;
	color: var(--wp--preset--color--primary);
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: var(--wp--custom--border-radius--pill);
	text-decoration: none;
	cursor: pointer;
	transition: all var(--wp--custom--transition);
	line-height: 1;
	white-space: nowrap;
	margin: 0 0.25rem 0 0;
}

body.woocommerce-account .woocommerce-orders-table .button:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

/* ============================================
   ADDRESSES (My addresses page)
   ============================================ */

body.woocommerce-account .u-columns.woocommerce-Addresses,
body.woocommerce-account .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--wp--custom--spacing--lg);
	margin: 0;
}

body.woocommerce-account .woocommerce-Address {
	background: var(--wp--preset--color--background-alt);
	border-radius: var(--wp--custom--border-radius--lg);
	padding: var(--wp--custom--spacing--lg);
	width: 100%;
	min-width: 0;
	float: none;
	overflow-wrap: break-word;
}

body.woocommerce-account .woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--custom--spacing--sm);
	margin-bottom: var(--wp--custom--spacing--md);
	padding-bottom: var(--wp--custom--spacing--sm);
	border-bottom: 1px solid var(--wp--preset--color--border);
	flex-wrap: wrap;
}

body.woocommerce-account .woocommerce-Address-title h2,
body.woocommerce-account .woocommerce-Address-title h3 {
	margin: 0;
	font-size: 1.1rem;
}

body.woocommerce-account .woocommerce-Address-title .edit {
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

body.woocommerce-account address {
	font-style: normal;
	line-height: 1.6;
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--small);
}

/* ============================================
   FORMS (edit address, edit account)
   ============================================ */

body.woocommerce-account .woocommerce-MyAccount-content form .form-row {
	margin: 0 0 var(--wp--custom--spacing--md);
}

body.woocommerce-account .woocommerce-MyAccount-content form label {
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--text);
	margin-bottom: var(--wp--custom--spacing--xs);
}

body.woocommerce-account .woocommerce-MyAccount-content form .required {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

body.woocommerce-account .woocommerce-MyAccount-content form input.input-text,
body.woocommerce-account .woocommerce-MyAccount-content form input[type="text"],
body.woocommerce-account .woocommerce-MyAccount-content form input[type="email"],
body.woocommerce-account .woocommerce-MyAccount-content form input[type="tel"],
body.woocommerce-account .woocommerce-MyAccount-content form input[type="password"],
body.woocommerce-account .woocommerce-MyAccount-content form input[type="number"],
body.woocommerce-account .woocommerce-MyAccount-content form textarea,
body.woocommerce-account .woocommerce-MyAccount-content form select {
	width: 100%;
	height: 44px;
	border: 2px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--border-radius--default);
	padding: 0 var(--wp--custom--spacing--md);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--white);
	box-shadow: none;
	transition: border-color var(--wp--custom--transition);
}

body.woocommerce-account .woocommerce-MyAccount-content form textarea {
	height: auto;
	min-height: 100px;
	padding: var(--wp--custom--spacing--sm) var(--wp--custom--spacing--md);
	line-height: 1.5;
}

body.woocommerce-account .woocommerce-MyAccount-content form input.input-text:focus,
body.woocommerce-account .woocommerce-MyAccount-content form textarea:focus,
body.woocommerce-account .woocommerce-MyAccount-content form select:focus {
	border-color: var(--wp--preset--color--primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(204, 46, 46, 0.15);
}

/* Phone input with country-code prefix (🇳🇴 +47) */
body.woocommerce-account .krem-phone-input {
	display: flex;
	align-items: center;
	border: 2px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--border-radius--default);
	background: var(--wp--preset--color--white);
	transition: border-color var(--wp--custom--transition);
}

body.woocommerce-account .krem-phone-input:focus-within {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(204, 46, 46, 0.15);
}

.krem-phone-prefix {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0 var(--wp--custom--spacing--sm) 0 var(--wp--custom--spacing--md);
	height: 40px;
	border-right: 1px solid var(--wp--preset--color--border);
	white-space: nowrap;
	user-select: none;
	flex-shrink: 0;
}

.krem-phone-prefix__flag {
	font-size: 1.2rem;
	line-height: 1;
}

.krem-phone-prefix__code {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--text);
}

/* Remove border from the input itself — the wrapper provides it */
body.woocommerce-account .woocommerce-MyAccount-content form .krem-phone-input input[type="tel"] {
	border: none;
	border-radius: 0;
	height: 40px;
	box-shadow: none;
	background: transparent;
}

body.woocommerce-account .woocommerce-MyAccount-content form .krem-phone-input input[type="tel"]:focus {
	border: none;
	box-shadow: none;
	outline: none;
}

/* Two-column form rows */
body.woocommerce-account .woocommerce-MyAccount-content form .form-row-first,
body.woocommerce-account .woocommerce-MyAccount-content form .form-row-last {
	width: calc(50% - (var(--wp--custom--spacing--md) / 2));
	display: inline-block;
	vertical-align: top;
}

body.woocommerce-account .woocommerce-MyAccount-content form .form-row-first {
	margin-right: var(--wp--custom--spacing--md);
}

body.woocommerce-account .woocommerce-MyAccount-content form .form-row-wide {
	width: 100%;
}

/* Submit button — primary pill */
body.woocommerce-account .woocommerce-MyAccount-content form button[type="submit"],
body.woocommerce-account .woocommerce-MyAccount-content form input[type="submit"],
body.woocommerce-account .woocommerce-MyAccount-content form .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.75rem 2rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.03em;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: var(--wp--custom--border-radius--pill);
	cursor: pointer;
	transition: all var(--wp--custom--transition);
	text-decoration: none;
	line-height: 1;
	box-shadow: none;
	float: none;
}

body.woocommerce-account .woocommerce-MyAccount-content form button[type="submit"]:hover,
body.woocommerce-account .woocommerce-MyAccount-content form input[type="submit"]:hover,
body.woocommerce-account .woocommerce-MyAccount-content form .button:hover {
	background: var(--wp--preset--color--primary-dark);
	border-color: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--white);
	transform: translateY(-2px);
	box-shadow: var(--wp--custom--shadow--md);
	text-decoration: none;
}

/* ============================================
   "NO ORDERS" / EMPTY STATE NOTICES
   ============================================ */

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Message,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--custom--spacing--md);
	flex-wrap: wrap;
	padding: var(--wp--custom--spacing--md) var(--wp--custom--spacing--lg);
	background: var(--wp--preset--color--cream);
	border: none;
	border-left: 4px solid var(--wp--preset--color--primary);
	border-radius: var(--wp--custom--border-radius--default);
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--small);
	margin: 0 0 var(--wp--custom--spacing--md);
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Message::before,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info::before {
	display: none;
	content: none;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Message a.button,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1.25rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.03em;
	background: transparent;
	color: var(--wp--preset--color--primary);
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: var(--wp--custom--border-radius--pill);
	text-decoration: none;
	cursor: pointer;
	transition: all var(--wp--custom--transition);
	line-height: 1;
	white-space: nowrap;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Message a.button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info a.button:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
	body.woocommerce-account .site-main > article:not(:has(.krem-account-layout)) {
		padding: var(--wp--custom--spacing--lg) 0 var(--wp--custom--spacing--xl);
	}

	body.woocommerce-account .woocommerce-form-login,
	body.woocommerce-account .woocommerce-form-register {
		padding: var(--wp--custom--spacing--lg);
	}

	body.woocommerce-account .woocommerce-form-register .form-row-first,
	body.woocommerce-account .woocommerce-form-register .form-row-last {
		flex: 0 0 100%;
	}
}

/* Address cards: stack earlier because 240px sidebar + padding eats width */
@media (max-width: 1100px) {
	body.woocommerce-account .u-columns.woocommerce-Addresses,
	body.woocommerce-account .woocommerce-Addresses {
		grid-template-columns: 1fr;
	}
}

/* Stack sidebar above content on tablet/mobile */
@media (max-width: 900px) {
	body.woocommerce-account .krem-account-layout {
		grid-template-columns: 1fr;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation {
		position: static;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul {
		flex-direction: row;
		flex-wrap: wrap;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
		margin-top: 0;
		padding-top: 0;
		border-top: none;
		margin-left: auto;
	}
}

/* Nav: stack vertically on small mobile */
@media (max-width: 600px) {
	body.woocommerce-account .woocommerce-MyAccount-navigation ul {
		flex-direction: column;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
		margin-left: 0;
		margin-top: var(--wp--custom--spacing--xs);
		padding-top: var(--wp--custom--spacing--xs);
		border-top: 1px solid var(--wp--preset--color--border);
	}
}

/* Orders toolbar + table: stack at 1100px — the 240px sidebar + content padding
   leaves too little room for 5 table columns between 900–1100px. */
@media (max-width: 1100px) {
	/* ---- Orders toolbar: stack vertically ---- */
	body.woocommerce-account .krem-orders-toolbar {
		flex-wrap: wrap;
	}

	body.woocommerce-account .krem-orders-toolbar__filters {
		width: 100%;
		flex-direction: column;
		gap: var(--wp--custom--spacing--sm);
	}

	body.woocommerce-account .krem-orders-toolbar select {
		width: 100%;
	}

	body.woocommerce-account .krem-orders-toolbar__date-range {
		width: 100%;
	}

	body.woocommerce-account .krem-orders-toolbar input[type="date"] {
		flex: 1;
		min-width: 0;
	}

	/* ---- Orders table: stack into cards ---- */
	/* Prefix with .woocommerce-MyAccount-content to beat the desktop
	   table.shop_table th/td selectors (specificity 0-3-2). */
	body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table,
	body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table thead,
	body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table tbody,
	body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table tr,
	body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table th,
	body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td {
		display: block;
		width: 100%;
	}

	body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table thead {
		display: none;
	}

	body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table tbody tr {
		padding: var(--wp--custom--spacing--sm) var(--wp--custom--spacing--md);
		border-bottom: 1px solid var(--wp--preset--color--border);
	}

	body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table tbody tr:nth-child(odd) {
		background: var(--wp--preset--color--background-alt);
	}

	body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table tbody tr:last-child {
		border-bottom: none;
	}

	body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table th[data-title],
	body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td[data-title] {
		display: flex;
		align-items: baseline;
		gap: var(--wp--custom--spacing--sm);
		padding: 2px 0;
		border-top: none;
		font-size: var(--wp--preset--font-size--small);
	}

	body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table th[data-title]::before,
	body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td[data-title]::before {
		content: attr(data-title) ":";
		flex-shrink: 0;
		font-family: var(--wp--preset--font-family--heading);
		font-weight: 700;
		font-size: var(--wp--preset--font-size--x-small);
		color: var(--wp--preset--color--text-muted);
		min-width: 4.5rem;
	}

	/* Actions cell: stack buttons vertically, equal width */
	body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions {
		display: flex;
		flex-direction: column;
		gap: var(--wp--custom--spacing--xs);
		padding-top: var(--wp--custom--spacing--sm);
	}

	body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions::before {
		display: none;
	}

	body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table .woocommerce-button.button {
		white-space: normal;
		text-align: center;
		width: 100%;
		min-height: 0;
		padding: 0.4rem 0.75rem;
		font-size: var(--wp--preset--font-size--x-small);
		margin: 0;
	}
}

@media (max-width: 600px) {
	body.woocommerce-account .woocommerce-MyAccount-content {
		padding: var(--wp--custom--spacing--lg);
	}

	body.woocommerce-account .woocommerce-MyAccount-content form .form-row-first,
	body.woocommerce-account .woocommerce-MyAccount-content form .form-row-last {
		width: 100%;
		display: block;
		margin-right: 0;
	}
}

@media (max-width: 400px) {
	body.woocommerce-account .woocommerce-MyAccount-content {
		padding: var(--wp--custom--spacing--md);
	}

	body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table tbody tr {
		padding: var(--wp--custom--spacing--xs) var(--wp--custom--spacing--sm);
	}

	body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table th[data-title]::before,
	body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td[data-title]::before {
		min-width: 3.5rem;
	}

	body.woocommerce-account .krem-orders-toolbar__date-range {
		flex-wrap: wrap;
	}
}


/* ============================================
   TWO-COLUMN LOGIN + REGISTER LAYOUT
   When registration is enabled, WC wraps both forms in
   #customer_login.col2-set.u-columns with .u-column1 / .u-column2.
   ============================================ */

/* Expand the narrow 480px article when two-column layout is present */
body.woocommerce-account .site-main > article:not(:has(.krem-account-layout)):has(#customer_login) {
	max-width: var(--wp--custom--sizes--max-width);
}

/* Two-column grid — replaces WC's float-based layout */
body.woocommerce-account #customer_login {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--custom--spacing--xl);
	align-items: start;
	margin: 0;
	width: 100%;
}

/* Reset WC float/width defaults */
body.woocommerce-account #customer_login .u-column1,
body.woocommerce-account #customer_login .u-column2 {
	float: none;
	width: auto;
	padding: 0;
	margin: 0;
}

/* Column headings — left-aligned in two-column context */
body.woocommerce-account #customer_login h2 {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	color: var(--wp--preset--color--text);
	margin: 0 0 var(--wp--custom--spacing--md);
	text-align: left;
}

/* Privacy policy text in register form */
body.woocommerce-account .woocommerce-privacy-policy-text p {
	font-size: var(--wp--preset--font-size--x-small);
	color: #808080;
	line-height: 1.5;
	margin: 0;
}

body.woocommerce-account .woocommerce-privacy-policy-text a {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ============================================
   PASSWORD STRENGTH METER
   WC JS injects .woocommerce-password-strength after the password field,
   with classes: short, bad, good, strong. Norwegian labels come from
   nb_NO translations. Only visible when generate_password = no.
   ============================================ */
body.woocommerce-account .woocommerce-password-strength {
	display: block;
	padding: 0.35rem 0.75rem;
	border-radius: var(--wp--custom--border-radius--default);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	text-align: center;
	margin-top: var(--wp--custom--spacing--xs);
	border: 1px solid transparent;
}

body.woocommerce-account .woocommerce-password-strength.short,
body.woocommerce-account .woocommerce-password-strength.bad {
	background: #fde8e8;
	color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
}

body.woocommerce-account .woocommerce-password-strength.good {
	background: #fef9e6;
	color: #7a5c00;
	border-color: #d4a000;
}

body.woocommerce-account .woocommerce-password-strength.strong {
	background: #eaf5e3;
	color: #3d6b27;
	border-color: #5a9a3a;
}

body.woocommerce-account .woocommerce-password-hint {
	display: block;
	font-size: var(--wp--preset--font-size--x-small);
	color: #808080;
	margin-top: var(--wp--custom--spacing--xs);
	line-height: 1.4;
}

/* ============================================
   MOBILE AUTH TABS (login ↔ register toggle)
   Hidden on desktop where both forms show side by side.
   ============================================ */
.krem-auth-tabs {
	display: none;
}

@media (max-width: 760px) {
	.krem-auth-tabs {
		display: flex;
		margin-bottom: var(--wp--custom--spacing--lg);
		background: var(--wp--preset--color--background-alt);
		border-radius: var(--wp--custom--border-radius--pill);
		padding: 4px;
	}

	.krem-auth-tabs__tab {
		flex: 1;
		padding: 0.75rem 1rem;
		font-family: var(--wp--preset--font-family--body);
		font-size: var(--wp--preset--font-size--small);
		font-weight: 700;
		color: var(--wp--preset--color--text);
		background: transparent;
		border: none;
		border-radius: var(--wp--custom--border-radius--pill);
		cursor: pointer;
		transition: all var(--wp--custom--transition);
		line-height: 1;
	}

	.krem-auth-tabs__tab.is-active {
		background: var(--wp--preset--color--primary);
		color: var(--wp--preset--color--white);
	}

	/* Stack columns + hide inactive one */
	body.woocommerce-account #customer_login {
		grid-template-columns: 1fr;
	}

	body.woocommerce-account #customer_login h2 {
		text-align: center;
	}

	/* Default: show login, hide register */
	body.woocommerce-account #customer_login .u-column2 {
		display: none;
	}

	/* Toggle: show register, hide login */
	body.woocommerce-account #customer_login.show-register .u-column1 {
		display: none;
	}

	body.woocommerce-account #customer_login.show-register .u-column2 {
		display: block;
	}
}

/* ============================================
   SAVED RECIPES (Mine oppskrifter)
   ============================================ */

/* Empty state */
.saved-recipes-empty {
	text-align: center;
	padding: var(--wp--custom--spacing--2-xl) var(--wp--custom--spacing--lg);
}

.saved-recipes-empty__icon {
	display: block;
	width: 48px;
	height: 48px;
	max-width: 48px;
	color: var(--wp--preset--color--border);
	margin: 0 auto var(--wp--custom--spacing--md);
}

.saved-recipes-empty p {
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--text-muted);
	margin-bottom: var(--wp--custom--spacing--lg);
}

body.woocommerce-account .woocommerce-MyAccount-content .saved-recipes-empty a.btn {
	color: var(--wp--preset--color--white);
	text-decoration: none;
	transition: all var(--wp--custom--transition);
}

body.woocommerce-account .woocommerce-MyAccount-content .saved-recipes-empty a.btn:hover {
	color: var(--wp--preset--color--white);
	background-color: var(--wp--preset--color--primary-dark);
	border-color: var(--wp--preset--color--primary-dark);
	transform: translateY(-2px);
	box-shadow: var(--wp--custom--shadow--md);
}

/* Header: count + search */
.saved-recipes__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--custom--spacing--md);
	margin-bottom: var(--wp--custom--spacing--lg);
}

.saved-recipes__count {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-muted);
	margin: 0;
}

.saved-recipes__search input {
	width: 260px;
	padding: var(--wp--custom--spacing--xs) var(--wp--custom--spacing--sm);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--border-radius--default);
	font-size: var(--wp--preset--font-size--small);
	font-family: var(--wp--preset--font-family--body);
}

.saved-recipes__search input:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
}

/* Card grid */
.saved-recipes__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wp--custom--spacing--lg);
}

@media (max-width: 900px) {
	.saved-recipes__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.saved-recipes__header {
		flex-direction: column;
		align-items: stretch;
	}

	.saved-recipes__search input {
		width: 100%;
	}

	.saved-recipes__grid {
		grid-template-columns: 1fr;
	}
}
