/**
 * Styles côté boutique du plugin Pack Abonnement Catégorie.
 */

/* Message d'information (non connecté, pack vide, pack introuvable). */
.pac-notice {
	margin: 0 0 1.5em;
	padding: 14px 18px;
	background: #f7f7f7;
	border-left: 4px solid #7f54b3;
	border-radius: 3px;
	font-size: 0.95em;
	line-height: 1.6;
}

/* Restriction d'accès sur fiche produit : message rouge + accès à l'abonnement. */
.pac-restricted {
	margin: 0 0 1.5em;
	padding: 14px 18px;
	background: #fff0f0;
	border-left: 4px solid #cc0000;
	border-radius: 3px;
	font-size: 0.95em;
	line-height: 1.6;
	color: #a00;
}

.pac-restricted__message {
	margin: 0;
}

/* Ligne de liens juste sous le message rouge. */
.pac-restricted__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 12px 0 0;
}

.pac-restricted__buy,
.pac-restricted__link {
	display: inline-block;
	margin: 0;
	padding: 8px 18px;
	background: #7f54b3;
	color: #fff !important;
	border: none;
	border-radius: 4px;
	font-size: 0.9em;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	vertical-align: middle;
}

.pac-restricted__buy:hover,
.pac-restricted__link:hover {
	background: #6b3fa0;
	color: #fff !important;
}

/* Liens secondaires : même gabarit, aspect plus discret. */
.pac-restricted__actions a:not(.alt) {
	background: #fff;
	color: #7f54b3 !important;
	box-shadow: inset 0 0 0 1px #7f54b3;
}

.pac-restricted__actions a:not(.alt):hover {
	background: #f4eefb;
	color: #6b3fa0 !important;
}

/* Masquer le bouton d'achat du produit restreint quand la bannière est visible. */
body.single-product .pac-restricted ~ form.cart,
body.single-product .pac-restricted ~ .cart {
	display: none;
}

/* Liste des packs du client. */
.pac-packs {
	margin: 0 0 2em;
}

.pac-pack {
	margin: 0 0 2.5em;
	padding: 0 0 1.5em;
	border-bottom: 1px solid #e6e6e6;
}

.pac-pack:last-child {
	border-bottom: 0;
}

.pac-pack__title {
	margin: 0 0 0.3em;
	font-size: 1.25em;
}

.pac-pack__meta {
	margin: 0 0 1.2em;
	color: #666;
	font-size: 0.9em;
}

/* Grille des produits inclus. */
.pac-pack__products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pac-pack__product {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.pac-pack__product > a {
	display: block;
	text-decoration: none;
	color: inherit;
}

.pac-pack__product img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto 0.6em;
	border-radius: 4px;
}

.pac-pack__product-name {
	display: block;
	font-size: 0.9em;
	line-height: 1.4;
}

.pac-pack__product > a:hover .pac-pack__product-name {
	text-decoration: underline;
}

/* Étiquette « Téléchargeable ». */
.pac-pack__tag {
	display: inline-block;
	margin-top: 0.4em;
	padding: 2px 8px;
	background: #eef7ee;
	color: #1c6b2c;
	border-radius: 10px;
	font-size: 0.75em;
	letter-spacing: 0.02em;
}

.pac-pack__more {
	margin: 1em 0 0;
	color: #666;
	font-size: 0.9em;
	font-style: italic;
}

/* Badge « Inclus : ... » et prix offert dans le panier. */
.pac-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	background: #f0ebf8;
	color: #5a3f92;
	border-radius: 10px;
	font-size: 0.75em;
	vertical-align: middle;
	white-space: nowrap;
}

.pac-offered {
	color: #1c6b2c;
	font-weight: 600;
}

/* Petits écrans. */
@media screen and (max-width: 480px) {

	.pac-pack__products {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
		gap: 12px;
	}
}
