/* WooCommerce My Account — WheelyNerdy (orange brand) */

.wn-myaccount {
	--wn-brand: #ea4c24;
	--wn-brand-dark: #c73d19;
	--wn-brand-soft: rgba(234, 76, 36, 0.1);
	--wn-brand-hover: rgba(234, 76, 36, 0.08);
}

/* Full-bleed account shell — fit the viewport, not a fixed 9/12 column */
.wn-myaccount .styler-myaccount-page-content.wn-myaccount-layout,
.wn-myaccount .styler-myaccount-page-content {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

.wn-myaccount .wn-myaccount-layout > [class*="col-"],
.wn-myaccount .styler-myaccount-page-content > .col-12,
.wn-myaccount .styler-myaccount-page-content > .col-md-9 {
	width: 100%;
	max-width: 100%;
	flex: 0 0 100%;
}

.wn-myaccount .styler-myaccount-page-content-inner {
	width: 100%;
	box-sizing: border-box;
	padding: 1rem;
}

/* Own grid — do not fight Bootstrap .row/.col-* percentage widths */
.wn-myaccount .wn-myaccount-layout__row.row,
.wn-myaccount .wn-myaccount-layout__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
	margin: 0;
	width: 100%;
	max-width: 100%;
}

.wn-myaccount .wn-myaccount-layout__nav.col-12,
.wn-myaccount .wn-myaccount-layout__nav.col-md-3,
.wn-myaccount .wn-myaccount-layout__nav,
.wn-myaccount .wn-myaccount-layout__content.col-12,
.wn-myaccount .wn-myaccount-layout__content.col-md-9,
.wn-myaccount .wn-myaccount-layout__content.col-content,
.wn-myaccount .wn-myaccount-layout__content {
	width: 100%;
	max-width: 100%;
	flex: none;
	float: none;
	padding-left: 0;
	padding-right: 0;
	min-width: 0;
	position: relative;
}

.wn-myaccount .wn-myaccount-layout__nav {
	z-index: 2;
}

.wn-myaccount .wn-myaccount-layout__content {
	z-index: 1;
	overflow-x: auto;
}

.wn-myaccount .styler-myaccount-content {
	width: 100%;
	max-width: none;
	padding-left: 0;
	min-width: 0;
	overflow-wrap: normal;
	word-break: normal;
}

.wn-myaccount .styler-myaccount-content .wn-deck-builder-shell,
.wn-myaccount .styler-myaccount-content #wn-deck-builder-root,
.wn-myaccount .styler-myaccount-content .wn-deck-builder-root {
	width: 100%;
	max-width: none;
	min-height: 0;
	min-width: 0;
	overflow-wrap: normal;
	word-break: normal;
}

@media (min-width: 768px) {
	.wn-myaccount .styler-myaccount-page-content-inner {
		padding: 1.5rem 1.75rem;
	}

	.wn-myaccount .wn-myaccount-layout__row.row,
	.wn-myaccount .wn-myaccount-layout__row {
		grid-template-columns: 14rem minmax(0, 1fr);
		gap: 1.5rem;
	}

	.wn-myaccount .wn-myaccount-layout__nav.col-md-3,
	.wn-myaccount .wn-myaccount-layout__nav {
		width: auto;
		max-width: none;
	}

	.wn-myaccount .wn-myaccount-layout__content.col-md-9,
	.wn-myaccount .wn-myaccount-layout__content {
		width: auto;
		max-width: none;
	}
}

@media (min-width: 1200px) {
	.wn-myaccount .wn-myaccount-layout__row.row,
	.wn-myaccount .wn-myaccount-layout__row {
		grid-template-columns: 15rem minmax(0, 1fr);
		gap: 1.75rem;
	}
}

.wn-myaccount .styler-myaccount-navigation {
	margin-bottom: 1rem;
}

.wn-myaccount-welcome {
	margin: 0 0 1rem;
	padding: 0.9rem 1rem;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--wn-brand-soft) 0%, #fff 100%);
	border: 1px solid rgba(234, 76, 36, 0.12);
}

.wn-myaccount-welcome__eyebrow {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wn-brand);
}

.wn-myaccount-welcome__name {
	margin: 0.15rem 0 0;
	font-size: 1.05rem;
	font-weight: 600;
}

