/*
 * App Global CSS
 * ----------------------------------------------------------------------------
 * Put style rules here that you want to apply globally. These styles are for
 * the entire app and not just one component. Additionally, this file can be
 * used as an entry point to import other CSS/Sass files to be included in the
 * output CSS.
 * For more information on global stylesheets, visit the documentation:
 * https://ionicframework.com/docs/layout/global-stylesheets
 */
/* Core CSS required for Ionic components to work properly */
@import "~@ionic/angular/css/core.css"; /* Basic CSS for apps built with Ionic */
@import "~@ionic/angular/css/normalize.css";
@import "~@ionic/angular/css/structure.css";
@import "~@ionic/angular/css/typography.css";
@import '~@ionic/angular/css/display.css'; /* Optional CSS utils that can be commented out */
@import "~@ionic/angular/css/padding.css";
@import "~@ionic/angular/css/float-elements.css";
@import "~@ionic/angular/css/text-alignment.css";
@import "~@ionic/angular/css/text-transformation.css";
@import "~@ionic/angular/css/flex-utils.css";
ion-content {
	--padding-bottom: 30px;
}
a,
button,
div,
input,
ion-button,
p {
	font-family: 'Roboto', sans-serif;
	text-transform: none;
	outline: none;
	font-weight: 500;
}
h1,
h2,
h3,
h4,
h5 {
	margin: 0;
}
figure {
	margin: 0;
}
* {
	font-family: 'M PLUS Rounded 1c', sans-serif;
	margin: 0;
}
.results-utilities-holder {
	display: flex;
	width: 100%;
	margin: 10px auto 0;
	justify-content: space-between;
	align-items: center;
	font-weight: bold;
	&.no-padding {
		margin: 0 auto;
	}
	h5 {
		margin: 0 0 0 10px;
		color: var(--brand-dark-grey);
		font-size: 10px;
	}
	ion-button {
		margin: 0;
		font-size: 10px;
		padding: 0;
	}
}
.result-list ion-item {
	margin: 0 0 20px;
	ion-label {
		padding: 0;
		margin: 0;
	}
	img {
		align-self: flex-start;
		width: 70px;
		height: 70px;
		object-fit: cover;
		margin-right: 15px;
	}
	h3 {
		margin: 0;
		color: var(--brand-dark-grey);
		font-weight: 500;
		font-size: 14px;
		letter-spacing: 0.5px;
		text-overflow: ellipsis;
		display: flex;
		justify-content: space-between;
		ion-icon {
			color: var(--brand-grey);
			font-size: 16px;
			&.active {
				color: var(--brand-blue);
			}
		}
	}
	.description {
		font-size: 10px;
		color: var(--brand-grey);
	}
	.offers-holder {
		display: flex;
		justify-content: space-between;
		color: var(--brand-yellow);
		letter-spacing: 0.5px;
		border-bottom: 1px solid #efefef;
		padding: 0 0 7px;
		margin-bottom: 7px;
		align-items: center;
		ion-icon {
			color: var(--brand-grey);
		}
		.offer {
			font-size: 11px;
			width: 50%;
		}
	}
	.utilities-holder {
		display: flex;
		justify-content: space-between;
		align-items: center;
		.container {
			display: flex;
			width: 40%;
			justify-content: space-between;

			&:last-child {
				justify-content: flex-end;
			}

			.utility {
				width: 50%;
				font-size: 10px;
				color: var(--brand-grey);
				font-weight: bold;
			}
			.utility-button {
				text-align: right;
				background-color: transparent;
				border: 0;
				font-size: 16px;
				color: var(--brand-grey);
			}
		}
	}
}
.common-semi-modal {
	background-color: white;
	position: fixed;
	width: 100%;
	z-index: 5;
	bottom: 0;
	left: 0;
	box-shadow: 0 0 5px var(--brand-grey);
	transition: transform 0.5s;
	transform: translateY(50vh);
	&.active {
		transform: translateY(0);
	}
	header {
		background-color: var(--brand-blue);
		color: white;
		display: flex;
		justify-content: space-between;
		padding: 15px;
		font-size: 14px;
		align-items: center;
		position: relative;
		button {
			background-color: transparent;
			border: 1px solid white;
			font-size: 10px;
			height: 25px;
			padding: 0 15px;
			color: white;
			border-radius: 30px;
			letter-spacing: 1px;
		}
	}
	&.sort-holder {
		.sort-buttons-holder {
			display: flex;
			padding: 15px;
			flex-wrap: wrap;
			justify-content: space-around;
			position: relative;
			button {
				background-color: transparent;
				color: var(--brand-dark-grey);
				font-size: 10px;
				margin-bottom: 30px;
				&.active {
					color: var(--brand-blue);
					.icon-holder {
						border-color: var(--brand-blue);
						color: var(--brand-blue);
					}
				}
				.icon-holder {
					border: 1px solid var(--brand-grey);
					color: var(--brand-grey);
					width: 50px;
					height: 50px;
					margin: 0 auto 10px;
					display: flex;
					justify-content: center;
					align-items: center;
					border-radius: 50%;
					letter-spacing: 0.5px;
					font-size: 15px;
					ion-icon {
						font-size: 24px;
					}
				}
			}
		}
	}
	&.filter-holder {
		height: 80vh;
		overflow-y: auto;
		transform: translateY(80vh);
		&.active {
			transform: translateY(0);
		}
		&.with-border {
			ion-item {
				border-bottom: 1px solid #efefef;
				--padding-start: 20px;
				--padding-end: 20px;
				--padding-top: 10px;
				--padding-bottom: 10px;
			}
		}
		ion-list {
			ion-item {
				--inner-border-width: 0;
				--color: var(--brand-dark-grey);
				font-size: 14px;

				ion-label {
					padding-left: 20px;
					letter-spacing: 0.5px;
					font-weight: 500;
					text-transform: capitalize;
					.heading {
						font-size: 14px;
						font-weight: 500;
					}
					.code {
						font-size: 12px;
						margin: 3px 0;
						span {
							color: var(--brand-blue);
							font-weight: 600;
						}
					}
					a,
					p {
						color: var(--brand-grey);
						font-size: 12px;
						line-height: 1.5;
					}
					a {
						text-decoration: underline;
					}
				}
			}
			ion-checkbox {
				--background-checked: var(--brand-blue);
				--border-color: var(--brand-blue);
				--size: 16px;
			}
			ion-radio {
				align-self: flex-start;
				--color-checked: var(--brand-blue);
				transform: scale(0.7);
			}
		}
	}
}
