/* ------------------------------------------------------------------ */
/* My Account                                                          */
/* ------------------------------------------------------------------ */

.eq-account {
	padding-bottom: 60px;
}

.eq-account__container {
	margin: 0 auto;
}

.eq-account__layout {
	display: grid;
	grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
	gap: 30px;
	align-items: start;
}

.eq-account__nav {
	overflow: hidden;
	border: 1px solid var(--eq-border);
	border-radius: 16px;
	background: var(--eq-white);
	box-shadow: 0 6px 15px 0 rgba(8, 129, 120, 0.08);
}

.eq-account__nav-list {
	list-style: none;
	margin: 0;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.eq-account__nav-list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.eq-account__nav-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 12px;
	color: var(--eq-text);
	font-family: var(--eq-font);
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.eq-account__nav-link:hover,
.eq-account__nav-link:focus {
	background: #f4f6f8;
	color: var(--eq-text);
	text-decoration: none;
}

.eq-account__nav-link.is-active {
	background: var(--eq-teal);
	color: var(--eq-white);
}

.eq-account__nav-icon {
	display: inline-flex;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.eq-account__nav-icon img {
	display: block;
	width: 24px;
	height: 24px;
	object-fit: contain;
	filter: brightness(0) saturate(100%);
	opacity: 0.85;
}

.eq-account__nav-link.is-active .eq-account__nav-icon img {
	filter: brightness(0) invert(1);
	opacity: 1;
}

.eq-account__title {
	margin: 0 0 20px;
	font-family: var(--eq-font);
	font-size: 28px;
	font-weight: 700;
	line-height: 36px;
	color: var(--eq-text);
}

.eq-account__intro {
	margin: 0;
	max-width: 720px;
	font-family: var(--eq-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 26px;
	color: var(--eq-text-muted);
}

.eq-account__link {
	color: var(--eq-teal);
	font-weight: 600;
	text-decoration: none;
}

.eq-account__link:hover {
	text-decoration: underline;
}

.eq-account__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 28px;
	border-radius: 100px;
	border: 1px solid transparent;
	font-family: var(--eq-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 24px;
	text-decoration: none;
	cursor: pointer;
}

.eq-account__btn--primary,
.eq-account .button.eq-account__btn--primary {
	border: 0 !important;
	background: var(--eq-teal) !important;
	box-shadow: 0 6px 15px 0 var(--eq-teal-shadow);
	color: var(--eq-white) !important;
}

.eq-account__btn--ghost {
	border-color: var(--eq-border);
	background: var(--eq-white);
	color: var(--eq-text);
}

.eq-account__btn--ghost:hover {
	border-color: var(--eq-teal);
	color: var(--eq-teal);
	text-decoration: none;
}

.eq-account__btn--sm {
	min-height: 36px;
	padding: 6px 14px;
	font-size: 14px;
}

.eq-account__order-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}

.eq-account__order-filter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 18px;
	border-radius: 100px;
	border: 1px solid var(--eq-border);
	background: var(--eq-white);
	color: var(--eq-text-muted);
	font-family: var(--eq-font);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.eq-account__order-filter.is-active {
	border-color: transparent;
	background: var(--eq-teal-light);
	color: var(--eq-teal);
}

.eq-account__orders {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.eq-account__order-card {
	overflow: hidden;
	border: 1px solid var(--eq-border);
	border-radius: 20px;
	background: var(--eq-white);
}

.eq-account__order-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px;
	border-bottom: 1px solid var(--eq-border);
	flex-wrap: wrap;
}

.eq-account__order-id {
	margin: 0;
	font-family: var(--eq-font);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--eq-text);
}

.eq-account__order-badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 15px;
	border-radius: 20px;
	font-size: 16px;
	line-height: 24px;
	white-space: nowrap;
}

.eq-account__order-badge--processing {
	background: rgba(255, 193, 7, 0.24);
	color: #b78103;
}

.eq-account__order-badge--shipping {
	background: rgba(26, 180, 186, 0.18);
	color: #088178;
}

.eq-account__order-badge--completed {
	background: rgba(78, 142, 64, 0.18);
	color: #4e8e40;
}

.eq-account__order-badge--cancelled {
	background: rgba(255, 7, 11, 0.24);
	color: #ca4547;
}

