/* ==========================================================================
   BKA 2026 v5 · ACCOUNT – the donor account (/my-account/), theme 5.8.0.
   The owner, 2026-11-14: „nézzen ki úgy, mint egy 2026 novemberben
   világszínvonalú fiókkezelő, a bka.hu designt figyelembevéve”.

   White cards rise into the red page header; a profile card and an icon menu
   on the left (a scrolling row of chips on phones); every page on one white
   card, the overview as tiles. Status badges, amounts in Brandon, tables that
   become cards on phones. The account plugin's (tgwc) own stylesheet is not
   loaded (inc/v5/account.php): everything here is token-based.
   ========================================================================== */

body.woocommerce-account {
	--bka-account-w: 72rem;
	--bka-acc-lift: clamp(2.5rem, 1.75rem + 2.5vw, 4rem);
	--bka-acc-shadow: 0 1px 2px rgba(17, 17, 26, .05), 0 16px 40px -22px rgba(17, 17, 26, .32);
	--bka-acc-pad: clamp(1.25rem, .85rem + 1.6vw, 2.25rem);
	--bka-acc-ok: #17663a;
	--bka-acc-ok-bg: #e8f6ee;
	--bka-acc-info: #1d4fbf;
	--bka-acc-info-bg: #ebf1fe;
	--bka-acc-wait: #8a4b00;
	--bka-acc-wait-bg: #fff3df;
}

/* Page frame: the cards rise into the red header ----------------------------- */
body.woocommerce-account .v5-commerce__header { padding-bottom: calc(clamp(2.5rem, 2rem + 2vw, 3.5rem) + var(--bka-acc-lift)); }
body.woocommerce-account .v5-commerce__header-inner { max-width: calc(var(--bka-account-w) + 2 * var(--v5-gutter)); }
body.woocommerce-account .v5-commerce__body { display: flow-root; padding-top: 0; } /* flow-root: the content's negative margin must not pull the grey band up */
body.woocommerce-account .v5-commerce__body > .v5-commerce__content { position: relative; margin-top: calc(-1 * var(--bka-acc-lift)); }
body.woocommerce-account .v5-commerce__trust {
	width: min(100%, var(--bka-account-w));
	margin-inline: auto;
	padding: 1rem 1.25rem;
	border-radius: var(--v5-radius);
	background: #fff;
	box-shadow: var(--bka-acc-shadow);
}

body.woocommerce-account .v5-commerce__wc #tgwc-woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-auto-flow: row;
	gap: clamp(1rem, .75rem + 1vw, 1.75rem);
	align-items: start;
	width: min(100%, var(--bka-account-w));
	margin-inline: auto;
}
body.woocommerce-account .v5-commerce__wc #tgwc-woocommerce > * { grid-column: 1 / -1; min-width: 0; margin: 0; float: none; width: auto; }
@media (min-width: 900px) {
	body.woocommerce-account .v5-commerce__wc #tgwc-woocommerce:has(> .tgwc-woocommerce-MyAccount-navigation) { grid-template-columns: 18rem minmax(0, 1fr); }
	body.woocommerce-account .v5-commerce__wc #tgwc-woocommerce > .tgwc-woocommerce-MyAccount-navigation { grid-column: 1; position: sticky; top: 1.5rem; }
	body.woocommerce-account .v5-commerce__wc #tgwc-woocommerce > .woocommerce-MyAccount-content { grid-column: 2; }
}

