/**
 * My Account dashboard — sidebar + cards (all structures).
 */

.novashop-storefront.ns-account-dashboard .ns-account__head {
	display: none;
}

.novashop-storefront .ns-acc {
	display: grid;
	grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
	gap: 0;
	align-items: stretch;
	min-height: 28rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #fff;
	overflow: hidden;
}

.novashop-storefront .ns-acc-sidebar,
.novashop-storefront .ns-account-nav.ns-acc-sidebar {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 1.75rem 1.35rem 2rem;
	background: #f3f3f3;
	border-right: 1px solid rgba(0, 0, 0, 0.06);
	box-sizing: border-box;
}

.novashop-storefront .ns-acc__content,
.novashop-storefront .ns-account-content.ns-acc__content {
	float: none !important;
	width: 100% !important;
	min-width: 0;
	padding: 2rem 2.25rem 2.5rem;
	background: #fff;
	box-sizing: border-box;
}

/* Profile */
.ns-acc-profile {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	margin: 0 0 1.75rem;
	padding: 0 0 1.35rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ns-acc-profile__avatar {
	position: relative;
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
}

.ns-acc-profile__img,
.ns-acc-profile__avatar img {
	width: 72px !important;
	height: 72px !important;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.ns-acc-profile__camera {
	position: absolute;
	right: -6px;
	bottom: -6px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ns-color-primary, #2bbbad);
	color: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
	text-decoration: none;
}

.ns-acc-profile__camera svg {
	width: 14px;
	height: 14px;
}

.ns-acc-profile__meta {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
	padding-top: 0.15rem;
}

.ns-acc-profile__name {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--ns-color-text, #222);
	line-height: 1.25;
	word-break: break-word;
}

.ns-acc-profile__email {
	font-size: 0.78rem;
	color: #888;
	word-break: break-all;
}

.ns-acc-profile__logout {
	margin-top: 0.35rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--ns-color-primary, #2bbbad);
	text-decoration: none;
}

.ns-acc-profile__logout:hover {
	text-decoration: underline;
}

/* Menu */
.ns-acc-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.ns-acc-menu__item {
	margin: 0;
	padding: 0;
}

.ns-acc-menu__item > a,
.ns-acc-menu__toggle {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	padding: 0.7rem 0.35rem;
	border: 0;
	background: transparent;
	color: var(--ns-color-text, #222);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 500;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
}

.ns-acc-menu__icon {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	color: inherit;
	display: inline-flex;
}

.ns-acc-menu__icon svg {
	width: 22px;
	height: 22px;
}

.ns-acc-menu__label {
	flex: 1 1 auto;
	min-width: 0;
}

.ns-acc-menu__chevron {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	opacity: 0.65;
	transition: transform 0.2s ease;
}

.ns-acc-menu__chevron svg {
	width: 16px;
	height: 16px;
}

.ns-acc-menu__item.is-open .ns-acc-menu__chevron {
	transform: rotate(180deg);
}

.ns-acc-menu__item.is-active > a,
.ns-acc-menu__item.is-active > .ns-acc-menu__toggle,
.ns-acc-menu__item > a:hover,
.ns-acc-menu__toggle:hover {
	color: var(--ns-color-primary, #2bbbad);
}

.ns-acc-menu__sub {
	list-style: none;
	margin: 0 0 0.35rem 2.35rem;
	padding: 0;
}

.ns-acc-menu__sub[hidden] {
	display: none;
}

.ns-acc-menu__subitem a {
	display: block;
	padding: 0.4rem 0;
	font-size: 0.88rem;
	color: #555;
	text-decoration: none;
}

.ns-acc-menu__subitem.is-active a,
.ns-acc-menu__subitem a:hover {
	color: var(--ns-color-primary, #2bbbad);
}

/* Dashboard */
.ns-acc-dash__title {
	margin: 0 0 0.85rem;
	font-size: clamp(1.75rem, 3vw, 2.35rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--ns-color-text, #2a2a2a);
	font-family: inherit;
}

.ns-acc-dash__intro {
	margin: 0 0 2rem;
	max-width: 46rem;
	font-size: 0.98rem;
	line-height: 1.65;
	color: #555;
}

.ns-acc-dash__intro a {
	color: var(--ns-color-primary, #2bbbad);
	text-decoration: underline;
	text-underline-offset: 0.15em;
	font-weight: 600;
}

.ns-acc-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.15rem;
}

.ns-acc-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	min-height: 11.5rem;
	padding: 1.5rem 1rem;
	border: 1px solid #dcdcdc;
	background: #fff;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.ns-acc-card:hover {
	border-color: var(--ns-color-primary, #2bbbad);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.ns-acc-card__icon-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ns-acc-card__icon {
	width: 56px;
	height: 56px;
	color: #1a1a1a;
	display: inline-flex;
}

.ns-acc-card__icon svg {
	width: 56px;
	height: 56px;
}

.ns-acc-card__badge {
	position: absolute;
	top: -8px;
	right: -14px;
	min-width: 1.55rem;
	height: 1.55rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: var(--ns-color-primary, #2bbbad);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.55rem;
	text-align: center;
	box-sizing: border-box;
}

.ns-acc-card__label {
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ns-color-text, #222);
}

/* Endpoint content polish */
.novashop-storefront .ns-acc__content > h2,
.novashop-storefront .ns-acc__content .woocommerce-Address-title h3,
.novashop-storefront .ns-acc__content .woocommerce-order-details__title {
	margin: 0 0 1.15rem;
	font-size: 1.45rem;
	font-weight: 700;
}

.novashop-storefront .ns-acc__content table.shop_table {
	width: 100%;
	border-collapse: collapse;
}

.novashop-storefront .ns-acc__content table.shop_table th,
.novashop-storefront .ns-acc__content table.shop_table td {
	padding: 0.85rem 0.55rem;
	border-bottom: 1px solid #ececec;
	text-align: left;
}

.novashop-storefront .ns-acc__content .button,
.novashop-storefront .ns-acc__content button.button,
.novashop-storefront .ns-acc__content .woocommerce-Button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: 0.55rem 1.1rem;
	background: var(--ns-color-primary, #2bbbad) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 2px !important;
	text-decoration: none !important;
	font-weight: 600;
	cursor: pointer;
}

.novashop-storefront .ns-acc__content .woocommerce-Addresses,
.novashop-storefront .ns-acc__content .col2-set.addresses {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}

.novashop-storefront .ns-acc__content .woocommerce-Address,
.novashop-storefront .ns-acc__content .col-1,
.novashop-storefront .ns-acc__content .col-2 {
	float: none !important;
	width: 100% !important;
}

.novashop-storefront .ns-acc__content input.input-text,
.novashop-storefront .ns-acc__content .woocommerce-Input,
.novashop-storefront .ns-acc__content select,
.novashop-storefront .ns-acc__content textarea {
	width: 100%;
	min-height: 2.65rem;
	padding: 0.5rem 0.8rem;
	border: 1px solid #ccc;
	border-radius: 2px;
	box-sizing: border-box;
	font: inherit;
}

.novashop-storefront .ns-acc__content .novashop-gls-tracking {
	margin-top: 1.5rem;
	padding: 1.15rem 1.25rem;
	border: 1px solid #e5e5e5;
	background: #f8f8f8;
}

@media (max-width: 980px) {
	.novashop-storefront .ns-acc {
		grid-template-columns: 1fr;
	}

	.novashop-storefront .ns-acc-sidebar {
		border-right: 0;
		border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	}

	.ns-acc-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.novashop-storefront .ns-acc__content .woocommerce-Addresses,
	.novashop-storefront .ns-acc__content .col2-set.addresses {
		grid-template-columns: 1fr !important;
	}
}

@media (max-width: 560px) {
	.novashop-storefront .ns-acc__content {
		padding: 1.35rem 1.1rem 1.75rem;
	}

	.ns-acc-cards {
		grid-template-columns: 1fr;
	}

	.ns-acc-card {
		min-height: 9.5rem;
	}
}
