.alfekr-courses *,
.alfekr-course *,
.alfekr-cart-form *,
.alfekr-courses-sc * {
	color: inherit;
	text-align: inherit;
}

.heart.active path,
._add_to_wishlist.active .heart path {
	fill: currentColor;
}

.alfekr-courses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
	gap: 1rem;
}

.alfekr-course-wide {
	display: flex;
	gap: 1.5rem;
	padding: 0.8rem;
	background-color: #914f95;
	border-radius: 0.75rem;

	@media screen and (max-width: 880px) {
		flex-direction: column;

		img {
			margin-left: auto;
			margin-right: auto;
		}
	}

	img {
		width: 16rem;
		max-width: 100%;
	}

	._content {
		display: flex;
		flex-direction: column;
		padding-top: 1rem;
		color: white;
		gap: 0.5rem;

		@media screen and (max-width: 599px) {
			text-align: center;
		}

		a {
			margin-bottom: 0;
			font-weight: bold;
		}

		span {
			font-size: 1rem;
		}

		._general {
			display: flex;
			flex-direction: row;
			justify-content: start;
			flex-wrap: wrap;
			gap: 2rem;

			div {
				display: flex;
				flex-direction: row;
				align-items: center;
				gap: 0.5rem;

				svg {
					aspect-ratio: 1/1;
				}
			}

			@media screen and (max-width: 599px) {
				justify-content: center;
			}
		}

		._con {
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			gap: 1rem;
			margin-top: 1rem;

			@media screen and (max-width: 599px) {
				margin-top: 0 !important;
			}

			._price {
				display: flex;
				flex-direction: column;
				gap: 0;

				.old {
					text-decoration: line-through;
					font-size: 0.9rem;
					color: rgba(255, 255, 255, 0.6);
				}

				.new {
					font-size: 1.5rem;
					font-weight: bold;
				}
			}

			._actions {
				display: flex;
				flex-direction: row;
				justify-content: start;
				gap: 0.5rem;
				flex-wrap: wrap;
			}

			._price_actions {
				display: flex;
				flex-direction: row;
				justify-content: space-between;
				align-items: center;
				gap: 2rem;
			}

			@media screen and (max-width: 599px) {
				flex-direction: column-reverse;
				align-items: center;
			}
		}
	}
}

.alfekr-course-wide a,
.alfekr-course a {
	font-size: 1.4rem;

	&:hover {
		color: #ffffffbb !important;
		/* text-decoration: underline !important; no need it looks ugly as hell */
	}
}

._btn_link {
	display: flex;
}

button._no {
	all: unset;
	cursor: pointer;
	color: inherit;
}

.alfekr-course-wide button,
._button_wrapper button,
.alfekr-cart-form button,
.alfekr-course button,
.alfekr-single-course-wrapper button:not(._no) {
	all: unset;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-radius: 0.4rem;
	padding: 0.5rem 1rem;
	font-size: 0.9rem;
	background-color: #914f95;
	color: white;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.2s ease;

	svg {
		fill: white;
	}

	&._icon {
		background: none;
		padding: 0.4rem;
		border-radius: 0.35rem;
		color: white;
		width: 2.2rem;
		height: 2.2rem;
		display: flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;

		svg {
			width: 2rem;
		}
	}

	&:hover {
		background-color: #934797;
	}

	&._white {
		background-color: white;
		color: #914f95;

		svg {
			fill: #914f95;
		}

		&:hover {
			background-color: rgba(255, 255, 255, 0.918);
		}
	}

	&._red {
		background-color: #e53935;
		color: #fff;

		svg {
			fill: #fff;
		}

		&:hover {
			background-color: #b71c1c;
		}
	}

	&._icon:hover {
		background: rgba(255, 255, 255, 0.1);
	}

	&:disabled {
		opacity: 0.5 !important;
		cursor: not-allowed !important;
	}
}

.alfekr-course {
	padding: 0.8rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	background-color: #914f95;
	color: white;
	border-radius: 0.75rem;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);

	img {
		border-radius: 0.75rem;
	}

	._actions {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		flex-wrap: wrap;

		& > * {
			flex-grow: 1;
		}
	}

	._general {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-top: auto; /* it pushes the element and what below it, so the title will be alone */
		gap: 0.5rem;

		._starting {
			span {
				font-weight: bold;
				font-size: 0.9rem;
			}

			p {
				padding: 0.1rem 0.3rem;
				border-radius: 0.25rem;
				background-color: white;
				font-weight: bold;
				color: #914f95;
				margin-bottom: 0;
			}
		}

		._price {
			display: flex;
			flex-direction: column;

			.old {
				text-decoration: line-through;
				font-size: 0.9rem;
				color: rgba(255, 255, 255, 0.6);
			}

			.new {
				font-size: 1.5rem;
				font-weight: bold;
			}
		}
	}
}