/* Menu card: profile + icon menu ------------------------------------------------ */
body.woocommerce-account .tgwc-woocommerce-MyAccount-navigation {
	padding: .75rem;
	border-radius: var(--v5-radius);
	background: #fff;
	box-shadow: var(--bka-acc-shadow);
}
body.woocommerce-account .bka-acc-profile {
	display: flex;
	align-items: center;
	gap: .85rem;
	margin: 0 0 .6rem;
	padding: .6rem .6rem 1rem;
	border-bottom: 1px solid var(--v5-line);
}
body.woocommerce-account .bka-acc-avatar {
	display: grid;
	flex: none;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--v5-red) 0%, var(--v5-red-600) 100%);
	color: #fff;
	font-family: var(--v5-font-display);
	font-size: 1.125rem;
	line-height: 1;
	letter-spacing: .03em;
	box-shadow: 0 8px 18px -10px rgba(var(--v5-red-rgb), .8);
}
body.woocommerce-account .bka-acc-profile__text { min-width: 0; }
body.woocommerce-account .bka-acc-profile__name {
	margin: 0;
	overflow-wrap: anywhere;
	color: var(--v5-ink);
	font-family: var(--v5-font-display);
	font-size: 1.125rem;
	line-height: 1.2;
}
body.woocommerce-account .bka-acc-profile__mail {
	margin: .2rem 0 0;
	overflow: hidden;
	color: var(--v5-muted);
	font-size: .8125rem;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.woocommerce-account .tgwc-woocommerce-MyAccount-navigation ul { display: grid; gap: .125rem; margin: 0; padding: 0; list-style: none; }
body.woocommerce-account .tgwc-woocommerce-MyAccount-navigation li { margin: 0; padding: 0; border: 0; list-style: none; }
body.woocommerce-account .tgwc-woocommerce-MyAccount-navigation li > a {
	display: flex;
	align-items: center;
	gap: .75rem;
	min-height: 2.75rem;
	padding: .55rem .8rem;
	border: 0;
	border-radius: var(--v5-radius-sm);
	background: transparent;
	color: var(--v5-ink-soft);
	font-size: .9375rem;
	font-weight: var(--v5-w-ui);
	line-height: 1.25;
	text-decoration: none;
	transition: background-color var(--v5-dur) var(--v5-ease), color var(--v5-dur) var(--v5-ease);
}
body.woocommerce-account .tgwc-woocommerce-MyAccount-navigation li > a::before {
	content: "";
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	background: var(--v5-muted);
	-webkit-mask: var(--bka-acc-icon, none) center / contain no-repeat;
	mask: var(--bka-acc-icon, none) center / contain no-repeat;
	transition: background-color var(--v5-dur) var(--v5-ease);
}
body.woocommerce-account .tgwc-woocommerce-MyAccount-navigation li > a:hover { background: var(--v5-mist); color: var(--v5-ink); }
body.woocommerce-account .tgwc-woocommerce-MyAccount-navigation li > a:focus-visible { outline: none; box-shadow: var(--v5-focus); }
body.woocommerce-account .tgwc-woocommerce-MyAccount-navigation li.is-active > a { background: var(--v5-red-50); color: var(--v5-red-700); }
body.woocommerce-account .tgwc-woocommerce-MyAccount-navigation li.is-active > a::before,
body.woocommerce-account .tgwc-woocommerce-MyAccount-navigation li > a:hover::before { background: var(--v5-red); }
body.woocommerce-account .tgwc-woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout { margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--v5-line); }
body.woocommerce-account .tgwc-woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--wpf-delete-account > a { color: var(--v5-muted); font-size: .875rem; }
body.woocommerce-account .tgwc-woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--wpf-delete-account > a:hover { background: var(--v5-red-50); color: var(--v5-red-700); }

/* Phones and tablets: the menu is a row of chips under the profile (the active one scrolled into view). */
@media (max-width: 899px) {
	body.woocommerce-account .tgwc-woocommerce-MyAccount-navigation { padding: .6rem .6rem .7rem; }
	body.woocommerce-account .bka-acc-profile { margin-bottom: .55rem; padding: .35rem .4rem .75rem; }
	body.woocommerce-account .bka-acc-avatar { width: 2.6rem; height: 2.6rem; font-size: 1rem; }
	body.woocommerce-account .tgwc-woocommerce-MyAccount-navigation ul {
		display: flex;
		gap: .4rem;
		margin: 0 -.6rem;
		padding: .15rem .6rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-padding-inline: .6rem;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}
	body.woocommerce-account .tgwc-woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
	body.woocommerce-account .tgwc-woocommerce-MyAccount-navigation li { flex: none; scroll-snap-align: start; }
	body.woocommerce-account .tgwc-woocommerce-MyAccount-navigation li > a {
		gap: .5rem;
		min-height: 2.5rem;
		padding: .45rem .95rem .45rem .8rem;
		border-radius: var(--v5-radius-pill);
		background: var(--v5-mist);
		font-size: .875rem;
		white-space: nowrap;
	}
	body.woocommerce-account .tgwc-woocommerce-MyAccount-navigation li > a::before { width: 1.05rem; height: 1.05rem; }
	body.woocommerce-account .tgwc-woocommerce-MyAccount-navigation li.is-active > a { background: var(--v5-red); color: #fff; }
	body.woocommerce-account .tgwc-woocommerce-MyAccount-navigation li.is-active > a::before { background: #fff; }
	body.woocommerce-account .tgwc-woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout { margin: 0; padding: 0; border: 0; }
}

/* Content card -------------------------------------------------------------------- */
body.woocommerce-account .woocommerce-MyAccount-content {
	min-width: 0;
	padding: var(--bka-acc-pad);
	border-radius: var(--v5-radius);
	background: #fff;
	box-shadow: var(--bka-acc-shadow);
}
body.woocommerce-account .woocommerce-MyAccount-content:has(> .bka-acc-dash) { padding: 0; background: transparent; box-shadow: none; }
body.woocommerce-account .woocommerce-MyAccount-content > :last-child { margin-bottom: 0; }
body.woocommerce-account .bka-acc-head { margin: 0 0 1.5rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--v5-line); }
body.woocommerce-account .bka-acc-head__title { margin: 0; color: var(--v5-ink); font-size: var(--v5-fs-h3); line-height: 1.15; }
body.woocommerce-account .bka-acc-head__title::first-letter { text-transform: uppercase; } /* „rendszeres adomány #…” (the translation starts lower case) */
body.woocommerce-account .woocommerce-MyAccount-content :is(h2, h3) { color: var(--v5-ink); line-height: 1.15; }
body.woocommerce-account .woocommerce-MyAccount-content h2:not(.bka-acc-head__title) { margin: 2rem 0 1rem; font-size: var(--v5-fs-h4); }
body.woocommerce-account .woocommerce-MyAccount-content > p { color: var(--v5-ink-soft); }

/* Notices inside the account: success green, information neutral, errors red (commerce.css). */
body.woocommerce-account .v5-commerce__wc .woocommerce-message { border-left-color: var(--bka-acc-ok); background: var(--bka-acc-ok-bg); }
body.woocommerce-account .v5-commerce__wc .woocommerce-info { border-left-color: var(--v5-line-strong); background: var(--v5-mist); }
body.woocommerce-account .v5-commerce__wc :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) { border-radius: 0 var(--v5-radius-sm) var(--v5-radius-sm) 0; }
body.woocommerce-account .v5-commerce__wc :is(.woocommerce-message, .woocommerce-info) .button { float: none; margin: 0 0 0 .75rem; }

