.account-page {
	@include pageInner;
	display: flex;
	flex-direction: column;
	padding: 0;
	background-color: $bg-accent;

	@media (max-width: $tablet) {
		padding: 0;
	}
}

.account-page__wrapper {
	display: flex;
	flex-grow: 1;
}

.account-page__menu {
	margin-bottom: -30px;
	width: 320px;
	background-color: $bg-main;
	overflow: hidden;

	@media (max-width: $desktopMin) {
		margin-left: -10px;
	}

	@media (max-width: $tablet) {
		display: none;
	}
}

.account-page__menu-inner {
	box-sizing: border-box;
	padding: 23px 43px 50px 50px;
	width: calc(100% + 40px);
	max-height: calc(100vh - 90px);
	overflow-y: scroll;

	@media (max-width: $desktopMin) {
		padding-right: 20px;
		width: 100%;
		overflow-y: auto;
	}
}

.account-page__content {
	flex-grow: 1;
	max-width: calc(100% - 320px);
	overflow: hidden;

	@media (max-width: $desktopMin) {
		max-width: calc(100% - 310px);
	}

	@media (max-width: $tablet) {
		max-width: 100%;
	}
}

.account-page__content-inner {
	box-sizing: border-box;
	padding: 30px 55px 30px 30px;
	width: calc(100% + 40px);
	max-height: calc(100vh - 120px);
	overflow-y: scroll;

	@media (max-width: $desktopMin) {
		padding-right: 30px;
		width: 100%;
		overflow-y: auto;
		overflow-x: hidden;
	}

	@media (max-width: $tablet) {
		padding: 0;
		max-height: none;
	}
}

.account-page__cards {
	padding-top: 10px;

	@media (max-width: $tablet) {
		padding: 30px;
	}

	@media (max-width: $mobile) {
		padding: 23px 20px;
	}
}

.account-page__title {
	@include headline;
	margin: 0 0 10px;
}

.account-page__no-cards {
	display: flex;
	align-items: flex-start;
	margin-top: 37px;
	max-width: 940px;

	@media (max-width: $mobile) {
		flex-direction: column;
		margin-top: 0;
		max-width: 100%;
	}
}

.account-page__no-cards-info {
	display: flex;
	align-items: flex-start;
}

.account-page__no-cards-item {
	flex: none;
	margin-right: 38px;
	margin-bottom: 30px;

	@media (max-width: $desktopMin) {
		margin-right: 20px;
	}

	@media (max-width: $mobile) {
		display: none;
	}
}

.account-page__no-cards-text {
	@include mainBodyText;
	flex: none;
	padding-top: 25px;
	width: 255px;

	@media (max-width: $desktopMin) {
		width: 200px;
	}

	@media (max-width: $mobile) {
		padding-top: 0;
		width: auto;
		max-width: 100%;
	}
}

.account-page__no-cards-text p {
	margin: 0 0 23px;

	@media (max-width: $mobile) {
		margin-bottom: 10px;
	}
}

.account-page__no-cards-image {
	transform: translateY(-11%);
	margin: 0 0 -103px auto;
	max-width: calc(100% - 453px);

	@media (max-width: $desktopMin) {
		max-width: calc(100% - 385px);
	}

	@media (max-width: $mobile) {
		transform: none;
		margin: 0 0 14px;
		width: 100%;
		max-width: 100%;
	}
}

.account-page__no-cards-image img {
	display: block;
	width: 100%;
	height: auto;

	@media (max-width: $mobile) {
		margin: 0 auto;
		width: 88%;
	}
}

.account-page__nav {
	@media (max-width: $mobile) {
		margin: 0 -10px;
		width: calc(100% + 20px);
	}
}
