:root {
	--yuzpet-account-ink: #17251e;
	--yuzpet-account-muted: #66716a;
	--yuzpet-account-sage: #5f795f;
	--yuzpet-account-sage-dark: #405b45;
	--yuzpet-account-paper: #ffffff;
	--yuzpet-account-cream: #f7f3ea;
	--yuzpet-account-line: #d9dfd8;
	--yuzpet-account-error: #9b453b;
	--yuzpet-account-success: #416a4b;
}

.yuzpet-account-form,
.yuzpet-profile-card,
.yuzpet-profile-nav,
.yuzpet-account-notice {
	box-sizing: border-box;
	font-family: inherit;
}

.yuzpet-account-form *,
.yuzpet-profile-card *,
.yuzpet-profile-nav * {
	box-sizing: border-box;
}

.yuzpet-account-form {
	display: grid;
	gap: 20px;
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
}

.yuzpet-field {
	display: grid;
	gap: 8px;
}

.yuzpet-field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.yuzpet-field label {
	color: var(--yuzpet-account-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.yuzpet-field input,
.yuzpet-field select,
.yuzpet-account-form input,
.yuzpet-account-form select,
.yuzpet-profile-card input,
.yuzpet-profile-card select {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid #cbd2cb !important;
	border-radius: 5px;
	outline: 0 !important;
	background: #fff;
	color: var(--yuzpet-account-ink);
	font: inherit;
	font-size: 15px;
	box-shadow: none !important;
	transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.yuzpet-field input:hover,
.yuzpet-field select:hover {
	border-color: #9eaa9f !important;
}

.yuzpet-field input:focus-visible,
.yuzpet-field select:focus-visible,
.yuzpet-account-form button:focus-visible,
.yuzpet-account-form a:focus-visible,
.yuzpet-profile-card button:focus-visible,
.yuzpet-profile-card summary:focus-visible,
.yuzpet-profile-nav a:focus-visible,
.yuzpet-check-row input:focus-visible,
.yuzpet-preference-row input:focus-visible {
	outline: 0 !important;
	border-color: var(--yuzpet-account-sage) !important;
	box-shadow: 0 0 0 3px rgba(95, 121, 95, 0.2) !important;
}

.yuzpet-password-field,
.yuzpet-code-field {
	position: relative;
	display: flex;
	align-items: stretch;
}

.yuzpet-password-field input,
.yuzpet-code-field input {
	padding-right: 82px;
}

.yuzpet-password-toggle,
.yuzpet-send-code {
	position: absolute;
	top: 2px;
	right: 2px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 68px;
	height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--yuzpet-account-ink);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.yuzpet-send-code:hover,
.yuzpet-password-toggle:hover {
	background: #f0f4ef;
}

.yuzpet-send-code[disabled] {
	cursor: wait;
	opacity: 0.55;
}

.yuzpet-field-help,
.yuzpet-code-status,
.yuzpet-form-intro {
	margin: 0;
	color: var(--yuzpet-account-muted);
	font-size: 13px;
	line-height: 1.55;
}

.yuzpet-code-status:not(:empty) {
	padding-top: 4px;
}

.yuzpet-check-row {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	color: var(--yuzpet-account-ink);
	font-size: 14px;
	line-height: 1.5;
	cursor: pointer;
}

.yuzpet-check-row input,
.yuzpet-preference-row input {
	width: 18px !important;
	height: 18px !important;
	min-height: 18px !important;
	margin: 2px 0 0 !important;
	padding: 0 !important;
	accent-color: var(--yuzpet-account-sage);
}

.yuzpet-check-row a,
.yuzpet-form-links a,
.yuzpet-back-link,
.yuzpet-profile-nav a {
	color: var(--yuzpet-account-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.yuzpet-primary-button,
.yuzpet-secondary-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 0;
	padding: 12px 22px;
	border: 1px solid var(--yuzpet-account-sage);
	border-radius: 5px;
	background: var(--yuzpet-account-sage);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.yuzpet-primary-button {
	width: 100%;
}

.yuzpet-primary-button:hover,
.yuzpet-secondary-button:hover {
	border-color: var(--yuzpet-account-sage-dark);
	background: var(--yuzpet-account-sage-dark);
	color: #fff;
}

.yuzpet-secondary-button {
	width: auto;
	min-height: 44px;
}

.yuzpet-form-links {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	font-size: 14px;
}

.yuzpet-back-link {
	justify-self: center;
	font-size: 14px;
	font-weight: 600;
}

.yuzpet-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.yuzpet-account-notice {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto 18px;
	padding: 13px 15px;
	border: 1px solid var(--yuzpet-account-line);
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.5;
}

.yuzpet-account-notice.is-error {
	border-color: #d7aaa4;
	background: #fff6f4;
	color: var(--yuzpet-account-error);
}

.yuzpet-account-notice.is-success {
	border-color: #a9bfad;
	background: #f3f8f2;
	color: var(--yuzpet-account-success);
}

.yuzpet-profile-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	width: 100%;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--yuzpet-account-line);
}

.yuzpet-profile-tabs {
	display: flex;
	align-items: center;
	gap: clamp(22px, 4vw, 48px);
	font-size: 15px;
	font-weight: 600;
}

.yuzpet-profile-tabs span {
	position: relative;
	padding: 10px 0;
}

.yuzpet-profile-tabs .is-active::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	background: var(--yuzpet-account-ink);
	content: "";
}

.yuzpet-profile-tabs .is-disabled {
	color: #979d98;
}

.yuzpet-sign-out {
	font-size: 14px;
	font-weight: 600;
}

.yuzpet-profile-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 22px;
	width: 100%;
	height: 100%;
	padding: 30px 32px;
	border: 1px solid var(--yuzpet-account-line);
	border-radius: 8px;
	background: var(--yuzpet-account-paper);
	color: var(--yuzpet-account-ink);
	box-shadow: 0 16px 40px -34px rgba(34, 52, 40, 0.55);
}

.yuzpet-card-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 18px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--yuzpet-account-line);
}