.alfekr-courses-sc {
	padding-bottom: 3rem;
	display: flex;
	flex-direction: column;
	gap: 2rem;

	._header {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 1rem;

		* {
			flex-grow: 1;
			max-width: 16rem !important;
		}

		._search {
			display: flex;
			align-items: center;
			gap: 0.5rem;
			position: relative;
			background-color: #914f9540;
			border-radius: 0.5rem;
			overflow: hidden;
			font-size: 1rem;

			svg {
				position: absolute;
				right: 0.5rem;
				width: 1.15rem;
				height: 1.15rem;
			}

			input {
				display: flex;
				color: #914f95;
				margin-right: 1.3rem;
				width: 100%;
				height: 2.9rem;
				border-radius: 0.375rem;
				border: none;
				padding: 0.5rem 0.75rem;
				background-color: transparent;
				font-size: 0.9rem;
				font-weight: 500;
				line-height: 1.5;
				box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
				transition: border-color 0.2s, box-shadow 0.2s;

				&:focus {
					outline: none;
				}

				&::placeholder {
					color: #914f95;
					opacity: 1;
				}

				&:disabled {
					cursor: not-allowed;
					opacity: 0.7;
				}
			}
		}

		span {
			width: auto !important;
			border-radius: 0.5rem;

			b {
				margin-left: 0.5rem !important;
			}
		}
	}

	._courses {
		display: flex;
		flex-direction: column;
		gap: 1.25rem;
	}
}

/* Share Modal Styles */
.alfekr-share-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;

	&.active {
		display: flex;
	}

	.share-modal-overlay {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.7);
		cursor: pointer;
		animation: fadeIn 0.3s ease;
	}

	.share-modal-content {
		position: relative;
		background-color: white;
		border-radius: 1rem;
		width: 90%;
		max-width: 500px;
		padding: 2rem;
		box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
		animation: slideUp 0.3s ease;
		z-index: 10000;

		.share-modal-header {
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-bottom: 1.5rem;
			padding-bottom: 1rem;
			border-bottom: 2px solid #f0f0f0;

			h3 {
				margin: 0;
				color: #914f95;
				font-size: 1.5rem;
				font-weight: bold;
			}

			.share-modal-close {
				all: unset;
				cursor: pointer;
				font-size: 2rem;
				line-height: 1;
				color: #666;
				width: 2.5rem;
				height: 2.5rem;
				display: flex;
				align-items: center;
				justify-content: center;
				border-radius: 0.5rem;
				transition: all 0.2s ease;

				&:hover {
					background-color: #f0f0f0;
					color: #914f95;
				}
			}
		}

		.share-modal-body {
			display: flex;
			flex-direction: column;
			gap: 0.75rem;

			.share-btn {
				all: unset;
				display: flex;
				align-items: center;
				gap: 1rem;
				padding: 1rem 1.5rem;
				border-radius: 0.75rem;
				cursor: pointer;
				color: white;
				font-size: 1.1rem;
				font-weight: 600;
				transition: all 0.3s ease;
				box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

				svg {
					width: 24px;
					height: 24px;
					flex-shrink: 0;
				}

				span {
					flex-grow: 1;
					text-align: right;
				}

				&:hover {
					transform: translateY(-2px);
					box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
				}

				&:active {
					transform: translateY(0);
				}

				&.facebook {
					background: linear-gradient(
						135deg,
						#1877f2 0%,
						#0c63d4 100%
					);

					&:hover {
						background: linear-gradient(
							135deg,
							#166fe5 0%,
							#0a56be 100%
						);
					}
				}

				&.twitter {
					background: linear-gradient(
						135deg,
						#000000 0%,
						#1a1a1a 100%
					);

					&:hover {
						background: linear-gradient(
							135deg,
							#1a1a1a 0%,
							#2a2a2a 100%
						);
					}
				}

				&.whatsapp {
					background: linear-gradient(
						135deg,
						#25d366 0%,
						#20ba5a 100%
					);

					&:hover {
						background: linear-gradient(
							135deg,
							#22c55e 0%,
							#1dad51 100%
						);
					}
				}

				&.instagram {
					background: linear-gradient(
						135deg,
						#e1306c 0%,
						#c13584 50%,
						#833ab4 100%
					);

					&:hover {
						background: linear-gradient(
							135deg,
							#d62a63 0%,
							#b32e7a 50%,
							#7433a3 100%
						);
					}
				}
			}
		}
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.alfekr-share-modal .share-modal-content {
		width: 95%;
		padding: 1.5rem;

		.share-modal-header h3 {
			font-size: 1.25rem;
		}

		.share-modal-body .share-btn {
			padding: 0.875rem 1.25rem;
			font-size: 1rem;
		}
	}
}