/* Badges, chips, amounts ------------------------------------------------------------- */
body.woocommerce-account .bka-acc-badge {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .3rem .7rem .3rem .6rem;
	border-radius: var(--v5-radius-pill);
	background: var(--v5-mist);
	color: var(--v5-muted);
	font-size: .8125rem;
	font-weight: var(--v5-w-bold);
	line-height: 1.2;
	white-space: nowrap;
}
body.woocommerce-account .bka-acc-badge::before { content: ""; flex: none; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
body.woocommerce-account .bka-acc-badge--ok { background: var(--bka-acc-ok-bg); color: var(--bka-acc-ok); }
body.woocommerce-account .bka-acc-badge--info { background: var(--bka-acc-info-bg); color: var(--bka-acc-info); }
body.woocommerce-account .bka-acc-badge--wait { background: var(--bka-acc-wait-bg); color: var(--bka-acc-wait); }
body.woocommerce-account .bka-acc-badge--bad { background: var(--v5-red-50); color: var(--v5-red-700); }
body.woocommerce-account .bka-acc-chip {
	display: inline-block;
	padding: .15rem .5rem;
	border-radius: var(--v5-radius-xs);
	background: var(--v5-mist);
	color: var(--v5-ink-soft);
	font-size: .75rem;
	font-weight: var(--v5-w-bold);
	line-height: 1.35;
	letter-spacing: .02em;
	vertical-align: .1em;
	white-space: nowrap;
}
body.woocommerce-account .bka-acc-chip--monthly { background: var(--v5-red-50); color: var(--v5-red-700); }
body.woocommerce-account .bka-acc-amount { color: var(--v5-ink); font-family: var(--v5-font-display); font-size: 1.1875rem; line-height: 1.2; white-space: nowrap; }
body.woocommerce-account :is(.bka-acc-amount, .bka-acc-stat__value, .bka-acc-row__amount) .subscription-details { color: var(--v5-muted); font-family: var(--v5-font-text); font-size: .8125rem; font-weight: var(--v5-w-ui); }
body.woocommerce-account .bka-acc-num { color: var(--v5-ink); font-weight: var(--v5-w-bold); text-decoration: none; }
body.woocommerce-account .bka-acc-num:hover { color: var(--v5-red); text-decoration: underline; text-underline-offset: .2em; }
body.woocommerce-account .bka-acc-subline { display: block; margin-top: .2rem; color: var(--v5-muted); font-size: .8125rem; line-height: 1.35; }

/* Overview (dashboard) ------------------------------------------------------------------ */
body.woocommerce-account .bka-acc-dash { display: grid; gap: clamp(1rem, .75rem + 1vw, 1.5rem); container-type: inline-size; }
body.woocommerce-account .bka-acc-dash > :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) { margin: 0; }
body.woocommerce-account .bka-acc-dash__hello {
	position: relative;
	overflow: hidden;
	padding: clamp(1.5rem, 1rem + 2.2vw, 2.75rem);
	border-radius: var(--v5-radius);
	background: #fff;
	box-shadow: var(--bka-acc-shadow);
	isolation: isolate;
}
body.woocommerce-account .bka-acc-dash__hello::after {
	content: "";
	position: absolute;
	z-index: -1;
	top: -7rem;
	right: -6rem;
	width: 18rem;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--v5-red-rgb), .09), rgba(var(--v5-red-rgb), 0) 68%);
}
body.woocommerce-account .woocommerce-MyAccount-content h2.bka-acc-dash__title { margin: 0; color: var(--v5-ink); font-size: clamp(1.75rem, 1.15rem + 2vw, 2.75rem); line-height: 1.06; overflow-wrap: anywhere; }
body.woocommerce-account .bka-acc-dash__lead { max-width: 44ch; margin: .75rem 0 0; color: var(--v5-ink-soft); font-size: var(--v5-fs-lead); line-height: 1.45; }

