/**
 * Country-aware feature-panel presentation.
 *
 * Loaded by inc/core.php.
 */

/* Feature-panel wrapper */

.bf-feature-panel {
	display: block !important;
	width: 100%;
	box-sizing: border-box;
}

.bf-feature-desktop,
.bf-feature-mobile,
.bf-feature-message {
	width: 100%;
	box-sizing: border-box;
}

/* Message and country links */

.bf-feature-message {
	margin: 12px 0;
	text-align: center;
}

.bf-feature-message > a {
	font-weight: bold;
	font-style: italic;
}

.bf-feature-country-links {
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.3;
	opacity: 0.85;
}

.bf-feature-country-links a,
.bf-feature-country-links-label {
	font-size: 12px;
}

.bf-feature-country-links a {
	text-decoration: underline;
}

.bf-feature-country-links-separator {
	opacity: 0.6;
}

/* Images */

.bf-feature-image-link,
.bf-feature-image-wrap a {
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	text-decoration: none;
}

.bf-feature-image-inner {
	position: relative;
	display: block;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
}

.bf-feature-image-link img,
.bf-feature-image-inner img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

/* Local-availability overlays */

.bf-feature-local-unavailable-overlay,
.bf-feature-not-available-local {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 5;
	box-sizing: border-box;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	pointer-events: none;
}

.bf-feature-local-unavailable-overlay {
	transform: translate(-50%, -50%) rotate(-45deg);
	transform-origin: center;
	padding: 6px 14px;
	border: 2px solid #d00000;
	background: rgba(255, 255, 255, 0.72);
	color: #d00000;
	font-size: clamp(13px, 4vw, 26px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0.04em;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.bf-feature-not-available-local {
	transform: translate(-50%, -50%) rotate(-30deg);
	color: #f00;
	font-size: clamp(16px, 5vw, 36px);
	font-weight: 900;
	line-height: 1.1;
	text-shadow:
		1px 1px 0 #fff,
		-1px -1px 0 #fff,
		1px -1px 0 #fff,
		-1px 1px 0 #fff;
}

/*
 * Responsive image selection.
 *
 * Default: horizontal image for tablets and desktops.
 * Up to 767px: vertical image for phones.
 */

body .bf-feature-desktop {
	display: block !important;
}

body .bf-feature-mobile {
	display: none !important;
}

@media only screen and (max-width: 767px) {
	body .bf-feature-desktop {
		display: none !important;
	}

	body .bf-feature-mobile {
		display: block !important;
	}
}
