/* ==========================================================================
   Vendora — cart drawer, quantity stepper, checkout, order success
   ========================================================================== */

/* ---------- Toast (global; product.css carries the same rule) ---------- */

.vd-toast {
	position: fixed;
	left: 50%;
	bottom: 34px;
	transform: translateX(-50%) translateY(12px);
	background: var(--vd-text);
	color: #fff;
	font-size: 13.5px;
	font-weight: 600;
	padding: 11px 20px;
	border-radius: 999px;
	box-shadow: 0 10px 30px rgba(16, 24, 40, .25);
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s, transform .25s;
	z-index: 120;
}

.vd-toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* ---------- Header cart badge ---------- */

.vd-icon-btn.vd-cart-open {
	position: relative;
}

.vd-cart-open svg {
	width: 22px;
	height: 22px;
}

.vd-cart-badge {
	position: absolute;
	top: -1px;
	right: -1px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--vd-red);
	color: #fff;
	font-size: 10.5px;
	font-weight: 800;
	line-height: 17px;
	text-align: center;
	display: none;
	box-shadow: 0 0 0 2px var(--vd-card);
}

.vd-cart-badge.show {
	display: block;
}

/* ---------- Drawer ---------- */

body.vd-cart-lock {
	overflow: hidden;
}

.vd-cart-overlay {
	position: fixed;
	inset: 0;
	background: rgba(16, 24, 40, .45);
	opacity: 0;
	transition: opacity .22s;
	z-index: 90;
}

.vd-cart-overlay.show {
	opacity: 1;
}

.vd-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(420px, 100vw);
	background: var(--vd-card);
	box-shadow: -12px 0 40px rgba(16, 24, 40, .18);
	transform: translateX(102%);
	transition: transform .26s cubic-bezier(.22, .8, .36, 1);
	z-index: 95;
	display: flex;
	flex-direction: column;
}

.vd-cart-drawer.open {
	transform: translateX(0);
}

.vd-cart-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	border-bottom: 1px solid var(--vd-border);
}

.vd-cart-head h2 {
	font-size: 17px;
	font-weight: 800;
	display: flex;
	align-items: center;
	gap: 8px;
}

.vd-cart-count {
	background: var(--vd-primary-soft);
	color: var(--vd-primary);
	font-size: 12px;
	font-weight: 800;
	padding: 1px 9px;
	border-radius: 999px;
}

.vd-cart-close {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	font-size: 22px;
	line-height: 1;
	color: var(--vd-text-3);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .2s;
}

.vd-cart-close:hover {
	background: var(--vd-field);
	color: var(--vd-text);
}

.vd-cart-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* empty state */

.vd-cart-empty {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 40px 24px;
	color: var(--vd-text-3);
	text-align: center;
}

.vd-cart-empty svg {
	opacity: .4;
}

.vd-cart-empty p {
	font-size: 15px;
	font-weight: 600;
	color: var(--vd-text-2);
}

/* item list */

.vd-cart-list {
	flex: 1;
	overflow-y: auto;
	padding: 8px 22px;
}

.vd-cart-item {
	display: flex;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--vd-border);
	transition: opacity .2s;
}

.vd-cart-item:last-child {
	border-bottom: none;
}

.vd-cart-thumb {
	width: 64px;
	height: 64px;
	border-radius: var(--vd-radius-sm);
	overflow: hidden;
	background: var(--vd-inset);
	flex: none;
}

.vd-cart-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vd-cart-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.vd-cart-name {
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.vd-cart-name:hover {
	color: var(--vd-primary);
}

.vd-cart-variant {
	font-size: 12px;
	color: var(--vd-text-3);
}

.vd-cart-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 4px;
}

.vd-cart-line {
	font-size: 14px;
	font-weight: 800;
}

.vd-cart-del {
	align-self: flex-start;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	font-size: 18px;
	line-height: 1;
	color: var(--vd-text-3);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .2s;
	flex: none;
}

.vd-cart-del:hover {
	background: var(--vd-red-soft);
	color: var(--vd-red);
}

/* drawer footer */

.vd-cart-foot {
	border-top: 1px solid var(--vd-border);
	padding: 16px 22px 20px;
	background: var(--vd-card);
}

