.chatky-i18n {
	display: none !important;
}

.chatky-booking,
.chatky-calendar-view {
	--chatky-bg: #efe8db;
	--chatky-card: #ffffff;
	--chatky-free-bg: #cfe4c8;
	--chatky-free-text: #3c6b3c;
	--chatky-occupied-bg: #f3cdc7;
	--chatky-occupied-text: #a04c40;
	--chatky-today-border: #4d7cc7;
	--chatky-ink: #4a4238;
	--chatky-muted: #8c8274;
	--chatky-accent: #a8592f;
	--chatky-accent-dark: #8c481f;
	--chatky-border: #e6ddcc;
	--chatky-radius: 20px;

	width: 100%;
	max-width: 100%;
	font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--chatky-ink);
	box-sizing: border-box;
}

.chatky-booking {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
	align-items: stretch;
	gap: 24px;
}

.chatky-booking *,
.chatky-booking *::before,
.chatky-booking *::after,
.chatky-calendar-view *,
.chatky-calendar-view *::before,
.chatky-calendar-view *::after {
	box-sizing: border-box;
}

/* Grid items default to min-width:auto, which lets long unbroken text (e.g. the
   thank-you paragraph) inflate their track beyond its fr share and change the
   whole widget's width. Force them to only ever respect the track sizing above. */
.chatky-calendar-col,
.chatky-form-col {
	min-width: 0;
	width: 100%;
}

/* Elementor may wrap a widget in a shrink-to-fit flex/inline container;
   force it to always take the full width of its column regardless of content. */
.elementor-widget-chatky_booking,
.elementor-widget-chatky_booking > .elementor-widget-container,
.elementor-widget-chatky_calendar,
.elementor-widget-chatky_calendar > .elementor-widget-container {
	width: 100%;
	max-width: 100%;
	flex: 1 1 100%;
}

/* Read-only availability widget: same visuals as the booking calendar, but
   never clickable. */
.chatky-calendar-view .chatky-day.is-free,
.chatky-calendar-view .chatky-day.is-edge-arrival,
.chatky-calendar-view .chatky-day.is-edge-departure {
	cursor: default;
}
.chatky-calendar-view .chatky-day.is-free:hover,
.chatky-calendar-view .chatky-day.is-edge-arrival:hover,
.chatky-calendar-view .chatky-day.is-edge-departure:hover {
	filter: none;
}

/* ---------- Calendar ---------- */

.chatky-calendar-card {
	position: relative;
	background: var(--chatky-card);
	border-radius: var(--chatky-radius);
	padding: 28px 32px 32px;
}

.chatky-nav {
	position: absolute;
	top: 24px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--chatky-border);
	background: #fff;
	color: var(--chatky-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .15s ease;
	padding: 0;
	font-size: 22px;
	line-height: 1;
	font-family: Georgia, 'Times New Roman', serif;
	z-index: 2;
}
.chatky-nav:hover { background: #f6f1e6; }
.chatky-nav.is-disabled { opacity: .35; cursor: not-allowed; }
.chatky-nav-prev { left: 32px; }
.chatky-nav-next { right: 32px; }

.chatky-legend {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 22px;
	margin-bottom: 22px;
	font-size: 13.5px;
	color: var(--chatky-ink);
}
.chatky-legend-item { display: inline-flex; align-items: center; gap: 8px; }
.chatky-dot {
	width: 14px;
	height: 14px;
	border-radius: 4px;
	display: inline-block;
}
.chatky-dot-free { background: var(--chatky-free-bg); }
.chatky-dot-occupied { background: var(--chatky-occupied-bg); }
.chatky-dot-arrival {
	background: linear-gradient(90deg, var(--chatky-free-bg) 0 50%, var(--chatky-occupied-bg) 50% 100%);
}
.chatky-dot-departure {
	background: linear-gradient(90deg, var(--chatky-occupied-bg) 0 50%, var(--chatky-free-bg) 50% 100%);
}

.chatky-months {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}
@media (max-width: 720px) {
	.chatky-months { grid-template-columns: 1fr; }
}

.chatky-month-title {
	text-align: center;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 22px;
	font-weight: 600;
	margin: 0 0 16px;
	color: var(--chatky-ink);
}

.chatky-weekdays,
.chatky-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
}

.chatky-weekdays div {
	text-align: center;
	font-size: 12.5px;
	color: var(--chatky-muted);
	font-weight: 500;
	padding-bottom: 6px;
}

.chatky-day {
	position: relative;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	background: transparent;
	color: var(--chatky-ink);
}

.chatky-day.is-empty { visibility: hidden; }

