/*
Theme Name: Memberlite - Child Theme
Theme URI: https://www.paidmembershipspro.com/themes/memberlite
Description: This is a Memberlite child theme.   
Author: Kim Coleman
Author URI: https://www.strangerstudios.com/  
Template: memberlite
Version: 1.0
License: GPL-2.0+  
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Navigation — compact items to avoid wrapping */
#site-navigation a {
	padding: .9rem .85rem;
	font-size: 0.9em;
}

/* Études de marché archive */
.etudes-year-heading {
	margin-top: 2em;
	margin-bottom: 0.75em;
	padding-bottom: 0.4em;
	border-bottom: 3px solid #eb1c24;
	color: #333;
}

.etudes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.25em;
	margin-bottom: 2em;
}

.etude-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1.5em 1em;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	text-decoration: none;
	color: #333;
	transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.etude-card:hover {
	border-color: #eb1c24;
	box-shadow: 0 4px 16px rgba(235, 28, 36, 0.15);
	transform: translateY(-2px);
	color: #333;
	text-decoration: none;
}

.etude-card-icon {
	color: #eb1c24;
	margin-bottom: 0.75em;
}

.etude-card-title {
	font-weight: 600;
	font-size: 0.9em;
	line-height: 1.3;
	margin-bottom: 0.75em;
	flex-grow: 1;
}

.etude-card-action {
	display: inline-block;
	margin-top: auto;
	padding: 0.35em 1em;
	background: #eb1c24;
	color: #fff;
	border-radius: 4px;
	font-size: 0.8em;
	font-weight: 500;
	transition: background 0.2s;
}

.etude-card:hover .etude-card-action {
	background: #c8151c;
}

/* Espacement entre les boutons du message de restriction */
.pmpro_message .pmpro_btn + .pmpro_btn {
	margin-left: 0.75em;
}

/* Évènements — masquer toutes les mentions de prix (invitations gratuites) */
.tribe-events-cost,
.tribe-events-event-cost,
.tribe-events-event-cost-label,
.tribe-events-c-small-cta__price,
.tribe-tickets__tickets-item-extra-price,
.tribe-tickets__tickets-item-opt-price,
.tribe-tickets__tickets-item-total-wrap,
.tribe-ticket__item__price,
.tribe-commerce-price,
.tribe-tickets-order__price,
.tribe-tickets-order__total,
.tribe-tickets__tickets-footer-total,
.tribe-tickets__tickets-header-quantity-price,
.tribe-formatted-currency-wrap,
.tribe-tickets__tickets-item-extra-available {
	display: none !important;
}

/* Page de confirmation — masquer le masthead (breadcrumb + titre "Commande terminée") */
body:has(.tribe-tickets__commerce-order) .masthead {
	display: none !important;
}

/* Page de confirmation — masquer en-tête, description et détails de commande */
.tribe-tickets__commerce-order-header,
.tribe-tickets__commerce-order-description,
.tribe-tickets__commerce-order-details,
.tec-tickets__attendees-list-item-attendee-details-ticket {
	display: none !important;
}

/* Checkout — masquer prix unitaire, sous-total, total, coupon */
.tribe-tickets__commerce-checkout-cart-item-price,
.tribe-tickets__commerce-checkout-cart-item-subtotal,
.tribe-tickets__commerce-checkout-cart-footer-total,
.tec-tickets-commerce-checkout-cart__coupons {
	display: none !important;
}

.tribe-tickets__commerce-checkout, .tribe-tickets__commerce-order {
	margin-bottom: 50px !important;
}

.event-tickets .tec-tickets__attendees-list-item, .tribe-common .tec-tickets__attendees-list-item {
	min-width: calc(100% + 50px);
}

/* Page "Mes invitations" — masquer le bloc commande (email, date, nb invitations) */
.event-tickets .user-details {
	display: none !important;
}

/* Bouton "Inviter un tiers" */
#oieb-tiers-btn-wrap {
	margin-top: 1em;
}

.oieb-tiers-trigger-btn {
	display: inline-block;
	padding: 0.55em 1.3em;
	background: #eb1c24;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 0.9em;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s;
}

.oieb-tiers-trigger-btn:hover {
	background: #c8151c;
}

/* Modal "Inviter un tiers" */
#oieb-tiers-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

#oieb-tiers-modal[hidden] {
	display: none;
}

.oieb-tiers-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.oieb-tiers-modal-box {
	position: relative;
	background: #fff;
	border-radius: 8px;
	padding: 2em;
	width: min(100%, 92vw);
	max-height: 90vh;
	overflow-y: auto;
	z-index: 1;
}

.oieb-tiers-modal-close {
	position: absolute;
	top: 0.75em;
	right: 0.75em;
	background: none;
	border: none;
	font-size: 1.25em;
	cursor: pointer;
	color: #666;
	line-height: 1;
	padding: 0.2em;
}

.oieb-tiers-modal-close:hover {
	color: #eb1c24;
}

body.oieb-modal-open {
	overflow: hidden;
}

.oieb-tiers-title {
	margin-top: 0;
	font-size: 1.1em;
	color: #333;
}

.oieb-tiers-notice {
	color: #555;
	font-size: 0.95em;
	line-height: 1.5;
}

#oieb-tiers-btn-wrap {
	border-top: transparent !important;
	border-bottom: transparent !important;
}

.oieb-tiers-modal-box .wpcf7-form-control {
	width: 100%;
}

.pmpro_advanced_levels-div .pmpro_level-meta p.pmpro_level-expiration {
	display: block;
	width: 100%;
	margin-top: 0.3em;
}
