/**
 * Dealfuchs vouchers - functional styling.
 *
 * Same rules as the deal stylesheet: flat CSS, WoltLab variables only, meant
 * to be replaced wholesale by the design pass.
 */

.dealfuchsVoucherList {
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.dealfuchsVoucher {
	align-items: center;
	background-color: var(--wcfContentBackground);
	border: 1px solid var(--wcfContentBorderInner);
	border-radius: var(--wcfBorderRadius);
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr);
	padding: 16px;
}

@media (min-width: 769px) {
	.dealfuchsVoucher {
		grid-template-columns: 120px minmax(0, 1fr) auto;
	}
}

.dealfuchsVoucher--expired {
	opacity: .55;
}

.dealfuchsVoucher__discount {
	text-align: center;
}

.dealfuchsVoucher__value {
	display: block;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.1;
}

.dealfuchsBadge--exclusive {
	background-color: rgb(120 60 170);
	border-radius: var(--wcfBorderRadius);
	color: #fff;
	display: inline-block;
	font-size: var(--wcfFontSizeSmall);
	margin-top: 4px;
	padding: 2px 7px;
}

.dealfuchsVoucher__title {
	font-size: var(--wcfFontSizeDefault);
	font-weight: 600;
	margin: 0 0 4px;
}

.dealfuchsVoucher__shop {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

.dealfuchsVoucher__description {
	margin: 6px 0 0;
}

.dealfuchsVoucher__validity {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
	margin: 6px 0 0;
}

.dealfuchsVoucher__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dealfuchsVoucher__reveal > summary {
	cursor: pointer;
	list-style: none;
}

.dealfuchsVoucher__reveal > summary::-webkit-details-marker {
	display: none;
}

.dealfuchsVoucher__code {
	background-color: var(--wcfContentBackground);
	border: 1px dashed var(--wcfContentBorder);
	border-radius: var(--wcfBorderRadius);
	display: block;
	font-size: 1.1rem;
	letter-spacing: .08em;
	margin-top: 8px;
	padding: 8px 12px;
	text-align: center;
	user-select: all;
}

.dealfuchsShopGrid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.dealfuchsShopCard {
	background-color: var(--wcfContentBackground);
	border: 1px solid var(--wcfContentBorderInner);
	border-radius: var(--wcfBorderRadius);
}

.dealfuchsShopCard__link {
	align-items: center;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 12px;
	text-align: center;
	text-decoration: none;
}

.dealfuchsShopCard__logo {
	height: 40px;
	max-width: 100%;
	object-fit: contain;
}

.dealfuchsShopCard__logoFallback {
	align-items: center;
	background-color: var(--wcfContentBorderInner);
	border-radius: 50%;
	display: flex;
	font-weight: 700;
	height: 40px;
	justify-content: center;
	text-transform: uppercase;
	width: 40px;
}

.dealfuchsShopCard__title {
	font-weight: 600;
}

.dealfuchsShopCard__count {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

.dealfuchsShopHeader {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.dealfuchsShopHeader__logo {
	height: 56px;
	object-fit: contain;
}

.dealfuchsShopAbout {
	/* siehe dealfuchs.css: Umbrueche per CSS statt per nl2br */
	white-space: pre-line;
	line-height: 1.6;
}
