.twl-location-selector-items {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 1em;
}

.twl-location-selector-item {
	padding: 1em;
	width: 20em;
}

.twl-location-selector-item.selected {
  background-color: #f0f0f0;
}

.twl-location-selector-item-button {
	margin-top: 1em !important;
}

.twl-location-selector-item.selected .twl-location-selector-item-button {

	display: none;
}

.twl-location-selector-item-button {
	margin-top: 1em;
}

.twl-selected-location-content {
	display: inline-flex;
	flex-direction: column;
}

.twl-selected-location-modal-link {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 0.5em;
}

.ui-dialog.frameless-modal {
	border: none !important;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	padding: 0;
}

.ui-dialog.frameless-modal.ui-corner-all {
	border-radius: 20px !important;
}
/* Target the outer container just in case */
.ui-dialog.frameless-modal {
	overflow: hidden !important;
	border: none !important;
	padding: 0 !important;
	background: transparent !important;
}

/* Target the inner content area where jQuery UI applies background */
.ui-dialog.frameless-modal .ui-dialog-content.ui-widget-content {
	/* border-radius: 20px !important; */
	background-color: #fff !important;
	overflow: hidden;
	padding: 1em;
}

.ui-dialog.frameless-modal .ui-dialog-titlebar {
	background-color: #fff !important;
}
.ui-dialog.frameless-modal .ui-dialog-titlebar.ui-widget-header {
  background: #fff !important;
  background-image: none !important;
}

/* TODO: make this color configurable */
.ui-dialog.frameless-modal .ui-dialog-titlebar-close {
	background: #C4E5F2 !important;
}

.ui-dialog.frameless-modal .ui-dialog-content {
	padding: 1em;
	background: #fff;
}

/* Titlebar styling: taller and with a bottom border */
.ui-dialog.frameless-modal .ui-dialog-titlebar {
  background-color: #fff !important;
  padding: 1rem 1rem 1rem 1.25rem !important;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dcdcdc;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-sizing: border-box;
}

/* Title text styling (optional) */
.ui-dialog.frameless-modal .ui-dialog-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  line-height: 1;
}

/* Make the close button larger and properly centered */
.ui-dialog.frameless-modal .ui-dialog-titlebar-close {
  background: #C4E5F2 !important;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  position: relative;
}

/* Ensure the close icon appears */
.ui-dialog.frameless-modal .ui-dialog-titlebar-close::before {
  content: "×";
  font-size: 20px;
  font-weight: bold;
  color: #333;
  line-height: 1;
}

.ui-dialog.frameless-modal .ui-dialog-titlebar-close {
  margin-top: 2px; /* You can adjust this to 3px or 4px if needed */
}

.rental-form {
  font-family: sans-serif;
  width: 280px;
  padding-right: 10px;
  border-radius: 8px;
  background: white;
  box-sizing: border-box;
}

.rental-form-description {
  margin-bottom: 16px;
}

.rental-form .form-group {
  margin-bottom: 16px;
}

.rental-form .form-group > label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.rental-form .toggle-group {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
}

.rental-form .toggle-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.2s;
  border-right: 1px solid #ccc;
  margin-bottom: 0; /* override label margin if inherited */
}

.rental-form .toggle-option:last-child {
  border-right: none;
}

.rental-form .toggle-option input[type="radio"] {
  accent-color: #00758F;
  margin: 0;
  vertical-align: middle;
}

.rental-form .toggle-option:has(input[type="radio"]:checked) {
  background-color: #d2edf8;
  font-weight: 600;
}

.rental-form input[type="date"] {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.rental-form select {
  width: 100%;
  padding: 10px 3em 10px 10px; /* Add space for larger arrow */
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='70,100 30,50 110,50' fill='%23333'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8em center;
  background-size: 1em auto;
}

.rental-form .apply-btn {
  width: 100%;
  padding: 12px;
  background-color: #00758F;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.rental-form .apply-btn:hover {
  background-color: #005f73;
}