body.woocommerce-account .bka-acc-stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: inherit; }
@container (min-width: 40rem) {
	body.woocommerce-account .bka-acc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
body.woocommerce-account .bka-acc-stat {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas: "icon label" "value value" "meta meta";
	align-content: start;
	align-items: center;
	gap: .2rem .75rem;
	padding: 1.25rem 1.35rem 1.35rem;
	border-radius: var(--v5-radius);
	background: #fff;
	color: var(--v5-ink);
	text-decoration: none;
	box-shadow: var(--bka-acc-shadow);
	transition: transform var(--v5-dur) var(--v5-ease), box-shadow var(--v5-dur) var(--v5-ease);
}
body.woocommerce-account .bka-acc-stat:hover { color: var(--v5-ink); transform: translateY(-2px); box-shadow: 0 1px 2px rgba(17, 17, 26, .05), 0 22px 44px -22px rgba(17, 17, 26, .4); }
body.woocommerce-account .bka-acc-stat:focus-visible { outline: none; box-shadow: var(--v5-focus); }
body.woocommerce-account .bka-acc-stat__icon { display: grid; grid-area: icon; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--v5-radius-sm); background: var(--v5-red-50); color: var(--v5-red); }
body.woocommerce-account .bka-acc-stat__icon .v5-icon { width: 1.3rem; height: 1.3rem; }
body.woocommerce-account .bka-acc-stat__label { grid-area: label; color: var(--v5-muted); font-size: .8125rem; font-weight: var(--v5-w-bold); line-height: 1.25; }
body.woocommerce-account .bka-acc-stat__value { grid-area: value; margin-top: .85rem; color: var(--v5-ink); font-family: var(--v5-font-display); font-size: clamp(1.375rem, 1.15rem + .6vw, 1.75rem); line-height: 1.12; overflow-wrap: anywhere; }
body.woocommerce-account .bka-acc-stat__value--none { color: var(--v5-line-strong); }
body.woocommerce-account .bka-acc-stat__meta { grid-area: meta; margin-top: .3rem; color: var(--v5-muted); font-size: .8125rem; line-height: 1.35; }
/* Narrow overview: compact tiles, the icon beside the text. */
@container (max-width: 39.99rem) {
	body.woocommerce-account .bka-acc-stat { grid-template-areas: "icon label" "icon value" "icon meta"; align-items: start; gap: .1rem 1rem; padding: 1rem 1.15rem; }
	body.woocommerce-account .bka-acc-stat__icon { align-self: center; width: 2.75rem; height: 2.75rem; }
	body.woocommerce-account .bka-acc-stat__value { margin-top: .2rem; font-size: 1.375rem; }
	body.woocommerce-account .bka-acc-stat__meta { margin-top: .1rem; }
}

