/**
 * DELTITECH account popup & drawer (v1.0.243) — see assets/js/dt-account.js.
 *
 * Guests: split popup (≥960px: floating pair + perks | forms), single
 * column popup at 768–959px, bottom drawer below 768px.
 * Members: card pinned under the header icon (≥1200px), popup, drawer.
 */

/* =========================================================================
 * Guest popup
 * ====================================================================== */

html body .dt-acct--guest.is-center {
	--dt-w: 940px;
	--dt-h: 660px;
}

html body .dt-acct--guest .dt-ov__panel {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
}

html body .dt-acct--guest.is-center .dt-ov__panel {
	height: min(660px, calc(100dvh - 48px));
}

html body .dt-acct--guest.is-sheet .dt-ov__panel {
	display: flex;
}

/* Left: the pair + perks. */
html body .dt-acct__aside {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
	margin: 10px 0 10px 10px;
	padding: 36px 34px 30px;
	border-radius: 24px;
	background: linear-gradient(160deg, var(--dt-s-f4f2ec, #f4f2ec) 0%, var(--dt-p-eef6ef, #eef6ef) 55%, var(--dt-s-f3efe7, #f3efe7) 100%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

html body .dt-acct__aside .dt-ambient i:nth-child(1) {
	top: -80px;
	left: -60px;
	width: 420px;
	height: 420px;
}

/* No z-index / filter here: the pair multiplies onto the gradient so its
   white studio background disappears. */
html body .dt-acct__visual {
	position: absolute;
	top: 26px;
	left: 50%;
	width: 300px;
	height: 230px;
	margin-left: -150px;
	pointer-events: none;
}

html body .dt-acct__orb {
	position: absolute;
	top: 6px;
	left: 50%;
	width: 210px;
	height: 210px;
	margin-left: -105px;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.35) 46%, rgba(var(--dt-p-d3f5da-rgb, 211, 245, 218), 0.4) 100%);
	box-shadow: inset 0 1px 0 #fff, inset 0 -16px 30px -18px rgba(var(--dt-p-1a8030-rgb, 26, 128, 48), 0.25), 0 30px 60px -30px rgba(var(--dt-p-0a2814-rgb, 10, 40, 20), 0.35);
}

html body .dt-acct__visual img {
	position: absolute;
	top: -8px;
	left: 50%;
	width: 250px;
	max-width: none;
	height: 250px;
	margin-left: -125px;
	object-fit: cover;
	mix-blend-mode: multiply;
	/* Studio backgrounds aren't pure white: fade the photo's square edge. */
	-webkit-mask: radial-gradient(closest-side, #000 64%, transparent 98%);
	mask: radial-gradient(closest-side, #000 64%, transparent 98%);
	transform: rotate(-12deg);
}

/* Contact shadow under the pair. */
html body .dt-acct__visual::after {
	content: "";
	position: absolute;
	top: 206px;
	left: 50%;
	width: 190px;
	height: 18px;
	margin-left: -95px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(var(--dt-p-0a1e0f-rgb, 10, 30, 15), 0.22), transparent);
	animation: dt-acct-shadow 6s ease-in-out 0.6s infinite;
}

@keyframes dt-acct-shadow {
	50% {
		transform: scaleX(0.86);
		opacity: 0.7;
	}
}

html body .dt-acct.is-open .dt-acct__visual img {
	animation: dt-acct-float 6s ease-in-out 0.6s infinite, dt-acct-pair-in 1s var(--ease) both;
}

@keyframes dt-acct-pair-in {
	from {
		opacity: 0;
		transform: translate3d(-40px, 18px, 0) rotate(-22deg) scale(0.92);
	}
}

@keyframes dt-acct-float {
	0%,
	100% {
		transform: translate3d(0, 0, 0) rotate(-12deg);
	}
	50% {
		transform: translate3d(0, -10px, 0) rotate(-10deg);
	}
}

html body .dt-acct__aside-copy {
	position: relative;
	z-index: 2;
}

html body .dt-acct__aside-title {
	max-width: 330px;
	margin: 0 0 22px;
	font: 800 32px/1.02 var(--display);
	letter-spacing: -0.045em;
}

html body .dt-acct__perks {
	display: grid;
	gap: 14px;
}

html body .dt-acct__perks li {
	display: flex;
	align-items: center;
	gap: 14px;
}

html body .dt-acct.is-open .dt-acct__perks li {
	animation: dt-acct-rise 0.7s var(--ease) var(--d, 0s) both;
}

html body .dt-acct__perk-ic {
	display: grid;
	flex: none;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 14px;
	background: var(--glass-bg);
	box-shadow: var(--glass-shadow);
}

html body .dt-acct__perk-ic .dt-i {
	width: 19px;
	height: 19px;
}

html body .dt-acct__perks strong {
	display: block;
	color: var(--ink);
	font: 600 14.5px/1.25 var(--display);
	letter-spacing: -0.01em;
}

html body .dt-acct__perks small {
	display: block;
	margin-top: 2px;
	color: var(--muted);
	font: 500 12.5px/1.35 var(--body);
}

html body .dt-acct__ship {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
	color: var(--ink-2);
	font: 600 13px/1.3 var(--body);
}

html body .dt-acct__ship .dt-i {
	width: 18px;
	height: 18px;
	color: var(--green-deep);
}

@keyframes dt-acct-rise {
	from {
		opacity: 0;
		transform: translate3d(0, 14px, 0);
	}
}

/* Right: the forms. */
html body .dt-acct__main {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 0;
	min-width: 0;
}

html body .dt-acct__head {
	gap: 12px;
	padding: 18px 18px 6px 40px;
}

html body .dt-acct__seg {
	flex: 1;
	max-width: 300px;
	transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}

html body .dt-acct__seg.is-hidden {
	opacity: 0;
	pointer-events: none;
	transform: translateY(-6px);
}

html body .dt-acct__seg-title {
	flex: 1;
	font: 700 15px/1 var(--display);
}

html body .dt-acct__head .dt-ov__close {
	margin-left: auto;
}

html body .dt-acct__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 22px 40px 34px;
}

html body .dt-acct.is-center .dt-acct__views {
	margin-top: -22px;
}

html body .dt-acct__views {
	position: relative;
}

html body .dt-acct__view[hidden] {
	display: none !important;
}

html body .dt-acct__view.is-enter-r {
	animation: dt-acct-in-r 0.55s var(--ease) both;
}

html body .dt-acct__view.is-enter-l {
	animation: dt-acct-in-l 0.55s var(--ease) both;
}

@keyframes dt-acct-in-r {
	from {
		opacity: 0;
		transform: translate3d(26px, 0, 0);
	}
}

@keyframes dt-acct-in-l {
	from {
		opacity: 0;
		transform: translate3d(-26px, 0, 0);
	}
}

html body .dt-acct__h {
	margin: 0 0 8px;
	font: 800 30px/1.05 var(--display);
	letter-spacing: -0.045em;
}

html body .dt-acct__sub {
	margin: 0 0 22px;
	color: var(--muted);
	font: 500 15px/1.5 var(--body);
}

html body .dt-acct__form.is-shake {
	animation: dt-acct-shake 0.42s var(--ease);
}

@keyframes dt-acct-shake {
	20% {
		transform: translateX(-7px);
	}
	40% {
		transform: translateX(6px);
	}
	60% {
		transform: translateX(-4px);
	}
	80% {
		transform: translateX(2px);
	}
}

html body .dt-acct__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 4px 2px 20px;
}

