.account-menu {
	position: relative;
}

.account-menu summary {
	list-style: none;
}

.account-menu summary::-webkit-details-marker {
	display: none;
}

.account-menu .nav-cta {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-width: 142px;
	border: 0;
	cursor: pointer;
}

.account-menu-name {
	max-width: 118px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.account-menu-chevron {
	color: var(--cyan, #4fe0d1);
	font-size: 18px;
	line-height: 1;
	transition: transform .18s ease;
}

.account-menu[open] .account-menu-chevron {
	transform: rotate(180deg);
}

.account-menu-panel {
	position: absolute;
	top: calc(100% + 10px);
	inset-inline-end: 0;
	z-index: 70;
	min-width: 180px;
	padding: 7px;
	background: #fff;
	border: 1px solid #d9d8d3;
	box-shadow: 0 18px 38px rgba(18, 21, 31, .15);
}

.account-menu-panel a {
	display: flex;
	min-height: 44px;
	padding: 11px 13px;
	align-items: center;
	color: #12151f;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

.account-menu-panel a:hover,
.account-menu-panel a:focus-visible {
	background: #f2f8f8;
	outline: none;
}

.account-menu-panel .account-menu-logout {
	color: #a72a3b;
	border-top: 1px solid #ecebe7;
}

.aipak-dashboard-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: 28px 32px;
	background: #fff;
	border: 1px solid #deddd8;
}

.aipak-dashboard-heading {
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
}

.aipak-dashboard-mark {
	display: grid;
	flex: 0 0 52px;
	place-items: center;
	width: 52px;
	height: 52px;
	margin: 0;
	background: #12151f;
	color: #fff;
	transform: rotate(-7deg);
	font: 700 17px 'DM Mono', monospace;
}

.aipak-dashboard-header h2 {
	margin: 7px 0 0;
	color: #12151f;
	font-size: clamp(23px, 3vw, 34px);
	line-height: 1.25;
}

.aipak-dashboard-intro {
	max-width: 360px;
	margin: 0;
	color: #6f7380;
	font-size: 12px;
	line-height: 2;
}

.aipak-dashboard-tabs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	direction: rtl;
	gap: 0;
	margin-top: 14px;
	border: 1px solid #d9d8d3;
	background: #fff;
}

.aipak-dashboard-tabs button {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 58px;
	padding: 12px 18px;
	border: 0;
	border-inline-start: 1px solid #e6e5e1;
	background: #fff;
	color: #747784;
	cursor: pointer;
	font: 700 13px Vazirmatn, Manrope, sans-serif;
	text-align: start;
	transition: color .18s ease, background .18s ease;
}

.aipak-dashboard-tabs button:first-child {
	border-inline-start: 0;
}

.aipak-dashboard-tabs button:hover,
.aipak-dashboard-tabs button:focus-visible {
	background: #f7fbfb;
	color: #12151f;
	outline: none;
}

.aipak-dashboard-tabs button.is-active {
	background: #12151f;
	color: #fff;
}

.aipak-dashboard-panels {
	margin-top: 14px;
}

.aipak-dashboard-panel[hidden] {
	display: none !important;
}

.aipak-dashboard-panel > .aipak-voucher-access--dashboard,
.aipak-dashboard-panel > .aipak-bank-panel,
.aipak-dashboard-panel > .aipak-voucher-history {
	margin-top: 0;
}

/* Keep dashboard panels inside the available mobile content width. */
.aipak-auth,
.aipak-dashboard-tabs,
.aipak-dashboard-panels,
.aipak-dashboard-panel,
.aipak-dashboard-panel > *,
.aipak-dashboard-panel .aipak-voucher-access,
.aipak-dashboard-panel .aipak-voucher-shell,
.aipak-dashboard-panel .aipak-voucher-form,
.aipak-dashboard-panel .aipak-voucher-ready,
.aipak-dashboard-panel .aipak-bank-panel,
.aipak-dashboard-panel .aipak-voucher-history {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.aipak-dashboard-panel {
	overflow-x: clip;
}

.aipak-dashboard-panel .aipak-voucher-form * {
	max-width: 100%;
	box-sizing: border-box;
}

.aipak-bank-panel .aipak-bank-add {
	margin: 0 0 24px;
	padding: 0 0 22px;
	border-top: 0;
	border-bottom: 1px solid #e1edf7;
}

.aipak-bank-panel .aipak-bank-existing {
	margin-top: 0;
}

.aipak-bank-panel .aipak-bank-existing > h3 {
	margin: 0 0 14px;
	color: #103c6d;
	font-size: 18px;
}

.lang-en .account-menu-panel {
	direction: ltr;
	inset-inline-end: 0;
	inset-inline-start: auto;
}

.lang-en .aipak-dashboard-header,
.lang-en .aipak-dashboard-tabs button {
	text-align: left;
}

.lang-en .aipak-dashboard-tabs {
	direction: ltr;
}

@media (max-width: 700px) {

	.account-menu .nav-cta {
		min-width: 116px;
		padding-inline: 12px;
	}

	.account-menu-name {
		max-width: 82px;
	}

	.aipak-dashboard-header {
		align-items: flex-start;
		flex-direction: column;
		padding: 24px 20px;
	}

	.aipak-dashboard-intro {
		max-width: none;
	}

}

@media (max-width: 520px) {
	.aipak-dashboard-tabs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.aipak-dashboard-tabs button {
		justify-content: center;
		min-height: 52px;
		padding: 10px 7px;
		font-size: 11px;
		line-height: 1.5;
		white-space: normal;
	}

}

html,
body,
.site-shell {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

html,
body {
	overflow-x: clip;
}

.aipak-dashboard-tabs {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	overflow: hidden;
}

.aipak-dashboard-tabs button {
	min-width: 0;
	overflow-wrap: anywhere;
}
