/* ==========================================================================
   CCUS - My Account (logged out)
   Flat single card + "Log in" / "Create account" tabs.
   Loaded only on the logged-out WooCommerce account page.
   Tokens follow the current brand: Manrope headings, Oswald labels,
   Inter body, #0B202B primary, #08795A accent, #F6F4EF paper.
   ========================================================================== */

.page-wrapper.my-account {
	--ccus-ink: #0d0d0f;
	--ccus-navy: #0b202b;
	--ccus-navy-hover: #12303f;
	--ccus-green: #08795a;
	--ccus-paper: #f6f4ef;
	--ccus-paper2: #fbfaf7;
	--ccus-line: #e4dfd6;
	--ccus-line2: #d9d3c8;
	--ccus-text: #333;
	--ccus-muted: #6e6a63;
	--ccus-radius: 4px;
	background: var(--ccus-paper);
}

/* ---------------------------------------------------------- page heading */
body.ccus-acct-page .my-account-header.page-title {
	background: transparent;
	border-bottom: 0;
	padding: 38px 0 24px;
	margin: 0;
}

body.ccus-acct-page .my-account-header .page-title-inner {
	padding: 0;
}

body.ccus-acct-page .my-account-header h1 {
	font-family: Manrope, -apple-system, BlinkMacSystemFont, sans-serif;
	font-weight: 800;
	font-size: 30px;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--ccus-text);
	margin: 0;
}

body.ccus-acct-page .my-account-header .social-login {
	margin: 0;
}

.page-wrapper.my-account .woocommerce {
	padding-bottom: 72px;
}

/* ------------------------------------------------------------ notices */
.page-wrapper.my-account .woocommerce-notices-wrapper {
	max-width: 466px;
	margin: 0 auto 14px;
}

.page-wrapper.my-account .woocommerce-message,
.page-wrapper.my-account .woocommerce-info,
.page-wrapper.my-account .woocommerce-error {
	margin: 0;
	padding: 14px 16px 14px 18px;
	border-radius: 2px;
	list-style: none;
	font-size: 14px;
	line-height: 1.5;
	box-shadow: none;
}

.page-wrapper.my-account .woocommerce-message,
.page-wrapper.my-account .woocommerce-info {
	background: #f3f8f6;
	border: 1px solid #cfe6de;
	color: #0a5f49;
}

.page-wrapper.my-account .woocommerce-error {
	background: #fdf5f4;
	border: 1px solid #f0d3cf;
	color: #8a2b22;
}

/* --------------------------------------------------------- tab bar */
.page-wrapper.my-account .ccus-acct-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	max-width: 466px;
	margin: 0 auto;
	background: var(--ccus-paper2);
	border: 1px solid var(--ccus-line);
	border-bottom: 0;
	border-radius: var(--ccus-radius) var(--ccus-radius) 0 0;
	overflow: hidden;
}

.page-wrapper.my-account .ccus-acct-tab {
	display: block;
	padding: 17px 10px;
	text-align: center;
	text-decoration: none;
	background: transparent;
	border: 0;
	font-family: Oswald, -apple-system, BlinkMacSystemFont, sans-serif;
	font-weight: 600;
	font-size: 13px;
	line-height: 1;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ccus-muted);
	transition: background 0.18s ease, color 0.18s ease;
}

.page-wrapper.my-account .ccus-acct-tab:hover {
	background: #fff;
	color: var(--ccus-navy);
}

.page-wrapper.my-account .ccus-acct-tab[aria-current="page"],
.page-wrapper.my-account .ccus-acct-tab[aria-current="page"]:hover {
	background: var(--ccus-navy);
	color: #fff;
}

/* ------------------------------------------------------------- card */
.page-wrapper.my-account .account-container.lightbox-inner {
	position: static;
	max-width: 466px;
	margin: 0 auto;
	padding: 0;
	background: #fff;
	border: 1px solid var(--ccus-line);
	border-radius: var(--ccus-radius);
	box-shadow: none;
	overflow: hidden;
}

/* the tab bar sits on top of the card, so the shared edge is straight */
body.ccus-acct .page-wrapper.my-account .account-container.lightbox-inner {
	border-top: 0;
	border-radius: 0 0 var(--ccus-radius) var(--ccus-radius);
}

/* one column at a time, full width */
.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) #customer_login {
	display: block;
	margin: 0;
}

.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) #customer_login > .col-1,
.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) #customer_login > .col-2 {
	float: none;
	width: 100%;
	max-width: none;
	padding: 0;
	margin: 0;
}

.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) #customer_login.row-divided > .col + .col {
	border-left: 0;
}

