.blinds4u-delivery-check {
	margin: 0 auto;
	text-align: center;
	direction: rtl;
}

.delivery-check {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

/* Icon Container */
.icon-container {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Text Styles */
.blinds4u-delivery-check .title-with-underline {
	display: flex;
	flex-direction: column;
}

.blinds4u-delivery-check .title-with-underline span {
	text-align: center;
	color: #6a5d87;
	font-size: 58px;
	line-height: 40px;
	font-weight: bold;
	z-index: 90;
}

.blinds4u-delivery-check .title-with-underline-underline-svg {
	fill: #a995c4;
	height: 25px;
	margin-top: -10px;
	z-index: 1;
}

.blinds4u-delivery-check .initial-view .title-with-underline-underline-svg {
	width: 459px;
}
.blinds4u-delivery-check .success-view .title-with-underline-underline-svg {
	width: 240px;
}
.blinds4u-delivery-check .limited-view .title-with-underline-underline-svg {
	width: 202px;
}
.blinds4u-delivery-check .failure-view .title-with-underline-underline-svg {
	width: 233px;
}

.delivery-subtitle,
.delivery-text,
.additional-text {
	text-align: center;
	color: #000000;
	font-size: 30px;
}

.delivery-subtitle {
	margin-top: 15px;
	margin-bottom: 0;
	font-weight: 500;
}
.delivery-text {
	margin-top: 20px;
	margin-bottom: 20px;
}
.additional-text {
	margin-bottom: 30px;
	font-weight: 500;
	font-size: 22px;
	line-height: 1.8;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.additional-text hr {
	border: none;
	background-color: #6a5d87;
	height: 2px;
}

/* Search Container */
.city-search-container {
	width: 100%;
	max-width: 300px;
	margin: 15px auto;
}

.search-wrapper {
	position: relative;
}

.city-search {
	width: 100%;
	height: 60px;
	padding: 10px !important;
	border: 1.5px solid #4266ae !important;
	border-radius: 15px !important;
	text-align: right;
	box-shadow: #426bae9c 0px 1px 8px;
}

.city-results {
	position: fixed; /* Change from absolute to fixed */
	z-index: 9999; /* Ensure it's above other elements */
	background: white;
	border: 1.5px solid #747474;
	border-radius: 12px;
	max-height: 250px;
	overflow-y: auto;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	display: none; /* Hide by default */
	text-align: right;
}

/* Add these styles to javascript */
.city-results.visible {
	display: block;
}

.city-search:disabled {
	background-color: #f5f5f5;
	cursor: wait;
}

.city-item {
	padding: 3px 8px;
	transition: background-color 0.2s ease;
	cursor: pointer;
	font-size: 16px;
}

.city-item:hover {
	background-color: #f0ebf7;
}

/* Buttons */
.check-button,
.continue-button {
	font-family: "Heebo", Sans-serif;
	font-size: 26px;
	font-weight: bold;
	fill: #ffffff;
	color: #ffffff;
	border: none;
	background: linear-gradient(to bottom, #816d9c 0%, #544672 100%);
	border-radius: 99px;
	width: min(290px, 100%);
	--content-width: 60%;
	transition: background-color 0.3s;
}

.check-again-button {
	font-family: "Heebo", Sans-serif;
	font-size: 26px;
	font-weight: bold;
	background: linear-gradient(180deg, #816d9c 0%, #544672 100%);
	border-radius: 99px;
	width: min(290px, 100%);
	transition: none;
	border-color: #fff;
	color: #fff;
	height: 54px;
}

.check-again-button.no-bg-with-border {
	background: white;
	color: #6a5d87;
	border: 2px solid #6a5d87;
}

.check-button:hover,
.continue-button:hover {
	background: linear-gradient(to bottom, #544672 0%, #816d9c 100%);
}

.check-again-button:hover {
	background: linear-gradient(to bottom, #544672 0%, #816d9c 100%);
	color: #fff;
}

.check-button:disabled {
	background-color: #ddd;
	cursor: not-allowed;
}

.check-button {
	margin-top: 25px;
}

.button-group {
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: 100%;
	max-width: 290px;
}

/* No Results Text */
.no-results-text {
	display: none;
	color: #ff0000;
	font-size: 0.9em;
	margin: 5px 0;
}

.city-search-loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	gap: 10px;
	color: #6a5d87;
}

.loading-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid #6a5d87;
	border-radius: 50%;
	border-top-color: transparent;
	animation: spin 1s linear infinite;
}

.loading-text {
	font-size: 14px;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

@media screen and (max-width: 782px) {
	/* Icon Container */
	.icon-container {
		width: 66px;
		height: 66px;
	}

	.blinds4u-delivery-check .title-with-underline span {
		font-size: 38px;
		line-height: 30px;
		font-weight: bold;
	}

	.blinds4u-delivery-check .title-with-underline-underline-svg {
		fill: #a995c4;
		height: 15px;
		margin-top: -7px;
		z-index: 1;
	}

	.blinds4u-delivery-check .initial-view .title-with-underline-underline-svg {
		width: 301px;
	}
	.blinds4u-delivery-check .success-view .title-with-underline-underline-svg {
		width: 158px;
	}
	.blinds4u-delivery-check .limited-view .title-with-underline-underline-svg {
		width: 132px;
	}
	.blinds4u-delivery-check .failure-view .title-with-underline-underline-svg {
		width: 152px;
	}

	.delivery-subtitle,
	.delivery-text,
	.additional-text {
		font-size: 22px;
	}

	.delivery-subtitle {
		margin-top: 15px;
		margin-bottom: 0;
		font-weight: 500;
	}
	.delivery-text {
		margin-top: 17px;
		margin-bottom: 22px;
	}
	.additional-text {
		margin-bottom: 25px;
		font-size: 18px;
		gap: 10px;
	}
	.additional-text hr {
		height: 2px;
	}

	/* Search Container */
	.city-search-container {
		width: 100%;
		max-width: 300px;
		margin: 15px auto;
	}

	.city-search {
		width: 100%;
		height: 60px;
		padding: 10px !important;
		border-radius: 15px !important;
		font-size: 18px;
	}

	.city-results {
		border-radius: 12px;
		max-height: 250px;
	}

	.city-item {
		padding: 3px 8px;
		font-size: 18px;
	}

	.city-item:hover {
		background-color: #f0ebf7;
	}

	/* Buttons */
	.check-button,
	.continue-button,
	.check-again-button {
		font-size: 22px;
	}

	.check-button {
		margin-top: 25px;
	}

	.button-group {
		gap: 10px;
	}

	/* No Results Text */
	.no-results-text {
		display: none;
		color: #ff0000;
		font-size: 0.9em;
		margin: 5px 0;
	}
}