._actions._notop {
	margin-top: 0 !important;
}

/* Cities Modal Styles */
.alfekr-cities-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100dvh;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;

	.cities-modal-overlay {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.7);
		cursor: pointer;
		animation: fadeIn 0.3s ease;
	}

	.cities-modal-content {
		position: relative;
		background-color: white;
		border: 3px solid #914f95;
		border-radius: 1.25rem;
		width: 90%;
		max-width: 450px;
		padding: 2rem 1.5rem;
		box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
		animation: slideUp 0.3s ease;
		z-index: 10000;

		.cities-modal-header {
			text-align: center;
			margin-bottom: 0.25rem;

			.cities-modal-dates {
				color: #914f95;
				font-size: 1rem;
				font-weight: 600;
				line-height: 1.6;
				margin: 0;

				span {
					font-weight: 700;
				}
			}
		}

		.cities-modal-body {
			.cities-modal-subtitle {
				color: #914f95;
				font-size: 0.95rem;
				font-weight: 600;
				text-align: center;
				margin: 0 0 1.25rem 0;
			}

			.cities-form {
				display: flex;
				flex-direction: column;

				.city-option {
					position: relative;
					display: flex;
					align-items: center;
					justify-content: space-between;
					padding: 1rem 1.25rem;
					border-bottom: 1.5px solid #914f95;
					cursor: pointer;
					transition: all 0.2s ease;

					&:last-of-type {
						border-bottom: none;
					}

					&:hover {
						background-color: #f9f5fa;
					}

					input[type="radio"] {
						position: absolute;
						opacity: 0;
						cursor: pointer;

						&:checked ~ .radio-custom {
							border-color: #914f95;
							background-color: #914f95;

							&::after {
								opacity: 1;
								transform: translate(-50%, -50%) scale(1);
							}
						}

						&:checked ~ .city-info {
							.city-name {
								color: #914f95;
								font-weight: 700;
							}
						}
					}

					.city-info {
						display: flex;
						flex-direction: column;
						gap: 0.35rem;
						flex: 1;
						text-align: right;

						.city-name {
							font-size: 1.1rem;
							font-weight: 600;
							color: #2c2c2c;
							transition: all 0.2s ease;
						}

						.city-details {
							display: flex;
							flex-direction: column;
							gap: 0.15rem;

							.city-date,
							.city-time {
								font-size: 0.85rem;
								color: #666;
								line-height: 1.4;
							}
						}
					}

					.radio-custom {
						position: relative;
						width: 22px;
						height: 22px;
						border: 2.5px solid #ccc;
						border-radius: 50%;
						flex-shrink: 0;
						transition: all 0.2s ease;
						margin-right: 0.5rem;

						&::after {
							content: "";
							position: absolute;
							top: 50%;
							left: 50%;
							transform: translate(-50%, -50%) scale(0);
							width: 10px;
							height: 10px;
							border-radius: 50%;
							background-color: white;
							opacity: 0;
							transition: all 0.2s ease;
						}
					}
				}

				.cities-submit-btn {
					all: unset;
					display: flex;
					align-items: center;
					justify-content: center;
					padding: 0.95rem 1.5rem;
					margin-top: 1rem;
					background-color: #914f95;
					color: white;
					font-size: 1.05rem;
					font-weight: 700;
					border-radius: 0.6rem;
					cursor: pointer;
					transition: all 0.2s ease;
					box-shadow: 0 2px 8px rgba(145, 79, 149, 0.25);

					&:hover {
						background-color: #7d4380;
						box-shadow: 0 4px 12px rgba(145, 79, 149, 0.35);
					}

					&:active {
						transform: translateY(1px);
					}

					&:disabled {
						opacity: 0.5;
						cursor: not-allowed;
					}
				}
			}
		}
	}
}

/* Mobile Responsive for Cities Modal */
@media (max-width: 768px) {
	.alfekr-cities-modal .cities-modal-content {
		width: 95%;
		padding: 1.5rem 1.25rem;

		.cities-modal-header .cities-modal-dates {
			font-size: 0.9rem;
		}

		.cities-modal-body {
			.cities-modal-subtitle {
				font-size: 0.9rem;
			}

			.cities-form {
				.city-option {
					padding: 0.85rem 1rem;

					.city-info {
						.city-name {
							font-size: 1rem;
						}

						.city-details {
							.city-date,
							.city-time {
								font-size: 0.8rem;
							}
						}
					}

					.radio-custom {
						width: 20px;
						height: 20px;

						&::after {
							width: 9px;
							height: 9px;
						}
					}
				}

				.cities-submit-btn {
					font-size: 1rem;
					padding: 0.85rem 1.25rem;
				}
			}
		}
	}
}