body.ccus-acct-tab-login .page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) #customer_login > .col-2,
body.ccus-acct-tab-register .page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) #customer_login > .col-1 {
	display: none;
}

.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .account-login-inner,
.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .account-register-inner {
	padding: 30px 32px 32px;
}

/* the tab bar already labels the panel */
.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .account-login-inner h2,
.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .account-register-inner h2 {
	display: none;
}

/* ------------------------------------------------------------ form */
.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .ccus-acct-sub {
	margin: 0 0 22px;
	color: var(--ccus-muted);
	font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 14px;
	line-height: 1.55;
}

.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .woocommerce-form-row,
.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .form-row {
	float: none;
	width: 100%;
	max-width: 100%;
	margin-bottom: 18px;
	padding: 0;
}

.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .woocommerce-form-row label,
.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .form-row label {
	display: block;
	margin: 0 0 8px;
	color: #565049;
	font-family: Oswald, -apple-system, BlinkMacSystemFont, sans-serif;
	font-weight: 500;
	font-size: 12px;
	line-height: 1.3;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .required {
	color: var(--ccus-green);
}

.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .woocommerce-Input.input-text {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	background: #fff;
	border: 1px solid var(--ccus-line2);
	border-radius: 2px;
	box-shadow: none;
	color: var(--ccus-text);
	font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 15px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .woocommerce-Input.input-text:focus {
	outline: 0;
	border-color: var(--ccus-green);
	box-shadow: 0 0 0 3px rgba(8, 121, 90, 0.12);
}

/* remember me */
.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .form-row label.woocommerce-form-login__rememberme,
.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .form-row label.woocommerce-form__label-for-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 20px;
	color: #4c4740;
	font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
	font-weight: 400;
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
}

.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .woocommerce-form__input-checkbox {
	width: 18px;
	height: 18px;
	margin: 0;
	background: #fff;
	border: 1.5px solid #b8b2a9;
	border-radius: 2px;
	box-shadow: none;
}

/* primary button */
.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0;
	background: var(--ccus-navy);
	border: 0;
	border-radius: 2px;
	box-shadow: none;
	color: #fff;
	font-family: Oswald, -apple-system, BlinkMacSystemFont, sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	text-align: center;
	transition: background 0.18s ease;
}

.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .button:hover {
	background: var(--ccus-navy-hover);
	color: #fff;
}

/* lost password */
.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .woocommerce-LostPassword {
	margin: 18px 0 0;
	font-size: 13.5px;
}

.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .woocommerce-LostPassword a {
	color: var(--ccus-green);
	text-decoration: none;
}

.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .woocommerce-LostPassword a:hover {
	text-decoration: underline;
}

/* register: WooCommerce's duplicate note is blanked out, hide the empty <p> */
.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .woocommerce-form-register > p:empty {
	display: none;
}

.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .woocommerce-form-register > p:not(.ccus-acct-sub):not(.form-row):not(.woocommerce-form-row) {
	margin: 0 0 18px;
	color: var(--ccus-muted);
	font-size: 13.5px;
	line-height: 1.55;
}

/* register: privacy notice */
.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .woocommerce-privacy-policy-text {
	margin: 0 0 20px;
	padding: 12px 14px;
	background: var(--ccus-paper2);
	border: 1px solid var(--ccus-line);
	border-radius: 2px;
	color: var(--ccus-muted);
	font-size: 12.5px;
	line-height: 1.55;
}

.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .woocommerce-privacy-policy-text p {
	margin: 0;
}

.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .woocommerce-privacy-policy-text a {
	color: var(--ccus-green);
	text-decoration: underline;
}

/* ------------------------------------------------------- turnstile */
.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .cf-turnstile {
	margin: 0 0 20px !important;
	padding: 0;
}

.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .cf-turnstile iframe {
	max-width: 100%;
}

.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .cf-turnstile-br {
	display: none !important;
}

/* --------------------------------------------------- Google sign-in */
.page-wrapper.my-account .ccus-gsi {
	margin: 0 0 22px;
}

.page-wrapper.my-account .ccus-gsi-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 52px;
	padding: 0 14px;
	background: #fff;
	border: 1px solid var(--ccus-line2);
	border-radius: 2px;
	color: #3c4043;
	font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.page-wrapper.my-account .ccus-gsi-btn:hover,
.page-wrapper.my-account .ccus-gsi-btn:focus {
	background: var(--ccus-paper2);
	border-color: #c6bfb2;
	color: #202124;
	text-decoration: none;
}

