/* NorTakeAway — frontend styles.
   Klassenavnene (hsn_ufo_*) er bevaret, så eksisterende tema-styling
   fortsat virker. */


/* Fælles felt-rækker: label til venstre, kontrol til højre. */
.hsn_ufo_fields {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 4px 0 16px;
}
.hsn_ufo_field_row {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 0;
	padding: 0;
	border: none;
	box-shadow: none;
	background: none;
}
.hsn_ufo_field_label {
	flex: 0 0 160px;
	max-width: 160px;
	padding-top: 9px;
	margin: 0;
	font-size: 0.9em;
	font-weight: 500;
	color: #555;
	line-height: 1.3;
}
.hsn_ufo_field_control {
	flex: 1 1 auto;
	min-width: 0;
}
.hsn_ufo_pickup_date_holder .hsn_ufo_field_control input {
	width: 100%;
	max-width: 340px;
	cursor: pointer;
	padding: 10px 14px !important;
	font-size: 0.9em;
	color: #3a4a48 !important;
	border: 1px solid #d9dcdb !important;
	border-radius: 8px !important;
	background: #fbfbfa !important;
	background-image: none !important;
	box-shadow: none !important;
	box-sizing: border-box;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.hsn_ufo_pickup_date_holder .hsn_ufo_field_control input:hover {
	border-color: #0e7673 !important;
}
.hsn_ufo_pickup_date_holder .hsn_ufo_field_control input:focus {
	border-color: #0e7673 !important;
	background: #fff !important;
	outline: none;
}

.hsn_ufo_stock_message_group {
	display: block;
	padding-bottom: 12px;
}

.hsn_ufo_stock_message {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 0;
	font-size: 0.95em;
}

.hsn_ufo_stock_message .dashicons-dismiss {
	color: #b32d2e;
}

.hsn_ufo_stock_message .dashicons-yes-alt {
	color: #00832d;
}

.hsn_ufo_stock_message .dashicons-update {
	animation: hsn-ufo-rotation 2s infinite linear;
}

.hsn_ufo_too_much_stock {
	color: #b32d2e !important;
	border-color: #b32d2e !important;
}

@keyframes hsn-ufo-rotation {
	from { transform: rotate(0deg); }
	to { transform: rotate(359deg); }
}

/* Enkelt dags produkt */
.hsn_ufo_single_day .hsn_ufo_field_control {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-top: 7px;
}
.hsn_ufo_single_day .dashicons-calendar-alt {
	color: #0e7673;
}
.hsn_ufo_single_day_date {
	font-weight: 600;
	color: #3a4a48;
}

/* Afhentningstidspunkt – knapper */
.hsn_ufo_pickup_time_holder .hsn_ufo_field_control {
	padding-top: 2px;
}
.hsn_ufo_time_options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 340px;
}
.hsn_ufo_time_option,
.hsn_ufo_time_option:link,
.hsn_ufo_time_option:visited {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	display: inline-block;
	border: 1px solid #d9dcdb !important;
	background: #fbfbfa !important;
	background-image: none !important;
	color: #3a4a48 !important;
	border-radius: 8px !important;
	padding: 9px 18px !important;
	font-size: 0.88em;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none !important;
	text-transform: none;
	box-shadow: none !important;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.hsn_ufo_time_option:hover,
.hsn_ufo_time_option:focus {
	background: #f0f5f4 !important;
	border-color: #0e7673 !important;
	color: #0e7673 !important;
}
.hsn_ufo_time_option.is-selected,
.hsn_ufo_time_option.is-selected:link,
.hsn_ufo_time_option.is-selected:visited {
	background: #e6f2f1 !important;
	border-color: #0e7673 !important;
	color: #0b5f5c !important;
	font-weight: 600;
}
.hsn_ufo_time_option:focus-visible {
	outline: 2px solid #0e7673;
	outline-offset: 2px;
}

/* Næste mulige datoer – diskret liste i rammer */
.hsn_ufo_quick_dates:empty {
	display: none;
}
.hsn_ufo_quick_list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 340px;
}
.hsn_ufo_quick_date {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 14px;
	cursor: pointer;
	font-size: 0.9em;
	color: #3a4a48;
	background: #fbfbfa;
	border: 1px solid #e6e6e8;
	border-radius: 8px;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.hsn_ufo_quick_date:hover {
	background: #f0f5f4;
	border-color: #0e7673;
}
.hsn_ufo_quick_dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #46b450;
	flex: 0 0 auto;
	box-shadow: 0 0 0 3px rgba(70, 180, 80, 0.15);
}
.hsn_ufo_quick_date.is-selected {
	background: #e6f2f1;
	border-color: #0e7673;
}
.hsn_ufo_quick_date.is-selected .hsn_ufo_quick_text {
	font-weight: 600;
	color: #0b5f5c;
}

/* Farve-signatur inde i datovælgeren */
.ui-datepicker .hsn_ufo_legend {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	gap: 6px;
	margin: 4px 6px 8px;
	padding-top: 8px;
	border-top: 1px solid #eee;
	font-size: 0.72em;
	color: #555;
	white-space: nowrap;
}
.hsn_ufo_legend_item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.hsn_ufo_swatch {
	width: 11px;
	height: 11px;
	border-radius: 3px;
	display: inline-block;
	flex: 0 0 auto;
	border: 1px solid rgba(0, 0, 0, 0.1);
}
.hsn_ufo_swatch.is-available { background: #46b450; }
.hsn_ufo_swatch.is-soldout { background: #dc3232; }
.hsn_ufo_swatch.is-unavailable { background: #c3c4c7; }

/* Dagceller i jQuery UI-datovælgeren */
.ui-datepicker td.ntw_day_available a {
	background: #e5f5e7;
	border-color: #46b450;
	color: #14611f;
	font-weight: 600;
}
.ui-datepicker td.ntw_day_available a:hover {
	background: #46b450;
	color: #fff;
}
.ui-datepicker td.ntw_day_soldout span,
.ui-datepicker td.ntw_day_soldout a {
	background: #fbeaea;
	border-color: #dc3232;
	color: #a02222;
	text-decoration: line-through;
	cursor: not-allowed;
}
.ui-datepicker td.ntw_day_unavailable span,
.ui-datepicker td.ntw_day_unavailable a {
	background: #f6f7f7;
	color: #b5b7ba;
}

/* Mobil: stak label over kontrol */
@media (max-width: 480px) {
	.hsn_ufo_field_row {
		flex-direction: column;
		gap: 6px;
	}
	.hsn_ufo_field_label {
		flex-basis: auto;
		max-width: none;
		padding-top: 0;
	}
	.hsn_ufo_pickup_date_holder .hsn_ufo_field_control input {
		max-width: none;
	}
}
