/**
 * Account dashboard styles.
 *
 * Location: /assets/css/frontend/account/dashboard.css
 *
 * @package SunTechPortal
 */

.stp-account-dashboard-hero {
	display: flex;
	align-items: center;
	gap: 24px;
}

.stp-account-dashboard-hero__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 92px;
	width: 92px;
	height: 92px;
	margin-right: 4px;
	overflow: hidden;
	color: #ffffff;
	background: var(--stp-account-primary);
	border: 4px solid #ffffff;
	border-radius: 999px;
	font-size: 30px;
	font-weight: 900;
	line-height: 1;
}

.stp-account-dashboard-hero__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.stp-account-dashboard-hero__content {
	min-width: 0;
}

.stp-account-cards,
.stp-account-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 18px;
}

.stp-account-card,
.stp-account-dashboard-card {
	display: grid;
	align-content: start;
	gap: 8px;
	min-height: 116px;
	padding: 18px;
	color: var(--stp-account-text);
	text-decoration: none;
	background: #ffffff;
	border: 1px solid var(--stp-account-border);
	border-radius: 20px;
	box-shadow: none;
	transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.stp-account-card span,
.stp-account-dashboard-card small {
	color: var(--stp-account-muted);
	font-weight: 800;
}

.stp-account-card strong,
.stp-account-dashboard-card strong {
	font-size: 26px;
	line-height: 1;
}

.stp-account-card:hover,
.stp-account-card:focus,
.stp-account-dashboard-card:hover,
.stp-account-dashboard-card:focus {
	color: var(--stp-account-text);
	background: #fff7ed;
	border-color: var(--stp-account-primary);
	outline: none;
}

.stp-account-dashboard-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	color: var(--stp-account-primary);
	background: #fff7ed;
	border-radius: 16px;
}

.stp-account-dashboard-card__icon .dashicons {
	width: auto;
	height: auto;
	font-size: 24px;
	line-height: 1;
}

.stp-account-dashboard-card__body {
	display: grid;
	gap: 7px;
	min-width: 0;
}

.stp-account-dashboard-card__body em {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	color: var(--stp-account-primary);
	font-size: 13px;
	font-style: normal;
	font-weight: 850;
	line-height: 1.2;
}

.stp-account-dashboard-card:hover .stp-account-dashboard-card__body em,
.stp-account-dashboard-card:focus .stp-account-dashboard-card__body em {
	color: #d94d00;
}

.stp-account-dashboard-card__body em .dashicons {
	width: auto;
	height: auto;
	font-size: 16px;
	line-height: 1;
}

.stp-account-dashboard-panel,
.stp-account-dashboard-action,
.stp-account-dashboard-order,
.stp-account-dashboard-insight {
	box-shadow: none;
}

.stp-account-dashboard-action {
	transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.stp-account-dashboard-action:hover,
.stp-account-dashboard-action:focus {
	background: #fff7ed;
	border-color: var(--stp-account-primary);
	outline: none;
}

.stp-account-dashboard-panel__head a {
	transition: color .18s ease;
}

.stp-account-dashboard-panel__head a:hover,
.stp-account-dashboard-panel__head a:focus {
	color: #d94d00;
	outline: none;
}

@media (max-width: 1100px) {
	.stp-account-dashboard-hero {
		gap: 20px;
	}

	.stp-account-dashboard-hero__avatar {
		flex-basis: 86px;
		width: 86px;
		height: 86px;
		font-size: 28px;
	}

	.stp-account-cards,
	.stp-account-dashboard-grid {
		gap: 12px;
	}
}

@media (max-width: 960px) {
	.stp-account-dashboard-hero {
		gap: 18px;
	}

	.stp-account-dashboard-hero__avatar {
		flex-basis: 80px;
		width: 80px;
		height: 80px;
		margin-right: 2px;
		font-size: 26px;
	}

	.stp-account-cards,
	.stp-account-dashboard-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 10px;
	}

	.stp-account-card,
	.stp-account-dashboard-card {
		min-height: 104px;
		padding: 13px 11px;
		border-radius: 18px;
	}

	.stp-account-dashboard-card__icon {
		width: 40px;
		height: 40px;
		border-radius: 14px;
	}

	.stp-account-dashboard-card__icon .dashicons {
		font-size: 20px;
	}

	.stp-account-card strong,
	.stp-account-dashboard-card strong {
		font-size: 22px;
	}

	.stp-account-dashboard-card__body em {
		font-size: 12px;
	}
}

@media (max-width: 700px) {
	.stp-account-dashboard-hero {
		align-items: flex-start;
		gap: 14px;
	}

	.stp-account-dashboard-hero__avatar {
		flex-basis: 68px;
		width: 68px;
		height: 68px;
		margin-right: 4px;
		border-width: 3px;
		font-size: 22px;
	}

	.stp-account-dashboard-hero__content {
		padding-left: 2px;
	}

	.stp-account-cards,
	.stp-account-dashboard-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 8px;
	}

	.stp-account-card,
	.stp-account-dashboard-card {
		min-height: 92px;
		padding: 10px 7px;
		border-radius: 15px;
	}

	.stp-account-dashboard-card__icon {
		width: 32px;
		height: 32px;
		border-radius: 11px;
	}

	.stp-account-dashboard-card__icon .dashicons {
		font-size: 17px;
	}

	.stp-account-dashboard-card__body {
		gap: 4px;
	}

	.stp-account-card strong,
	.stp-account-dashboard-card strong {
		font-size: 19px;
	}

	.stp-account-card span,
	.stp-account-dashboard-card small {
		font-size: 9.5px;
		line-height: 1.2;
	}

	.stp-account-dashboard-card__body em {
		gap: 3px;
		margin-top: 4px;
		font-size: 9.5px;
		line-height: 1.15;
	}

	.stp-account-dashboard-card__body em .dashicons {
		font-size: 11px;
	}
}

@media (max-width: 430px) {
	.stp-account-dashboard-hero {
		gap: 12px;
	}

	.stp-account-dashboard-hero__avatar {
		flex-basis: 62px;
		width: 62px;
		height: 62px;
		margin-right: 3px;
		font-size: 20px;
	}

	.stp-account-cards,
	.stp-account-dashboard-grid {
		gap: 6px;
	}

	.stp-account-card,
	.stp-account-dashboard-card {
		min-height: 86px;
		padding: 9px 5px;
		border-radius: 13px;
	}

	.stp-account-dashboard-card__icon {
		width: 28px;
		height: 28px;
		border-radius: 10px;
	}

	.stp-account-dashboard-card__icon .dashicons {
		font-size: 15px;
	}

	.stp-account-card strong,
	.stp-account-dashboard-card strong {
		font-size: 17px;
	}

	.stp-account-card span,
	.stp-account-dashboard-card small {
		font-size: 8.8px;
	}

	.stp-account-dashboard-card__body em {
		font-size: 8.5px;
	}
}

@media (max-width: 360px) {
	.stp-account-dashboard-hero__avatar {
		flex-basis: 56px;
		width: 56px;
		height: 56px;
		font-size: 18px;
	}

	.stp-account-cards,
	.stp-account-dashboard-grid {
		gap: 5px;
	}

	.stp-account-card,
	.stp-account-dashboard-card {
		min-height: 80px;
		padding: 8px 4px;
		border-radius: 12px;
	}

	.stp-account-dashboard-card__icon {
		width: 26px;
		height: 26px;
	}

	.stp-account-card strong,
	.stp-account-dashboard-card strong {
		font-size: 16px;
	}

	.stp-account-dashboard-card__body em {
		font-size: 8px;
	}
}