/* Rutetidssøket og datovelgeren. */

.gj-sok { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; width: 100%; }
.gj-sok-felt { display: flex; flex-direction: column; flex: 1 1 180px; min-width: 0; }
.gj-sok-felt label { font-weight: 700; font-size: 15px; margin-bottom: 6px; line-height: 1.2; }
.gj-sok-felt label span { color: #c0392b; font-weight: 400; }

.gj-sok select,
.gj-sok input[type="text"] {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid rgba(0, 0, 0, .2);
	border-radius: 6px;
	font: inherit;
	background: #fff;
	color: inherit;
}
.gj-sok select:focus,
.gj-sok input[type="text"]:focus { outline: 2px solid var(--color-orange, #ED8631); outline-offset: 1px; }

.gj-sok-knapp {
	flex: 0 0 auto;
	padding: 13px 28px;
	border: 0;
	border-radius: 6px;
	background: var(--color-orange, #ED8631);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.gj-sok-knapp:hover { filter: brightness(1.06); }

.gj-sok-kompakt { gap: 8px; }
.gj-sok-kompakt .gj-sok-felt { flex-basis: 150px; }
.gj-sok-kompakt select,
.gj-sok-kompakt input[type="text"] { padding: 10px 12px; }
.gj-sok-kompakt .gj-sok-knapp { padding: 11px 20px; }

.gj-sok-tom { margin: 10px 2px 0; font-size: 14px; color: rgba(0, 0, 0, .6); }
.gj-sok-feil { flex: 1 1 100%; margin: 0; font-size: 14px; color: #c0392b; }

.gj-sok-hint {
	flex: 1 1 100%;
	margin: 2px 0 0;
	padding: 10px 14px;
	background: #fff8e1;
	border: 1px solid #e8c547;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.45;
	color: #543e00;
}

/* Kalenderen */
.gj-sok-datofelt { position: relative; }

.gj-kal {
	position: absolute;
	z-index: 60;
	top: 100%;
	left: 0;
	margin-top: 6px;
	width: 286px;
	max-width: calc(100vw - 32px);
	padding: 10px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
	color: #1a1a1a;
}

.gj-kal-topp { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.gj-kal-tittel { font-weight: 700; font-size: 15px; text-transform: capitalize; }

.gj-kal-nav {
	width: 32px; height: 32px;
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 6px;
	background: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}
.gj-kal-nav:hover:not(:disabled) { background: #f3f2ef; }
.gj-kal-nav:disabled { opacity: .3; cursor: default; }

.gj-kal-rutenett { width: 100%; border-collapse: collapse; table-layout: fixed; }
.gj-kal-rutenett th {
	padding: 4px 0;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	color: rgba(0, 0, 0, .45);
}
.gj-kal-rutenett td { padding: 1px; text-align: center; }

.gj-kal-dag {
	width: 100%;
	aspect-ratio: 1;
	min-height: 34px;
	border: 0;
	border-radius: 6px;
	background: #f3f2ef;
	font: inherit;
	font-size: 14px;
	color: inherit;
	cursor: pointer;
}
.gj-kal-dag:hover:not(:disabled) { background: color-mix(in srgb, var(--color-orange, #ED8631) 22%, transparent); }

.gj-kal-stengt { background: transparent; color: rgba(0, 0, 0, .25); cursor: default; text-decoration: line-through; }

.gj-kal-valgt { background: var(--color-orange, #ED8631); color: #fff; font-weight: 700; }
.gj-kal-valgt:hover { background: var(--color-orange, #ED8631); }

@media (max-width: 640px) {
	.gj-sok-felt { flex-basis: 100%; }
	.gj-sok-knapp { width: 100%; }
}
