/**
 * Guest Picker Module — Styles
 *
 * Stepper controls and modal for Adults/Children/Pets selection
 * in the booking widget.
 */

/* ── Trigger button (replaces the <select>) ────────────────────── */

.hrtk-gp-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0 10px;
	height: 40px;
	border: 1px solid #e5e5e5;
	border-radius: 0;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	color: #333;
	text-align: left;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.hrtk-gp-trigger:hover {
	border-color: #b5b5b5;
}

.hrtk-gp-trigger::after {
	content: '';
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid #999;
	margin-left: 8px;
	flex-shrink: 0;
}

/* ── Modal ──────────────────────────────────────────────────────── */

.hrtk-gp-modal .hk-modal-dialog {
	max-width: 415px;
	margin: auto;
}

.hrtk-gp-modal .hk-modal-body {
	padding: 20px 30px;
}

.hrtk-gp-row-item {
	display: flex;
	align-items: center;
	padding: 16px 0;
}

.hrtk-gp-row-item + .hrtk-gp-row-item {
	border-top: 1px solid #f0f0f0;
}

.hrtk-gp-row-label {
	flex: 1;
}

.hrtk-gp-row-label .hrtk-gp-label {
	font-size: 15px;
	font-weight: 500;
	color: #222;
	display: block;
	line-height: 1.3;
}

/* ── Stepper controls ───────────────────────────────────────────── */

.hrtk-gp-stepper {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hrtk-gp-stepper-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid #b0b0b0;
	background: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #333;
	padding: 0;
	transition: border-color 0.15s, opacity 0.15s;
	-webkit-appearance: none;
	appearance: none;
	user-select: none;
}

.hrtk-gp-stepper-btn:hover:not(.disabled) {
	border-color: #222;
}

.hrtk-gp-stepper-btn.disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}

.hrtk-gp-stepper-value {
	font-size: 16px;
	font-weight: 600;
	min-width: 24px;
	text-align: center;
	user-select: none;
}

/* ── Plus-button wrapper (for tooltip positioning) ─────────────── */

.hrtk-gp-plus-wrap {
	position: relative;
	display: inline-flex;
}

/* ── Tooltip (max pets reached) ────────────────────────────────── */

.hrtk-gp-tooltip {
	position: absolute;
	bottom: calc(100% + 8px);
	right: 0;
	white-space: nowrap;
	background: #333;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	padding: 6px 12px;
	border-radius: 6px;
	pointer-events: none;
	z-index: 10;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hrtk-gp-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	right: 12px;
	border: 5px solid transparent;
	border-top-color: #333;
}

/* ── Pets disabled state ────────────────────────────────────────── */

.hrtk-gp-pets-disabled .hrtk-gp-stepper-btn {
	opacity: 0.25;
	cursor: not-allowed;
	pointer-events: none;
}

.hrtk-gp-pets-disabled .hrtk-gp-stepper-value {
	opacity: 0.4;
}

.hrtk-gp-pets-disabled .hrtk-gp-label {
	opacity: 0.5;
}

.hrtk-gp-pets-notice {
	font-size: 12px;
	color: #999;
	margin-top: 2px;
}

/* ── Footer ─────────────────────────────────────────────────────── */

.hrtk-gp-modal .hk-modal-footer {
	display: flex;
	align-items: center;
	padding: 12px 30px;
}

.hrtk-gp-reset {
	background: none;
	border: none;
	color: #666;
	cursor: pointer;
	font-size: 14px;
	padding: 0;
	text-decoration: underline;
}

.hrtk-gp-reset:hover {
	color: #333;
}

.hrtk-gp-reset.hk-hidden {
	display: none;
}
