/* =========================================================================
   DuBois account: sign in / create account / password screens, and the
   settings-style My Account (V6 Account board, Sweet Du's layout).

   Desktop: profile + menu on the left, the section on the right.
   Under 860px: the menu is the home screen; sections open with a back row.

   WooCommerce's own account CSS floats the navigation and content and
   frames form.login / form.register; those are reset here, scoped.
   ====================================================================== */

/* ---------- signed out: sign in, create account, password ----------
   Sweet Du's sign-in: one white card on a mist band. The sign-in page
   splits it in two on desktop (form | photo with a glass panel of what an
   account gives you); the password screens use the card alone. Phones:
   the card only, the photo half is not drawn (its image is lazy). */
.db-auth {
	padding-top: clamp(20px, 4vw, 56px);
	padding-bottom: clamp(56px, 8vw, 104px);
	background: var(--db-mist);
}

/* The card. */
.db-auth__shell,
.db-auth:not(.db-auth--split) .db-auth__inner {
	margin-inline: auto;
	border-radius: var(--db-r-2xl);
	background: var(--db-white);
	box-shadow: 0 0 0 1px var(--db-line), 0 40px 80px -48px rgba(0, 0, 0, 0.3);
	animation: db-rise 0.6s var(--db-ease) both;
}
.db-auth__shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	max-width: 560px;
	overflow: hidden;
}
.db-auth__shell.has-art { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 1120px; min-height: 640px; }

.db-auth__inner {
	width: 100%;
	max-width: 560px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
	padding: 48px clamp(24px, 4.5vw, 64px) 40px;
}
.db-auth__shell .db-auth__inner { justify-self: center; max-width: 548px; }

.db-auth__head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.db-auth__logo { display: inline-flex; min-height: 44px; align-items: center; transition: transform var(--db-t-ui) var(--db-ease-spring); }
.db-auth__logo:hover { transform: scale(1.04); }
.db-auth__logo .db-logo__img { height: 48px; width: auto; }
.db-auth__title {
	margin: 6px 0 0;
	font-size: clamp(30px, 1.6vw + 18px, 40px);
	font-weight: 600;
	letter-spacing: var(--db-ls-h1);
	line-height: 1.05;
}
.db-auth__lead {
	max-width: 34ch;
	margin: 0;
	font-size: var(--db-fs-sm);
	line-height: 1.55;
	color: var(--db-muted);
	text-wrap: pretty;
}

/* WooCommerce frames form.login / form.register; not here. */
.woocommerce .db-auth form.login,
.woocommerce .db-auth form.register,
.woocommerce .db-auth form.lost_reset_password,
.db-auth__form {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.db-auth__form[hidden] { display: none; }
.db-auth__form.is-in { animation: db-auth-in 0.34s var(--db-ease) both; }
.db-auth__form.is-sending { pointer-events: none; }
@keyframes db-auth-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.db-auth .db-label { padding-left: 6px; font-weight: 500; }
.db-auth .db-field__hint, .db-auth .db-field__error { padding-left: 6px; }
.db-auth .db-input::placeholder { color: var(--db-muted); opacity: 0.7; }
.db-field__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.db-auth .db-field__top { padding-right: 6px; }
.db-auth .db-field__top .db-label { padding-left: 6px; }

/* "Keep me signed in" and "Forgot password?" share a row (Sweet Du). */
.db-auth__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-top: -2px; padding: 0 6px; }
.db-auth__remember { min-height: 40px; }
.db-auth__forgot {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	font-size: var(--db-fs-xs);
	font-weight: 600;
	color: var(--db-black);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
}
.db-auth__forgot:hover { text-decoration-thickness: 2px; }
.db-auth__submit { margin-top: 2px; }
.db-auth__names { gap: 10px; }
.db-auth__note { margin: 0; padding: 0 6px; font-size: var(--db-fs-xs); color: var(--db-muted); }
.db-auth__fine { margin: -2px 0 0; text-align: center; font-size: var(--db-fs-2xs); color: var(--db-muted); }
.db-auth__foot { margin: 0; text-align: center; font-size: var(--db-fs-xs); color: var(--db-muted); }
.db-auth__foot .db-tlink { color: var(--db-black); }
.db-auth__guest { margin: 2px 0 0; text-align: center; font-size: var(--db-fs-xs); color: var(--db-muted); }
.db-auth__guest a {
	margin-left: 2px;
	font-weight: 600;
	color: var(--db-black);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}
