/* Company facts: opening hours, facts block, click-to-load map, directions.
   Text colours are inherited so the blocks read equally well on light and dark sections. */

/* The theme styles every <dl> as a small, uppercase, inline label list (cart variations). Undo that here. */
.kpco-hours,
.kpco-facts__list {
	font-size: inherit;
	margin: 0;
	opacity: 1;
	text-transform: none;
}

.kpco-hours dt,
.kpco-hours dd,
.kpco-facts__row > dt,
.kpco-facts__row > dd {
	display: block;
	margin: 0;
}

/* One grid for the whole list keeps the hours in a straight column whatever the day labels are. */
.kpco-hours {
	column-gap: 1.25em;
	display: grid;
	grid-template-columns: fit-content(62%) minmax(0, 1fr);
	max-width: 26em;
	row-gap: .2em;
}

.kpco-hours__row {
	display: contents;
}

.kpco-hours dt,
.kpco-hours dd {
	font-weight: 400;
}

.kpco-hours__row--today dt,
.kpco-hours__row--today dd {
	font-weight: 700;
}

.kpco-hours__today {
	border: 1px solid currentColor;
	border-radius: 99px;
	display: inline-block;
	font-size: .75em;
	font-weight: 400;
	line-height: 1.4;
	padding: 0 .55em;
	vertical-align: .1em;
	white-space: nowrap;
}

.kpco-facts__name {
	margin-bottom: .5em;
}

.kpco-facts__row {
	margin-bottom: .6em;
}

.kpco-facts__row > dt {
	font-size: .85em;
	font-weight: 700;
}

/* Phone and e-mail are what people tap in this block: give them a full-size target. */
.kpco-facts .kpco-tel,
.kpco-facts .kpco-mail {
	box-sizing: border-box;
	display: inline-block;
	min-height: 44px;
	padding: 10px 0;
}

/* The placeholder keeps its own light surface and dark text, also inside a dark section. */
.kpco-map {
	background-color: #f1f1ee;
	border: 1px solid #d9d9d4;
	border-radius: 6px;
	color: #222;
	min-height: var(--kpco-map-h, 360px);
	overflow: hidden;
}

.kpco-map__inner {
	align-items: center;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: var(--kpco-map-h, 360px);
	padding: 1.5em 1em;
	text-align: center;
}

/* Weighted above the theme's ".dark p" and ".dark a:hover": light text on the light placeholder would be unreadable. */
.kpco-map .kpco-map__inner p {
	color: inherit;
	margin: 0 0 .75em;
}

.kpco-map__address {
	font-weight: 700;
}

.kpco-map .kpco-map__load {
	margin: 0 0 .75em;
	min-height: 44px;
}

.kpco-map__note {
	font-size: .85em;
}

.kpco-map .kpco-map__inner .kpco-map__alt {
	margin-bottom: 0;
}

/* The link stays under the map once it is loaded, as a way out if the map does not appear. */
.kpco-map > .kpco-map__alt {
	color: inherit;
	margin: 0;
	text-align: center;
}

.kpco-map .kpco-map__alt a,
.kpco-map p.kpco-map__alt a:hover {
	color: inherit;
	display: inline-block;
	padding: 11px 4px;
	text-decoration: underline;
}

.kpco-map__frame {
	border: 0;
	display: block;
	height: var(--kpco-map-h, 360px);
	width: 100%;
}

.kpco-directions {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
}

/* Outline in the surrounding text colour: the theme's primary colour disappears on the dark green sections. */
.kpco-directions .kpco-directions__link.button {
	align-items: center;
	border-color: currentColor;
	color: inherit;
	display: inline-flex;
	margin: 0;
	min-height: 44px;
}

.kpco-directions .kpco-directions__link.button:hover {
	border-color: var(--fs-color-primary, currentColor);
	color: #fff;
}

.kpco-directions__link:not(.button) {
	display: inline-block;
	padding: 11px 0;
	text-decoration: underline;
}

.kpco-map__alt a:focus-visible,
.kpco-directions__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* The button's own text is white, so its outline takes the placeholder's dark text colour instead. */
.kpco-map .kpco-map__load:focus-visible {
	outline: 2px solid #222;
	outline-offset: 2px;
}