body.woocommerce-account .bka-acc-recent {
	padding: clamp(1.25rem, 1rem + 1.2vw, 2rem);
	border-radius: var(--v5-radius);
	background: #fff;
	box-shadow: var(--bka-acc-shadow);
	container-type: inline-size;
}
body.woocommerce-account .bka-acc-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin: 0 0 .6rem; }
body.woocommerce-account .bka-acc-section-head__title { margin: 0; color: var(--v5-ink); font-size: var(--v5-fs-h4); line-height: 1.2; }
body.woocommerce-account .bka-acc-more { display: inline-flex; align-items: center; gap: .35rem; color: var(--v5-red); font-size: .875rem; font-weight: var(--v5-w-bold); text-decoration: none; }
body.woocommerce-account .bka-acc-more:hover { color: var(--v5-red-700); text-decoration: underline; text-underline-offset: .2em; }
body.woocommerce-account .bka-acc-more .v5-icon { width: 1rem; height: 1rem; }
body.woocommerce-account .bka-acc-rows { margin: 0; padding: 0; list-style: none; }
body.woocommerce-account .bka-acc-rows > li { margin: 0; padding: 0; }
body.woocommerce-account .bka-acc-rows > li + li { border-top: 1px solid var(--v5-line); }
body.woocommerce-account .bka-acc-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto 7.5rem 1.25rem;
	align-items: center;
	gap: .5rem 1.25rem;
	margin: 0 -.75rem;
	padding: .9rem .75rem;
	border-radius: var(--v5-radius-sm);
	color: var(--v5-ink);
	text-decoration: none;
	transition: background-color var(--v5-dur) var(--v5-ease);
}
body.woocommerce-account .bka-acc-row:hover { background: var(--v5-mist); color: var(--v5-ink); }
body.woocommerce-account .bka-acc-row:focus-visible { outline: none; box-shadow: var(--v5-focus); }
body.woocommerce-account .bka-acc-row__main { display: grid; gap: .2rem; min-width: 0; }
body.woocommerce-account .bka-acc-row__title { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-weight: var(--v5-w-bold); line-height: 1.3; }
body.woocommerce-account .bka-acc-row__date { color: var(--v5-muted); font-size: .8125rem; }
body.woocommerce-account .bka-acc-row__amount { font-family: var(--v5-font-display); font-size: 1.25rem; line-height: 1.2; text-align: right; white-space: nowrap; }
body.woocommerce-account .bka-acc-row__go { display: grid; place-items: center; color: var(--v5-line-strong); transition: color var(--v5-dur) var(--v5-ease), transform var(--v5-dur) var(--v5-ease); }
body.woocommerce-account .bka-acc-row__go .v5-icon { width: 1.1rem; height: 1.1rem; }
body.woocommerce-account .bka-acc-row:hover .bka-acc-row__go { color: var(--v5-red); transform: translateX(2px); }
@container (max-width: 34rem) {
	body.woocommerce-account .bka-acc-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main amount" "main status"; gap: .35rem 1rem; }
	body.woocommerce-account .bka-acc-row__main { grid-area: main; }
	body.woocommerce-account .bka-acc-row__amount { grid-area: amount; }
	body.woocommerce-account .bka-acc-row__status { grid-area: status; justify-self: end; }
	body.woocommerce-account .bka-acc-row__go { display: none; }
}

body.woocommerce-account .bka-acc-empty {
	display: grid;
	justify-items: center;
	gap: .85rem;
	padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem) 1.25rem;
	border: 1.5px dashed var(--v5-line-strong);
	border-radius: var(--v5-radius-sm);
	color: var(--v5-ink-soft);
	text-align: center;
}
body.woocommerce-account .bka-acc-empty p { margin: 0; }
body.woocommerce-account .bka-acc-empty__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--v5-red-50); color: var(--v5-red); }
body.woocommerce-account .bka-acc-empty__icon .v5-icon { width: 1.4rem; height: 1.4rem; }