.db-auth__guest a:hover { text-decoration-thickness: 2px; }
.db-auth .woocommerce-privacy-policy-text p { margin: 0; padding: 0 6px; font-size: var(--db-fs-2xs); line-height: 1.5; color: var(--db-muted); }
.db-auth .woocommerce-privacy-policy-text a { text-decoration: underline; text-underline-offset: 3px; }

/* Notices sit inside the card; the wrapper disappears when there are none. */
.db-auth__notices .woocommerce-error,
.db-auth__notices .woocommerce-message,
.db-auth__notices .woocommerce-info { margin: 0; }
.db-auth__notices .woocommerce-notices-wrapper { display: flex; flex-direction: column; gap: 8px; }
.db-auth__notices:not(:has(.woocommerce-error, .woocommerce-message, .woocommerce-info, li, p)) { display: none; }

/* The photo half: a real photo, a dark fade at the foot, a glass panel. */
.db-auth__art {
	position: relative;
	margin: 12px;
	overflow: hidden;
	border-radius: var(--db-r-lg);
	background: var(--db-ink-3);
	isolation: isolate;
}
.db-auth__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 30%;
	animation: db-auth-settle 1.6s var(--db-ease-out) both;
}
@keyframes db-auth-settle { from { transform: scale(1.06); } to { transform: none; } }
.db-auth__art::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.2) 62%, rgba(0, 0, 0, 0.72) 100%);
	pointer-events: none;
}
.db-auth__glass {
	position: absolute;
	z-index: 1;
	left: 20px;
	right: 20px;
	bottom: 20px;
	padding: 22px 24px;
	border-radius: var(--db-r-md);
	background: var(--db-glass-dark);
	-webkit-backdrop-filter: var(--db-glass-blur-dark);
	backdrop-filter: var(--db-glass-blur-dark);
	border: 1px solid var(--db-glass-edge-dark);
	color: var(--db-white);
	animation: db-rise 0.7s var(--db-ease) 0.2s both;
}
.db-auth__glasstitle {
	margin: 0;
	font-stretch: var(--db-stretch-head);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
}
.db-auth__perks { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.db-auth__perks li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: var(--db-fs-sm);
	font-weight: 500;
	animation: db-auth-in 0.5s var(--db-ease) both;
	animation-delay: calc(380ms + var(--db-i, 0) * 90ms);
}
.db-auth__perk {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	background: var(--db-green);
	color: var(--db-black);
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 899px) {
	.db-auth__shell.has-art { grid-template-columns: minmax(0, 1fr); max-width: 560px; min-height: 0; }
	.db-auth__art { display: none; }
}
@media (max-width: 640px) {
	.db-auth { padding-top: 16px; }
	.db-auth__shell,
	.db-auth:not(.db-auth--split) .db-auth__inner { border-radius: var(--db-r-xl); }
	.db-auth__inner { gap: 18px; padding: 30px 18px 26px; }
	.db-auth__logo .db-logo__img { height: 44px; }
}
@media (max-width: 359px) {
	.db-auth__row { justify-content: flex-start; }
}

/* Sign in / Create account switcher (the black thumb slides). */
.db-auth__tabs {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	padding: 5px;
	border-radius: var(--db-r-pill);
	background: var(--db-mist);
}
.db-auth__thumb {
	position: absolute;
	top: 5px;
	bottom: 5px;
	left: 5px;
	width: calc(50% - 5px);
	border-radius: var(--db-r-pill);
	background: var(--db-black);
	transition: transform 0.5s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.db-auth[data-tab="register"] .db-auth__thumb { transform: translateX(100%); }
.db-auth__tab {
	position: relative;
	height: 46px;
	border: 0;
	border-radius: var(--db-r-pill);
	background: transparent;
	color: var(--db-black);
	font-size: 15px;
	font-weight: 600;
	transition: color var(--db-t-ui);
}
.db-auth__tab[aria-selected="true"] { color: var(--db-white); }
.db-auth__tab:focus-visible { outline-offset: -2px; }

/* "Check your email" */
.db-auth__panel {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 20px;
	border-radius: var(--db-r-lg);
	background: var(--db-mist);
	font-size: var(--db-fs-sm);
	line-height: 1.55;
	color: var(--db-ink-2);
}
.db-auth__panel p { margin: 0; }
.db-auth__panel-icon {
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 15px;
	background: var(--db-white);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--db-black);
}

