/**
 * MMA — auth: nowy layout (desktop ≥1024: stała karta, login 2 kolumny; <1024: jedna kolumna).
 * Wizualnie: kolory, fonty, CTA, inputy bez zmian identyfikacji.
 */

body.mma-myaccount-auth-active .woocommerce-MyAccount-content {
	max-width: 100%;
}

body.mma-myaccount-auth-active {
	background-color: #f5f5f5;
}

/* ------------------------------------------------------------------------- */
/* Strona                                                                    */
/* ------------------------------------------------------------------------- */

.mma-auth-page {
	box-sizing: border-box;
	background: #f5f5f5;
	padding: 24px 12px 40px;
}

.mma-auth-page *,
.mma-auth-page *::before,
.mma-auth-page *::after {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------------- */
/* Karta + viewport                                                          */
/* ------------------------------------------------------------------------- */

.mma-auth-page .mma-auth-card {
	width: calc(100vw - 24px);
	max-width: 780px;
	margin-left: auto;
	margin-right: auto;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 16px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
	padding: 16px 14px;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: auto;
	min-height: 0;
}

.mma-auth-card__viewport {
	position: relative;
	width: 100%;
	flex: 1 1 auto;
	min-height: 0;
}

.mma-auth-panel[hidden] {
	display: none !important;
}

/* ------------------------------------------------------------------------- */
/* Panel: kolumna + formularz rozciąga się (tail przy dolnej krawędzi)      */
/* ------------------------------------------------------------------------- */

.mma-auth-panel {
	display: flex;
	flex-direction: column;
	min-height: 0;
	width: 100%;
}

.mma-auth-form {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}

/* Szary blok: tylko pola; CTA i linki jako osobne wiersze siatki (desktop) */
.mma-auth-surface {
	width: 100%;
	background: #f8f8f8;
	border: 1px solid #ece7f2;
	border-radius: 16px;
	padding: 18px;
	flex: 0 0 auto;
}

/* ------------------------------------------------------------------------- */
/* Nagłówek                                                                  */
/* ------------------------------------------------------------------------- */

.mma-auth-head {
	flex: 0 0 auto;
	width: 100%;
	text-align: left;
	margin-bottom: 10px;
}

.mma-auth-title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: clamp(22px, 6.5vw, 30px);
	line-height: 1.05;
	letter-spacing: 0;
	color: #1a1a1a;
	text-transform: uppercase;
	text-align: left;
	margin: 0 0 8px;
}

.mma-auth-subtitle {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.4;
	color: #1a1a1a;
	text-align: left;
	max-width: 620px;
	margin: 0;
}

@media (min-width: 768px) {
	.mma-auth-title {
		font-size: clamp(30px, 3.5vw, 42px);
		margin-bottom: 8px;
	}

	.mma-auth-subtitle {
		font-size: clamp(16px, 1.8vw, 20px);
		line-height: 1.45;
	}
}

/* ------------------------------------------------------------------------- */
/* Pola, etykiety, helper                                                    */
/* ------------------------------------------------------------------------- */

.mma-auth-label {
	display: block;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.35;
	color: #374151;
	margin: 0 0 8px;
}

@media (min-width: 768px) {
	.mma-auth-label {
		font-size: 16px;
	}
}

.mma-auth-label .required {
	color: #374151;
	font-weight: 700;
}

.mma-auth-input {
	display: block;
	width: 100%;
	height: 56px;
	padding-top: 0;
	padding-bottom: 0;
	padding-left: 16px;
	padding-right: 16px;
	background: #fff;
	border: 1px solid #d9d9d9;
	border-radius: 12px;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	line-height: 56px;
	color: #1a1a1a;
	box-shadow: none;
	outline: none;
	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease;
}

.mma-auth-input:focus {
	border-color: #f5c518;
	box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.18);
}

.mma-auth-input::placeholder {
	color: #888;
}

@media (min-width: 768px) {
	.mma-auth-input {
		height: 72px;
		padding-top: 0;
		padding-bottom: 0;
		padding-left: 20px;
		padding-right: 20px;
		font-size: 17px;
		line-height: 72px;
	}
}

