/* VegaWear Account — base styles. Everything here is overridable from the Elementor Style tab. */
.vgw-acc-root {
	--vgw-accent: #b8893a;
	--vgw-ink: #1f1d1a;
	--vgw-muted: #7a746b;
	--vgw-line: #ece7df;
	--vgw-soft: #faf8f4;
	color: var(--vgw-ink);
}

.vgw-acc-root *,
.vgw-acc-root *::before,
.vgw-acc-root *::after {
	box-sizing: border-box;
}

/* ---------- Layout ---------- */
.vgw-acc {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 28px;
}

.vgw-acc__nav {
	width: 280px;
	max-width: 100%;
	flex-shrink: 0;
	background: #fff;
	border: 1px solid var(--vgw-line);
	border-radius: 18px;
	padding: 20px;
}

.vgw-acc--sticky .vgw-acc__nav {
	position: sticky;
	top: 24px;
}

.vgw-acc__content {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	background: #fff;
	border: 1px solid var(--vgw-line);
	border-radius: 18px;
	padding: 28px;
}

@media (max-width: 1024px) {
	.vgw-acc { flex-direction: column; }
	.vgw-acc__nav { width: 100%; }
	.vgw-acc--sticky .vgw-acc__nav { position: static; }
	.vgw-acc__menu ul { flex-direction: row; }
	.vgw-acc__menu a { padding: 10px 14px; }
}

@media (max-width: 767px) {
	.vgw-acc__content { padding: 18px; }
	.vgw-acc__nav { padding: 14px; }
	.vgw-acc__user { padding-bottom: 12px; margin-bottom: 12px; }
}

/* ---------- User card ---------- */
.vgw-acc__user {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 18px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--vgw-line);
}

.vgw-acc__avatar img {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}

.vgw-acc__who { display: flex; flex-direction: column; min-width: 0; }
.vgw-acc__name { font-weight: 700; font-size: 16px; }
.vgw-acc__sub { font-size: 12.5px; color: var(--vgw-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Menu ---------- */
.vgw-acc__menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.vgw-acc__menu li { margin: 0; padding: 0; list-style: none; flex: 0 0 auto; }

.vgw-acc__menu a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid transparent;
	color: var(--vgw-ink);
	text-decoration: none;
	font-size: 15px;
	white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}

.vgw-acc__menu a:hover { background: var(--vgw-soft); color: var(--vgw-accent); }
.vgw-acc__menu .is-active a { background: var(--vgw-accent); color: #fff; }

.vgw-acc__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	line-height: 1;
}

.vgw-acc__icon i,
.vgw-acc__icon svg { width: 1em; height: 1em; font-size: inherit; fill: currentColor; }

.vgw-acc__menu .is-logout a { color: #b3261e; }
.vgw-acc__menu .is-logout a:hover { background: #fdecea; color: #b3261e; }

/* ---------- Content (WooCommerce output) ---------- */
.vgw-acc__content h2,
.vgw-acc__content h3 { margin-top: 0; line-height: 1.5; }

.vgw-acc__content a:not(.button):not(.woocommerce-button) { color: var(--vgw-accent); text-decoration: none; }
.vgw-acc__content a:not(.button):not(.woocommerce-button):hover { text-decoration: underline; }

.vgw-acc-root label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }

.vgw-acc-root input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.vgw-acc-root select,
.vgw-acc-root textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--vgw-line);
	border-radius: 12px;
	background: #fff;
	font: inherit;
	transition: border-color .2s, box-shadow .2s;
}

.vgw-acc-root input:focus,
.vgw-acc-root select:focus,
.vgw-acc-root textarea:focus {
	outline: none;
	border-color: var(--vgw-accent);
	box-shadow: 0 0 0 3px rgba(184, 137, 58, .15);
}

.vgw-acc-root .button,
.vgw-acc-root button[type="submit"],
.vgw-acc-root .woocommerce-Button {
	display: inline-block;
	padding: 12px 24px;
	border: 1px solid var(--vgw-accent);
	border-radius: 12px;
	background: var(--vgw-accent);
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}