.yuzpet-card-heading h2 {
	margin: 0;
	color: var(--yuzpet-account-ink);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.yuzpet-card-kicker {
	color: var(--yuzpet-account-muted);
	font-size: 12px;
}

.yuzpet-data-list {
	display: grid;
	gap: 16px;
	margin: 0;
}

.yuzpet-data-list div {
	display: grid;
	gap: 4px;
}

.yuzpet-data-list dt {
	color: var(--yuzpet-account-muted);
	font-size: 12px;
}

.yuzpet-data-list dd {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

.yuzpet-address-display,
.yuzpet-empty-state {
	margin: 0;
	color: var(--yuzpet-account-ink);
	font-size: 14px;
	font-style: normal;
	line-height: 1.75;
}

.yuzpet-card-editor {
	margin-top: auto;
	padding-top: 4px;
}

.yuzpet-card-editor summary {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0;
	color: var(--yuzpet-account-sage-dark);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.yuzpet-card-editor summary::-webkit-details-marker {
	display: none;
}

.yuzpet-card-editor summary::after {
	margin-left: 8px;
	content: "+";
}

.yuzpet-card-editor[open] summary::after {
	content: "−";
}

.yuzpet-card-editor form,
.yuzpet-preference-form {
	display: grid;
	gap: 16px;
	padding-top: 18px;
}

.yuzpet-preference-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 0;
	border-bottom: 1px solid var(--yuzpet-account-line);
}

.yuzpet-preference-row span:first-child {
	display: grid;
	gap: 4px;
}

.yuzpet-preference-row strong {
	font-size: 14px;
}

.yuzpet-preference-row small,
.yuzpet-preference-row.is-disabled {
	color: var(--yuzpet-account-muted);
	font-size: 12px;
}

.yuzpet-preference-row.is-disabled {
	opacity: 0.72;
}

@media (max-width: 767px) {
	.yuzpet-account-form {
		max-width: 100%;
		gap: 18px;
	}

	.yuzpet-field-grid {
		grid-template-columns: 1fr;
	}

	.yuzpet-profile-nav {
		align-items: flex-start;
		padding-bottom: 14px;
		overflow-x: auto;
	}

	.yuzpet-profile-tabs {
		gap: 22px;
		white-space: nowrap;
	}

	.yuzpet-profile-card {
		padding: 24px 20px;
	}

	.yuzpet-card-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
	}

	.yuzpet-secondary-button {
		width: 100%;
	}
}

@media (max-width: 420px) {
	.yuzpet-form-links {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.yuzpet-profile-tabs {
		gap: 18px;
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.yuzpet-account-form *,
	.yuzpet-profile-card * {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