body.woocommerce-account .bka-acc-cta {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	overflow: hidden;
	padding: clamp(1.35rem, 1rem + 1.4vw, 2.25rem);
	border-radius: var(--v5-radius);
	background: linear-gradient(135deg, var(--v5-red) 0%, var(--v5-red-600) 100%);
	color: #fff;
	isolation: isolate;
}
body.woocommerce-account .bka-acc-cta::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: -5rem;
	bottom: -9rem;
	width: 20rem;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 66%);
}
body.woocommerce-account .bka-acc-cta__icon { display: grid; flex: none; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; }
body.woocommerce-account .bka-acc-cta__icon .v5-icon { width: 1.5rem; height: 1.5rem; }
body.woocommerce-account .bka-acc-cta__text { flex: 1 1 14rem; margin: 0; color: #fff; font-family: var(--v5-font-display); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.12; }
body.woocommerce-account .bka-acc-cta__button { flex: none; }

/* Tables: Adományaim, Rendszeres adományaim, Fizetési módok, the related donations of a monthly donation ---------- */
body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.shop_table { width: 100%; margin: 0 0 1.5rem; border: 0; border-collapse: collapse; font-size: .9375rem; }
body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.shop_table:last-child { margin-bottom: 0; }
body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.shop_table thead { display: table-header-group; } /* commerce.css hides it for the checkout summary */
body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.shop_table thead th {
	padding: 0 1rem .75rem 0;
	border-bottom: 1px solid var(--v5-line);
	color: var(--v5-muted);
	font-size: .75rem;
	font-weight: var(--v5-w-bold);
	letter-spacing: .08em;
	text-align: left;
	text-transform: uppercase;
	white-space: nowrap;
}
body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.shop_table :is(tbody, tfoot) :is(th, td) {
	padding: 1rem 1rem 1rem 0;
	border: 0;
	border-bottom: 1px solid var(--v5-line);
	background: transparent;
	color: var(--v5-ink);
	font-weight: var(--v5-w-text);
	text-align: left;
	vertical-align: middle;
}
body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.shop_table tbody tr:last-child :is(th, td) { border-bottom: 0; }
body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.shop_table tfoot :is(th, td) { border-bottom: 0; border-top: 1px solid var(--v5-line); }
body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.shop_table tfoot th { color: var(--v5-muted); font-weight: var(--v5-w-ui); }
body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.shop_table :is(thead th, tbody td, tfoot td):last-child { padding-right: 0; text-align: right; }
body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.shop_table tbody th a:not(.button) { color: var(--v5-ink); font-weight: var(--v5-w-bold); text-decoration: none; }
body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.my_account_orders .woocommerce-orders-table__cell-order-number { font-weight: var(--v5-w-bold); white-space: nowrap; }
body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.my_account_orders .woocommerce-orders-table__cell-order-date { color: var(--v5-ink-soft); }
body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.my_account_orders .woocommerce-orders-table__cell-order-actions { white-space: nowrap; }

/* Buttons inside the account: quiet outlines in lists, the main action stays the red pill (commerce.css). */
body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content :is(table, .woocommerce-Address-title, .woocommerce-info, .woocommerce-message) .button {
	min-height: 2.5rem;
	padding: .45rem 1.05rem;
	border: 1.5px solid var(--v5-line-strong);
	background: #fff;
	color: var(--v5-ink);
	font-size: .75rem;
	letter-spacing: .06em;
	box-shadow: none;
}
body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content :is(table, .woocommerce-Address-title, .woocommerce-info, .woocommerce-message) .button:hover:not(:disabled) { border-color: var(--v5-red); background: var(--v5-red-50); color: var(--v5-red-700); transform: none; }
body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table .button.pay { border-color: var(--v5-red); background: var(--v5-red); color: #fff; }
body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table .button.pay:hover:not(:disabled) { border-color: var(--v5-red-600); background: var(--v5-red-600); color: #fff; }
body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table .button.delete { border-color: transparent; color: var(--v5-red-700); }
body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table .button + .button { margin-left: .4rem; }

/* Phones: every row is a card. Donation lists: number + amount, date + status, then the buttons; other tables: labelled lines. */
@media (max-width: 40rem) {
	body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.shop_table_responsive thead { display: none; }
	body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.shop_table_responsive :is(tbody, tr) { display: block; }
	body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.shop_table_responsive tbody tr { padding: .9rem 0; border-bottom: 1px solid var(--v5-line); }
	body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.shop_table_responsive tbody tr:first-child { padding-top: 0; }
	body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.shop_table_responsive tbody tr:last-child { border-bottom: 0; }
	body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.shop_table_responsive tbody :is(th, td) { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .3rem 0; border: 0; text-align: right; }
	body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.shop_table_responsive tbody :is(th, td)[data-title]::before { content: attr(data-title); color: var(--v5-muted); font-size: .8125rem; font-weight: var(--v5-w-ui); text-align: left; }
	body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.shop_table_responsive tbody td:last-child { justify-content: flex-end; padding-top: .7rem; }
	body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.shop_table_responsive tbody td:last-child::before { content: none; }

	body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.my_account_orders tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .4rem 1rem; }
	body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.my_account_orders tbody :is(th, td) { display: block; padding: 0; text-align: left; }
	body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.my_account_orders tbody :is(th, td)[data-title]::before { content: none; }
	body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.my_account_orders .woocommerce-orders-table__cell-order-number { grid-column: 1; grid-row: 1; }
	body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.my_account_orders .woocommerce-orders-table__cell-order-total { grid-column: 2; grid-row: 1; text-align: right; }
	body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.my_account_orders .woocommerce-orders-table__cell-order-date { grid-column: 1; grid-row: 2; font-size: .875rem; }
	body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.my_account_orders tbody .woocommerce-orders-table__cell-subscription-next-payment[data-title]::before { content: attr(data-title) ": "; color: var(--v5-muted); font-size: inherit; font-weight: var(--v5-w-text); }
	body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.my_account_orders .woocommerce-orders-table__cell-order-status { grid-column: 2; grid-row: 2; justify-self: end; }
	body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.my_account_orders .woocommerce-orders-table__cell-order-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; grid-column: 1 / -1; gap: .4rem; padding-top: .45rem; white-space: normal; }
	body.woocommerce-account #tgwc-woocommerce .woocommerce-MyAccount-content table.my_account_orders .woocommerce-orders-table__cell-order-actions .button { flex: 1 1 auto; margin: 0; }
}

/* Addresses (Címeim) ---------------------------------------------------------------------- */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; margin: 1.25rem 0 0; }
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses::before,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses::after { content: none; }
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address { float: none; width: auto; margin: 0; padding: 1.25rem 1.35rem 1.35rem; border: 1px solid var(--v5-line); border-radius: var(--v5-radius-sm); background: #fff; }
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin: 0 0 .85rem; }
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title :is(h2, h3) { margin: 0; font-size: var(--v5-fs-h4); }
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title::before,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title::after { content: none; }
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title .edit { float: none; color: var(--v5-red); font-size: .875rem; font-weight: var(--v5-w-bold); text-decoration: none; }
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title .edit:hover { color: var(--v5-red-700); text-decoration: underline; text-underline-offset: .2em; }
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address address { margin: 0; color: var(--v5-ink-soft); font-style: normal; line-height: 1.65; }

