/**
 * XShop Core front-end component styles.
 * Uses the theme's design tokens when present, with safe fallbacks.
 *
 * @package XShop_Core
 */

/* Testimonials ---------------------------------------------------------- */
.xshop-testimonials {
	display: grid;
	grid-template-columns: repeat(var(--xshop-cols, 3), minmax(0, 1fr));
	gap: var(--xs-gap, 24px);
	margin: 24px 0;
}
.xshop-testimonial {
	margin: 0;
	padding: 24px;
	background: var(--xs-color-bg, #fff);
	border: 1px solid var(--xs-color-line, #e6e8ec);
	border-radius: var(--xs-radius, 10px);
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.xshop-testimonial__avatar img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}
.xshop-testimonial__quote {
	margin: 0;
	border: 0;
	padding: 0;
	background: none;
	font-size: 1rem;
	color: var(--xs-color-body, #3a4150);
	font-style: italic;
}
.xshop-testimonial__author {
	font-weight: 700;
	color: var(--xs-color-ink, #1a1d24);
}

/* FAQ accordion --------------------------------------------------------- */
.xshop-faq {
	margin: 24px 0;
	border: 1px solid var(--xs-color-line, #e6e8ec);
	border-radius: var(--xs-radius, 10px);
	overflow: hidden;
}
.xshop-faq__item + .xshop-faq__item {
	border-top: 1px solid var(--xs-color-line, #e6e8ec);
}
.xshop-faq__q {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	background: transparent;
	border: 0;
	border-radius: 0;
	text-align: left;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--xs-color-ink, #1a1d24);
	cursor: pointer;
}
.xshop-faq__q:hover { background: var(--xs-color-bg-soft, #f6f7f9); }
.xshop-faq__icon {
	flex: none;
	width: 14px;
	height: 14px;
	position: relative;
}
.xshop-faq__icon::before,
.xshop-faq__icon::after {
	content: "";
	position: absolute;
	background: var(--xs-color-primary, #1f6feb);
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.xshop-faq__icon::before { top: 6px; left: 0; width: 14px; height: 2px; }
.xshop-faq__icon::after { top: 0; left: 6px; width: 2px; height: 14px; }
.xshop-faq__q[aria-expanded="true"] .xshop-faq__icon::after { opacity: 0; transform: rotate(90deg); }
.xshop-faq__a {
	padding: 0 20px 20px;
	color: var(--xs-color-body, #3a4150);
}

/* WooCommerce assurances ------------------------------------------------ */
.xshop-assurances {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
}
.xshop-assurances__item {
	position: relative;
	padding-left: 22px;
	font-size: 0.9rem;
	color: var(--xs-color-muted, #6b7280);
}
.xshop-assurances__item::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--xs-color-success, #1a9e5f);
	font-weight: 700;
}
.xshop-product-whatsapp { margin-top: 14px; }
.xshop-product-whatsapp a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: #25d366;
}

/* Simplified checkout: keep the fixed/hidden country field out of view. */
.xshop-hidden-field { display: none !important; }

@media (max-width: 782px) {
	.xshop-testimonials { grid-template-columns: minmax(0, 1fr); }
}