.vgw-acc-root .button:hover,
.vgw-acc-root button[type="submit"]:hover,
.vgw-acc-root .woocommerce-Button:hover { background: var(--vgw-ink); border-color: var(--vgw-ink); color: #fff; }

/* Tables */
.vgw-acc-root table { width: 100%; border-collapse: collapse; border: 0; }
.vgw-acc-root table th,
.vgw-acc-root table td { padding: 14px 12px; border: 0; border-bottom: 1px solid var(--vgw-line); text-align: start; vertical-align: middle; }
.vgw-acc-root table thead th { background: var(--vgw-soft); font-weight: 700; }

@media (max-width: 767px) {
	.vgw-acc__content { overflow-x: auto; }
}

/* Addresses */
.vgw-acc__content .u-columns,
.vgw-acc__content .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

.vgw-acc__content .u-columns::before,
.vgw-acc__content .u-columns::after,
.vgw-acc__content .woocommerce-Addresses::before,
.vgw-acc__content .woocommerce-Addresses::after { display: none; }

.vgw-acc__content .u-column1,
.vgw-acc__content .u-column2,
.vgw-acc__content .woocommerce-Address { float: none; width: auto; }

.vgw-acc__content .woocommerce-Address { padding: 18px; border: 1px solid var(--vgw-line); border-radius: 14px; }
.vgw-acc__content .woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Notices */
.vgw-acc-root .woocommerce-message,
.vgw-acc-root .woocommerce-info,
.vgw-acc-root .woocommerce-error {
	margin: 0 0 18px;
	padding: 14px 18px;
	border: 0;
	border-radius: 12px;
	list-style: none;
}

.vgw-acc-root .woocommerce-message { background: #eaf6ee; color: #1e6b3a; }
.vgw-acc-root .woocommerce-info { background: var(--vgw-soft); color: var(--vgw-ink); }
.vgw-acc-root .woocommerce-error { background: #fdecea; color: #b3261e; }
.vgw-acc-root .woocommerce-message::before,
.vgw-acc-root .woocommerce-info::before,
.vgw-acc-root .woocommerce-error::before { display: none; }

/* ---------- Dashboard ---------- */
.vgw-acc__hero {
	padding: 26px;
	border-radius: 16px;
	background: linear-gradient(135deg, #faf4e8, #f3e7cf);
	margin-bottom: 20px;
}

.vgw-acc__hero-title { margin: 0 0 8px; font-size: 22px; }
.vgw-acc__hero-text { margin: 0; color: var(--vgw-muted); }

.vgw-acc__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 16px;
	margin-bottom: 20px;
}

.vgw-acc__stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px;
	border: 1px solid var(--vgw-line);
	border-radius: 14px;
	background: #fff;
}

.vgw-acc__stat-value { font-size: 22px; font-weight: 800; }
.vgw-acc__stat-label { font-size: 13px; color: var(--vgw-muted); }

.vgw-acc__quick {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

@media (max-width: 1024px) { .vgw-acc__quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .vgw-acc__quick { grid-template-columns: 1fr; } }

.vgw-acc__content a.vgw-acc__quick-card,
.vgw-acc__quick-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px;
	border: 1px solid var(--vgw-line);
	border-radius: 14px;
	background: #fff;
	color: var(--vgw-ink);
	text-decoration: none;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}

.vgw-acc__content a.vgw-acc__quick-card:hover,
.vgw-acc__quick-card:hover {
	border-color: var(--vgw-accent);
	box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
	text-decoration: none;
	color: var(--vgw-ink);
}

.vgw-acc__quick-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.4em;
	height: 2.4em;
	border-radius: 12px;
	background: var(--vgw-soft);
	color: var(--vgw-accent);
	font-size: 20px;
}

.vgw-acc__quick-icon i,
.vgw-acc__quick-icon svg { width: 1em; height: 1em; fill: currentColor; }

.vgw-acc__quick-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vgw-acc__quick-title { font-weight: 700; }
.vgw-acc__quick-desc { font-size: 13px; color: var(--vgw-muted); }

/* ---------- Guest ---------- */
.vgw-acc__guest { max-width: 520px; margin-inline: auto; padding: 28px; border: 1px solid var(--vgw-line); border-radius: 18px; background: #fff; text-align: center; }
.vgw-acc__guest--wc { max-width: 960px; text-align: start; }
.vgw-acc__guest-text { margin: 0 0 18px; }
