/* ClickDate — κουμπί κράτησης και popup */

.cd-booking {
	margin: 0 0 10px;
}

.cd-booking__button.button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	border-radius: 50px;
	font-size: 15px;
	font-weight: 600;
	padding: 12px 20px;
}

.cd-booking--notice p {
	margin: 0;
	padding: 12px 14px;
	border-left: 3px solid #f0ad4e;
	background: #fcf8f2;
	font-size: 13px;
	line-height: 1.5;
}

/* Popup */
.cd-modal[hidden] {
	display: none;
}

.cd-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cd-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.cd-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(1000px, calc(100vw - 32px));
	height: min(820px, calc(100vh - 32px));
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.cd-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid #eee;
}

.cd-modal__title {
	margin: 0;
	font-size: 17px;
	line-height: 1.3;
}

.cd-modal__close {
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	padding: 0 4px;
	cursor: pointer;
	color: #333;
}

.cd-modal__body {
	position: relative;
	flex: 1;
	min-height: 0;
}

.cd-modal__loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #888;
}

.cd-modal__frame {
	position: relative;
	width: 100%;
	height: 100%;
	border: 0;
	background: transparent;
}

body.cd-modal-open {
	overflow: hidden;
}

/* Κινητά: πλήρης οθόνη */
@media (max-width: 767px) {
	.cd-modal__dialog {
		width: 100vw;
		height: 100dvh;
		max-height: none;
		border-radius: 0;
	}
}