.vd-cart-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	font-size: 14px;
	color: var(--vd-text-2);
	font-weight: 600;
}

.vd-cart-total b {
	font-size: 20px;
	font-weight: 800;
	color: var(--vd-text);
}

/* ---------- Quantity stepper (shared) ---------- */

.vd-qty {
	display: inline-flex;
	align-items: center;
	background: var(--vd-field);
	border-radius: 10px;
	overflow: hidden;
}

.vd-qty-btn {
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 700;
	color: var(--vd-text-2);
	transition: all .15s;
}

.vd-qty-btn:hover {
	background: var(--vd-card);
	color: var(--vd-primary);
}

.vd-qty-num {
	min-width: 30px;
	text-align: center;
	font-size: 13.5px;
	font-weight: 700;
}

/* product page qty input (hidden, drives the stepper) */
#vdProdQty {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

/* ---------- Product page: qty row inside the total box ---------- */

.vd-prod-total {
	position: relative;
}

.vd-prod-qty-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.vd-prod-qty-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--vd-text-2);
}

/* ---------- Breadcrumb (site-wide: product / article / checkout / order-success) ---------- */

.vd-crumb-card {
	padding: 12px 18px;
}

.vd-crumb-card .vd-crumb {
	padding: 0;
}

.vd-crumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	color: var(--vd-text-3);
	padding: 2px 4px;
}

.vd-crumb a {
	color: var(--vd-text-2);
	font-weight: 600;
	transition: color .2s;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vd-crumb a:hover {
	color: var(--vd-primary);
}

.vd-crumb-sep {
	display: inline-flex;
	flex: none;
	color: var(--vd-text-3);
	opacity: .6;
}

.vd-crumb em {
	font-style: normal;
	color: var(--vd-text);
	font-weight: 600;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 640px) {
	.vd-crumb {
		font-size: 12.5px;
	}
}

/* ---------- Checkout page ---------- */

.vd-page {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.vd-page-title {
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -.02em;
	margin-top: 2px;
}

.vd-checkout-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 60px 24px;
	text-align: center;
	color: var(--vd-text-3);
}

.vd-checkout-empty svg {
	opacity: .4;
}

.vd-checkout-empty h2 {
	font-size: 20px;
	font-weight: 800;
	color: var(--vd-text);
}

.vd-checkout-empty p {
	font-size: 14.5px;
	color: var(--vd-text-2);
	margin-bottom: 8px;
}

.vd-checkout-errors {
	background: var(--vd-red-soft);
	border: 1px solid rgba(220, 38, 38, .25);
	border-radius: var(--vd-radius-sm);
	padding: 12px 18px;
}

.vd-checkout-errors p {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--vd-red);
}

.vd-checkout-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 18px;
	align-items: start;
}

.vd-checkout-left {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.vd-sec {
	padding: 22px 24px;
}

.vd-sec-title {
	font-size: 16px;
	font-weight: 800;
	margin-bottom: 14px;
}

.vd-sec-note {
	font-size: 13px;
	color: var(--vd-text-3);
	margin: -6px 0 12px;
}

.vd-checkout-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 16px;
}

.vd-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.vd-field-full {
	grid-column: 1 / -1;
}

.vd-field label {
	font-size: 13px;
	font-weight: 700;
	color: var(--vd-text-2);
}

.vd-req {
	color: var(--vd-red);
}

.vd-field input,
.vd-field select,
.vd-field textarea {
	width: 100%;
	background: var(--vd-field);
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 10px 13px;
	font-size: 14px;
	font-family: inherit;
	color: var(--vd-text);
	outline: none;
	transition: all .2s;
	resize: vertical;
}

.vd-field input:focus,
.vd-field select:focus,
.vd-field textarea:focus {
	background: var(--vd-card);
	border-color: var(--vd-primary-border);
	box-shadow: 0 0 0 3px var(--vd-primary-soft);
}

/* payment options */

.vd-pay-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.vd-pay-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 1.5px solid var(--vd-border);
	border-radius: var(--vd-radius-sm);
	cursor: pointer;
	transition: border-color .2s, background .2s, box-shadow .2s;
}

