/*****************************************************************************************/
/* STB brand skin — "download the app" badges (include/store-badges.php)                   */
/* White cards on the app's border/radius language: light-blue icon tile, small grey       */
/* lead-in ("Disponible sur"), navy store name; brand-blue border on hover. Standalone:   */
/* include/store-badges.php loads this file itself, so it looks the same on any template. */
/*****************************************************************************************/

.store-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 14px 0 4px;
}

.store-badge {
	font-family: 'Inter', Arial, sans-serif;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 150px;
	padding: 7px 14px 7px 8px;
	box-sizing: border-box;
	background: #ffffff;
	border: 1px solid #e5edf5;
	border-radius: 12px;
	text-decoration: none;
	transition: border-color .15s ease, background .15s ease;
}

.store-badge:hover {
	border-color: #0786d5;
	background: #f7fafd;
	text-decoration: none;
}

.store-badge__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: #eff6ff;
	color: #0786d5;
	font-size: 16px;
}

.store-badge__icon svg {
	width: 18px;
	height: 18px;
}

/* the stores' own multicolour logos (img/stores/*.svg): no tinted tile behind them */
.store-badge__icon--brand {
	background: transparent;
}

.store-badge__icon img {
	display: block;
	width: 24px;
	height: 24px;
}

.store-badge__text {
	display: flex;
	flex-direction: column;
	text-align: start;
	line-height: 1.2;
}

.store-badge__label {
	font-size: 10.5px;
	color: #71859a;
}

.store-badge__name {
	font-size: 14px;
	font-weight: 700;
	color: #1a234b;
}

/* Band that replaced the old scrolling news bar (dashboard, Comptes) */
.store-badges-bar {
	clear: both;
	padding: 6px 15px 0;
	margin-top: 20px;
}

.store-badges-bar .store-badges {
	margin: 0;
}

/* Left-aligned (preadhesion side panel — the cards are white, so they read on the blue) */
.store-badges--start {
	justify-content: flex-start;
}

/* Slim version (login card): two per row, single line, no lead-in text, no icon tile */
.store-badges--compact {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 12px 0 0;
}

.store-badges--compact .store-badge {
	min-width: 0;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 10px;
	justify-content: center;
}

.store-badges--compact .store-badge__icon {
	width: auto;
	height: auto;
	background: transparent;
	border-radius: 0;
}

.store-badges--compact .store-badge__icon img {
	width: 18px;
	height: 18px;
}

.store-badges--compact .store-badge__icon svg {
	width: 16px;
	height: 16px;
}

.store-badges--compact .store-badge__label {
	display: none;
}

.store-badges--compact .store-badge__name {
	font-size: 12px;
	font-weight: 600;
}

/* STB Secure: one badge that opens a small menu with its three store links */
.store-menu {
	position: relative;
	display: inline-block;
}

.store-menu > summary {
	list-style: none;
	cursor: pointer;
	user-select: none;
}

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

.store-badge--menu {
	padding-right: 12px;
}

.store-menu__chevron {
	flex-shrink: 0;
	width: 7px;
	height: 7px;
	margin-left: 2px;
	border-right: 2px solid #71859a;
	border-bottom: 2px solid #71859a;
	transform: rotate(45deg) translateY(-2px);
	transition: transform .15s ease;
}

.store-menu[open] > summary {
	border-color: #0786d5;
	background: #f7fafd;
}

.store-menu[open] .store-menu__chevron {
	transform: rotate(225deg) translateY(-2px);
}

.store-menu__panel {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	z-index: 50;
	min-width: 200px;
	padding: 8px;
	box-sizing: border-box;
	background: #ffffff;
	border: 1px solid #e5edf5;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(26, 35, 75, 0.14);
	text-align: start;
}

.store-menu__title {
	display: block;
	padding: 4px 8px 6px;
	font-family: 'Inter', Arial, sans-serif;
	font-size: 11px;
	font-weight: 600;
	color: #71859a;
}

.store-menu__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border-radius: 8px;
	font-family: 'Inter', Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #1a234b;
	text-decoration: none;
}

.store-menu__item:hover {
	background: #eff6ff;
	color: #0786d5;
	text-decoration: none;
}

.store-menu__icon {
	display: flex;
	width: 18px;
	height: 18px;
	color: #0786d5;
}

.store-menu__icon svg,
.store-menu__icon img {
	display: block;
	width: 18px;
	height: 18px;
}

/* compact (login card): the menu fills its grid cell and opens toward the card's right edge */
.store-badges--compact .store-menu {
	display: block;
}

.store-badges--compact .store-menu > summary {
	justify-content: center;
}

.store-badges--compact .store-menu__panel {
	left: auto;
	right: 0;
	transform: none;
}

.store-badges--compact .store-menu > summary {
	display: flex;
	box-sizing: border-box;
}

/* Promo block (designer's proposal, in the app's charter): white card, title + text on the
   left, the three store badges on the right, STB Secure as a discreet link under them. */
.store-promo {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px 32px;
	box-sizing: border-box;
	width: 100%;
	padding: 20px 24px;
	background: #ffffff;
	border: 1px solid #e5edf5;
	border-radius: 14px;
}

.store-promo__text {
	flex: 1 1 240px;
	min-width: 0;
}

.store-promo__title {
	margin: 0 0 6px;
	font-family: 'Inter', Arial, sans-serif;
	font-size: 17px;
	font-weight: 700;
	color: #1a234b;
}

.store-promo__desc {
	margin: 0;
	font-family: 'Inter', Arial, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	color: #53677a;
}

.store-promo__desc strong {
	color: #1a234b;
}

.store-promo__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.store-promo .store-badges {
	justify-content: flex-start;
	margin: 0;
}

.store-menu--link {
	display: block;
}

.store-menu__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Inter', Arial, sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	color: #0786d5;
}

.store-menu__link:hover {
	color: #066bb0;
}

.store-menu__link-icon {
	display: flex;
	width: 16px;
	height: 16px;
}

.store-menu__link-icon svg {
	width: 16px;
	height: 16px;
}

.store-menu__link .store-menu__chevron {
	border-color: #0786d5;
}

.store-menu--link .store-menu__panel {
	left: 0;
	transform: none;
}

/* Dashboard: the promo block is the last cell of the tiles grid, spanning all four columns */
.dashboard-promo {
	grid-column: 1 / -1;
}

.store-promo .store-badge {
	min-width: 0;
}

/* the promo sits at the bottom of the page: open its STB Secure menu downward */
.store-menu--link .store-menu__panel {
	bottom: auto;
	top: calc(100% + 8px);
}