.mma-auth-field {
	margin: 0;
}

.mma-auth-field + .mma-auth-field,
.mma-auth-helper + .mma-auth-field {
	margin-top: 14px;
}

.mma-auth-field + .mma-auth-helper {
	margin-top: 12px;
}

.mma-auth-helper {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.45;
	color: #222;
	margin: 12px 0 0;
	text-align: left;
	max-width: 620px;
}

@media (min-width: 768px) {
	.mma-auth-helper {
		font-size: 15px;
		line-height: 1.5;
	}
}

.mma-auth-helper--tight {
	margin-top: 0;
	margin-bottom: 12px;
}

.mma-auth-panel--reset-password .mma-auth-field + .mma-auth-field {
	margin-top: 14px;
}

/* ------------------------------------------------------------------------- */
/* Login: wiersz 2 kolumny (desktop) / 1 kolumna (mobile)                    */
/* ------------------------------------------------------------------------- */

.mma-auth-login-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	width: 100%;
	align-items: start;
}

.mma-auth-cell {
	min-width: 0;
	width: 100%;
}

.mma-auth-login-below {
	margin-top: 14px;
	width: 100%;
}

@media (min-width: 768px) {
	.mma-auth-login-below {
		margin-top: 16px;
	}
}

.mma-auth-remember {
	display: flex;
	justify-content: flex-end;
	width: 100%;
	margin-top: 12px;
}

@media (min-width: 768px) {
	.mma-auth-remember {
		margin-top: 14px;
	}
}

.mma-auth-checkbox-label {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.35;
	color: #4b5563;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	margin: 0;
}

@media (min-width: 768px) {
	.mma-auth-checkbox-label {
		font-size: 17px;
	}
}

.mma-auth-checkbox-label input {
	margin: 0;
	width: 18px;
	height: 18px;
	accent-color: #1a1a1a;
	flex-shrink: 0;
}

/* ------------------------------------------------------------------------- */
/* Hasło + ikona: siatka 78% / 22% (minmax(0,1fr) + 22%)                     */
/* ------------------------------------------------------------------------- */

/* Lite: wspólna matryca treści w szarym boxie (panel register / lost); desktop = zwykły blok bez zmian wizualnych */
.mma-auth-lite-body {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

/* Grid: stała proporcja — ~78% input / 22% segment oka (względem całego .mma-auth-password), mobile–tablet–desktop */
.mma-auth-password {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 22%;
	grid-template-rows: minmax(0, 1fr);
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	height: 56px;
	border: 1px solid #d9d9d9;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease;
}

@media (min-width: 768px) {
	.mma-auth-password {
		height: 72px;
	}
}

.mma-auth-password:focus-within {
	border-color: #f5c518;
	box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.18);
}

.mma-auth-password .mma-auth-password__field {
	position: relative;
	z-index: 1;
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
	width: 100% !important;
	max-width: 100% !important;
	display: block;
	height: 100% !important;
	margin: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	padding-left: 16px !important;
	padding-right: 12px !important;
	border: none !important;
	border-radius: 0;
	box-shadow: none !important;
	background: transparent !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 16px !important;
	line-height: 56px !important;
	color: #1a1a1a !important;
	outline: none !important;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

@media (min-width: 768px) {
	.mma-auth-password .mma-auth-password__field {
		padding-left: 20px !important;
		padding-right: 14px !important;
		font-size: 17px !important;
		line-height: 72px !important;
	}
}

.mma-auth-password .mma-auth-password__field:focus {
	box-shadow: none !important;
}

/* Dokładnie 22% szerokości wrappera (kolumna 2 siatki) — bez flex-basis / clamp */
.mma-auth-password__toggle {
	position: relative;
	z-index: 2;
	grid-column: 2;
	grid-row: 1;
	align-self: stretch;
	justify-self: stretch;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	border: none;
	border-left: 1px solid #d9d9d9;
	border-radius: 0;
	background: #fff;
	color: #1a1a1a;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.18s ease;
	box-sizing: border-box;
}

.mma-auth-password__toggle:hover,
.mma-auth-password__toggle:focus-visible {
	background: #fafafa;
	outline: none;
}

.mma-auth-password__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	pointer-events: none;
}