.vd-pay-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.vd-pay-option:hover {
	border-color: var(--vd-primary-border);
}

.vd-pay-option.active {
	border-color: var(--vd-primary);
	background: var(--vd-primary-soft);
	box-shadow: 0 0 0 3px var(--vd-primary-soft);
}

.vd-pay-option.disabled {
	opacity: .6;
	cursor: not-allowed;
}

.vd-pay-option.disabled:hover {
	border-color: var(--vd-border);
}

/* radio indicator (right side) */
.vd-pay-radio {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid var(--vd-text-3);
	margin-left: auto;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color .2s;
}

.vd-pay-radio::after {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--vd-primary);
	transform: scale(0);
	transition: transform .18s ease;
}

.vd-pay-option.active .vd-pay-radio {
	border-color: var(--vd-primary);
}

.vd-pay-option.active .vd-pay-radio::after {
	transform: scale(1);
}

/* "not configured" badge */
.vd-pay-badge {
	margin-left: auto;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	color: #b45309;
	background: rgba(217, 119, 6, .1);
	border: 1px solid rgba(217, 119, 6, .35);
	padding: 3px 9px;
	border-radius: 999px;
	flex: none;
	white-space: nowrap;
}

.vd-pay-badge + .vd-pay-radio {
	margin-left: 0;
}

.vd-pay-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--vd-inset);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--vd-text-2);
	flex: none;
}

.vd-pay-option.active .vd-pay-icon {
	background: var(--vd-card);
	color: var(--vd-primary);
}

.vd-pay-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.vd-pay-text b {
	font-size: 14px;
	font-weight: 700;
}

.vd-pay-text small {
	font-size: 12.5px;
	color: var(--vd-text-3);
	line-height: 1.45;
}

/* order summary (right rail) */

.vd-sec-sticky {
	position: sticky;
	top: 18px;
}

.vd-sum-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 16px;
}

.vd-sum-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.vd-sum-thumb {
	width: 52px;
	height: 52px;
	border-radius: 10px;
	object-fit: cover;
	background: var(--vd-inset);
	flex: none;
}

.vd-sum-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.vd-sum-info b {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

.vd-sum-info small {
	font-size: 12px;
	color: var(--vd-text-3);
}

.vd-sum-qty {
	font-size: 12px;
	color: var(--vd-text-2);
	margin-top: 2px;
}

.vd-sum-line {
	font-size: 13.5px;
	font-weight: 800;
	white-space: nowrap;
}

.vd-sum-totals {
	border-top: 1px dashed var(--vd-border);
	padding-top: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 16px;
}

.vd-sum-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13.5px;
	color: var(--vd-text-2);
}

.vd-sum-row b {
	font-size: 14px;
	font-weight: 700;
	color: var(--vd-text);
}

.vd-sum-row-grand {
	margin-top: 4px;
	padding-top: 10px;
	border-top: 1px solid var(--vd-border);
	font-weight: 700;
	color: var(--vd-text);
}

.vd-sum-row-grand b {
	font-size: 20px;
	font-weight: 800;
}

.vd-btn-block {
	width: 100%;
	justify-content: center;
	display: flex;
	align-items: center;
	gap: 8px;
}

.vd-sum-note {
	font-size: 12px;
	color: var(--vd-text-3);
	margin-top: 12px;
	line-height: 1.5;
}

/* ---------- Order success page ---------- */

.vd-success-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	padding: 44px 24px 38px;
}

.vd-success-icon {
	width: 64px;
	height: 64px;
	border-radius: 999px;
	background: var(--vd-primary-soft);
	color: var(--vd-primary);
	display: flex;
	align-items: center;
	justify-content: center;
}

.vd-success-hero h1 {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -.02em;
}

.vd-success-hero p {
	font-size: 14.5px;
	color: var(--vd-text-2);
	max-width: 480px;
}

.vd-success-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 18px;
	align-items: start;
}

