/* Rental booking box (product page). Colours follow the theme: red #dc523b, dark #1c1f21. */
.bm-rent { order: 7; width: 100%; box-sizing: border-box; visibility: visible !important; margin: 25px 0; padding: 22px; border-radius: 10px; background: #f6f6f6; display: block !important; }
.bm-rent-title { margin: 0 0 12px; font-family: "Kanit", sans-serif; text-transform: uppercase; font-size: 1.4em; color: #1c1f21; }
.bm-rent-calendar { position: relative; margin-bottom: 10px; }
.bm-cal-nav { position: absolute; top: -2px; left: 0; right: 0; display: flex; justify-content: space-between; pointer-events: none; }
.bm-cal-nav button { pointer-events: auto; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #1c1f21; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.bm-cal-nav button:disabled { opacity: .3; cursor: default; }
.bm-cal-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.bm-cal-title { text-align: center; font-family: "Kanit", sans-serif; font-weight: 600; text-transform: uppercase; line-height: 30px; margin-bottom: 6px; }
.bm-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.bm-cal-wd { text-align: center; font-size: 12px; color: #888; padding-bottom: 2px; }
.bm-cal-day {
	aspect-ratio: 1; min-height: 32px; padding: 0; margin: 0; border: 0; border-radius: 6px;
	background: #fff; color: #1c1f21; font: inherit; font-size: 14px; line-height: 1; cursor: pointer; box-shadow: none; text-transform: none;
}
.bm-cal-day:hover:not(:disabled) { background: #fbe1dc; }
.bm-cal-day:disabled { cursor: default; }
.bm-cal-day.is-closed { background: transparent; color: #c4c4c4; }
.bm-cal-day.is-busy { background: #e6e6e6; color: #a5a5a5; text-decoration: line-through; }
.bm-cal-day.is-busy.can-end { text-decoration: none; color: #1c1f21; }
.bm-cal-day.in-range { background: #f4b8ad; color: #1c1f21; border-radius: 0; }
.bm-cal-day.is-start, .bm-cal-day.is-end { background: #dc523b; color: #fff; font-weight: 700; }
.bm-cal-day:focus-visible { outline: 2px solid #1c1f21; outline-offset: 1px; }
.bm-cal-legend { display: flex; gap: 16px; font-size: 13px; color: #555; margin-top: 10px; flex-wrap: wrap; }
.bm-cal-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.bm-cal-legend .lg-free::before { background: #fff; border: 1px solid #ddd; }
.bm-cal-legend .lg-busy::before { background: #e6e6e6; }
.bm-cal-legend .lg-sel::before { background: #dc523b; }

.bm-rent-dates { display: flex; gap: 12px; margin: 8px 0 4px; }
.bm-rent-dates label { flex: 1; font-size: 14px; color: #555; }
.bm-rent-dates input { width: 100%; box-sizing: border-box; padding: 8px; border: 1px solid #ccc; border-radius: 6px; background: #fff; font: inherit; }
.bm-rent-hint { font-size: 13px; color: #777; margin: 4px 0 14px; }

.bm-rent-group { border: 0; border-top: 1px solid #e2e2e2; margin: 0; padding: 12px 0 6px; min-width: 0; }
.bm-rent-group legend { font-family: "Kanit", sans-serif; font-weight: 600; text-transform: uppercase; font-size: 15px; padding: 12px 0 4px; float: left; width: 100%; }
.bm-rent-option { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; clear: both; cursor: pointer; font-size: 15px; line-height: 1.3; }
.bm-rent-option input { flex: none; margin: 0; accent-color: #dc523b; }
.bm-rent-option-label { flex: 1; }
.bm-rent-option-price { color: #555; white-space: nowrap; font-size: 14px; }
.bm-rent-group select { clear: both; display: block; width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 6px; background: #fff; font: inherit; }

.bm-rent-summary { margin: 14px 0 6px; padding: 12px 14px; background: #fff; border-radius: 8px; }
.bm-rent-summary table { width: 100%; border-collapse: collapse; margin: 0; font-size: 14px; }
.bm-rent-summary th { text-align: left; font-weight: 400; padding: 3px 8px 3px 0; border: 0; }
.bm-rent-summary td { text-align: right; white-space: nowrap; padding: 3px 0; border: 0; }
.bm-rent-summary tfoot th, .bm-rent-summary tfoot td { font-weight: 700; font-size: 17px; border-top: 1px solid #e2e2e2; padding-top: 8px; }
.bm-rent-info { font-size: 13px; color: #555; margin: 8px 0 0; }
.bm-rent-error { color: #b32d2e; font-weight: 600; margin: 8px 0; }
.bm-rent-submit { width: 100%; margin-top: 10px !important; }

@media (max-width: 600px) {
	.bm-rent { padding: 18px 14px 16px; margin: 24px 0 0; border-radius: 12px; }
	.bm-rent-title { font-size: 1.25em; margin-bottom: 6px; }
	.bm-rent-season { margin: 0 0 10px; }
	.bm-rent-status { margin-bottom: 14px; font-size: 14px; }
	.bm-cal-grid { gap: 4px; }
	.bm-cal-day { min-height: 0; font-size: 15px; }
	.bm-rent-group { padding-top: 10px; }
	.bm-rent-option { padding: 6px 0; }
	.bm-rent-hint { margin-bottom: 8px; }
}

.bm-rent-season { margin: -4px 0 6px; font-size: 14px; color: #555; }
.bm-rent-status { margin: 0 0 12px; padding: 8px 12px; border-radius: 6px; background: #fff; font-weight: 600; font-size: 15px; }
.bm-rent-status:empty { display: none; }
.bm-rent-status.is-done { background: #dc523b; color: #fff; }
.bm-rent.has-js .bm-rent-dates { display: none; } /* the calendar replaces the plain date fields when JS runs */
.bm-rent:not(.has-js) .bm-rent-status { display: none; }

/* The theme styles every <button> (red background, white text forced with !important on hover,
   2px border, 8px "drop" on hover). Calendar controls are buttons too, so reset all states explicitly. */
.bm-rent .bm-cal-day,
.bm-rent .bm-cal-day:hover,
.bm-rent .bm-cal-day:focus,
.bm-rent .bm-cal-day:active,
.bm-rent .bm-cal-nav button,
.bm-rent .bm-cal-nav button:hover,
.bm-rent .bm-cal-nav button:focus,
.bm-rent .bm-cal-nav button:active {
	transform: none !important;
	-webkit-transform: none !important;
	border: 0 !important;
	transition: background-color .12s ease, color .12s ease !important;
	font-weight: 400;
	letter-spacing: normal;
}
.bm-rent .bm-cal-day, .bm-rent .bm-cal-day:hover, .bm-rent .bm-cal-day:focus, .bm-rent .bm-cal-day:active { color: #1c1f21 !important; }
.bm-rent .bm-cal-day:hover:not(:disabled) { background: #fbe1dc !important; }
.bm-rent .bm-cal-day.is-closed, .bm-rent .bm-cal-day.is-closed:hover { background: transparent !important; color: #c4c4c4 !important; }
.bm-rent .bm-cal-day.is-busy, .bm-rent .bm-cal-day.is-busy:hover { background: #e6e6e6 !important; color: #a5a5a5 !important; }
.bm-rent .bm-cal-day.is-busy.can-end, .bm-rent .bm-cal-day.is-busy.can-end:hover { color: #1c1f21 !important; }
.bm-rent .bm-cal-day.in-range, .bm-rent .bm-cal-day.in-range:hover { background: #f4b8ad !important; color: #1c1f21 !important; }
.bm-rent .bm-cal-day.is-start, .bm-rent .bm-cal-day.is-end,
.bm-rent .bm-cal-day.is-start:hover, .bm-rent .bm-cal-day.is-end:hover { background: #dc523b !important; color: #fff !important; font-weight: 700; }
.bm-rent .bm-cal-nav button, .bm-rent .bm-cal-nav button:hover, .bm-rent .bm-cal-nav button:focus { background: #fff !important; color: #1c1f21 !important; padding: 0 !important; }
.bm-rent .bm-cal-nav button:hover:not(:disabled) { background: #fbe1dc !important; }
.bm-rent .bm-cal-day:focus-visible, .bm-rent .bm-cal-nav button:focus-visible { outline: 2px solid #1c1f21 !important; outline-offset: 1px; }

.bm-rent .bm-cal-day.in-preview, .bm-rent .bm-cal-day.in-preview:hover { background: #f8d3cc !important; border-radius: 0; }
.bm-rent .bm-cal-day.is-preview-end, .bm-rent .bm-cal-day.is-preview-end:hover { background: #e98a79 !important; color: #fff !important; }
.bm-rent .bm-cal-day.is-busy, .bm-rent .bm-cal-day.is-busy:hover { color: #7d7d7d !important; }

/* Selected / preview days: darker brand red for readable white text (4.9:1). */
.bm-rent .bm-cal-day.is-start, .bm-rent .bm-cal-day.is-end,
.bm-rent .bm-cal-day.is-start:hover, .bm-rent .bm-cal-day.is-end:hover,
.bm-rent .bm-cal-day.is-preview-end, .bm-rent .bm-cal-day.is-preview-end:hover { background: #c34834 !important; color: #fff !important; }
.bm-cal-legend .lg-sel::before { background: #c34834; }

/* Collapsible add-on groups */
.bm-rent-more { border-top: 1px solid #e2e2e2; }
.bm-rent-more > summary {
	display: flex; align-items: baseline; gap: 10px; padding: 14px 0; cursor: pointer; list-style: none;
}
.bm-rent-more > summary::-webkit-details-marker { display: none; }
.bm-rent-more > summary::after { content: "+"; margin-left: auto; font-size: 20px; line-height: 1; color: #1c1f21; }
.bm-rent-more[open] > summary::after { content: "–"; }
.bm-rent-more-title { font-family: "Kanit", sans-serif; font-weight: 600; text-transform: uppercase; font-size: 15px; white-space: nowrap; }
.bm-rent-picked { font-size: 13px; color: #666; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bm-rent-more > summary:focus-visible { outline: 2px solid #1c1f21; outline-offset: 2px; }
.bm-rent-more .bm-rent-group { border-top: 0; padding-top: 0; }
