/* Event-tilmelding: dialog og udsolgt-badge. Bevidst neutral, så temaets skrifttype og farver bruges. */

.hkt-badge {
	display: inline-block;
	padding: .3em .8em;
	border-radius: 999px;
	font-size: .85rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #fff;
	background: #b3261e;
}

html.hkt-modal-open {
	overflow: hidden;
}

.hkt-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.hkt-modal[hidden] {
	display: none;
}

.hkt-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .6);
}

.hkt-modal__box {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 480px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 28px 24px 24px;
	border-radius: 8px;
	background: #fff;
	color: #222;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}

.hkt-modal__box:focus {
	outline: none;
}

.hkt-modal .hkt-modal__close,
.hkt-modal .hkt-modal__close:hover,
.hkt-modal .hkt-modal__close:focus {
	position: absolute;
	top: 14px;
	right: 14px;
	display: block;
	width: 28px;
	height: 28px;
	min-width: 0;
	margin: 0;
	padding: 3px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: none;
	color: #222;
	line-height: 0;
	cursor: pointer;
}

.hkt-modal .hkt-modal__close:hover {
	color: #000;
	opacity: .7;
}

.hkt-modal .hkt-modal__close:focus-visible {
	outline: 2px solid #222;
	outline-offset: 2px;
}

.hkt-modal__close svg {
	display: block;
	width: 100%;
	height: 100%;
}

.hkt-title {
	margin: 0 0 4px;
	padding-right: 32px;
}

.hkt-when,
.hkt-left {
	margin: 0 0 12px;
	font-size: .95rem;
}

.hkt-left {
	font-weight: 600;
	color: #b3261e;
}

.hkt-field {
	margin: 0 0 14px;
}

.hkt-field label {
	display: block;
	margin-bottom: 4px;
	font-size: .9rem;
	font-weight: 600;
}

.hkt-field input[type="text"],
.hkt-field input[type="email"],
.hkt-field input[type="tel"],
.hkt-field select {
	box-sizing: border-box;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #aaa;
	border-radius: 4px;
	font: inherit;
	background: #fff;
	color: #222;
}

.hkt-field--consent label {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-weight: 400;
	font-size: .85rem;
}

.hkt-field--consent input {
	margin-top: 3px;
	flex: none;
}

.hkt-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hkt-modal .hkt-submit,
.hkt-modal .hkt-submit:hover,
.hkt-modal .hkt-submit:focus {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #000;
	border-radius: 4px;
	background: #000;
	color: #fff;
	font: inherit;
	font-weight: 600;
	box-shadow: none;
	cursor: pointer;
}

.hkt-modal .hkt-submit:hover {
	background: #222;
	border-color: #222;
}

.hkt-submit[disabled] {
	opacity: .6;
	cursor: wait;
}

.hkt-message {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: .95rem;
}

.hkt-message[hidden] {
	display: none;
}

.hkt-message--error {
	background: #fdeceb;
	color: #8c1d18;
}

.hkt-message--ok {
	background: #e9f6ec;
	color: #1e6b32;
}

/* Månedens menu: afstand mellem de grupper, der faktisk vises (skjulte grupper findes ikke i HTML'en). */
.hkt-menu-gruppe ~ .hkt-menu-gruppe {
	margin-top: 20px;
}
