/* ==========================================================================
   CANCELLATION POLICIES POPUP (viewCancellationRules.jsp)
   --------------------------------------------------------------------------
   Used by both the legacy single-room view (one room block) and the booking-
   groups view (one block per criterion in the bundle). Rendered inside a
   fancybox dialog; the host page's stylesheet stack applies.
   ========================================================================== */

.cancellation-popup {
	width: 720px;
	max-width: 100%;
	max-height: 78vh;
	overflow-y: auto;
	padding: 0 24px 24px;
	box-sizing: border-box;
	color: #0f1c3e;
	background: #ffffff;
	font-size: 13px;
	line-height: 1.5;
}

.cancellation-popup *,
.cancellation-popup *::before,
.cancellation-popup *::after {
	box-sizing: border-box;
}

.cancellation-popup h1,
.cancellation-popup h2,
.cancellation-popup h3 {
	margin: 0;
	border-bottom: none;
	font-weight: 700;
}

/* --- Hotel title ------------------------------------------------------- */

.cancellation-popup__title {
	font-size: 20px;
	color: #0f1c3e;
	padding: 18px 4px 14px;
	margin: 0 0 14px;
	border-bottom: 1px solid #e6e8ec;
}

/* --- Per-room block ---------------------------------------------------- */

.cancellation-room-block {
	margin: 0 0 14px;
	padding: 12px 0;
}

.cancellation-popup .cancellation-room-block + .cancellation-room-block {
	border-top: 1px dashed #d8dde5;
	margin-top: 6px;
}

.cancellation-room-block--bundle {
	/* Booking-groups view — give each criterion a clear card so the user
	   can mentally separate the rooms inside the bundle. */
	background: #fbfcfd;
	border: 1px solid #e6e8ec;
	border-radius: 4px;
	padding: 14px 16px;
	margin-bottom: 12px;
}

.cancellation-popup .cancellation-room-block--bundle + .cancellation-room-block--bundle {
	border-top: 1px solid #e6e8ec;
	margin-top: 0;
}

.cancellation-room-block__criterion {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

.cancellation-room-block__pill {
	display: inline-block;
	background: #EC681F;
	color: #ffffff;
	padding: 3px 9px;
	border-radius: 10px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.cancellation-room-block__occupancy {
	font-size: 12px;
	color: #6b7280;
}

.cancellation-room-block__name {
	font-size: 15px;
	color: #002a5c;
	margin: 6px 0 4px;
}

/* --- Two-column durations + fees row ----------------------------------- */

.cancellation-row {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 14px 0 0;
}

.cancellation-row__heading {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #6b7280;
	margin: 0 0 8px;
}

/* Durations column gets the lion's share — period strings are typically
   timestamps spanning two dates and need a full single-line slot. */
.cancellation-durations {
	flex: 2 1 360px;
	min-width: 0;
}

.cancellation-fees {
	flex: 1 1 200px;
	min-width: 0;
}

.cancellation-durations__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.cancellation-durations__list li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 7px 0;
	border-bottom: 1px dotted #e6e8ec;
}

.cancellation-durations__list li:last-child {
	border-bottom: none;
}

.cancellation-durations__period {
	color: #4b5563;
	font-size: 12px;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	flex: 1 1 auto;
	min-width: 0;
}

.cancellation-durations__price {
	color: #EC681F;
	font-weight: 700;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	flex: 0 0 auto;
}

.cancellation-fees__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 7px 0;
	border-bottom: 1px dotted #e6e8ec;
	font-size: 13px;
	margin: 0;
}

.cancellation-fees__row:last-child {
	border-bottom: none;
}

.cancellation-fees__label {
	color: #6b7280;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	font-size: 11px;
}

.cancellation-fees__value {
	color: #002a5c;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* --- Per-room policy description --------------------------------------- */

.cancellation-policy-text {
	margin: 14px 0 0;
	padding: 12px 14px;
	background: #fffaf6;
	border-left: 3px solid #EC681F;
	border-radius: 0 4px 4px 0;
}

.cancellation-policy-text .cancellation-row__heading {
	margin-bottom: 4px;
	color: #EC681F;
}

.cancellation-policy-text p {
	margin: 0;
	font-size: 12px;
	color: #0f1c3e;
	line-height: 1.55;
}

/* --- Hotel-level info (issues, remarks) -------------------------------- */

.cancellation-hotel-info {
	margin: 16px 0 0;
	padding: 12px 14px;
	background: #f7f8fa;
	border-radius: 4px;
}

.cancellation-hotel-info .cancellation-row__heading {
	margin-bottom: 4px;
}

.cancellation-hotel-info p {
	margin: 0;
	font-size: 12px;
	color: #4b5563;
	line-height: 1.55;
}

/* --- Error fallback ---------------------------------------------------- */

.cancellation-popup--error {
	width: 480px;
	max-width: 100%;
	padding: 32px 24px;
	text-align: center;
	color: #6b7280;
	font-size: 14px;
}
