/* Roots & Routes Core — operator contact + cancellation block inside a
   guest booking card in My Bookings (TASK-139C/D). Brand tokens with
   literal fallbacks; fits both Listeo card layouts (.lstb-card / legacy). */

/*
 * TASK-149: single booking detail view (`/my-bookings/?booking=`) cut off
 * on the right on mobile. `.lstb-grid` is a 1-column CSS Grid under 991px
 * (bookings-modern.css) — a grid item's default `min-width` is `auto`
 * (its content's own minimum size), not 0. An unbreakable value with no
 * wrap opportunity (the operator's email, one long token) set that minimum
 * wider than the phone's viewport, so the whole `.lstb-grid` (and every
 * `.lstb-detail-row` inside it) grew past the viewport — same right edge
 * cut on every row, not just the email one. `min-width: 0` down this exact
 * container chain lets the grid track actually shrink to the viewport;
 * `overflow-wrap` on the values is the other half — without it, a value
 * that still doesn't fit (email, long status text) would keep pushing
 * instead of wrapping onto a second line.
 */
.lstb-grid,
.lstb-col-left,
.lstb-panel,
.lstb-panel-body {
	min-width: 0;
}

.lstb-detail-row {
	flex-wrap: wrap;
}

.lstb-detail-value,
.lstb-detail-value a {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.rrc-bk {
	--rr-cream: #faf6ec;
	--rr-border: #e8dfcc;
	--rr-ink: #2b2420;
	--rr-ink-soft: #6b6153;
	--rr-teal-deep: #1b4b4a;
	--rr-teal: #2e9c8f;
	--rr-orange-dark: #c94a24;
	margin: 12px 0 4px;
	padding: 14px 16px;
	background: var(--rr-cream);
	border: 1px solid var(--rr-border);
	border-radius: 14px;
	font-size: 0.93em;
	line-height: 1.5;
	color: var(--rr-ink);
}

.rrc-bk-notice {
	margin: 0 0 12px;
	padding: 10px 14px;
	border-radius: 10px;
	font-weight: 600;
}

.rrc-bk-notice--success {
	background: #e3f2f0;
	color: var(--rr-teal-deep);
}

.rrc-bk-notice--error {
	background: #fbeaea;
	color: #a12622;
}

.rrc-bk-contact-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	margin-bottom: 8px;
}

.rrc-bk-contact-head strong {
	color: var(--rr-teal-deep);
}

.rrc-bk-contact-head small {
	color: var(--rr-ink-soft);
}

.rrc-bk-channels {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.rrc-bk-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--rr-teal-deep);
	color: #fff !important;
	font-weight: 600;
	font-size: 0.92em;
	line-height: 1.2;
	text-decoration: none !important;
	border: 1px solid var(--rr-teal-deep);
	cursor: pointer;
	list-style: none;
}

.rrc-bk-btn span {
	font-weight: normal;
	opacity: 0.9;
}

.rrc-bk-btn:hover {
	background: var(--rr-teal);
	border-color: var(--rr-teal);
}

.rrc-bk-btn--whatsapp {
	background: #1f8f5f;
	border-color: #1f8f5f;
}

.rrc-bk-btn--whatsapp:hover {
	background: #25a06b;
	border-color: #25a06b;
}

.rrc-bk-btn--ghost {
	background: #fff;
	color: var(--rr-teal-deep) !important;
	border-color: var(--rr-border);
}

.rrc-bk-btn--ghost:hover {
	background: #fff;
	border-color: var(--rr-teal-deep);
}

.rrc-bk-btn--danger {
	color: var(--rr-orange-dark) !important;
}

.rrc-bk-btn--danger:hover {
	border-color: var(--rr-orange-dark);
}

.rrc-bk-btn--danger-solid {
	background: var(--rr-orange-dark);
	border-color: var(--rr-orange-dark);
}

.rrc-bk-btn--danger-solid:hover {
	background: #b03f1d;
	border-color: #b03f1d;
}

.rrc-bk-muted {
	margin: 0 0 8px;
	color: var(--rr-ink-soft);
}

.rrc-bk-policy {
	margin: 4px 0 0;
	padding-top: 10px;
	border-top: 1px dashed var(--rr-border);
}

.rrc-bk-policy strong {
	color: var(--rr-teal-deep);
}

.rrc-bk-policy small {
	display: block;
	color: var(--rr-ink-soft);
}

.rrc-bk-cancel {
	margin-top: 10px;
}

.rrc-bk-badge {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 0.9em;
	font-weight: 600;
}

.rrc-bk-badge--pending {
	background: #fff3cd;
	color: #856404;
}

.rrc-bk-cancel-details summary::-webkit-details-marker {
	display: none;
}

.rrc-bk-cancel-form {
	margin: 12px 0 0;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--rr-border);
	border-radius: 12px;
}

.rrc-bk-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 10px;
	font-weight: normal;
}

.rrc-bk-field span {
	font-size: 0.85em;
	font-weight: 600;
	color: var(--rr-teal-deep);
}

.rrc-bk-field textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 64px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--rr-border);
	border-radius: 10px;
	background: #f6f6f4;
	font-size: 0.95em;
	resize: vertical;
}

.rrc-bk-field textarea:focus {
	outline: none;
	border-color: var(--rr-teal);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(46, 156, 143, 0.18);
}

.rrc-bk-cancel-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
}

.rrc-bk-cancel-actions small {
	color: var(--rr-ink-soft);
}

.rrc-bk-window-closed {
	margin: 0;
}