.eq-account__order-meta {
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding: 20px;
	border-bottom: 1px solid var(--eq-border);
}

.eq-account__order-row {
	display: grid;
	grid-template-columns: 24px 1fr 1fr;
	gap: 15px;
	align-items: center;
}

.eq-account__order-row img {
	display: block;
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.eq-account__order-label {
	font-size: 16px;
	line-height: 24px;
	color: var(--eq-text-muted);
}

.eq-account__order-value {
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	color: var(--eq-text-muted);
	text-align: right;
}

.eq-account__order-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px;
	flex-wrap: wrap;
}

.eq-account__addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.eq-account__address-card {
	overflow: hidden;
	border: 1px solid var(--eq-border);
	border-radius: 16px;
	background: var(--eq-white);
}

.eq-account__address-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--eq-border);
}

.eq-account__address-title-wrap {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.eq-account__address-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 26px;
	color: var(--eq-text);
}

.eq-account__address-body {
	display: block;
	padding: 20px;
	font-style: normal;
	font-size: 15px;
	line-height: 24px;
	color: var(--eq-text-muted);
}

.eq-account__card {
	overflow: hidden;
	margin-bottom: 24px;
	border: 1px solid var(--eq-border);
	border-radius: 16px;
	background: var(--eq-white);
}

.eq-account__card-head {
	padding: 16px 24px;
	background: #f4f6f8;
}

.eq-account__card-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 30px;
	color: var(--eq-text);
}

.eq-account__card-body {
	padding: 24px;
}

.eq-account__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	margin: 0 auto 24px;
	border-radius: 50%;
	background: #f4f6f8;
}

.eq-account__avatar img {
	display: block;
	width: 28px;
	height: 28px;
	opacity: 0.55;
}

.eq-account__fields {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.eq-account__fields--stack {
	flex-direction: column;
}

.eq-account__fields .form-row,
.eq-account__field {
	margin: 0;
	padding: 0;
	float: none;
	width: 100%;
}

.eq-account__fields .form-row-first,
.eq-account__fields .form-row-last {
	width: calc(50% - 8px);
}

.eq-account__input,
.eq-account .input-text,
.eq-account select,
.eq-account textarea {
	width: 100% !important;
	min-height: 52px;
	padding: 14px 16px !important;
	border: 1px solid var(--eq-border) !important;
	border-radius: 100px !important;
	background: var(--eq-white) !important;
	box-shadow: none !important;
	font-family: var(--eq-font);
	font-size: 16px;
	line-height: 18px;
	color: var(--eq-text);
}

.eq-account textarea {
	border-radius: 16px !important;
	min-height: 100px;
}

.eq-account__form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 24px;
	flex-wrap: wrap;
}

.eq-account__empty {
	margin: 0 0 16px;
	color: var(--eq-text-muted);
}

.eq-account-logout {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.eq-account-logout[hidden] {
	display: none !important;
}

.eq-account-logout__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(145, 158, 171, 0.24);
	backdrop-filter: blur(10px);
}

.eq-account-logout__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 413px;
	padding: 40px 20px 20px;
	border: 1px solid var(--eq-border);
	border-radius: 20px;
	background: var(--eq-white);
	box-shadow: 0 12px 40px rgba(33, 37, 41, 0.12);
	text-align: center;
}

.eq-account-logout__title {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--eq-text);
}

.eq-account-logout__text {
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 1.4;
	color: var(--eq-text-muted);
}

.eq-account-logout__actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

body.eq-account-logout-open {
	overflow: hidden;
}

.eq-account-page .woocommerce-MyAccount-navigation,
.eq-account-page .woocommerce-MyAccount-content {
	width: auto;
	float: none;
}

@media (max-width: 991.98px) {
	.eq-account__layout {
		grid-template-columns: 1fr;
	}

	.eq-account__addresses {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767.98px) {
	.eq-account__container {
		padding-left: 16px;
		padding-right: 16px;
	}

	.eq-account__fields .form-row-first,
	.eq-account__fields .form-row-last {
		width: 100%;
	}

	.eq-account__order-row {
		grid-template-columns: 24px 1fr;
	}

	.eq-account__order-value {
		grid-column: 2;
		text-align: left;
	}

	.eq-account__order-actions {
		flex-direction: column;
		align-items: stretch;
	}
}
