/*
 * Häusler theme: opening hours in the existing .iconbanner section.
 *
 * One .iconbanner__inner holds two plugin wrappers (.hslr-opening-hours): shop hours first, pickup hours
 * second. Each wrapper is its own flex row, so the pickup teasers sit in a separate row below the shop
 * teasers. Inside a row the teasers share the width equally:
 *   - current + upcoming  -> two columns side by side (aligned with the row above when it has two as well)
 *   - only current        -> one teaser over the full width
 *
 * Narrow screens (theme breakpoint $tablet-portrait, 1023px): the wrappers drop out of the layout
 * (display: contents) and the teasers stack in time order: current shop, current pickup, upcoming shop,
 * upcoming pickup. Pickup teasers are marked with --department.
 */
.iconbanner--hours .iconbanner__inner {
	flex-flow: column nowrap;
	align-items: stretch;
}

.iconbanner--hours .iconbanner__inner > .hslr-opening-hours {
	display: flex;
	flex-flow: row nowrap;
	align-items: flex-start;
	width: 100%;
}

.iconbanner--hours .iconbanner__inner__teaser {
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	margin: 0 10px;
}

/* The pickup row continues the shop row above it: no icon, no title, only the text's own top margin. */
.iconbanner--hours .iconbanner__inner__teaser--department {
	margin-top: 0;
}

@media screen and (max-width: 1023px) {
	.iconbanner--hours .iconbanner__inner > .hslr-opening-hours {
		display: contents;
	}

	.iconbanner--hours .iconbanner__inner__teaser {
		flex: 0 0 auto;
		width: 100%;
		margin: 30px auto 0;
	}

	.iconbanner--hours .iconbanner__inner__teaser--department {
		margin-top: 0;
	}

	.iconbanner--hours .iconbanner__inner__teaser--current { order: 1; }
	.iconbanner--hours .iconbanner__inner__teaser--current.iconbanner__inner__teaser--department { order: 2; }
	.iconbanner--hours .iconbanner__inner__teaser--upcoming { order: 3; }
	.iconbanner--hours .iconbanner__inner__teaser--upcoming.iconbanner__inner__teaser--department { order: 4; }
}