.vd-success-main {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

.vd-success-side {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

/* ---------- Order status timeline ---------- */

.vd-timeline {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.vd-tl-step {
	position: relative;
	padding-top: 18px;
	font-size: 12.5px;
	color: var(--vd-text-3);
}

.vd-tl-step b {
	display: block;
	font-size: 12.5px;
	color: var(--vd-text-3);
}

.vd-tl-step small {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	color: var(--vd-text-3);
}

.vd-tl-dot {
	position: absolute;
	top: 0;
	left: 0;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--vd-inset);
	border: 2px solid var(--vd-border);
}

.vd-tl-step.done {
	color: var(--vd-text);
}

.vd-tl-step.done b {
	color: var(--vd-text);
}

.vd-tl-step.done .vd-tl-dot {
	background: var(--vd-green);
	border-color: var(--vd-green);
}

/* connector line between steps */
.vd-tl-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 7px;
	left: 12px;
	right: -10px;
	height: 2px;
	background: var(--vd-border);
}

.vd-tl-step.done:not(:last-child)::after {
	background: var(--vd-green-soft);
}

@media (max-width: 900px) {
	.vd-timeline {
		grid-template-columns: repeat(2, 1fr);
	}

	.vd-tl-step:nth-child(2)::after {
		display: none;
	}
}

/* ---------- Shipment card ---------- */

.vd-ship-list {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 14px;
	margin: 14px 0 0;
	font-size: 13.5px;
}

.vd-ship-list dt {
	font-weight: 600;
	color: var(--vd-text-2);
	white-space: nowrap;
}

.vd-ship-list dd {
	margin: 0;
	word-break: break-word;
}

.vd-success-steps {
	margin: 12px 0 0;
	padding-left: 18px;
	list-style: decimal;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.vd-success-steps li {
	font-size: 13.5px;
	color: var(--vd-text-2);
}

.vd-success-addr {
	font-style: normal;
	font-size: 14px;
	line-height: 1.7;
	margin-bottom: 10px;
}

.vd-success-meta {
	font-size: 12.5px;
	color: var(--vd-text-3);
}

.vd-success-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	padding-bottom: 10px;
}

/* ---------- Alipay payment box (order-success) ---------- */

.vd-pay-icon-alipay {
	color: #1677ff;
}

.vd-alipay-box {
	margin-bottom: 18px;
	border-left: 3px solid #1677ff;
}

.vd-alipay-box .vd-alipay-form {
	margin: 14px 0 4px;
}

.vd-alipay-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

/* Hero state colors */
.vd-success-icon-pending {
	background: #fff7e6;
	color: #d48806;
}

.vd-success-icon-cancelled {
	background: #fff1f0;
	color: #cf1322;
}

/* Payment layout: QR left, amount/countdown right */
.vd-pay-layout {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 22px;
	align-items: center;
	margin: 14px 0 4px;
}

.vd-pay-side {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.vd-pay-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	color: var(--vd-text-2);
}

.vd-pay-row-inline {
	margin: 10px 0 2px;
}

.vd-pay-amt {
	font-size: 26px;
	font-weight: 800;
	color: #1677ff;
	letter-spacing: -.02em;
}

.vd-pay-countdown {
	font-size: 22px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--vd-text-1);
	letter-spacing: .02em;
}

.vd-pay-countdown-warning {
	color: #d48806;
}

.vd-pay-countdown-expired {
	color: #cf1322;
}

.vd-alipay-box-expired .vd-qr-wrap {
	opacity: .35;
	pointer-events: none;
	filter: grayscale(1);
}

/* Sandbox scan-to-pay QR code */
.vd-qr-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px;
	background: #f5f8ff;
	border: 1px dashed #1677ff;
	border-radius: 12px;
}

.vd-qr-box {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	padding: 10px;
	border-radius: 10px;
	line-height: 0;
	box-shadow: 0 1px 4px rgba(22, 119, 255, 0.12);
}

.vd-qr-box img,
.vd-qr-box svg {
	display: block;
	width: 220px;
	height: 220px;
}

.vd-qr-fallback {
	line-height: 1.5;
	font-size: 13px;
	color: #555;
	word-break: break-all;
	padding: 0 8px;
}

.vd-qr-switch {
	margin: 2px 0 0;
	font-size: 13px;
	text-align: center;
}