.page-wrapper.my-account .ccus-gsi-btn:focus-visible {
	outline: 0;
	border-color: var(--ccus-green);
	box-shadow: 0 0 0 3px rgba(8, 121, 90, 0.12);
}

.page-wrapper.my-account .ccus-gsi-g {
	display: inline-flex;
	flex: 0 0 auto;
}

.page-wrapper.my-account .ccus-gsi-g svg {
	display: block;
	width: 18px;
	height: 18px;
}

.page-wrapper.my-account .ccus-gsi-or {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 18px 0 20px;
}

.page-wrapper.my-account .ccus-gsi-or::before,
.page-wrapper.my-account .ccus-gsi-or::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: var(--ccus-line);
}

.page-wrapper.my-account .ccus-gsi-or span {
	color: var(--ccus-muted);
	font-family: Oswald, -apple-system, BlinkMacSystemFont, sans-serif;
	font-weight: 500;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* sign-in error, shown above the tabs */
.page-wrapper.my-account .ccus-gsi-notice {
	max-width: 466px;
	margin: 0 auto 14px;
	padding: 14px 16px 14px 18px;
	background: #fdf5f4;
	border: 1px solid #f0d3cf;
	border-radius: 2px;
	color: #8a2b22;
	font-size: 14px;
	line-height: 1.5;
}

/* ------------------------------------ lost password (same card language) */
body.ccus-acct-page .page-wrapper.my-account .woocommerce-ResetPassword {
	max-width: 466px;
	margin: 0 auto;
	padding: 30px 32px 32px;
	background: #fff;
	border: 1px solid var(--ccus-line);
	border-radius: var(--ccus-radius);
}

body.ccus-acct-page .page-wrapper.my-account .woocommerce-ResetPassword > p:first-of-type {
	margin: 0 0 22px;
	color: var(--ccus-muted);
	font-size: 14px;
	line-height: 1.55;
}

body.ccus-acct-page .page-wrapper.my-account .woocommerce-ResetPassword .clear {
	display: none;
}

/* --------------------------------------------------- trust strip */
.page-wrapper.my-account .ccus-acct-trust {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	max-width: 940px;
	margin: 44px auto 0;
	border-top: 1px solid var(--ccus-line);
	border-bottom: 1px solid var(--ccus-line);
}

.page-wrapper.my-account .ccus-acct-trust span {
	padding: 16px 10px;
	border-left: 1px solid var(--ccus-line);
	text-align: center;
	color: #4c4740;
	font-family: Oswald, -apple-system, BlinkMacSystemFont, sans-serif;
	font-weight: 500;
	font-size: 12.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.page-wrapper.my-account .ccus-acct-trust span:first-child {
	border-left: 0;
}

.page-wrapper.my-account .ccus-acct-trust .is-accent {
	color: var(--ccus-green);
}

/* ------------------------------------------------------- mobile */
@media (max-width: 720px) {
	body.ccus-acct-page .my-account-header.page-title {
		padding: 24px 0 18px;
	}

	body.ccus-acct-page .my-account-header h1 {
		font-size: 22px;
	}

	.page-wrapper.my-account .woocommerce {
		padding-bottom: 48px;
	}

	.page-wrapper.my-account .ccus-acct-tabs,
	.page-wrapper.my-account .account-container.lightbox-inner,
	.page-wrapper.my-account .woocommerce-notices-wrapper {
		max-width: 100%;
	}

	.page-wrapper.my-account .ccus-acct-tab {
		padding: 15px 6px;
		font-size: 12px;
		letter-spacing: 0.07em;
	}

	.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .account-login-inner,
	.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .account-register-inner {
		padding: 22px 16px 24px;
	}

	body.ccus-acct-page .page-wrapper.my-account .woocommerce-ResetPassword {
		max-width: 100%;
		padding: 22px 16px 24px;
	}

	.page-wrapper.my-account .ccus-gsi-notice {
		max-width: 100%;
	}

	.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .ccus-acct-sub {
		font-size: 13.5px;
		margin-bottom: 18px;
	}

	.page-wrapper.my-account :is(.account-container, .woocommerce-ResetPassword) .cf-turnstile {
		transform: scale(0.94);
		transform-origin: 0 50%;
	}

	.page-wrapper.my-account .ccus-acct-trust {
		grid-template-columns: 1fr 1fr;
		max-width: 100%;
		margin-top: 32px;
	}

	.page-wrapper.my-account .ccus-acct-trust span:nth-child(3) {
		border-left: 0;
	}

	.page-wrapper.my-account .ccus-acct-trust span:nth-child(n + 3) {
		border-top: 1px solid var(--ccus-line);
	}
}