/* Forms: Részletek, a cím szerkesztése -------------------------------------------------------- */
body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm > * { grid-column: 1 / -1; }
body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm > .woocommerce-form-row--first { grid-column: 1; }
body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm > .woocommerce-form-row--last { grid-column: 2; }
body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm > .clear { display: none; }
@media (max-width: 40rem) {
	body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm { grid-template-columns: minmax(0, 1fr); }
	body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm > :is(.woocommerce-form-row--first, .woocommerce-form-row--last) { grid-column: 1; }
	body.woocommerce-account .v5-commerce__wc .woocommerce-address-fields__field-wrapper { grid-template-columns: minmax(0, 1fr); }
	body.woocommerce-account .v5-commerce__wc .woocommerce-address-fields__field-wrapper > .form-row { grid-column: 1; }
}
body.woocommerce-account .v5-commerce__wc fieldset { margin: 1.25rem 0 1.25rem; padding: 1.1rem 1.35rem .35rem; border: 1px solid var(--v5-line); border-radius: var(--v5-radius-sm); background: #fbfbfd; }
body.woocommerce-account .v5-commerce__wc legend { margin-left: -.5rem; padding: 0 .5rem; color: var(--v5-ink); font-family: var(--v5-font-display); font-size: var(--v5-fs-h4); line-height: var(--v5-lh-tight); }
body.woocommerce-account .v5-commerce__wc :is(#account_display_name_description, #account_display_name ~ span) { display: block; margin-top: .45rem; color: var(--v5-muted); font-size: var(--v5-fs-small); font-weight: var(--v5-w-text); line-height: 1.4; }
body.woocommerce-account .v5-commerce__wc :is(#account_display_name_description, #account_display_name ~ span) em { color: inherit; font-size: inherit; font-style: normal; font-weight: inherit; }
body.woocommerce-account .v5-commerce__wc .woocommerce-MyAccount-content form .button[type="submit"] { margin-top: .5rem; }
body.woocommerce-account .v5-commerce__wc .woocommerce-MyAccount-content .form-row.woocommerce-validated input.input-text { border-color: var(--v5-line-strong); }
body.woocommerce-account .v5-commerce__wc .woocommerce-MyAccount-content label.checkbox,
body.woocommerce-account .v5-commerce__wc .woocommerce-MyAccount-content .form-row label:has(> input[type="checkbox"]) { position: relative; display: block; padding-left: 1.85rem; font-weight: var(--v5-w-text); line-height: 1.45; }
body.woocommerce-account .v5-commerce__wc .woocommerce-MyAccount-content :is(label.checkbox, .form-row label) > input[type="checkbox"] { position: absolute; top: .1rem; left: 0; width: 1.15rem; height: 1.15rem; min-height: 0; margin: 0; accent-color: var(--v5-red); }

/* One donation / one monthly donation ------------------------------------------------------------ */
body.woocommerce-account .woocommerce-MyAccount-content mark { padding: 0; background: transparent; color: var(--v5-ink); font-weight: var(--v5-w-bold); }
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details address { padding: 1.1rem 1.25rem; border: 1px solid var(--v5-line); border-radius: var(--v5-radius-sm); font-style: normal; line-height: 1.65; }
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details address p { margin: .35rem 0 0; }
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-OrderUpdates { margin: 0; padding: 0; list-style: none; }

/* Signed out: sign-in and registration side by side, lost password ----------------------------- */
body.woocommerce-account .v5-commerce__wc #tgwc-woocommerce > h2 { text-align: center; }
body.woocommerce-account .v5-commerce__wc #tgwc-woocommerce > :is(form, .woocommerce-ResetPassword) { width: min(100%, 34rem); margin-inline: auto; }
body.woocommerce-account .v5-commerce__wc #customer_login { display: grid; grid-template-columns: minmax(0, 34rem); justify-content: center; align-items: start; gap: clamp(1rem, .75rem + 1vw, 1.75rem); width: 100%; }
body.woocommerce-account .v5-commerce__wc #customer_login > :is(.col-1, .col-2) { float: none; width: auto; max-width: none; margin: 0; padding: var(--bka-acc-pad); border-radius: var(--v5-radius); background: #fff; box-shadow: var(--bka-acc-shadow); }
body.woocommerce-account .v5-commerce__wc #customer_login > :is(.col-1, .col-2) > h2 { margin: 0 0 1.25rem; color: var(--v5-ink); font-size: var(--v5-fs-h3); line-height: 1.15; }
body.woocommerce-account .v5-commerce__wc #customer_login :is(.woocommerce-form-login, .woocommerce-form-register) { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.woocommerce-account .v5-commerce__wc .woocommerce-ResetPassword { padding: var(--bka-acc-pad); border-radius: var(--v5-radius); box-shadow: var(--bka-acc-shadow); }
@media (min-width: 900px) {
	body.woocommerce-account .v5-commerce__wc #customer_login { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Menu icons: the theme's icon library (inc/v5/icons.php) as masks; logout and delete in the same line style. */
body.woocommerce-account .woocommerce-MyAccount-navigation-link--dashboard { --bka-acc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12l-9 -9l-9 9h2v7a2 2 0 0 0 2 2h6'/%3E%3Cpath d='M9 21v-6a2 2 0 0 1 2 -2h2c.39 0 .754 .112 1.061 .304'/%3E%3Cpath d='M19 21.5l2.518 -2.58a1.74 1.74 0 0 0 0 -2.413a1.627 1.627 0 0 0 -2.346 0l-.168 .172l-.168 -.172a1.627 1.627 0 0 0 -2.346 0a1.74 1.74 0 0 0 0 2.412l2.51 2.59z'/%3E%3C/svg%3E"); }
body.woocommerce-account .woocommerce-MyAccount-navigation-link--orders { --bka-acc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20.2s-7.6-4.6-9.2-9.4C1.6 7.2 3.8 4 7.2 4c2 0 3.6 1.1 4.8 2.9C13.2 5.1 14.8 4 16.8 4c3.4 0 5.6 3.2 4.4 6.8-1.6 4.8-9.2 9.4-9.2 9.4Z'/%3E%3C/svg%3E"); }
body.woocommerce-account .woocommerce-MyAccount-navigation-link--subscriptions { --bka-acc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5.5' width='16' height='14.5' rx='2.2'/%3E%3Cpath d='M4 10h16M8.5 3.5v4M15.5 3.5v4'/%3E%3C/svg%3E"); }
body.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-address { --bka-acc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18.5 10.2c0 4.9-6.5 10.3-6.5 10.3s-6.5-5.4-6.5-10.3a6.5 6.5 0 0 1 13 0Z'/%3E%3Ccircle cx='12' cy='10.2' r='2.4'/%3E%3C/svg%3E"); }
body.woocommerce-account .woocommerce-MyAccount-navigation-link--payment-methods { --bka-acc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='2.2'/%3E%3Cpath d='M3 9.5h18M7 14.5h4'/%3E%3C/svg%3E"); }
body.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-account { --bka-acc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.5' r='3.75'/%3E%3Cpath d='M5 20c.8-3.6 3.6-5.6 7-5.6s6.2 2 7 5.6'/%3E%3C/svg%3E"); }
body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout { --bka-acc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 20H6.2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h3.3M15.5 16.5 20 12l-4.5-4.5M20 12H9.5'/%3E%3C/svg%3E"); }
body.woocommerce-account .woocommerce-MyAccount-navigation-link--wpf-delete-account { --bka-acc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 6.8h15M9.5 6.8V5a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v1.8M6.6 6.8l.8 11.5a2 2 0 0 0 2 1.7h5.2a2 2 0 0 0 2-1.7l.8-11.5M10.3 10.8v5.4M13.7 10.8v5.4'/%3E%3C/svg%3E"); }