.mma-auth-password__icon svg {
	display: block;
	width: 22px;
	height: 22px;
}

.mma-auth-page .show-password-input,
.mma-auth-page button.show-password-input {
	display: none !important;
}

.mma-auth-page input[type='password'].mma-auth-password__field::-webkit-credentials-auto-fill-button,
.mma-auth-page input[type='password'].mma-auth-password__field::-webkit-strong-password-auto-fill-button {
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
	pointer-events: none;
}

.mma-auth-page input[type='password'].mma-auth-password__field::-ms-reveal,
.mma-auth-page input[type='password'].mma-auth-password__field::-ms-clear {
	display: none;
	width: 0;
	height: 0;
}

/* ------------------------------------------------------------------------- */
/* CTA + linki                                                               */
/* ------------------------------------------------------------------------- */

.mma-auth-cta {
	width: 100%;
	margin-top: 14px;
}

@media (min-width: 768px) {
	.mma-auth-cta {
		margin-top: 16px;
	}
}

.mma-auth-cta-btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	height: 54px;
	border: 0 !important;
	border-radius: 30px !important;
	background: #f5c518 !important;
	color: #1a1a1a !important;
	font-family: 'Montserrat', sans-serif !important;
	font-weight: 700 !important;
	font-size: clamp(16px, 4vw, 18px) !important;
	line-height: 1 !important;
	box-shadow: 0 2px 8px rgba(245, 197, 24, 0.3) !important;
	cursor: pointer;
	transition:
		background 0.18s ease,
		transform 0.18s ease,
		box-shadow 0.18s ease !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	padding: 0 24px !important;
}

.mma-auth-cta-btn:hover {
	background: #e6b800 !important;
	box-shadow: 0 4px 12px rgba(245, 197, 24, 0.4) !important;
	transform: translateY(-1px);
}

.mma-auth-cta-btn:focus-visible {
	outline: 2px solid #1a1a1a;
	outline-offset: 3px;
}

@media (min-width: 768px) {
	.mma-auth-cta-btn {
		height: 70px;
		font-size: clamp(18px, 2vw, 22px) !important;
	}
}

.mma-auth-footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px;
	width: 100%;
	margin: 16px 0 0;
	padding: 0;
	border: none;
}

@media (min-width: 768px) {
	.mma-auth-footer-links {
		gap: 22px;
		margin-top: 18px;
	}
}

