.lvdl-lh-widget {
	display: grid;
	gap: 12px;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	color: var(--lvdl-lh-text-color, inherit);
}

.lvdl-lh-title {
	margin: 0 0 4px;
	font-size: 1.35rem;
	line-height: 1.3;
	color: inherit;
	text-align: center;
}

.lvdl-lh-form-grid {
	display: grid;
	width: 100%;
	min-width: 0;
	grid-template-columns: 1fr;
	gap: 10px;
	align-items: end;
}

.lvdl-lh-field {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.lvdl-lh-field label {
	font-size: 0.9rem;
	font-weight: 600;
	color: inherit;
}

.lvdl-lh-date-input-wrap {
	position: relative;
	width: 100%;
	min-width: 0;
}

.lvdl-lh-field input,
.lvdl-lh-field select {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #b8c2cc;
	border-radius: 8px;
	font-size: 1rem;
	line-height: 1.2;
}

.lvdl-lh-date-input {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	appearance: auto;
	-webkit-appearance: auto;
}

.lvdl-lh-date-display {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 42px;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #b8c2cc;
	border-radius: 8px;
	font-size: 1rem;
	line-height: 1.2;
	background: #fff;
	color: inherit;
}

.lvdl-lh-date-display-value {
	display: block;
	width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lvdl-lh-date-input-wrap:focus-within .lvdl-lh-date-display {
	border-color: #9aa7b6;
}

@media (max-width: 767px) {
	.lvdl-lh-date-input-wrap {
		min-height: 42px;
	}

	.lvdl-lh-date-input-wrap .lvdl-lh-date-input {
		position: absolute;
		inset: 0;
		opacity: 0;
		z-index: 2;
		cursor: pointer;
	}
}

.lvdl-lh-button {
	padding: 10px 12px;
	border: 1px solid #b8c2cc;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font-size: 1rem;
	line-height: 1.2;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	min-height: 42px;
}

.lvdl-lh-button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.lvdl-lh-button:hover:not(:disabled),
.lvdl-lh-button:focus-visible {
	border-color: #9aa7b6;
}

.lvdl-lh-widget.lvdl-lh-has-color .lvdl-lh-button:hover:not(:disabled),
.lvdl-lh-widget.lvdl-lh-has-color .lvdl-lh-button:focus-visible {
	background: var(--lvdl-lh-text-color, transparent);
	color: var(--lvdl-lh-hover-text-color, var(--base-2, #f5f5fc));
}

.lvdl-lh-errors {
	margin-top: 2px;
	color: inherit;
	font-size: 0.9rem;
}

.lvdl-lh-errors ul {
	margin: 0;
	padding-left: 18px;
}

.lvdl-lh-errors:empty {
	display: none;
}

@media (min-width: 768px) {
	.lvdl-lh-title {
		text-align: left;
	}

	.lvdl-lh-date-display {
		display: none;
	}

	.lvdl-lh-form-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.lvdl-lh-form-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}
