/* ── Hotel Rates Manager — Shortcode Frontend Styles ────────────────────── */

table.hr-sc-table th {
    color: #fff;
}

.hr-sc-wrap {
	margin: 1.5em 0;
	font-family: inherit;
}

/* Specific Day Tour/Joiner table layout. */
.hr-sc-wrap.hr-specific-tour-rates {
	display: block;
	clear: both;
	margin: 0;
	padding: 0;
}

.hr-specific-tour-rates .hr-sc-table-overflow {
	max-width: 100%;
	overflow-x: visible;
}

.hr-specific-tour-rates table.hr-specific-tour-rate-table {
	width: 100%;
	min-width: 0;
	table-layout: fixed;
}

.hr-specific-tour-rates .hr-specific-tour-rate-table thead tr {
	background: #f3f6fa;
}

.hr-specific-tour-rates .hr-specific-tour-rate-table thead th {
	color: #1f2937;
	text-align: left;
	white-space: normal;
	overflow-wrap: anywhere;
}

.hr-specific-tour-rate-table col.hr-specific-tour-rate-col-pax,
.hr-specific-tour-rate-table col.hr-specific-tour-rate-col-price {
	width: 16.6667%;
}

.hr-specific-tour-rate-table col.hr-specific-tour-rate-col-details {
	width: 66.6666%;
}

.hr-specific-tour-rate-table td.hr-specific-tour-rate-pax,
.hr-specific-tour-rate-table td.hr-specific-tour-rate-price {
	text-align: left;
	white-space: nowrap;
}

.hr-specific-tour-rate-table td.hr-specific-tour-package-details {
	padding: 0 16px 14px;
	vertical-align: top;
	overflow-wrap: anywhere;
}

.hr-specific-tour-package-detail-group + .hr-specific-tour-package-detail-group {
	margin-top: 0;
}

.hr-specific-tour-package-detail-group h4 {
	margin: 0 0 0.55em;
	color: #1f2937;
	font-size: 0.92em !important;
	line-height: 1.35;
	font-weight: 700;
}

.hr-specific-tour-rate-table tbody tr:first-child > td:nth-child(-n+2) {
	background-color: #fff !important;
}

.hr-specific-tour-package-detail-group ul {
	margin: 0;
	padding-left: 1.4em;
}

.hr-specific-tour-package-detail-group li {
	margin: 0 0 0.45em;
	line-height: 1.45;
}

.hr-specific-tour-package-detail-group li:last-child {
	margin-bottom: 0;
}

.hr-specific-tour-rate-table .hr-specific-tour-child-discount-row td {
	padding: 12px 14px;
	background: #f8fafc;
	border-top: 1px solid #dbe3ee;
	color: #1f2937;
	font-size: 0.92em;
	font-weight: 600;
	line-height: 1.45;
	text-align: left;
}

.hr-specific-tour-mobile-child-discount {
	display: none;
}

@media ( max-width: 767px ) {
	.hr-specific-tour-rates .hr-sc-table-overflow {
		overflow-x: visible;
	}

	.hr-specific-tour-rates table.hr-specific-tour-rate-table {
		width: 100%;
		min-width: 0;
		table-layout: fixed;
		font-size: clamp(0.72rem, 2.8vw, 0.82rem);
	}


	.hr-specific-tour-rate-table thead th {
		padding: 8px 6px;
		white-space: normal;
		line-height: 1.3;
		overflow-wrap: anywhere;
	}

	.hr-specific-tour-rate-table td.hr-specific-tour-rate-pax,
	.hr-specific-tour-rate-table td.hr-specific-tour-rate-price {
		padding: 8px 6px;
	}

	.hr-specific-tour-rate-table td.hr-specific-tour-package-details {
		display: table-cell;
		padding: 8px 8px 10px;
		vertical-align: top;
		background: #fff;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.hr-specific-tour-rate-table .hr-specific-tour-desktop-child-discount {
		display: none;
	}

	.hr-specific-tour-rate-table .hr-specific-tour-mobile-child-discount {
		display: table-row;
	}

	.hr-specific-tour-rate-table .hr-specific-tour-package-detail-group h4 {
		font-size: 0.92em !important;
		line-height: 1.3;
	}

	.hr-specific-tour-rate-table .hr-specific-tour-package-detail-group ul {
		padding-left: 1.15em;
	}

	.hr-specific-tour-rate-table .hr-specific-tour-package-detail-group li {
		margin-bottom: 0.35em;
		line-height: 1.35;
	}

	.hr-specific-tour-rate-table .hr-specific-tour-mobile-child-discount td {
		padding: 12px 10px;
		border: 1px solid #dbe3ee;
		background: #fff;
		color: #1f2937;
		font-size: 0.875em;
		line-height: 1.45;
		white-space: normal;
	}

	.hr-specific-tour-rate-table .hr-specific-tour-mobile-child-discount strong {
		display: block;
		margin-bottom: 0.45em;
		font-size: 0.92em;
		font-weight: 700;
	}

	.hr-specific-tour-rate-table .hr-specific-tour-mobile-child-discount p {
		margin: 0;
	}
}

.hr-sc-title {
	font-size: 1.15em;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 0.6em;
	color: #111;
}

.hr-sc-table-overflow {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.hr-sc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875em;
	min-width: 560px;
}

/* Header row */
.hr-sc-table thead tr {
	background-color: #1a2e4a;
	color: #fff;
}

.hr-sc-table thead th {
	padding: 10px 12px;
	text-align: left;
	font-weight: 700;
	white-space: nowrap;
	font-size: 0.92em;
	letter-spacing: 0.02em;
	border: none;
}

.hr-sc-table thead th.hr-sc-th-city {
	min-width: 140px;
	max-width: 180px;
}

