/**
 * HP Blocksy Support — Extension-Specific Overrides
 *
 * Loaded when any HP extension is active.
 */

/* === HP Bookings: Calendar + Datepicker === */
.hp-booking-calendar,
.hp-field--date .flatpickr-calendar {
	z-index: 99998;
}

.hp-booking__timeslots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 8px;
}

.hp-booking__timeslot {
	padding: 8px 12px;
	border: 1px solid var(--hp-color-border, #ddd);
	border-radius: var(--hp-border-radius, 3px);
	text-align: center;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.hp-booking__timeslot:hover,
.hp-booking__timeslot--selected {
	background: var(--hp-color-primary, #4a90d9);
	border-color: var(--hp-color-primary, #4a90d9);
	color: #fff;
}

/* === HP Favorites: Heart Button === */
.hp-listing__action--favorite .hp-link,
.hp-listing__action--favorite button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: var(--hp-color-muted, #999);
	transition: color 0.2s ease, background 0.2s ease;
}

.hp-listing__action--favorite .hp-link:hover,
.hp-listing__action--favorite .hp-link--active {
	color: #e53935;
	background: rgba(255, 255, 255, 1);
}

/* === HP Marketplace: Order Table + Dashboard === */
.hp-order__status {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}

.hp-order__status--completed {
	background: #e8f5e9;
	color: #2e7d32;
}

.hp-order__status--pending {
	background: #fff3e0;
	color: #e65100;
}

.hp-order__status--cancelled {
	background: #ffebee;
	color: #c62828;
}

/* === HP Memberships: Plan Cards === */
.hp-membership-plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}

.hp-membership-plan {
	border: 1px solid var(--hp-color-border, #eee);
	border-radius: 12px;
	padding: 24px;
	text-align: center;
	transition: box-shadow 0.2s ease;
}

.hp-membership-plan:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hp-membership-plan__features {
	list-style: none;
	padding: 0;
	margin: 16px 0;
	text-align: left;
}

.hp-membership-plan__features li {
	padding: 6px 0;
	border-bottom: 1px solid var(--hp-color-border, #f0f0f0);
}

/* === HP Messages: Thread Layout === */
.hp-messages {
	display: flex;
	gap: 0;
	min-height: 500px;
	border: 1px solid var(--hp-color-border, #eee);
	border-radius: 8px;
	overflow: hidden;
}

.hp-messages__sidebar {
	flex: 0 0 300px;
	border-right: 1px solid var(--hp-color-border, #eee);
	overflow-y: auto;
}

.hp-messages__content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

@media (max-width: 768px) {
	.hp-messages {
		flex-direction: column;
		min-height: auto;
	}

	.hp-messages__sidebar {
		flex: none;
		border-right: none;
		border-bottom: 1px solid var(--hp-color-border, #eee);
		max-height: 200px;
	}
}

/* === HP Requests: Request Cards + Offers === */
.hp-requests {
	display: grid;
	gap: 24px;
}

.hp-request {
	border: 1px solid var(--hp-color-border, #eee);
	border-radius: 8px;
	padding: 20px;
	background: var(--hp-color-surface, #fff);
}

.hp-offer {
	border-left: 3px solid var(--hp-color-primary, #4a90d9);
	padding: 16px 20px;
	margin: 12px 0;
	background: var(--hp-color-surface, #f8f8f8);
	border-radius: 0 8px 8px 0;
}

/* === HP Reviews: Star Ratings === */
.hp-review {
	padding: 20px 0;
	border-bottom: 1px solid var(--hp-color-border, #eee);
}

.hp-review__rating .hp-rating__star {
	font-size: 18px;
}

/* === HP Social Links: Icon Styling === */
.hp-vendor__social-links {
	display: flex;
	gap: 8px;
	margin: 8px 0;
}

.hp-vendor__social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--hp-color-surface, #f0f0f0);
	color: var(--hp-color-muted, #666);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.hp-vendor__social-links a:hover {
	background: var(--hp-color-primary, #4a90d9);
	color: #fff;
}

/* === HP Social Login: Buttons === */
.hp-form--user-login-social,
.hp-form--user-register-social {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
}

.hp-social-login__button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 10px 20px;
	border: 1px solid var(--hp-color-border, #ddd);
	border-radius: var(--hp-border-radius, 3px);
	background: #fff;
	color: var(--hp-color-text, #333);
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.hp-social-login__button:hover {
	background: var(--hp-color-surface, #f5f5f5);
}

/* === HP Tags: Tag Cloud + Filter === */
.hp-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hp-tag-cloud__tag,
.hp-listing-tags a {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 16px;
	background: var(--hp-color-surface, #f0f0f0);
	color: var(--hp-color-text, #333);
	font-size: 13px;
	text-decoration: none;
	transition: background 0.15s ease;
}

.hp-tag-cloud__tag:hover,
.hp-listing-tags a:hover {
	background: var(--hp-color-primary, #4a90d9);
	color: #fff;
}

/* === HP Statistics: Chart Container === */
.hp-statistics__chart {
	width: 100%;
	min-height: 300px;
}

/* === HP Blocks: Testimonial Slider === */
.hp-testimonials--slider {
	max-width: 100%;
	overflow: hidden;
}

/* === HP Search Alerts: Form === */
.hp-form--search-alert {
	padding: 16px;
	background: var(--hp-color-surface, #f8f8f8);
	border-radius: var(--hp-border-radius, 3px);
	margin-top: 16px;
}

/* === HP Geolocation: Map Container === */
.hp-map {
	width: 100%;
	min-height: 400px;
	border-radius: 8px;
	overflow: hidden;
}
