/* DONE - MINIMISED */

.fees {
	margin: 0;
	position: relative;
	width: 100%;
}

.fees-list {
	display: flex;
	flex-direction: column;
}

.fees-item {
	display: flex;
	flex-direction: column;
	margin-bottom: 32px;
	position: relative;
	text-align: left;
}

.fees-item-header {
	position: relative;
}

.fees-item-title {
	margin: 0 0 16px;
	padding: 0;
	position: relative;
}

.fees-item-content {
	position: relative;
}

.fees-item-table {
	background-color: var(--white-color);
	border-collapse: collapse;
	border-color: var(--light-grey-color);
	border-spacing: 0;
	border-style: solid;
	border-width: 0;
	/* No need to swap with var based shadow since this is the only place in use */
	box-shadow: 0 -16px 32px rgba(0, 0, 0, 0.1);
	margin: 0 auto 16px;
	max-width: 768px;
	min-width: 360px;
	width: 100%;
}

.fees-item-table th,
.fees-item-table td {
	border-spacing: 0;
}

.fees-item-table th:nth-child(1),
.fees-item-table td:nth-child(1) {
	padding-left: 32px;
}

.fees-item-table th {
	background-color: var(--lighter-grey-color);
	border-color: var(--light-grey-color);
	border-style: solid;
	border-width: 2px 0;
	font-size: 14px;
	letter-spacing: 1px;
	opacity: 0.5;
	padding-top: 24px;
	text-transform: uppercase;
}

.fees-item-table th:nth-child(2) {
	padding-right: 16px;
	text-align: center;
}

.fees-item-table td {
	font-size: 20px;
	line-height: 1.2;
}

.fees-item-table td:nth-child(1) {
	font-size: 24px;
	font-family: "Avenir-Heavy", sans-serif;
}

.fees-item-table td span {
	display: block;
	padding: 12px 16px;
	width: 100%;
	width: auto;
}

.fees-item-table td:nth-child(1) span { 
	margin-left: -16px;
}

.fees-item-table td:nth-child(2) span {
	font-weight: bold;
	margin-right: 16px;
	text-align: center;
}

.fees-item-table tbody tr:nth-child(2n) span {
	background-color: var(--lighter-grey-color);
	min-height: 56px
}

.fees-item-table tbody tr:nth-child(2n) td:nth-child(1) span {
	border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.fees-item-table tbody tr:nth-child(2n) td:nth-child(2) span {
	border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Conditional rules for fees table */
.fees-item-has-table {
	flex-direction: row;
	flex-wrap: wrap;
	padding: 0;
}

.fees-item-has-table .fees-item-header {
	flex: none;
	max-width: 560px;
	padding-right: 32px;
	width: 100%;
	z-index: 1;
}

.fees-item-has-table .fees-item-title {
	font-size: 40px;
	margin: 0;
	padding: 48px 0;
}

.fees-item-has-table .fees-item-title::before {
	background-color: var(--lighter-grey-color);
	content: "";
	display: block;
	height: 100%;
	left: -50%;
	position: absolute;
	top: 0;
	width: 1000%;
	z-index: -1;
}

.fees-item-has-table .fees-item-table {
	border-radius: var(--xl-border-radius);
	flex: 1;
	margin-top: 36px;
	max-width: none;
	overflow: hidden;
	z-index: 1;
}

.fees-item-has-table .fees-item-table th {
	background-color: var(--white-color);
	border-width: 0;
}

/* Responsiveness */
@media (max-width: 1023px) {
	.fees-item {
		padding-left: 16px;
		padding-right: 16px;
	}
}

@media (max-width: 991px) {
	.fees-item-has-table {
		flex-direction: column;
	}

	.fees-item-has-table .fees-item-title {
		padding-bottom: 144px;
	}

	.fees-item-has-table .fees-item-table {
		margin-top: -96px;
	}
}