/**
 * Sticky booking card chrome only. The plugin's real booking form markup
 * (Booking and Rental Manager for WooCommerce) — date pickers, duration,
 * price breakdown, submit button, everything inside
 * `.rentiva-booking-card__form` — is intentionally left with zero theme
 * CSS so it always renders exactly as the plugin ships it. See
 * docs/booking-integration.md.
 */

/* Card chrome ------------------------------------------------------------- */

.rentiva-booking-card {
	position: static;
}

@media (min-width: 1024px) {
	.rentiva-booking-card {
		position: sticky;
		top: 6.5rem;
	}
}

.rentiva-booking-card__inner {
	padding: 1.75rem;
	border: 1px solid var(--rentiva-border);
	border-radius: var(--rentiva-radius-lg);
	box-shadow: var(--rentiva-shadow-card);
	background-color: var(--rentiva-card);
}

/* Head: eyebrow + starting price on the left, live availability badge on
 * the right — replaces the plugin's own hidden rate/teaser boxes (still
 * suppressed below) with one clean, theme-styled summary line. */
.rentiva-booking-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 1.25rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid var(--rentiva-border);
}

.rentiva-booking-card__eyebrow {
	display: block;
	font-size: var(--rentiva-text-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rentiva-muted-foreground);
	margin-bottom: 0.4rem;
}

.rentiva-booking-card__price {
	display: flex;
	align-items: baseline;
	gap: 0.35rem;
	margin: 0;
}

.rentiva-booking-card__price-amount {
	font-family: var(--rentiva-font-display);
	font-size: var(--rentiva-text-2xl);
	font-weight: 700;
	color: var(--rentiva-foreground);
	line-height: 1;
}

.rentiva-booking-card__price-unit {
	font-size: var(--rentiva-text-sm);
	color: var(--rentiva-muted-foreground);
}

.rentiva-booking-card__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	flex-shrink: 0;
	padding: 0.4rem 0.85rem;
	border-radius: var(--rentiva-radius-pill);
	font-size: var(--rentiva-text-xs);
	font-weight: 600;
	white-space: nowrap;
}

.rentiva-booking-card__badge-dot {
	width: 0.4rem;
	height: 0.4rem;
	border-radius: 50%;
	background-color: currentColor;
}

.rentiva-booking-card__badge--in-stock {
	background-color: #DCFCE7;
	color: #15803D;
}

.rentiva-booking-card__badge--low-stock {
	background-color: #FEF3C7;
	color: #B45309;
}

.rentiva-booking-card__badge--sold-out {
	background-color: #FEE2E2;
	color: #B91C1C;
}

.rentiva-booking-card__trust {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.rentiva-booking-card__trust-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 0.75rem;
	border-radius: var(--rentiva-radius-sm);
	background-color: var(--rentiva-muted);
	font-size: var(--rentiva-text-xs);
	font-weight: 600;
	color: var(--rentiva-foreground);
}

.rentiva-booking-card__trust-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	flex-shrink: 0;
	border-radius: 50%;
	background-color: var(--rentiva-primary);
	color: #FFFFFF;
}

.rentiva-booking-card__trust-icon svg {
	width: 0.7rem;
	height: 0.7rem;
}

/* Mobile sticky bottom bar --------------------------------------------------- */

.rentiva-mobile-booking-bar {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 40;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.5rem;
	background-color: var(--rentiva-card);
	border-top: 1px solid var(--rentiva-border);
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1023.98px) {
	.rentiva-mobile-booking-bar {
		display: flex;
	}

	/* Leave room so the fixed bar never covers the page's own footer content. */
	body.rentiva-single-item .site-main {
		padding-bottom: 4.5rem;
	}
}

.rentiva-mobile-booking-bar__amount {
	font-family: var(--rentiva-font-display);
	font-size: var(--rentiva-text-xl);
	font-weight: 700;
}

.rentiva-mobile-booking-bar__unit {
	font-size: var(--rentiva-text-sm);
	color: var(--rentiva-muted-foreground);
}

.rentiva-mobile-booking-bar__cta {
	flex: 1;
	max-width: 16rem;
}

.rentiva-mobile-booking-bar.is-hidden {
	display: none !important;
}