.vd-qr-switch a {
	color: var(--vd-primary, #1677ff);
	text-decoration: none;
}

.vd-qr-switch a:hover {
	text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
	.vd-checkout-grid,
	.vd-success-grid {
		grid-template-columns: 1fr;
	}

	.vd-pay-layout {
		grid-template-columns: 1fr;
		justify-items: center;
	}

	.vd-pay-side {
		width: 100%;
	}

	.vd-sec-sticky {
		position: static;
	}
}

@media (max-width: 640px) {
	.vd-checkout-fields {
		grid-template-columns: 1fr;
	}

	.vd-success-actions {
		flex-direction: column;
		align-items: stretch;
	}
}

/* =========================================================
   Auth pages (login / register / lostpassword / resetpassword)
   ========================================================= */

.vd-auth-page {
	max-width: 520px;
	margin: 0 auto;
	width: 100%;
}

.vd-auth-card {
	padding: 34px 32px;
}

.vd-auth-title {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -.02em;
	margin-bottom: 6px;
}

.vd-auth-form {
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.vd-auth-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 13.5px;
}

.vd-auth-remember {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--vd-text-2);
	cursor: pointer;
}

.vd-auth-remember input {
	accent-color: var(--vd-primary);
}

.vd-auth-link {
	color: var(--vd-primary);
	font-weight: 600;
}

.vd-auth-link:hover {
	text-decoration: underline;
}

.vd-auth-switch {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--vd-border);
	font-size: 13.5px;
	color: var(--vd-text-2);
	text-align: center;
}

.vd-auth-notice {
	margin-top: 14px;
	background: var(--vd-green-soft);
	border: 1px solid rgba(22, 163, 74, .25);
	border-radius: var(--vd-radius-sm);
	padding: 12px 18px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--vd-green);
}

.vd-auth-actions {
	margin-top: 18px;
}

.vd-field-hint {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: var(--vd-text-3);
}

/* ---------- Checkout login prompt bar ---------- */

.vd-checkout-loginbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	background: var(--vd-inset);
	border: 1px solid var(--vd-border);
	border-radius: var(--vd-radius-sm);
	padding: 10px 16px;
	font-size: 13.5px;
	color: var(--vd-text-2);
	margin-bottom: 18px;
}

.vd-checkout-loginbar a {
	color: var(--vd-primary);
	font-weight: 600;
}

.vd-checkout-loginbar a:hover {
	text-decoration: underline;
}

/* ---------- Account page ---------- */

.vd-account-hero {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 22px 26px;
}

.vd-account-hero h1 {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -.01em;
}

.vd-account-hero p {
	font-size: 13.5px;
	color: var(--vd-text-2);
}

.vd-account-ava {
	width: 54px;
	height: 54px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 22px;
	font-weight: 800;
	flex: none;
}

/* My claimed listings */
.vd-mylink-list {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.vd-mylink-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	background: var(--vd-inset);
	border: 1px solid var(--vd-border);
	border-radius: var(--vd-radius-sm);
}
.vd-mylink-logo {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	display: grid;
	place-items: center;
	background: var(--vd-card);
	border: 1px solid var(--vd-border);
}
.vd-mylink-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.vd-mylink-logo-ph {
	font-size: 18px;
	font-weight: 800;
	color: var(--vd-text-2);
}
.vd-mylink-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}
.vd-mylink-body b {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--vd-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.vd-mylink-body small {
	font-size: 12.5px;
	color: var(--vd-text-2);
}
.vd-mylink-status {
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
}
.vd-mylink-status-live {
	color: var(--vd-primary);
	background: var(--vd-primary-soft);
}
.vd-mylink-status-pending {
	color: #b45309;
	background: #fef3c7;
}
.vd-mylink-status-rejected {
	color: #b91c1c;
	background: #fee2e2;
}
.vd-mylink-reason {
	display: block;
	margin-top: 3px;
	font-size: 12px;
	color: #b91c1c;
}
/* Compact actions for the My listings rows: override the large .vd-btn CTA
   sizing so Edit/View match the row's scale and each other. */
.vd-mylink-edit,
.vd-mylink-view {
	white-space: nowrap;
	padding: 7px 18px;
	font-size: 13.5px;
	font-weight: 600;
}
/* Ghost (secondary) look for "View"; transparent border keeps it the same
   outer size as the outlined "Edit". */
.vd-mylink-view {
	border: 1.5px solid transparent;
	color: var(--vd-text-2);
}
.vd-mylink-view:hover {
	background: var(--vd-inset);
	color: var(--vd-text);
}
.vd-account-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 18px;
	align-items: start;
}

