.date-range-picker {
	height: 44px;
	padding: 0 10px;
	overflow-x: clip;
	--drp-highlight: #b58cff;
}

.drp-inner {
	position: relative;
	height: 100%;
}

.drp-track,
.drp-selection {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	height: 6px;
	border-radius: 999px;
}

.drp-track {
	left: 0;
	right: 0;
	background: #383838;
}

.drp-selection {
	background: var(--drp-highlight);
	cursor: grab;
	touch-action: none;
}

.drp-selection:active {
	cursor: grabbing;
}

.drp-handle {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid var(--drp-highlight);
	background: #111;
	cursor: ew-resize;
	padding: 0;
	touch-action: none;
}

.drp-handle:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--drp-highlight), white 22%);
	outline-offset: 2px;
}

.drp-markers {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(50% + 10px);
	height: 18px;
	pointer-events: none;
}

.drp-marker {
	position: absolute;
	transform: translateX(-50%);
	font-size: 0.72rem;
	line-height: 1;
	white-space: nowrap;
	color: #b9b9b9;
}

.drp-marker-min {
	transform: none;
}

.drp-marker-max {
	transform: translateX(-100%);
}

.drp-marker-start,
.drp-marker-end {
	color: color-mix(in srgb, var(--drp-highlight), white 14%);
}

.drp-handle::after,
.drp-selection::after {
	content: attr(data-tooltip);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	transform: translateX(-50%);
	background: #0f0f0f;
	border: 1px solid #525252;
	color: #ededed;
	font-size: 0.76rem;
	line-height: 1;
	padding: 0.26rem 0.4rem;
	border-radius: 6px;
	white-space: nowrap;
	max-width: calc(100vw - 16px);
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
	opacity: 0;
	transition: opacity 120ms ease;
}

.drp-handle-start::after {
	left: 0;
	transform: none;
}

.drp-handle-end::after {
	left: 100%;
	transform: translateX(-100%);
}

.drp-selection::after {
	bottom: calc(100% + 10px);
}

.drp-handle:hover::after,
.drp-handle:focus-visible::after,
.drp-selection:hover::after {
	opacity: 1;
}