.hr-sc-table thead th.hr-sc-th-bp {
	min-width: 80px;
	text-align: center;
}

/* Body rows */
.hr-sc-table tbody tr {
	border-bottom: 1px solid #e5e7eb;
	background: #fff;
	transition: background 0.12s;
}

.hr-sc-table tbody tr:hover {
	background: #f3f6fa;
}

.hr-sc-table tbody td {
	padding: 9px 12px;
	vertical-align: middle;
	color: #222;
	border: none;
}

/* Hotel / Tour name column */
td.hr-sc-hotel-name {
	font-weight: 700;
	color: #111;
	white-space: nowrap;
}

/* Breakfast indicator */
td.hr-sc-bp {
	text-align: center;
	font-size: 1em;
}

.hr-sc-check {
	color: #16a34a;
	font-weight: 700;
}

.hr-sc-cross {
	color: #888;
	font-weight: 700;
}

/* Price cells */
td.hr-sc-price {
	white-space: nowrap;
	text-align: right;
	color: #222;
}

/* Error / empty messages */
.hr-sc-error,
.hr-sc-empty {
	color: #b91c1c;
	font-style: italic;
	font-size: 0.9em;
}

.hr-sc-empty {
	color: #6b7280;
}

/* Responsive */
@media ( max-width: 600px ) {

	.hr-sc-title {
		font-size: 1em;
	}
	.hr-sc-table {
		font-size: 0.8em;
	}
	.hr-sc-table thead th,
	.hr-sc-table tbody td {
		padding: 7px 8px;
	}
}

/* Package Deal hotel-rate shortcode. Kept separate from the general tables. */
.hr-package-rates {
	margin: 1.5em 0;
	font-family: inherit;
}

/* Fallback for cached/legacy shortcode markup that still contains the title. */
.hr-package-rates-title {
	display: none !important;
}

.hr-package-rates-group + .hr-package-rates-group {
	margin-top: 1.5em;
}

.hr-package-rates-place {
	margin: 0 0 0.55em;
	color: #1f2937;
	font-size: 0.875em !important;
	line-height: 1.2 !important;
	font-weight: 700;
}

.hr-package-rates-overflow {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid #dbe3ee;
	border-radius: 0 !important;
}

.hr-package-rates-table {
	width: 100%;
	min-width: 760px;
	margin: 0;
	border: 0;
	border-radius: 0 !important;
	border-collapse: collapse;
	font-size: 0.875em;
}

.hr-package-rates-table thead,
.hr-package-rates-table thead tr {
	background: #063b66;
	border-radius: 0 !important;
	color: #fff;
}

.hr-package-rates .hr-package-rates-overflow table.hr-package-rates-table > thead > tr > th {
	display: table-cell !important;
	box-sizing: border-box;
	height: auto !important;
	padding: 10px 12px !important;
	border: 0;
	border-radius: 0 !important;
	color: #fff;
	font-weight: 700;
	line-height: 24px !important;
	text-align: center;
	vertical-align: middle !important;
	white-space: nowrap;
}

.hr-package-rates .hr-package-rates-table .hr-package-rates-heading {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: auto !important;
	min-height: 0 !important;
	padding-top: 20px !important;
	line-height: 24px !important;
}

.hr-package-rates .hr-package-rates-overflow table.hr-package-rates-table > thead > tr > th:first-child,
.hr-package-rates .hr-package-rates-overflow table.hr-package-rates-table > thead > tr > th:nth-child(2) {
	text-align: left !important;
}

.hr-package-rates .hr-package-rates-table > thead > tr > th:first-child .hr-package-rates-heading,
.hr-package-rates .hr-package-rates-table > thead > tr > th:nth-child(2) .hr-package-rates-heading {
	justify-content: flex-start !important;
}

.hr-package-rates .hr-package-rates-table > thead > tr > th:first-child .hr-package-rates-heading {
	position: relative !important;
	top: 6px !important;
}

.hr-package-rates .hr-package-rates-overflow table.hr-package-rates-table > thead > tr > th:first-child {
	padding-left: 18px !important;
}

.hr-package-rates .hr-package-rates-overflow table.hr-package-rates-table > tbody > tr > th,
.hr-package-rates .hr-package-rates-overflow table.hr-package-rates-table > tbody > tr > td {
	vertical-align: middle !important;
}

.hr-package-rates .hr-package-rates-overflow table.hr-package-rates-table > tbody > tr > th.hr-package-rates-hotel {
	padding-left: 18px !important;
}

.hr-package-rates-table tbody tr {
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
}

.hr-package-rates-table tbody tr:last-child {
	border-bottom: 0;
}

.hr-package-rates-table tbody tr:nth-child(even) {
	background: #f8fafc;
}

.hr-package-rates-table tbody th,
.hr-package-rates-table tbody td {
	padding: 10px 12px;
	border: 0;
	color: #1f2937;
	vertical-align: middle;
}

.hr-package-rates-hotel {
	min-width: 180px;
	font-weight: 700;
	text-align: left;
	white-space: nowrap;
}

.hr-package-rates-meal {
	min-width: 105px;
	white-space: nowrap;
}

.hr-package-rates-price {
	text-align: right;
	white-space: nowrap;
}

.hr-package-rates-price .woocommerce-Price-amount {
	white-space: nowrap;
}

.hr-package-rates-message {
	margin: 1em 0;
	color: #6b7280;
	font-style: italic;
}

@media ( max-width: 600px ) {
	.hr-package-rates-table {
		font-size: 0.8em;
	}

	.hr-package-rates-table thead th,
	.hr-package-rates-table tbody th,
	.hr-package-rates-table tbody td {
		padding: 8px;
	}
}