.vd-account-form {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.vd-account-sep {
	border: none;
	border-top: 1px solid var(--vd-border);
	margin: 22px 0 16px;
}

.vd-account-actions {
	margin-top: 14px;
}

/* ---------- Order list ---------- */

.vd-order-list {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.vd-order-row {
	border: 1px solid var(--vd-border);
	border-radius: var(--vd-radius-sm);
	transition: border-color .15s, box-shadow .15s;
}

.vd-order-link {
	display: block;
	padding: 14px 16px;
}

.vd-order-row:hover {
	border-color: var(--vd-primary-border);
	box-shadow: var(--vd-shadow);
}

.vd-order-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.vd-order-top b {
	font-size: 14px;
	font-weight: 700;
}

.vd-order-row small {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	color: var(--vd-text-2);
}

.vd-order-meta {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 8px;
	font-size: 12.5px;
	color: var(--vd-text-3);
}

.vd-order-meta span:last-child {
	font-weight: 700;
	color: var(--vd-text);
}

.vd-order-status {
	font-size: 11.5px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.vd-order-status-pending {
	background: var(--vd-amber-soft);
	color: var(--vd-amber);
}

.vd-order-status-paid {
	background: var(--vd-green-soft);
	color: var(--vd-green);
}

.vd-order-status-cancelled,
.vd-order-status-other {
	background: var(--vd-red-soft);
	color: var(--vd-red);
}

.vd-order-status-shipped {
	background: var(--vd-blue-soft);
	color: var(--vd-blue);
}

.vd-order-status-delivered,
.vd-order-status-completed {
	background: var(--vd-primary-soft);
	color: var(--vd-primary);
}

/* Tracking number line in the account order list. */
.vd-order-track {
	display: block;
	margin-top: 2px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 11.5px;
	letter-spacing: .02em;
	color: var(--vd-blue);
}

/* ---------- Header: guest avatar ---------- */

.vd-avatar-guest {
	background: var(--vd-inset);
	border: 1px solid var(--vd-border);
	color: var(--vd-text-2);
}

.vd-avatar-guest:hover {
	border-color: var(--vd-primary-border);
	color: var(--vd-primary);
}

/* ---------- Header: notifications bell ---------- */

.vd-notify {
	position: relative;
	display: inline-flex;
	align-items: center;
}
.vd-notify-btn {
	position: relative;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--vd-border);
	border-radius: 999px;
	background: #fff;
	color: var(--vd-text-2);
	cursor: pointer;
	transition: border-color .15s, color .15s;
}
.vd-notify-btn svg {
	width: 19px;
	height: 19px;
}
.vd-notify-btn:hover {
	border-color: var(--vd-primary-border);
	color: var(--vd-primary);
}
.vd-notify-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--vd-red);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	display: none;
	box-shadow: 0 0 0 2px #fff;
}
.vd-notify-badge.show {
	display: block;
}
.vd-notify-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 340px;
	max-width: calc(100vw - 32px);
	background: #fff;
	border: 1px solid var(--vd-border);
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(15, 23, 42, .16);
	z-index: 1000;
	overflow: hidden;
}
.vd-notify-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid var(--vd-border);
	font-size: 13px;
	font-weight: 700;
	color: var(--vd-text);
}
.vd-notify-markall {
	border: none;
	background: none;
	padding: 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--vd-primary);
	cursor: pointer;
}
.vd-notify-markall:hover {
	text-decoration: underline;
}
.vd-notify-empty {
	padding: 28px 16px;
	text-align: center;
	font-size: 13px;
	color: var(--vd-text-3);
}
.vd-notify-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 380px;
	overflow-y: auto;
}
.vd-notify-item {
	border-bottom: 1px solid var(--vd-border);
}
.vd-notify-item:last-child {
	border-bottom: none;
}
.vd-notify-item.is-unread {
	background: var(--vd-primary-soft);
}
.vd-notify-link {
	display: block;
	padding: 12px 16px;
	text-decoration: none;
	color: inherit;
}
.vd-notify-item a.vd-notify-link:hover {
	background: var(--vd-inset);
}
.vd-notify-link b {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--vd-text);
}
.vd-notify-link small {
	display: block;
	margin-top: 3px;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--vd-text-2);
}
.vd-notify-link em {
	display: block;
	margin-top: 5px;
	font-style: normal;
	font-size: 11.5px;
	color: var(--vd-text-3);
}