/* ---------- password field with show / hide ---------- */
.db-pass { position: relative; }
.db-pass__input { padding-right: 58px; }
.db-pass__eye {
	position: absolute;
	top: 50%;
	right: 5px;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	padding: 0;
	border: 0;
	border-radius: var(--db-r-pill);
	background: transparent;
	color: var(--db-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color var(--db-t-fast), color var(--db-t-fast);
}
.db-pass__eye:hover { background: rgba(0, 0, 0, 0.06); color: var(--db-black); }
.db-pass__eye .db-pass__hide { display: none; }
.db-pass__eye[aria-pressed="true"] .db-pass__show { display: none; }
.db-pass__eye[aria-pressed="true"] .db-pass__hide { display: inline-block; }
.db-pass__input::-ms-reveal, .db-pass__input::-ms-clear { display: none; }

/* Inline field errors (account.js). */
.db-field .db-field__error { margin: 0; }
.db-field.is-invalid .db-label { color: var(--db-red); }
.db-field.is-invalid .db-field__hint { display: none; }

/* ---------- signed in: the settings screen ---------- */
.db-acct {
	display: grid;
	grid-template-columns: 340px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	padding-top: clamp(24px, 3vw, 40px);
	padding-bottom: clamp(72px, 9vw, 112px);
}
/* WooCommerce's layout sheet floats these two at 30% / 68%. */
.woocommerce-account .db-acct .woocommerce-MyAccount-navigation,
.woocommerce-account .db-acct .woocommerce-MyAccount-content { float: none; width: auto; margin: 0; }

.db-acct__side {
	position: sticky;
	top: calc(var(--db-head-space) + 20px);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.db-acct__me {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px;
	border-radius: var(--db-r-xl);
	background: var(--db-black);
	color: var(--db-white);
}
.db-acct__avatar {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: var(--db-r-md);
	background: var(--db-green);
	color: var(--db-black);
	display: flex;
	align-items: center;
	justify-content: center;
	font-stretch: var(--db-stretch-head);
	font-size: 24px;
	font-weight: 600;
	line-height: 1;
}
.db-acct__who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.db-acct__name { font-size: 17px; font-weight: 600; line-height: 1.3; }
.db-acct__email, .db-acct__since { font-size: var(--db-fs-xs); color: var(--db-on-dark); overflow-wrap: anywhere; }

.db-acct__nav { display: flex; flex-direction: column; gap: 10px; }
.db-acct__group { display: flex; flex-direction: column; padding: 6px; border-radius: var(--db-r-xl); background: var(--db-mist); }
.db-acct__row {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 62px;
	padding: 10px;
	border-radius: 22px;
	color: var(--db-black);
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
	transition: background-color var(--db-t-fast), box-shadow var(--db-t-fast);
}
.db-acct__row:hover { background: rgba(255, 255, 255, 0.7); }
.db-acct__row:focus-visible { outline-offset: -2px; }
.db-acct__row.is-on { background: var(--db-white); box-shadow: var(--db-sh-soft); }
.db-acct__tile {
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 15px;
	background: var(--db-white);
	color: var(--db-black);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color var(--db-t-ui), color var(--db-t-ui);
}
.db-acct__row.is-on .db-acct__tile { background: var(--db-black); color: var(--db-white); }
.db-acct__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.db-acct__label { font-size: 15px; font-weight: 600; line-height: 1.3; }
.db-acct__sub { font-size: var(--db-fs-2xs); color: var(--db-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-acct__chev { flex: none; color: var(--db-muted); transition: transform var(--db-t-fast) var(--db-ease-out); }
.db-acct__row:hover .db-acct__chev { transform: translateX(2px); }
.db-acct__row--out { color: var(--db-red); }
.db-acct__row--out .db-acct__tile { color: var(--db-red); }

.db-acct__main { min-width: 0; animation: db-rise 0.5s var(--db-ease) both; }
.db-acct__back {
	display: none;
	align-items: center;
	gap: 6px;
	height: 44px;
	margin-bottom: 16px;
	padding: 0 16px 0 10px;
	border-radius: var(--db-r-pill);
	background: var(--db-mist);
	color: var(--db-black);
	font-size: 15px;
	font-weight: 600;
	transition: background-color var(--db-t-fast);
}
.db-acct__back:hover { background: var(--db-mist-2); }
.db-acct__back.is-always { display: inline-flex; }
/* Titles and their lines stack and centre (the owner's rule: never a title on one side and its words on the other). */
.db-acct__head { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 28px; text-align: center; }
.db-acct__title {
	margin: 0;
	font-size: clamp(30px, 2.2vw + 14px, 44px);
	font-weight: 600;
	letter-spacing: var(--db-ls-h1);
	line-height: 1.05;
}
.db-acct__lead { max-width: 560px; text-wrap: pretty; }
.db-acct__h2 {
	margin: 0;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
}
.db-acct__content { display: flex; flex-direction: column; gap: 20px; }
.db-acct__content > .woocommerce-notices-wrapper:empty { display: none; }
.db-acct__content .woocommerce-message,
.db-acct__content .woocommerce-info,
.db-acct__content .woocommerce-error { margin: 0; }
.db-acct address { font-style: normal; }

/* ---------- overview ---------- */
.db-dash { display: flex; flex-direction: column; gap: 28px; }
.db-dash__head { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 12px; text-align: center; }
.db-dash__head .db-tlink { font-size: 15px; padding: 6px 0; }

.db-latest {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 24px;
	border-radius: var(--db-r-xl);
	background: var(--db-mist);
}
.db-latest__top { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.db-latest__words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.db-latest__status { font-size: var(--db-fs-xs); color: var(--db-muted); }
.db-latest__title {
	margin: 0;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
}
.db-latest__meta { font-size: var(--db-fs-xs); color: var(--db-muted); }
.db-latest__note { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: var(--db-fs-xs); line-height: 1.5; }
.db-latest__note .db-icon { margin-top: 1px; }
.db-latest__note .db-tlink { font-size: inherit; margin-left: 4px; }

/* Progress bars: done = green, now = part filled, todo = grey. */
.db-track {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.db-track__step { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.db-track__bar { position: relative; height: 6px; border-radius: var(--db-r-pill); background: var(--db-line-2); overflow: hidden; }
.db-track__fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	border-radius: inherit;
	background: var(--db-green);
	/* Fills left to right, one bar after the other, each time the page shows. */
	animation: db-track-fill 0.9s var(--db-ease) both;
	animation-delay: calc(var(--db-i, 0) * 140ms + 200ms);
}
.db-track__step.is-done .db-track__fill { width: 100%; }
.db-track__step.is-now .db-track__fill { width: 40%; }
@keyframes db-track-fill { from { width: 0; } }
.db-track__label { font-size: var(--db-fs-2xs); font-weight: 500; color: var(--db-muted); line-height: 1.3; }
.db-track__step.is-done .db-track__label,
.db-track__step.is-now .db-track__label { font-weight: 600; color: var(--db-black); }

/* ---------- order cards ---------- */
.db-olist { display: flex; flex-direction: column; gap: 10px; }
.db-ocard {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px;
	border-radius: var(--db-r-lg);
	background: var(--db-white);
	box-shadow: inset 0 0 0 1px var(--db-ring);
	color: var(--db-black);
	text-decoration: none;
	transition: box-shadow 0.25s, background-color 0.25s;
}
.db-ocard:hover { box-shadow: inset 0 0 0 1.5px var(--db-black); }
.db-ocard:focus-visible { outline-offset: 2px; }
.db-ocard__thumbs { flex: none; display: flex; }
.db-ocard__img {
	display: block;
	width: 50px;
	height: 62px;
	border-radius: 14px;
	border: 2px solid var(--db-white);
	object-fit: cover;
	background: var(--db-mist);
}
.db-ocard__img + .db-ocard__img { margin-left: -16px; }
.db-ocard__img--none { display: flex; align-items: center; justify-content: center; color: var(--db-muted); }
.db-ocard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.db-ocard__num { font-size: 15px; font-weight: 600; }
.db-ocard__meta { font-size: var(--db-fs-xs); color: var(--db-muted); }
.db-ocard__end { flex: none; display: flex; align-items: center; gap: 14px; }
.db-ocard__total { font-size: 15px; font-weight: 600; white-space: nowrap; }

/* Status pill. */
.db-status {
	display: inline-flex;
	align-items: center;
	height: 30px;
	padding: 0 12px;
	border-radius: var(--db-r-pill);
	background: var(--db-mist);
	color: var(--db-black);
	font-size: var(--db-fs-2xs);
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}
.db-status--live { background: var(--db-green); }
.db-status--wait { background: var(--db-amber-tint); }
.db-status--off { background: var(--db-red-tint); color: var(--db-red); }
.db-status--lg { height: 34px; padding: 0 14px; font-size: var(--db-fs-xs); }

.db-opager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: 8px; }
.db-opager__n { font-size: var(--db-fs-xs); color: var(--db-muted); }

.db-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 36px 24px;
	border-radius: var(--db-r-xl);
	background: var(--db-mist);
	text-align: center;
}
.db-empty__icon {
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 18px;
	background: var(--db-white);
	display: flex;
	align-items: center;
	justify-content: center;
}
.db-empty__words { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 420px; }
.db-empty__title { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.db-empty__text { margin: 0; font-size: var(--db-fs-sm); color: var(--db-muted); }

/* ---------- one order ---------- */
.db-order { display: flex; flex-direction: column; gap: 18px; }
.db-order__head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.db-order__titles { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.db-order__title {
	margin: 0;
	font-size: clamp(30px, 2vw + 14px, 40px);
	font-weight: 600;
	letter-spacing: var(--db-ls-h1);
	line-height: 1.05;
}
.db-order__date { margin: 0; font-size: 15px; color: var(--db-muted); }
.db-order__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.db-order .db-track { padding: 4px 2px; }

.db-oitems { padding: 6px 16px; border-radius: var(--db-r-xl); background: var(--db-mist); }
.db-oline { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.db-oline + .db-oline { border-top: 1px solid var(--db-line); }
.db-oline__img { flex: none; display: flex; }
.db-oline .db-oimg {
	display: block;
	width: 58px;
	height: 72px;
	border-radius: 16px;
	object-fit: cover;
	background: var(--db-white);
}
.db-oline .db-oimg--none { display: flex; align-items: center; justify-content: center; color: var(--db-muted); }
.db-oline__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.db-oline__name { font-size: 15px; font-weight: 600; line-height: 1.35; }
a.db-oline__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.db-oline__meta { font-size: var(--db-fs-xs); color: var(--db-muted); }
.db-oline__info .wc-item-meta { margin: 0; padding: 0; list-style: none; font-size: var(--db-fs-2xs); color: var(--db-muted); }
.db-oline__end { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.db-oline__price { font-size: 15px; font-weight: 600; white-space: nowrap; }
.db-oline__price del { color: var(--db-muted); font-weight: 400; }
.db-oline__again {
	min-height: 32px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--db-black);
	font-size: var(--db-fs-2xs);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}
.db-oline__again:hover { text-decoration-thickness: 2px; }
.db-oline__again.is-busy { opacity: 0.5; pointer-events: none; }

.db-order__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.db-obox {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
	border-radius: var(--db-r-lg);
	box-shadow: inset 0 0 0 1px var(--db-ring);
	font-size: 15px;
	line-height: 1.55;
}
.db-obox__title { margin: 0; font-family: var(--db-font); font-stretch: 100%; font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.db-obox p { margin: 0; }
.db-obox--info { gap: 18px; }
.db-orows { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.db-orow { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.db-orow dt { color: var(--db-muted); }
.db-orow dd { margin: 0; text-align: right; }
.db-orow dd small, .db-orow dd .includes_tax { display: block; font-size: var(--db-fs-2xs); color: var(--db-muted); }
.db-orow.is-total { padding-top: 10px; border-top: 1px solid var(--db-ring); font-weight: 600; }
.db-orow.is-total dt { color: var(--db-black); }

.db-oinfo { display: flex; flex-direction: column; gap: 8px; }
.db-oinfo__addr { color: var(--db-ink-2); }
.db-oinfo__muted { color: var(--db-muted); }
.db-oinfo__rows { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.db-oinfo__rows li { display: flex; align-items: flex-start; gap: 10px; }
.db-oinfo__rows .db-icon { margin-top: 2px; color: var(--db-muted); }
.db-oinfo__rows a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.db-oinfo__note {
	padding: 10px 14px;
	border-radius: var(--db-r-sm);
	background: var(--db-green-tint);
	color: var(--db-green-deep);
	font-size: var(--db-fs-xs);
}

.db-otrack { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.db-otrack__row { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 16px; background: var(--db-mist); }
.db-otrack__row > .db-icon { flex: none; }
.db-otrack__words { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.db-otrack__carrier { font-size: var(--db-fs-2xs); color: var(--db-muted); }
.db-otrack__num { font-size: var(--db-fs-xs); font-weight: 600; overflow-wrap: anywhere; }

.db-obox--note p { color: var(--db-ink-2); }

.db-oupdates { display: flex; flex-direction: column; gap: 12px; }
.db-oupdates__list { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--db-line-2); }
.db-oupdates__item { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 0 0 16px 18px; }
.db-oupdates__item:last-child { padding-bottom: 0; }
.db-oupdates__when { font-size: var(--db-fs-2xs); color: var(--db-muted); }
.db-oupdates__text { font-size: var(--db-fs-sm); line-height: 1.55; overflow-wrap: anywhere; }
.db-oupdates__text p { margin: 0; }
.db-oupdates__text p + p { margin-top: 6px; }
.db-oupdates__text a { text-decoration: underline; text-underline-offset: 3px; }

.db-order__help { margin: 0; font-size: 15px; color: var(--db-muted); }
.db-order__help a { font-weight: 600; color: var(--db-black); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.db-order__extra:empty { display: none; }

/* ---------- addresses ---------- */
.db-addrs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.db-addr {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px;
	border-radius: var(--db-r-xl);
	background: var(--db-mist);
}
.db-addr__title { margin: 0; font-family: var(--db-font); font-stretch: 100%; font-size: 16px; font-weight: 600; letter-spacing: 0; }
.db-addr__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--db-ink-2); }
.db-addr__text--empty { color: var(--db-muted); }
.db-addr__edit { align-self: flex-start; margin-top: auto; }

/* The address form: WooCommerce's fields, as mist pills on a two-column grid. */
.db-aform .woocommerce-address-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 12px;
}
.db-aform .woocommerce-address-fields__field-wrapper::before,
.db-aform .woocommerce-address-fields__field-wrapper::after { content: none; }
.woocommerce .db-aform .form-row { grid-column: 1 / -1; float: none; width: auto; margin: 0 0 14px; }
.woocommerce .db-aform .form-row-first { grid-column: 1; }
.woocommerce .db-aform .form-row-last { grid-column: 2; }
.woocommerce .db-aform .form-row label { padding-left: 6px; font-weight: 500; }
.woocommerce .db-aform .form-row .woocommerce-input-wrapper { display: block; }
.woocommerce .db-aform .form-row .input-text,
.woocommerce .db-aform .form-row select {
	width: 100%;
	border-radius: var(--db-r-pill);
	padding-inline: 20px;
	background-color: var(--db-mist);
	box-shadow: none;
}
.woocommerce .db-aform .form-row .input-text:focus,
.woocommerce .db-aform .form-row select:focus { box-shadow: inset 0 0 0 1px var(--db-green), 0 0 0 3px var(--db-green-glow); }
.woocommerce .db-aform .form-row.woocommerce-invalid .input-text { box-shadow: inset 0 0 0 1.5px var(--db-red); }
.db-aform .select2-container--default .select2-selection--single { border-radius: var(--db-r-pill); background: var(--db-mist); box-shadow: none; }
.db-aform .select2-container--default .select2-selection--single .select2-selection__rendered { padding-left: 20px; }
.db-aform .select2-container--default.select2-container--focus .select2-selection--single,
.db-aform .select2-container--default.select2-container--open .select2-selection--single { box-shadow: inset 0 0 0 1px var(--db-green), 0 0 0 3px var(--db-green-glow); }
.db-aform__save, .db-dform__save { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }

/* ---------- your details ---------- */
.db-dform { display: flex; flex-direction: column; gap: 14px; max-width: 620px; width: 100%; margin-inline: auto; }
.db-dform .db-label { padding-left: 6px; font-weight: 500; }
.db-dform .db-field__hint, .db-dform .db-field__error { padding-left: 6px; }
.db-dform .db-grid-2 { gap: 14px 10px; }
.db-dform__pw { display: flex; flex-direction: column; gap: 14px; margin: 12px 0 0; padding: 0; border: 0; min-width: 0; }
.db-dform__legend {
	float: left;
	width: 100%;
	margin: 0 0 2px;
	padding: 0;
	font-stretch: var(--db-stretch-head);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.02em;
}
.db-dform__legend + * { clear: both; }
.db-dform__hint { margin: -6px 0 0; }

/* ---------- payment methods ---------- */
.db-cards { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.db-paycard {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 14px;
	padding: 14px 14px 14px 16px;
	border-radius: var(--db-r-lg);
	background: var(--db-white);
	box-shadow: inset 0 0 0 1px var(--db-ring);
}
.db-paycard.is-default { box-shadow: inset 0 0 0 2px var(--db-black); }
.db-paycard__icon {
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 15px;
	background: var(--db-mist);
	display: flex;
	align-items: center;
	justify-content: center;
}
.db-paycard__body { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.db-paycard__name { font-size: 15px; font-weight: 600; }
.db-paycard__meta { font-size: var(--db-fs-xs); color: var(--db-muted); }
.db-paycard__default { flex: none; }
.db-paycard__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.db-cards__add { align-self: flex-start; }

/* WooCommerce's add payment method page (the Stripe card field draws inside). */
.db-acct #add_payment_method #payment {
	padding: 6px;
	border-radius: var(--db-r-xl);
	background: var(--db-mist);
}
.db-acct #add_payment_method #payment ul.payment_methods { margin: 0; padding: 8px 10px; border: 0; list-style: none; }
.db-acct #add_payment_method #payment ul.payment_methods li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 0; font-weight: 600; }
.db-acct #add_payment_method #payment ul.payment_methods li img { max-height: 24px; width: auto; }
.db-acct #add_payment_method #payment div.payment_box {
	width: 100%;
	margin: 6px 0 0;
	padding: 16px;
	border-radius: var(--db-r-md);
	background: var(--db-white);
	color: var(--db-black);
	font-weight: 400;
	font-size: var(--db-fs-sm);
}
.db-acct #add_payment_method #payment div.payment_box::before { display: none; }
.db-acct #add_payment_method #payment div.form-row { margin: 0; padding: 10px; border: 0; }
.db-acct #add_payment_method #place_order { float: none; width: 100%; }

/* Downloads (only for customers who have some). */
.db-acct .woocommerce-table--order-downloads { width: 100%; font-size: var(--db-fs-sm); }
.db-acct .woocommerce-table--order-downloads th,
.db-acct .woocommerce-table--order-downloads td { padding: 12px 10px; border-bottom: 1px solid var(--db-line-2); text-align: left; }

/* Beside the menu the section column is narrow on small laptops: one column of boxes. */
@media (min-width: 861px) and (max-width: 1180px) {
	.db-order__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- tablet and phone: the menu is the home screen ---------- */
@media (max-width: 860px) {
	.db-acct { display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding-top: 20px; }
	.db-acct__side { position: static; }
	.db-acct:not(.is-home) .db-acct__side { display: none; }
	.db-acct__back { display: inline-flex; }

	.db-acct.is-home .db-acct__head {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
	.db-acct.is-home .db-acct__row--dashboard,
	.db-acct.is-home .db-dash__recent { display: none; }
	.db-acct.is-home .db-acct__main { animation: none; }
}

@media (max-width: 640px) {
	.db-acct__head { margin-bottom: 20px; }
	.db-latest { padding: 20px; border-radius: 24px; }
	.db-ocard { gap: 12px; padding: 10px; }
	.db-ocard__img { width: 44px; height: 56px; border-radius: 12px; }
	.db-ocard__end { flex-direction: column-reverse; align-items: flex-end; gap: 6px; }
	.db-ocard .db-status { height: 26px; padding: 0 10px; font-size: var(--db-fs-3xs); }
	.db-order__grid, .db-addrs { grid-template-columns: minmax(0, 1fr); }
	.db-order__actions { width: 100%; }
	.db-oitems { padding: 4px 14px; }
	.db-oline .db-oimg { width: 50px; height: 62px; border-radius: 14px; }
	.db-aform .woocommerce-address-fields__field-wrapper { grid-template-columns: minmax(0, 1fr); }
	.woocommerce .db-aform .form-row-first, .woocommerce .db-aform .form-row-last { grid-column: 1 / -1; }
	.db-dform__save .db-btn, .db-aform__save .db-btn { width: 100%; }
	.db-aform__save { justify-content: center; }
	.db-paycard__actions { width: 100%; padding-left: 60px; }
}