html body .dt-ui .dt-acct__link {
	color: var(--ink);
	font: 600 14px/1.2 var(--body);
	text-decoration: underline;
	text-decoration-color: rgba(10, 10, 10, 0.25);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	transition: text-decoration-color 0.2s;
}

html body .dt-ui .dt-acct__link:hover {
	text-decoration-color: var(--ink);
}

html body .dt-acct__submit {
	margin-top: 4px;
}

html body .dt-acct__switch {
	margin-top: 22px !important;
	color: var(--muted);
	font: 500 14px/1.4 var(--body);
	text-align: center;
}

html body .dt-acct__extra:empty {
	display: none;
}

html body .dt-acct__extra {
	margin: 0 0 14px;
	color: var(--muted);
	font: 500 12.5px/1.5 var(--body);
}

html body .dt-acct__extra :is(p, .woocommerce-privacy-policy-text p) {
	margin: 0 0 8px;
	color: var(--muted);
	font: 500 12.5px/1.5 var(--body);
}

html body .dt-acct__extra a {
	color: var(--ink);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

html body .dt-acct__extra label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--ink-2);
	font: 500 13.5px/1.4 var(--body);
}

html body .dt-ui .dt-acct__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: -4px 0 18px -6px;
	padding: 6px 10px 6px 6px;
	border-radius: 999px;
	color: var(--muted);
	font: 600 13.5px/1 var(--body);
	transition: background 0.2s, color 0.2s;
}