/* ---------- Auth / account responsive ---------- */

@media (max-width: 900px) {
	.vd-account-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.vd-auth-card {
		padding: 24px 20px;
	}

	.vd-account-hero {
		padding: 18px 20px;
	}
}

/* ---------- Order review (completed orders) ---------- */

.vd-review-card {
	margin-top: 18px;
}

/* Per-product review sections (multi-machine orders). */
.vd-order-rv-list {
	display: flex;
	flex-direction: column;
	margin-top: 4px;
}

.vd-order-rv-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 0;
	border-top: 1px solid var(--vd-border);
}

.vd-order-rv-item:first-child {
	padding-top: 4px;
	border-top: 0;
}

.vd-order-rv-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.vd-order-rv-prod {
	font-size: 15px;
	font-weight: 700;
}

.vd-order-rv-stars {
	display: inline-flex;
	gap: 3px;
}

.vd-order-rv-stars svg {
	fill: var(--vd-border);
	stroke: var(--vd-border);
}

.vd-order-rv-stars svg.on {
	fill: var(--vd-amber);
	stroke: var(--vd-amber);
}

.vd-order-rv-label {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
}

.vd-order-rv-text {
	margin: 0;
	padding: 12px 14px;
	background: var(--vd-inset);
	border: 1px solid var(--vd-border);
	border-radius: 10px;
	color: var(--vd-text-2);
	font-size: 14px;
	line-height: 1.6;
}

.vd-review-form {
	margin-top: 4px;
}

.vd-review-form .vd-btn {
	margin-top: 14px;
}

.vd-rating-pick-wrap {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin: 0 0 14px;
}

.vd-rating-pick-wrap > label {
	font-weight: 600;
	font-size: 14px;
}

/* Star rating picker (mirrors product.css, which is not loaded here). */
.vd-rating-pick {
	position: relative;
	display: inline-flex;
	direction: rtl;
	gap: 4px;
}

.vd-rating-pick input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.vd-rating-pick label {
	cursor: pointer;
	color: var(--vd-border);
	line-height: 0;
	transition: color .15s;
}

.vd-rating-pick label svg {
	width: 26px;
	height: 26px;
	fill: currentColor;
	stroke: currentColor;
}

.vd-rating-pick label:hover,
.vd-rating-pick label:hover ~ label,
.vd-rating-pick input:checked ~ label {
	color: var(--vd-amber);
}

.vd-review-auth {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

/* Submitted state. */
.vd-rv-done {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.vd-rv-done-stars {
	display: inline-flex;
	gap: 3px;
}

.vd-rv-done-stars svg {
	fill: var(--vd-border);
	stroke: var(--vd-border);
}

.vd-rv-done-stars svg.on {
	fill: var(--vd-amber);
	stroke: var(--vd-amber);
}

.vd-rv-done-text {
	margin: 0;
	padding: 12px 14px;
	background: var(--vd-inset);
	border: 1px solid var(--vd-border);
	border-radius: 10px;
	color: var(--vd-text-2);
	font-size: 14px;
	line-height: 1.6;
}

/* Account order row: review hint. */
.vd-order-review-hint {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--vd-primary);
}

.vd-order-review-hint svg {
	width: 14px;
	height: 14px;
	fill: var(--vd-amber);
	stroke: var(--vd-amber);
}

.vd-order-review-hint.is-done {
	color: var(--vd-text-2);
}

@media (max-width: 640px) {
	.vd-review-auth {
		grid-template-columns: 1fr;
	}
}