.mma-auth-footer-links--single {
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

@media (max-width: 767px) {
	.mma-auth-footer-links {
		flex-direction: column;
		align-items: center;
		gap: 14px;
	}
}

.mma-auth-link,
a.mma-auth-link,
button.mma-auth-link {
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.45;
	color: #374151;
	text-decoration: underline;
	text-underline-offset: 3px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	text-align: center;
}

@media (min-width: 768px) {
	.mma-auth-link,
	a.mma-auth-link,
	button.mma-auth-link {
		font-size: 17px;
	}
}

.mma-auth-link:hover,
.mma-auth-link:focus-visible,
a.mma-auth-link:hover,
a.mma-auth-link:focus-visible,
button.mma-auth-link:hover,
button.mma-auth-link:focus-visible {
	color: #1a1a1a;
	outline: none;
}

/* ------------------------------------------------------------------------- */
/* Mobile ≤767 — zwarty układ pod telefon (desktop ≥1024 bez zmian poniżej)   */
/* ------------------------------------------------------------------------- */

@media (max-width: 767px) {
	/*
	 * Overflow: karta nie może używać 100vw minus stała przy jednoczesnym paddingu strony —
	 * szerokość treści rodzica to ~100% − boczne paddingi; 100vw − 16px bywa szersza → scroll poziomy.
	 */
	body.mma-myaccount-auth-active .woocommerce-MyAccount-content {
		min-width: 0;
		max-width: 100%;
	}

	.mma-auth-page {
		padding: 16px 10px 26px;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	.mma-auth-page .mma-auth-card {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
		padding: 12px 12px 14px;
	}

	.mma-auth-card__viewport {
		max-width: 100%;
		min-width: 0;
	}

	.mma-auth-panel {
		max-width: 100%;
		min-width: 0;
	}

	.mma-auth-form {
		max-width: 100%;
		min-width: 0;
	}

	.mma-auth-surface {
		max-width: 100%;
		min-width: 0;
	}

	/* Register + Reset hasła: ten sam rytm pionowy (flex + gap zamiast nierównych marginesów) */
	.mma-auth-panel--lite .mma-auth-surface--lite .mma-auth-lite-body {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.mma-auth-panel--lite .mma-auth-surface--lite .mma-auth-lite-body > * {
		margin-top: 0 !important;
		margin-bottom: 0 !important;
	}

	.mma-auth-login-row {
		max-width: 100%;
		min-width: 0;
	}

	.mma-auth-field {
		max-width: 100%;
		min-width: 0;
	}

	.mma-auth-login-below {
		max-width: 100%;
		min-width: 0;
	}

	.mma-auth-remember {
		max-width: 100%;
		min-width: 0;
	}

	.mma-auth-cta {
		max-width: 100%;
		min-width: 0;
	}

	.mma-auth-footer-links {
		max-width: 100%;
		min-width: 0;
	}

	.mma-auth-input {
		max-width: 100%;
		min-width: 0;
	}

	.mma-auth-page .woocommerce-form.login .form-row,
	.mma-auth-page .woocommerce-form.register .form-row,
	.mma-auth-page form.lost_reset_password .form-row {
		width: 100% !important;
		max-width: 100% !important;
		float: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		clear: both !important;
	}

	.mma-auth-head {
		margin-bottom: 6px;
	}

	.mma-auth-title {
		margin: 0 0 6px;
	}

	.mma-auth-surface {
		padding: 12px 12px;
	}

	.mma-auth-login-row {
		gap: 12px;
	}

	.mma-auth-field + .mma-auth-field,
	.mma-auth-helper + .mma-auth-field {
		margin-top: 10px;
	}

	.mma-auth-field + .mma-auth-helper {
		margin-top: 8px;
	}

	.mma-auth-login-below {
		margin-top: 10px;
	}

	.mma-auth-remember {
		margin-top: 8px;
		justify-content: flex-start;
	}

	.mma-auth-cta {
		margin-top: 12px;
	}

	.mma-auth-footer-links {
		margin-top: 12px;
		gap: 12px;
	}

	.mma-auth-footer-links--single {
		gap: 8px;
	}

	.mma-auth-helper {
		margin-top: 8px;
	}

	.mma-auth-page .mma-auth-surface .woocommerce-form-row {
		margin: 8px 0 0;
	}
}

/* ------------------------------------------------------------------------- */
/* Woo: wiersze z hooków                                                     */
/* ------------------------------------------------------------------------- */

.mma-auth-page .mma-auth-surface .woocommerce-form-row {
	margin: 12px 0 0;
	padding: 0;
}

.mma-auth-page .mma-auth-surface .woocommerce-form-row:first-of-type {
	margin-top: 0;
}

/* ------------------------------------------------------------------------- */
/* Tablet                                                                    */
/* ------------------------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 1023px) {
	/*
	 * Tablet: ta sama logika co mobile — karta width:100% wewnątrz strony z paddingiem,
	 * nie calc(100vw − 40px) przy paddingu 18px (overflow poziomy).
	 */
	body.mma-myaccount-auth-active .woocommerce-MyAccount-content {
		min-width: 0;
		max-width: 100%;
	}

	.mma-auth-page {
		padding: 24px 18px 36px;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	.mma-auth-page .mma-auth-card {
		width: 100%;
		max-width: 780px;
		min-width: 0;
		box-sizing: border-box;
		padding: 24px;
	}

	.mma-auth-card__viewport {
		max-width: 100%;
		min-width: 0;
	}

	.mma-auth-panel {
		max-width: 100%;
		min-width: 0;
	}

	.mma-auth-form {
		max-width: 100%;
		min-width: 0;
	}

	.mma-auth-surface {
		padding: 24px;
		max-width: 100%;
		min-width: 0;
	}

	.mma-auth-login-row,
	.mma-auth-field,
	.mma-auth-login-below,
	.mma-auth-remember,
	.mma-auth-cta,
	.mma-auth-footer-links,
	.mma-auth-input {
		max-width: 100%;
		min-width: 0;
	}

	.mma-auth-panel--lite .mma-auth-surface--lite .mma-auth-lite-body {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.mma-auth-panel--lite .mma-auth-surface--lite .mma-auth-lite-body > * {
		margin-top: 0 !important;
		margin-bottom: 0 !important;
	}

	.mma-auth-page .woocommerce-form.login .form-row,
	.mma-auth-page .woocommerce-form.register .form-row,
	.mma-auth-page form.lost_reset_password .form-row {
		width: 100% !important;
		max-width: 100% !important;
		float: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		clear: both !important;
	}
}

/* ------------------------------------------------------------------------- */
/* Desktop ≥1024 — multi-panel: stała karta, panele absolutne, login 2 kol  */
/* ------------------------------------------------------------------------- */

@media (min-width: 1024px) {
	.mma-auth-page {
		padding: 24px 24px 36px;
	}

	/*
	 * Multi-panel: jedna siatka 5 wierszy dla wszystkich stanów (display: contents na head + form).
	 * Stała wysokość karty = brak skoku strony; CTA i stopka w tych samych rzędach siatki.
	 */
	.mma-auth-page:not(.mma-auth-page--solo) .mma-auth-card {
		width: min(780px, calc(100vw - 64px));
		max-width: 780px;
		padding: 26px 28px 26px;
		height: 572px;
		min-height: 572px;
		overflow: hidden;
	}

	.mma-auth-page:not(.mma-auth-page--solo) .mma-auth-card__viewport {
		flex: 1 1 auto;
		min-height: 0;
		position: relative;
	}

	.mma-auth-page:not(.mma-auth-page--solo) .mma-auth-card__viewport .mma-auth-panel {
		position: absolute;
		inset: 0;
		display: grid;
		grid-template-columns: 1fr;
		/* Rząd 2: stała wysokość jak przy 2 wierszach podtytułu — brak skoku między panelami */
		grid-template-rows: auto 4.1rem minmax(210px, 230px) auto auto;
		row-gap: 6px;
		align-content: start;
		min-height: 0;
		overflow: hidden;
	}

	.mma-auth-page:not(.mma-auth-page--solo) .mma-auth-head {
		display: contents;
	}

	.mma-auth-page:not(.mma-auth-page--solo) .mma-auth-form {
		display: contents;
	}

	.mma-auth-page:not(.mma-auth-page--solo) .mma-auth-title {
		grid-row: 1;
		grid-column: 1;
		margin: 0;
		align-self: start;
	}

	.mma-auth-page:not(.mma-auth-page--solo) .mma-auth-subtitle {
		grid-row: 2;
		grid-column: 1;
		margin: 0;
		align-self: stretch;
		min-height: 0;
		display: flex;
		align-items: center;
	}

	.mma-auth-page:not(.mma-auth-page--solo) .mma-auth-surface {
		grid-row: 3;
		grid-column: 1;
		align-self: stretch;
		min-height: 0;
		max-height: 230px;
		overflow-x: hidden;
		overflow-y: auto;
		padding: 16px 18px;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.mma-auth-page:not(.mma-auth-page--solo) .mma-auth-cta {
		grid-row: 4;
		grid-column: 1;
		margin: 0;
		align-self: start;
	}

	.mma-auth-page:not(.mma-auth-page--solo) .mma-auth-footer-links {
		grid-row: 5;
		grid-column: 1;
		margin: 24px 0 0;
		padding-bottom: 8px;
		align-self: end;
	}

	.mma-auth-login-row {
		grid-template-columns: 1fr 1fr;
		gap: 14px 20px;
	}

	.mma-auth-login-below {
		margin-top: 10px;
	}

	.mma-auth-remember {
		margin-top: 8px;
	}
}

/* ------------------------------------------------------------------------- */
/* Solo (lost-password, reset z maila): naturalna wysokość                   */
/* ------------------------------------------------------------------------- */

@media (min-width: 1024px) {
	.mma-auth-page--solo .mma-auth-card {
		width: min(780px, calc(100vw - 64px));
		max-width: 780px;
		padding: 30px;
		height: auto;
		min-height: 0;
		overflow: hidden;
	}

	.mma-auth-page--solo .mma-auth-panel {
		position: relative;
		inset: auto;
		overflow: visible;
	}
}

/* ------------------------------------------------------------------------- */
/* Notices Woo — premium (gość / moje konto, flow auth)                       */
/* ------------------------------------------------------------------------- */

body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper {
	max-width: 780px;
	margin: 0 auto 20px;
	padding: 0 12px;
	box-sizing: border-box;
}

body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper .woocommerce-message,
body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper .woocommerce-info,
body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper .woocommerce-error {
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 12px !important;
	padding: 16px 22px 16px 22px !important;
	border: 1px solid #e7e3d8 !important;
	border-radius: 14px !important;
	background: #fafaf8 !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 15px !important;
	line-height: 1.55 !important;
	font-weight: 400 !important;
	color: #1a1a1a !important;
	text-align: center !important;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
	list-style: none !important;
}

body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper .woocommerce-message::before,
body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper .woocommerce-info::before,
body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper .woocommerce-error::before {
	display: none !important;
}

body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper .woocommerce-message {
	border-left: 4px solid #f5c518 !important;
}

body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper .woocommerce-info {
	border-left: 4px solid #9ca3af !important;
	color: #374151 !important;
}

body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper .woocommerce-error {
	border-left: 4px solid #b91c1c !important;
	background: #fffafa !important;
	color: #7f1d1d !important;
}

body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper ul.woocommerce-error {
	list-style: none !important;
	margin: 0 0 12px !important;
	padding: 16px 22px !important;
}

body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper ul.woocommerce-error li {
	margin: 0 !important;
	padding: 0 !important;
	text-align: center !important;
	list-style: none !important;
}

body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper ul.woocommerce-error li + li {
	margin-top: 8px !important;
}

body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper .woocommerce-message.mma-wc-notice-has-dismiss,
body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper .woocommerce-info.mma-wc-notice-has-dismiss {
	display: flex !important;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	padding: 0 !important;
	overflow: hidden;
}

body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper .mma-wc-notice-body {
	flex: 1 1 auto;
	min-width: 0;
	padding: 14px 16px;
	box-sizing: border-box;
	text-align: left;
	word-break: break-word;
	overflow-wrap: anywhere;
}

body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper ul.woocommerce-error li.mma-wc-notice-li--dismiss {
	display: flex !important;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
}

body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper ul.woocommerce-error li .mma-wc-notice-body {
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 14px;
	text-align: left;
	word-break: break-word;
	overflow-wrap: anywhere;
}

body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper .mma-wc-notice-dismiss.mma-cart-toast__close {
	flex: 0 0 2.75rem;
	width: 2.75rem;
	min-width: 2.75rem;
	max-width: 2.75rem;
	border-left: 1px solid var(--mma-gray-200, #e5e7eb);
	align-self: stretch;
	min-height: 2.75rem;
	box-sizing: border-box;
}

body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper a.button,
body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper .button {
	float: none !important;
	display: inline-flex !important;
	margin: 10px 0 0 !important;
	vertical-align: middle;
}

@media (max-width: 767px) {
	body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper {
		margin-bottom: 14px;
		padding: 0 10px;
	}

	body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper .woocommerce-message,
	body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper .woocommerce-info,
	body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper .woocommerce-error {
		padding: 11px 14px !important;
		font-size: 13px !important;
		line-height: 1.45 !important;
		border-radius: 12px !important;
		margin-bottom: 10px !important;
	}

	body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper ul.woocommerce-error {
		padding: 11px 14px !important;
		font-size: 13px !important;
		line-height: 1.45 !important;
		border-radius: 12px !important;
		margin-bottom: 10px !important;
	}

	body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper .woocommerce-message.mma-wc-notice-has-dismiss,
	body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper .woocommerce-info.mma-wc-notice-has-dismiss {
		padding: 0 !important;
	}

	body.woocommerce-account.mma-myaccount-auth-active .woocommerce-notices-wrapper ul.woocommerce-error li.mma-wc-notice-li--dismiss {
		padding: 0 !important;
	}
}

/* ------------------------------------------------------------------------- */
/* Reset / ustaw hasło — pole 1: meter Woo pod inputem, oko stabilne         */
/* ------------------------------------------------------------------------- */

.mma-auth-password.mma-auth-password--reset-meter {
	display: block;
	height: auto !important;
	overflow: visible !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	padding: 0;
	grid-template-columns: none;
}

.mma-auth-password--reset-meter .mma-auth-password__meter-row {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	border: 1px solid #d9d9d9;
	border-radius: 12px;
	background: #fff;
	box-sizing: border-box;
	overflow: visible;
	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease;
}

.mma-auth-password--reset-meter .mma-auth-password__meter-row:focus-within {
	border-color: #f5c518;
	box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.18);
}

.mma-auth-password--reset-meter .mma-auth-password__meter-shell {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.mma-auth-password--reset-meter .mma-auth-password__meter-shell .mma-auth-password__field {
	position: relative;
	z-index: 1;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 56px !important;
	height: 56px !important;
	margin: 0 !important;
	padding: 0 16px !important;
	border: none !important;
	border-radius: 0;
	box-shadow: none !important;
	background: transparent !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 16px !important;
	line-height: 56px !important;
	color: #1a1a1a !important;
	outline: none !important;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.mma-auth-password--reset-meter .mma-auth-password__meter-shell .mma-auth-password__field {
		min-height: 72px !important;
		height: 72px !important;
		line-height: 72px !important;
		padding-left: 20px !important;
		padding-right: 16px !important;
		font-size: 17px !important;
	}
}

.mma-auth-password--reset-meter .mma-auth-password__meter-shell .woocommerce-password-strength {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 10px 16px 12px !important;
	border: none !important;
	border-top: 1px solid #ececec !important;
	border-radius: 0 !important;
	box-sizing: border-box !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 13px !important;
	line-height: 1.45 !important;
	font-weight: 500 !important;
	text-align: left !important;
	background: #f9faf8 !important;
	color: #374151 !important;
}

.mma-auth-password--reset-meter .mma-auth-password__meter-shell .woocommerce-password-strength.short,
.mma-auth-password--reset-meter .mma-auth-password__meter-shell .woocommerce-password-strength.bad {
	background: #fffbf5 !important;
	color: #6b5530 !important;
}

.mma-auth-password--reset-meter .mma-auth-password__meter-shell .woocommerce-password-strength.good,
.mma-auth-password--reset-meter .mma-auth-password__meter-shell .woocommerce-password-strength.strong {
	background: #f4faf6 !important;
	color: #14532d !important;
}

.mma-auth-password--reset-meter .mma-auth-password__meter-shell .woocommerce-password-hint {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 16px 10px !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 12px !important;
	line-height: 1.45 !important;
	color: #6b7280 !important;
	text-align: left !important;
	border: none !important;
	background: #f9faf8 !important;
	box-sizing: border-box !important;
}

.mma-auth-password--reset-meter .mma-auth-password__toggle {
	flex: 0 0 56px;
	width: 56px;
	max-width: 56px;
	min-width: 56px;
	align-self: flex-start;
	height: 56px;
	min-height: 56px;
	border-left: 1px solid #d9d9d9 !important;
	border-radius: 0 12px 0 0 !important;
}

@media (min-width: 768px) {
	.mma-auth-password--reset-meter .mma-auth-password__toggle {
		flex-basis: 72px;
		width: 72px;
		max-width: 72px;
		min-width: 72px;
		height: 72px;
		min-height: 72px;
	}
}

.mma-auth-password--reset-meter .mma-auth-password__meter-shell .woocommerce-password-strength.mma-password-meter--policy.bad {
	background: #fffbf5 !important;
	color: #6b5530 !important;
}

.mma-auth-panel--reset-password .mma-auth-cta-btn.disabled,
.mma-auth-panel--reset-password .mma-auth-cta-btn:disabled {
	opacity: 0.5 !important;
	cursor: not-allowed !important;
	transform: none !important;
	box-shadow: none !important;
	pointer-events: none !important;
}