html body .dt-ui .dt-acct__back:hover {
	background: var(--stone);
	color: var(--ink);
}

html body .dt-acct__back .dt-i {
	width: 16px;
	height: 16px;
}

html body .dt-acct__badge {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 18px;
	border-radius: 18px;
	background: var(--glass-bg);
	box-shadow: var(--glass-shadow);
}

html body .dt-acct__badge .dt-i {
	width: 24px;
	height: 24px;
}

/* Success. */
html body .dt-acct__done {
	padding: 40px 0 20px;
	text-align: center;
}

html body .dt-acct__check {
	display: block;
	width: 84px;
	height: 84px;
	margin: 0 auto 22px;
	border-radius: 50%;
	background: rgba(var(--dt-p-4cd964-rgb, 76, 217, 100), 0.14);
	animation: dt-acct-pop 0.6s var(--spring) both;
}

html body .dt-acct__check svg {
	width: 84px;
	height: 84px;
	fill: none;
	stroke: var(--green-deep);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

html body .dt-acct__check circle {
	stroke: rgba(var(--dt-p-1a8030-rgb, 26, 128, 48), 0.25);
	stroke-dasharray: 151;
	stroke-dashoffset: 151;
	animation: dt-acct-draw 0.7s var(--ease) 0.1s forwards;
}

html body .dt-acct__check path {
	stroke-dasharray: 40;
	stroke-dashoffset: 40;
	animation: dt-acct-draw 0.5s var(--ease) 0.45s forwards;
}

@keyframes dt-acct-draw {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes dt-acct-pop {
	from {
		transform: scale(0.6);
		opacity: 0;
	}
}

/* 768–959px: one column. */
@media (max-width: 959px) {
	html body .dt-acct--guest.is-center {
		--dt-w: 520px;
	}

	html body .dt-acct--guest.is-center .dt-ov__panel {
		grid-template-columns: minmax(0, 1fr);
		height: auto;
	}

	html body .dt-acct--guest .dt-acct__aside {
		display: none;
	}

	html body .dt-acct__head {
		padding-left: 28px;
	}

	html body .dt-acct__body {
		padding: 22px 32px 32px;
	}
}

/* Drawer. */
html body .dt-acct--guest.is-sheet .dt-acct__aside {
	display: none;
}

html body .dt-acct.is-sheet .dt-acct__head {
	padding: 0 14px 6px 18px;
}

html body .dt-acct.is-sheet .dt-acct__seg {
	max-width: none;
}

html body .dt-acct.is-sheet .dt-acct__body {
	padding: 18px 22px calc(22px + env(safe-area-inset-bottom, 0px));
}

html body .dt-acct.is-sheet .dt-acct__h {
	font-size: 27px;
}

html body .dt-acct.is-sheet .dt-acct__sub {
	margin-bottom: 18px;
	font-size: 14.5px;
}

/* =========================================================================
 * Member card
 * ====================================================================== */

html body .dt-acct--member {
	--dt-w: 390px;
}

html body .dt-acct--member.is-center {
	--dt-w: 440px;
}

html body .dt-acct--member .dt-ov__panel {
	background: var(--paper);
}

html body .dt-acct--member .dt-ambient i:nth-child(1) {
	top: -200px;
	left: -120px;
}

html body .dt-acct__mhead {
	gap: 14px;
	padding: 20px 16px 14px 20px;
}

html body .dt-acct--member.is-sheet .dt-acct__mhead {
	padding: 0 14px 12px 20px;
}

html body .dt-acct__avatar {
	position: relative;
	display: grid;
	flex: none;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 25%, #ffffff, var(--dt-p-d3f5da, #d3f5da) 55%, var(--dt-p-9fe3ae, #9fe3ae) 100%);
	box-shadow: inset 0 1px 0 #fff, inset 0 -8px 16px -10px rgba(var(--dt-p-1a8030-rgb, 26, 128, 48), 0.45), 0 10px 22px -12px rgba(var(--dt-p-1a8030-rgb, 26, 128, 48), 0.55);
	color: var(--dt-p-0f4a1d, #0f4a1d);
	font: 800 18px/1 var(--display);
	letter-spacing: -0.02em;
}

html body .dt-acct__who {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

html body .dt-acct__who strong {
	overflow: hidden;
	color: var(--ink);
	font: 700 19px/1.15 var(--display);
	letter-spacing: -0.03em;
	text-overflow: ellipsis;
	white-space: nowrap;
}

html body .dt-acct__who small {
	overflow: hidden;
	color: var(--muted);
	font: 500 13px/1.2 var(--body);
	text-overflow: ellipsis;
	white-space: nowrap;
}

html body .dt-acct__mbody {
	padding: 6px 16px 18px;
}

html body .dt-acct--member.is-sheet .dt-acct__mbody {
	padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}

html body .dt-acct__mbody > .dt-eyebrow {
	margin: 8px 4px 10px;
}

html body .dt-acct__order {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
	padding: 10px 14px 10px 10px;
	border-radius: 22px;
	background: var(--glass-bg);
	box-shadow: var(--glass-shadow);
	transition: transform 0.45s var(--spring);
}

html body .dt-acct__order:hover {
	transform: translateY(-2px);
}

html body .dt-acct__order > .dt-i {
	width: 18px;
	height: 18px;
	color: var(--soft);
}

html body .dt-acct__order-media {
	display: grid;
	flex: none;
	place-items: center;
	overflow: hidden;
	width: 58px;
	height: 58px;
	border-radius: 16px;
	background: var(--stone);
}

html body .dt-acct__order-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	mix-blend-mode: multiply;
}

html body .dt-acct__order-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

html body .dt-acct__order-top {
	display: flex;
	align-items: center;
	gap: 8px;
}

html body .dt-acct__order-top b {
	font: 700 15px/1 var(--display);
}

html body .dt-acct__status {
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(10, 10, 10, 0.06);
	color: var(--ink-2);
	font: 700 11px/1 var(--body);
	font-style: normal;
	letter-spacing: 0.02em;
}

html body .dt-acct__status--completed {
	background: rgba(var(--dt-p-4cd964-rgb, 76, 217, 100), 0.16);
	color: var(--dt-p-13652a, #13652a);
}

html body .dt-acct__status--processing {
	background: rgba(255, 176, 32, 0.18);
	color: #8a5200;
}

html body .dt-acct__status--cancelled,
html body .dt-acct__status--failed,
html body .dt-acct__status--refunded {
	background: rgba(210, 60, 60, 0.1);
	color: #9b2424;
}

html body .dt-acct__order-meta {
	overflow: hidden;
	color: var(--muted);
	font: 500 12.5px/1.3 var(--body);
	text-overflow: ellipsis;
	white-space: nowrap;
}

html body .dt-acct__tiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

html body .dt-acct__tiles a {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 58px;
	padding: 0 12px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.72);
	box-shadow: inset 0 0 0 1px var(--line), 0 6px 18px -14px rgba(10, 10, 10, 0.3);
	color: var(--ink);
	font: 600 13.5px/1.2 var(--body);
	transition: transform 0.45s var(--spring), background 0.2s;
}

html body .dt-acct__tiles a:hover {
	background: #fff;
	transform: translateY(-2px);
}

html body .dt-acct.is-open .dt-acct__tiles li {
	animation: dt-acct-rise 0.55s var(--ease) var(--d, 0s) both;
}

html body .dt-acct__tile-ic {
	display: grid;
	flex: none;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	background: var(--stone);
}

html body .dt-acct__tile-ic .dt-i {
	width: 17px;
	height: 17px;
}

html body .dt-acct__mfoot {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
	margin-top: 14px;
}

html body .dt-ui .dt-acct__mfoot .dt-pill {
	height: 48px;
	padding: 0 18px;
	font-size: 14px;
}

html body .dt-ui .dt-acct__out,
html body .dt-ui .dt-acct__out:hover {
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--line-2);
	color: var(--ink-2);
}

html body .dt-ui .dt-acct__out:hover {
	color: #9b2424;
}

@media (prefers-reduced-motion: reduce) {
	html body .dt-acct.is-open :is(.dt-acct__visual img, .dt-acct__perks li, .dt-acct__tiles li) {
		animation: none !important;
	}
}

/* An odd last shortcut spans the row. */
html body .dt-acct__tiles li:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}
