/* Rental Booking widget */

.rb-widget {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	border: 1px solid #e5e5e5;
	border-radius: 16px;
	padding: 2rem;
	background: #fff;
	box-shadow: 0 8px 30px rgba(7, 59, 68, 0.08);
}
@media (max-width: 760px) {
	.rb-widget { grid-template-columns: 1fr; padding: 1.25rem; }
}

/* Calendar */
.rb-calendar__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}
.rb-calendar__nav {
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 8px;
	padding: 0.35rem 0.75rem;
	cursor: pointer;
	font-size: 1rem;
}
.rb-calendar__nav:hover { background: #f6f6f6; }

.rb-calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}
.rb-calendar__grid--head {
	font-size: 0.75rem;
	font-weight: 600;
	color: #777;
	text-align: center;
	margin-bottom: 4px;
}
.rb-calendar__grid--head span { padding: 0.25rem 0; }

.rb-cell {
	position: relative;
	aspect-ratio: 1;
	border: 1px solid transparent;
	background: #f4f4f2;
	border-radius: 8px;
	font-size: 0.875rem;
	cursor: pointer;
	padding: 0;
	transition: background 0.15s ease;
}
.rb-cell--empty { background: none; pointer-events: none; }
.rb-cell--past { background: #fafaf9; color: #c4c4c4; cursor: default; }
.rb-cell--booked, .rb-cell--blocked {
	background: #fde8e8;
	color: #b04141;
	cursor: not-allowed;
}
.rb-cell--blocked { background: #fdf3e3; color: #b08a41; }
.rb-cell--pending { background: #fef4d6; color: #9a7b1f; }
.rb-cell--free:hover { background: #dcf7f1; }
.rb-cell--hover { outline: 2px solid #0e8f96; outline-offset: -2px; }
.rb-cell--selected { background: #0e8f96; color: #fff; }
.rb-cell--start { border-radius: 8px 0 0 8px; }
.rb-cell--end { background: #fff; color: #0e8f96; border: 2px solid #0e8f96; border-radius: 0 8px 8px 0; }

.rb-calendar__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 0.75rem;
	font-size: 0.75rem;
	color: #666;
	align-items: center;
}
.rb-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 3px;
	margin-right: 3px;
}
.rb-dot--booked { background: #fde8e8; border: 1px solid #e3b5b5; }
.rb-dot--blocked { background: #fdf3e3; border: 1px solid #e3cfa5; }
.rb-dot--pending { background: #fef4d6; border: 1px solid #e3d79a; }
.rb-dot--selected { background: #0e8f96; }

/* Form panel */
.rb-widget__panel { display: flex; flex-direction: column; gap: 0.9rem; }
.rb-label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #666; margin-bottom: 0.3rem; }
.rb-dates { display: flex; gap: 0.5rem; align-items: center; }
.rb-dates input {
	flex: 1;
	padding: 0.6rem 0.75rem;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fafaf9;
	font-size: 0.9rem;
}
.rb-widget__panel input[type="text"],
.rb-widget__panel input[type="email"],
.rb-widget__panel input[type="tel"],
.rb-widget__panel textarea,
.rb-select {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 0.95rem;
	box-sizing: border-box;
}
.rb-widget__panel input:focus, .rb-select:focus, .rb-widget__panel textarea:focus {
	outline: 2px solid #0e8f96;
	outline-offset: -1px;
	border-color: #2f7a4f;
}

.rb-honeypot {
	position: absolute !important;
	left: -9999px !important;
	opacity: 0;
	height: 0;
	width: 0;
}

.rb-breakdown {
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 0.9rem;
	background: #fafaf9;
}
.rb-line { display: flex; justify-content: space-between; font-size: 0.875rem; padding: 0.2rem 0; color: #444; }
.rb-line--total { font-weight: 700; color: #111; border-top: 1px solid #e0e0e0; margin-top: 0.4rem; padding-top: 0.5rem; }

.rb-error {
	background: #fde8e8;
	border: 1px solid #e3b5b5;
	color: #8f2f2f;
	border-radius: 8px;
	padding: 0.6rem 0.8rem;
	font-size: 0.875rem;
	margin: 0;
}

/* Payment method selector */
.rb-methods { display: flex; gap: 0.5rem; }
.rb-method {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 0.6rem 0.75rem;
	font-size: 0.9rem;
	cursor: pointer;
	background: #fff;
}
.rb-method:hover { border-color: #0e8f96; }
.rb-method:has(input:checked) { border-color: #0e8f96; background: #dcf7f1; }
.rb-method input { accent-color: #0e8f96; margin: 0; }

.rb-button {
	margin-top: 0.5rem;
	background: #12b3a6;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 0.85rem 1rem;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}
.rb-button:hover:not(:disabled) { background: #0d9187; }
.rb-button:disabled { opacity: 0.5; cursor: not-allowed; }

.rb-note { font-size: 0.78rem; color: #888; text-align: center; margin: 0; }

/* Confirmation page */
.rb-confirm {
	max-width: 560px;
	margin: 2rem auto;
	border: 1px solid #e5e5e5;
	border-radius: 16px;
	padding: 2rem;
	background: #fff;
}
.rb-confirm--paid { border-color: #a7dbe6; }
.rb-receipt code { background: #dcf7f1; border-radius: 6px; padding: 0.15rem 0.5rem; font-size: 0.9rem; }
.rb-mpesa-status {
	font-size: 0.85rem;
	color: #666;
	font-style: italic;
}
.rb-confirm__table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.rb-confirm__table th { text-align: left; color: #666; font-weight: 600; padding: 0.35rem 0.6rem 0.35rem 0; font-size: 0.875rem; vertical-align: top; }
.rb-confirm__table td { padding: 0.35rem 0; font-size: 0.9rem; }
.rb-confirm__total th, .rb-confirm__total td { border-top: 2px solid #0e8f96; font-weight: 700; padding-top: 0.6rem; color: #111; }
.rb-map { border-radius: 12px; overflow: hidden; }
.rb-map iframe { width: 100%; height: 360px; border: 0; display: block; }