/* Nav — override Styler inline underline links */
.wn-myaccount .styler-myaccount-navigation ul,
.wn-myaccount .styler-myaccount-navigation ul.navigation {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wn-myaccount .styler-myaccount-navigation li,
.wn-myaccount .styler-myaccount-navigation li.menu-item {
	margin: 0;
	position: static;
	display: block;
	width: 100%;
}

.wn-myaccount .styler-myaccount-navigation li a,
.wn-myaccount .styler-myaccount-navigation li.menu-item a,
.wn-myaccount .styler-myaccount-navigation a {
	display: block !important;
	width: 100%;
	padding: 0.7rem 1rem !important;
	border-radius: 8px !important;
	text-decoration: none !important;
	font-weight: 500;
	font-size: 0.95rem;
	line-height: 1.35;
	color: inherit;
	background: transparent;
	transition: background 0.15s ease, color 0.15s ease;
}

.wn-myaccount .styler-myaccount-navigation li a::after,
.wn-myaccount .styler-myaccount-navigation li.menu-item a::after,
.wn-myaccount .styler-myaccount-navigation a::after {
	display: none !important;
	content: none !important;
}

.wn-myaccount .styler-myaccount-navigation li.is-active a,
.wn-myaccount .styler-myaccount-navigation li.menu-item.is-active a,
.wn-myaccount .styler-myaccount-navigation a[aria-current="page"] {
	background: var(--wn-brand) !important;
	color: #fff !important;
}

.wn-myaccount .styler-myaccount-navigation li a:hover,
.wn-myaccount .styler-myaccount-navigation li.menu-item a:hover,
.wn-myaccount .styler-myaccount-navigation a:hover {
	background: var(--wn-brand-hover) !important;
	color: var(--wn-brand-dark) !important;
}

.wn-myaccount .styler-myaccount-navigation li.is-active a:hover,
.wn-myaccount .styler-myaccount-navigation li.menu-item.is-active a:hover,
.wn-myaccount .styler-myaccount-navigation a[aria-current="page"]:hover {
	background: var(--wn-brand-dark) !important;
	color: #fff !important;
}

.wn-myaccount-dashboard__lead {
	margin: 0 0 1rem;
	font-size: 1rem;
	line-height: 1.55;
	color: rgba(0, 0, 0, 0.72);
}

.wn-myaccount-dashboard__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: 0.85rem;
	margin: 0 0 1.25rem;
}

.wn-myaccount-dashboard__card {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	background: #fff;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wn-myaccount-dashboard__card strong {
	font-size: 0.98rem;
}

.wn-myaccount-dashboard__card span {
	font-size: 0.86rem;
	line-height: 1.45;
	color: rgba(0, 0, 0, 0.62);
}

.wn-myaccount-dashboard__card:hover {
	border-color: rgba(234, 76, 36, 0.35);
	box-shadow: 0 8px 24px rgba(234, 76, 36, 0.1);
}

.wn-myaccount-dashboard__card--accent {
	border-color: rgba(234, 76, 36, 0.22);
	background: linear-gradient(180deg, var(--wn-brand-soft) 0%, #fff 100%);
}

@media (min-width: 768px) {
	.wn-myaccount .styler-myaccount-page-content-inner > .row {
		align-items: flex-start;
	}
}

/* Override parent theme animated underline on custom components and fix link colours */
.wn-myaccount .styler-myaccount-content a.wn-nerd-herd__btn,
.wn-myaccount .styler-myaccount-content a.wn-myaccount-dashboard__card {
	text-decoration: none !important;
}

.wn-myaccount .styler-myaccount-content a.wn-nerd-herd__btn::after,
.wn-myaccount .styler-myaccount-content a.wn-myaccount-dashboard__card::after,
.wn-myaccount .styler-myaccount-content .wn-nerd-herd a.wn-nerd-herd__btn::after,
.wn-myaccount .styler-myaccount-content .wn-nerd-herd--account a.wn-nerd-herd__btn::after {
	display: none !important;
	content: none !important;
}

.wn-myaccount .styler-myaccount-content a.wn-nerd-herd__btn {
	position: static;
	display: inline-flex;
}

.wn-myaccount .styler-myaccount-content .wn-nerd-herd a.wn-nerd-herd__text-link,
.wn-myaccount .styler-myaccount-content .wn-nerd-herd--account a.wn-nerd-herd__text-link,
.wn-myaccount .styler-myaccount-content a.wn-nerd-herd__text-link {
	position: static;
	display: inline;
	color: var(--wn-brand) !important;
	font-weight: 600;
	text-decoration: underline !important;
	text-underline-offset: 0.15em;
}

.wn-myaccount .styler-myaccount-content .wn-nerd-herd a.wn-nerd-herd__text-link::after,
.wn-myaccount .styler-myaccount-content .wn-nerd-herd--account a.wn-nerd-herd__text-link::after {
	display: none !important;
	content: none !important;
}

.wn-myaccount .styler-myaccount-content .wn-nerd-herd a.wn-nerd-herd__text-link:hover,
.wn-myaccount .styler-myaccount-content .wn-nerd-herd--account a.wn-nerd-herd__text-link:hover {
	color: var(--wn-brand-dark) !important;
}

/* Standard in-content links (orders, addresses, BIS, etc.) */
.wn-myaccount .styler-myaccount-content a:not(.button):not(.woocommerce-Button):not(.wn-nerd-herd__btn):not(.wn-myaccount-dashboard__card):not(.wn-btn) {
	position: static;
	display: inline;
	color: var(--wn-brand) !important;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.wn-myaccount .styler-myaccount-content a:not(.button):not(.woocommerce-Button):not(.wn-nerd-herd__btn):not(.wn-myaccount-dashboard__card):not(.wn-btn)::after {
	display: none !important;
	content: none !important;
}

.wn-myaccount .styler-myaccount-content a:not(.button):not(.woocommerce-Button):not(.wn-nerd-herd__btn):not(.wn-myaccount-dashboard__card):not(.wn-btn):hover {
	color: var(--wn-brand-dark) !important;
}

/* Keep deck-builder buttons from picking up Styler link underlines */
.wn-myaccount .styler-myaccount-content a.wn-btn::after,
.wn-myaccount .styler-myaccount-content button.wn-btn::after {
	display: none !important;
	content: none !important;
}

.wn-myaccount .styler-myaccount-content a.wn-btn {
	position: static;
	text-decoration: none !important;
}
