/* International > Tuition Fees: column widths of the fee tables, and the
   currency converter in the notice above them. The tables keep the shared
   .table-single-list look from extras.css. Only the split between programme
   name and fee is set here: the shared 40% / 60% split left the names wrapping
   beside a mostly empty fee column. */

.fee-table .table-container .grid_table_4,
.fee-table .table-container .grid_table_2 {
	margin-left: 0;
	margin-right: 0;
	box-sizing: border-box;
}

/* The fee column is as wide as its amounts need; the name gets the rest. */
.fee-table .table-container .grid_table_2 {
	width: 9.25em;
}

.fee-table .table-container .grid_table_4 {
	width: calc(100% - 9.25em);
	padding-right: 12px;
}

/* Same line height as the programme name, so name and fee share a baseline. */
.fee-table p.fee-amount {
	line-height: 1.5;
}

/* Phones: ringgit amount with the converted one under it. */
.fee-table .fee-amount span {
	display: block;
}

@media only screen and (min-width: 768px) {

	/* Wider screens: the two amounts side by side, each in its own column. */
	.fee-table--converted .table-container .grid_table_2 {
		width: 19em;
	}

	.fee-table--converted .table-container .grid_table_4 {
		width: calc(100% - 19em);
		padding-right: 20px;
	}

	.fee-table--converted p.fee-amount {
		display: flex;
	}

	.fee-table--converted .fee-amount__myr {
		flex: 0 0 9em;
	}

	.fee-table--converted .fee-amount__fx {
		flex: 0 0 10em;
	}
}

/* Converter: sits in the page's existing blue notice. */
.ajax-content .fee-converter>p.fee-converter__pick {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}

/* The site's own rule makes every label a full-width block. */
.fee-converter label {
	width: auto;
	margin: 0;
	font-weight: 600;
	color: inherit;
}

.fee-converter select.form-control {
	display: inline-block;
	width: auto;
	max-width: 100%;
}

.fee-converter__rate {
	font-weight: 600;
	white-space: nowrap;
}

.fee-converter__note a {
	font-weight: 700;
}

@media only screen and (max-width: 767px) {

	/* iPhones zoom the page when a field with smaller text is tapped. */
	.fee-converter select.form-control {
		font-size: 16px;
	}
}