/* Κράτηση: πλαϊνό πάνελ από δεξιά (υπολογιστής) / φύλλο από κάτω (κινητό). */
.cd-modal--drawer {
	justify-content: flex-end;
	align-items: stretch;
	font-family: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.cd-modal--drawer .cd-modal__backdrop {
	background: rgba(28, 30, 59, 0.45);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.cd-modal--drawer.is-in .cd-modal__backdrop {
	opacity: 1;
}

.cd-modal--drawer .cd-modal__dialog {
	width: 500px;
	max-width: 100%;
	height: 100%;
	max-height: none;
	border-radius: 22px 0 0 22px;
	box-shadow: -24px 0 60px -24px rgba(28, 30, 59, 0.45);
	transform: translateX(104%);
	transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cd-modal--drawer.is-in .cd-modal__dialog {
	transform: none;
}

.cd-modal__grip {
	display: none;
}

.cd-modal--drawer .cd-modal__header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 14px 14px 20px;
	border-bottom: 1px solid #eceef4;
	background: #fff;
}

.cd-modal__shopimg {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	overflow: hidden;
	background: #ecedfb;
	color: #3d41b5;
	font-size: 22px;
	font-weight: 800;
}

.cd-modal__shopimg img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cd-modal__head-t {
	flex: 1 1 auto;
	min-width: 0;
}

.cd-modal--drawer .cd-modal__kicker {
	margin: 0 0 1px;
	color: #5458d0;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.2;
}

.cd-modal--drawer .cd-modal__title {
	margin: 0;
	overflow: hidden;
	color: #1c1e3b;
	font-family: inherit;
	font-size: 18.5px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.cd-modal--drawer .cd-modal__sub {
	margin: 2px 0 0;
	overflow: hidden;
	color: #5d6079;
	font-size: 13.5px;
	line-height: 1.3;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.cd-modal--drawer .cd-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	padding: 0;
	border-radius: 50%;
	background: #f4f5fa;
	color: #1c1e3b;
}

.cd-modal--drawer .cd-modal__close:hover {
	background: #e9eaf3;
}

.cd-modal--drawer .cd-modal__body {
	background: #fff;
}

/* Φόρτωση: «σκελετός» καρτών αντί για κείμενο. */
.cd-modal--drawer .cd-modal__loading {
	z-index: 1;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 12px;
	padding: 22px 20px;
	background: #fff;
}

.cd-modal--drawer .cd-modal__loading[hidden] {
	display: none;
}

.cd-modal--drawer .cd-modal__loading i {
	display: block;
	height: 74px;
	border-radius: 14px;
	background: linear-gradient(90deg, #f1f2f8 0%, #f8f8fc 50%, #f1f2f8 100%);
	background-size: 200% 100%;
	animation: cd-bk-shimmer 1.2s linear infinite;
}

.cd-modal--drawer .cd-modal__loading i:first-child {
	width: 55%;
	height: 26px;
	border-radius: 8px;
}

@keyframes cd-bk-shimmer {
	from { background-position: 200% 0; }
	to { background-position: 0 0; }
}

@media (max-width: 767px) {
	.cd-modal--drawer {
		align-items: flex-end;
	}
	.cd-modal--drawer .cd-modal__dialog {
		width: 100%;
		height: calc(100dvh - 10px);
		border-radius: 20px 20px 0 0;
		box-shadow: 0 -20px 50px -20px rgba(28, 30, 59, 0.4);
		transform: translateY(104%);
	}
	.cd-modal__grip {
		display: block;
		width: 40px;
		height: 4px;
		margin: 8px auto 0;
		border-radius: 4px;
		background: #d7d9e6;
	}
	.cd-modal--drawer .cd-modal__header {
		padding: 8px 10px 12px 16px;
	}
	.cd-modal__shopimg {
		width: 44px;
		height: 44px;
		border-radius: 12px;
	}
	.cd-modal--drawer .cd-modal__title {
		font-size: 17px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cd-modal--drawer .cd-modal__dialog,
	.cd-modal--drawer .cd-modal__backdrop {
		transition: none;
	}
}

/* Είσοδος / Δημιουργία λογαριασμού πριν την κράτηση: πλαϊνό πάνελ από δεξιά (όπως η σύνδεση του site). */
.cd-modal--auth {
	justify-content: flex-end;
	align-items: stretch;
	font-family: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.cd-modal--auth .cd-modal__backdrop {
	background: rgba(28, 30, 59, 0.5);
	animation: cd-auth-fade 0.25s ease both;
}

.cd-modal--auth .cd-modal__dialog {
	width: 440px;
	max-width: 100%;
	height: 100%;
	max-height: none;
	border-radius: 0;
	box-shadow: -20px 0 50px -20px rgba(28, 30, 59, 0.35);
	animation: cd-auth-slide 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.cd-modal--auth .cd-modal__header {
	align-items: flex-start;
	gap: 12px;
	padding: 22px 18px 6px 28px;
	border-bottom: 0;
}

.cd-modal--auth .cd-modal__title {
	font-family: inherit;
	font-size: 26px;
	line-height: 1.15;
	font-weight: 780;
	letter-spacing: -0.02em;
	color: #1c1e3b;
}

.cd-modal--auth .cd-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	margin-top: -6px;
	padding: 0;
	border-radius: 50%;
	font-size: 30px;
	font-weight: 300;
	color: #1c1e3b;
}

.cd-modal--auth .cd-modal__close:hover {
	background: #f4f5fa;
}

.cd-modal__body--auth {
	overflow-y: auto;
	padding: 6px 28px 28px;
}

.cd-auth-modal__intro {
	margin: 0 0 18px;
	color: #5d6079;
	font-size: 15px;
	line-height: 1.5;
}

/* Μόνο λογαριασμός πελάτη: όχι επιλογή «Είμαι επιχείρηση». */
.cd-modal--auth .cd-auth__types,
.cd-modal--auth [data-cd-register="business"] {
	display: none !important;
}

@keyframes cd-auth-slide {
	from { transform: translateX(100%); }
	to { transform: none; }
}

@keyframes cd-auth-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (max-width: 767px) {
	.cd-modal--auth .cd-modal__dialog {
		width: 100%;
		box-shadow: none;
	}
	.cd-modal--auth .cd-modal__header {
		padding: 16px 10px 6px 18px;
	}
	.cd-modal--auth .cd-modal__title {
		font-size: 23px;
	}
	.cd-modal__body--auth {
		padding: 6px 18px 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cd-modal--auth .cd-modal__dialog,
	.cd-modal--auth .cd-modal__backdrop {
		animation: none;
	}
}