.chatky-day.is-free {
	background: var(--chatky-free-bg);
	color: var(--chatky-free-text);
	cursor: pointer;
}
.chatky-day.is-occupied {
	background: var(--chatky-occupied-bg);
	color: var(--chatky-occupied-text);
	cursor: not-allowed;
}
.chatky-day.is-edge-arrival {
	/* Arrival: free before, occupied from that night onward - free on the left, occupied on the right. */
	background: linear-gradient(135deg, var(--chatky-free-bg) 0 50%, var(--chatky-occupied-bg) 50% 100%);
	color: var(--chatky-ink);
	cursor: pointer;
}
.chatky-day.is-edge-departure {
	/* Departure: occupied before, free from that morning onward - occupied on the left, free on the right. */
	background: linear-gradient(135deg, var(--chatky-occupied-bg) 0 50%, var(--chatky-free-bg) 50% 100%);
	color: var(--chatky-ink);
	cursor: pointer;
}
.chatky-day.is-past {
	opacity: .35;
	cursor: not-allowed !important;
	background: transparent !important;
}

.chatky-day.is-today {
	box-shadow: 0 0 0 2px var(--chatky-today-border);
}

.chatky-day.is-selected {
	box-shadow: 0 0 0 2px var(--chatky-accent);
}

.chatky-day.is-in-range {
	background: #dfe9f5;
	color: var(--chatky-ink);
}

.chatky-day.is-free:hover,
.chatky-day.is-edge-arrival:hover,
.chatky-day.is-edge-departure:hover {
	filter: brightness(0.96);
}

/* ---------- Form ---------- */

.chatky-form-card {
	background: var(--chatky-card);
	border-radius: var(--chatky-radius);
	padding: 32px;
	height: 100%;
}

.chatky-form-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 26px;
	font-weight: 600;
	margin: 0 0 20px;
}

.chatky-selected-range {
	background: #f4efe3;
	border: 1px solid var(--chatky-border);
	border-radius: 12px;
	padding: 14px 16px;
	font-size: 14.5px;
	color: var(--chatky-muted);
	margin-bottom: 20px;
}
.chatky-selected-range.has-range {
	color: var(--chatky-ink);
	font-weight: 500;
}

.chatky-field {
	display: block;
	margin-bottom: 14px;
}

.chatky-field-label {
	display: block;
	font-size: 13px;
	color: var(--chatky-muted);
	margin-bottom: 6px;
}

.chatky-field input,
.chatky-field select,
.chatky-field textarea {
	width: 100%;
	border: 1px solid var(--chatky-border);
	border-radius: 12px;
	padding: 13px 16px;
	font-size: 14.5px;
	font-family: inherit;
	color: var(--chatky-ink);
	background: #fff;
}
.chatky-field input::placeholder,
.chatky-field textarea::placeholder { color: #a89f8f; }

.chatky-field input:focus,
.chatky-field select:focus,
.chatky-field textarea:focus {
	outline: none;
	border-color: var(--chatky-accent);
}

.chatky-field textarea { resize: vertical; min-height: 70px; }

.chatky-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.chatky-form-msg {
	font-size: 13.5px;
	margin-bottom: 10px;
	display: none;
}
.chatky-form-msg.is-error { display: block; color: #b3261e; }
.chatky-form-msg.is-success { display: block; color: #1e6b2f; }

.chatky-submit {
	width: 100%;
	background: linear-gradient(180deg, var(--chatky-accent) 0%, var(--chatky-accent-dark) 100%);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 15px 20px;
	font-size: 15.5px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(140, 72, 31, 0.28);
	transition: transform .12s ease, box-shadow .12s ease;
}
.chatky-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(140, 72, 31, 0.34); }
.chatky-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.chatky-form-help {
	text-align: center;
	font-size: 12.5px;
	color: var(--chatky-muted);
	margin: 12px 0 0;
	line-height: 1.5;
}

.chatky-thanks {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 160px;
	text-align: center;
	padding: 20px 4px;
	max-width: 100%;
}
.chatky-thanks h4 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 22px;
	margin: 0 0 10px;
	max-width: 100%;
}
.chatky-thanks p {
	color: var(--chatky-muted);
	font-size: 14.5px;
	max-width: 32ch;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
	margin: 0;
}

@media (max-width: 900px) {
	.chatky-booking {
		grid-template-columns: 1fr;
		padding: 16px;
		gap: 18px;
	}
	.chatky-calendar-card { padding: 22px 16px 26px; }
	.chatky-nav-prev { left: 16px; }
	.chatky-nav-next { right: 16px; }
	.chatky-form-card { padding: 22px; }
}
