/**
 * Review Insights Styles
 *
 * @package HRCK\Tools\ReviewInsights
 */

/* =========================================================================
   Trust Badge
   ========================================================================= */

.hrck-ri-trust-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1;
	color: #333;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	margin: 8px 0;
}

.hrck-ri-trust-badge-stars {
	display: inline-flex;
	align-items: center;
	gap: 1px;
	color: #f5a623;
}

.hrck-ri-star {
	display: block;
}

.hrck-ri-trust-badge-rating {
	font-weight: 700;
	color: #333;
}

.hrck-ri-trust-badge-count {
	color: #777;
	font-size: 13px;
}

/* Trust Badge Link Wrapper */

.hrck-ri-trust-badge-link {
	text-decoration: none;
	color: inherit;
}

.hrck-ri-trust-badge-link:hover,
.hrck-ri-trust-badge-link:focus {
	text-decoration: none;
	color: inherit;
}

.hrck-ri-trust-badge-link:hover .hrck-ri-trust-badge {
	border-color: #ccc;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* =========================================================================
   AI Review Summary Card
   ========================================================================= */

.hrck-ri-review-summary {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	padding: 24px;
	margin: 20px 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.hrck-ri-review-summary-heading {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 700;
	color: #333;
}

.hrck-ri-review-summary-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
}

.hrck-ri-review-summary-rating-value {
	font-size: 28px;
	font-weight: 700;
	color: #333;
	line-height: 1;
}

.hrck-ri-review-summary-rating-stars {
	display: inline-flex;
	align-items: center;
	gap: 1px;
	color: #f5a623;
}

.hrck-ri-review-summary-rating-count {
	color: #777;
	font-size: 14px;
}

.hrck-ri-review-summary-summary {
	font-size: 15px;
	line-height: 1.6;
	color: #444;
	margin: 0 0 16px;
}

/* Reviews Link */

.hrck-ri-reviews-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 16px;
	padding: 8px 16px;
	background: #f5f5f5;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	color: #333;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s;
}

.hrck-ri-reviews-link:hover {
	background: #eaeaea;
	border-color: #ccc;
	color: #333;
	text-decoration: none;
}

.hrck-ri-reviews-link svg {
	flex-shrink: 0;
}

/* Callout Feature Pills */

.hrck-ri-callout-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.hrck-ri-callout-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: #f5f5f5;
	border: 1px solid #e0e0e0;
	border-radius: 20px;
	font-size: 13px;
	color: #444;
	line-height: 1;
}

.hrck-ri-callout-pill-label {
	font-weight: 500;
}

.hrck-ri-callout-pill-count {
	background: #e0e0e0;
	color: #666;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 10px;
	min-width: 18px;
	text-align: center;
}

/* Best For Tags */

.hrck-ri-best-for {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.hrck-ri-best-for-label {
	font-size: 13px;
	font-weight: 600;
	color: #555;
}

.hrck-ri-best-for-tag {
	display: inline-block;
	padding: 4px 10px;
	background: #e8f4fd;
	color: #1a73e8;
	border-radius: 14px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
}

.hrck-ri-best-for-tag--small {
	padding: 3px 8px;
	font-size: 11px;
}

/* =========================================================================
   FAQ Accordion
   ========================================================================= */

.hrck-ri-faq {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	padding: 24px;
	margin: 20px 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.hrck-ri-faq-heading {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 700;
	color: #333;
}

.hrck-ri-faq-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.hrck-ri-faq-item {
	border-bottom: 1px solid #eee;
}

.hrck-ri-faq-item:last-child {
	border-bottom: none;
}

.hrck-ri-faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 14px 0;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
	color: #333;
	text-align: left;
	line-height: 1.4;
	gap: 12px;
}

.hrck-ri-faq-question:hover {
	color: #1a73e8;
}

.hrck-ri-faq-chevron {
	flex-shrink: 0;
	transition: transform 0.25s ease;
	color: #999;
}

.hrck-ri-faq-item--open .hrck-ri-faq-chevron {
	transform: rotate(180deg);
}

.hrck-ri-faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, padding 0.3s ease;
	padding: 0;
}

.hrck-ri-faq-item--open .hrck-ri-faq-answer {
	max-height: 500px;
	padding-bottom: 14px;
}

.hrck-ri-faq-answer p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #555;
}

/* =========================================================================
   Seasonal Highlights
   ========================================================================= */

.hrck-ri-seasonal {
	margin-top: 16px;
	padding: 12px 16px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
	color: #92400e;
	display: none; /* Shown by JS when season matches */
}

.hrck-ri-seasonal--visible {
	display: block;
}

.hrck-ri-seasonal-label {
	font-weight: 600;
	margin-right: 4px;
}

/* =========================================================================
   Wishlist Tooltip (Mini Card)
   ========================================================================= */

.hrck-ri-wishlist-tooltip {
	padding: 8px 0 4px;
	border-top: 1px solid #eee;
	margin-top: 8px;
}

.hrck-ri-wishlist-tooltip-rating {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin-bottom: 4px;
}

.hrck-ri-wishlist-tooltip-rating svg {
	color: #f5a623;
}

.hrck-ri-wishlist-tooltip-count {
	font-weight: 400;
	color: #777;
}

.hrck-ri-wishlist-tooltip-summary {
	font-size: 12px;
	line-height: 1.5;
	color: #555;
	margin: 0 0 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hrck-ri-wishlist-tooltip-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

/* =========================================================================
   Split Cost Group Badge
   ========================================================================= */

.hrck-ri-group-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	background: #e8f4fd;
	color: #1a73e8;
	border-radius: 14px;
	font-size: 12px;
	font-weight: 500;
	margin-top: 8px;
}

.hrck-ri-group-badge svg {
	width: 14px;
	height: 14px;
}

/* =========================================================================
   Cart Abandonment Email Review Section
   ========================================================================= */

.hrck-ri-email-review {
	margin: 0;
	padding: 12px 20px 16px;
}

.hrck-ri-email-review-rating {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 4px;
}

.hrck-ri-email-review-summary {
	font-size: 13px;
	line-height: 1.5;
	color: #555;
	margin: 0;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 960px) {
	.hrck-ri-review-summary,
	.hrck-ri-faq {
		padding: 16px;
		margin: 12px 0;
	}

	.hrck-ri-review-summary-heading,
	.hrck-ri-faq-heading {
		font-size: 16px;
	}

	.hrck-ri-review-summary-rating-value {
		font-size: 22px;
	}

	.hrck-ri-callout-pill {
		padding: 5px 10px;
		font-size: 12px;
	}
}
