/**
 * Elementor Compatibility Styles
 *
 * TEMPORARY FILE: Contains CSS from WordPress Customizer to ensure Elementor
 * pages display correctly while using the Xtra block theme.
 *
 * These styles can be phased out as we migrate content to native blocks.
 * When a section is no longer needed, comment it out or remove it.
 *
 * Last migrated from Customizer: January 2026
 */

/* ==========================================================================
   Xtra Gallery Block – Layout styles (uses CSS custom properties)
   ========================================================================== */

/* ---------------------------------- COMMON -------------------------------- */

.xtra-gallery-thumb {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}

.xtra-gallery-item:hover .xtra-gallery-thumb {
	transform: scale(1.05);
}

.xtra-gallery-item {
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgb(0 0 0 / 4%);
}

@media (prefers-color-scheme: dark) {
	.xtra-gallery-item {
		box-shadow: 0 0 0 1px rgb(255 255 255 / 10%);
	}
}

/* --------------------  Responsive auto-fit square grid  ------------------- */

.layout-square-fluid {
	--gap: 8px;
	--min: 220px;
	display: grid;
	gap: var(--gap);
	grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
}

.layout-square-fluid .xtra-gallery-item {
	aspect-ratio: 1 / 1;
}

/* --------------------------  Masonry (column)  ---------------------------- */

.layout-masonry {
	--gap: 8px;
	--col: 320px;
	column-width: var(--col);
	column-gap: var(--gap);
	padding-right: var(--gap);
}

.layout-masonry .xtra-gallery-item {
	break-inside: avoid;
	display: block;
	margin-bottom: var(--gap);
}

/* ==========================================================================
   Lightbox (Fancybox)
   ========================================================================== */

.f-button {
	background-color: rgba(0,0,0,0) !important;
}

@media (max-width: 767px) {
	.f-button.is-next,
	.f-button.is-prev {
		display: none !important;
	}
}

/* ==========================================================================
   Ajax Spinner / Loading States
   ========================================================================== */

#global-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.8);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.spinner {
	border: 8px solid #f3f3f3;
	border-top: 8px solid #3498db;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.loading-spinner {
	border: 8px solid #f3f3f3;
	border-top: 8px solid #353535;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 20px auto;
}

#chat-response {
	height: 400px;
	border: 1px solid #ccc;
	padding: 10px;
	overflow-y: auto;
	margin-top: 10px;
}

/* ==========================================================================
   Button Styles
   ========================================================================== */

/* Admin Hub Buttons */
.xtra-admin-button {
	width: 100%;
	background-color: #353535 !important;
	color: #fff;
	border: none;
	padding: 10px;
	cursor: pointer;
	font-size: 16px;
	border-radius: 4px;
	display: inline-block;
	font-family: Arial, Helvetica, sans-serif;
}

.myb-admin-button {
	width: 100%;
	background-color: #353535 !important;
	color: #fff;
	border: none;
	padding: 10px;
	cursor: pointer;
	font-size: 16px;
	border-radius: 4px;
	display: inline-block;
}

/* MyB Navigation Buttons (homepage, "All Local News", etc.) */
.myb-button {
	width: 100%;
	background-color: var(--wp--preset--color--primary, #3A80BC);
	color: white !important;
	padding: 10px 20px;
	text-decoration: none !important;
	border-radius: 4px;
	flex: 1;
	display: inline-block;
	text-align: center;
	font-size: 1rem;
	transition: background-color 0.3s ease;
}

.myb-button:hover {
	background-color: var(--wp--preset--color--primary-dark, #335b7d);
}

/* Standard Call-to-Action Button */
.my-btn {
	display: inline-block;
	background-color: #FF5727;
	padding: 10px 50px;
	text-decoration: none;
	color: white !important;
	border-radius: 15px;
	margin-bottom: 15px;
}

/* Full Width Block Button */
.block-button-full-width {
	width: 100%;
}

.wp-block-button__link {
	padding-left: 10%;
	padding-right: 10%;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
	a[href]:after {
		content: none !important;
	}
}

/* ==========================================================================
   Elementor Touch/Focus States
   ========================================================================== */

.elementor-element a:focus {
	-webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Horizontal Scroll Menu (App-style)
   ========================================================================== */

.app-scroll-menu ul {
	display: flex;
	flex-wrap: nowrap !important;
	white-space: nowrap !important;
	overflow-x: auto !important;
	padding: 20px 0px 31px 0px;
}

.app-scroll-menu ul::-webkit-scrollbar {
	display: none !important;
}

/* ==========================================================================
   Image Captions
   ========================================================================== */

.wp-element-caption {
	font-family: 'Helvetica', 'Arial', sans-serif;
	color: #353535;
	font-size: 12pt;
	font-weight: 200;
}

/* ==========================================================================
   WooCommerce Customizations
   ========================================================================== */

/* Membership & Restriction Messages */
.wc-memberships-content-restricted-message::before {
	display: none;
}

.wc-memberships-content-restricted-message {
	text-align: center;
	padding: 30px;
}

.wc-memberships-member-discount {
	padding: 0px 10px 0px 10px !important;
	background-color: red !important;
	border-radius: 5px !important;
}

/* Hide restriction messages in specific areas */
.search .wc-memberships-restriction-message,
.elementor-location-archive .wc-memberships-restriction-message,
.mb-post-archive-listing .wc-memberships-restriction-message {
	display: none;
}

/* Product Display */
.single-product .product-type-variable .entry-summary .product_title + .price {
	display: none;
}

/* Price Styling */
.price ins {
	color: red;
	text-decoration: none;
}

/* Checkout & Payment Styling */
.payment_box {
	background-color: #ffffff !important;
	border-width: 1px;
	border-style: solid;
	border-color: lightgray;
	padding-top: 20px !important;
}

#wc-stripe-upe-form {
	border: none;
}

.wc-saved-payment-methods {
	padding-left: 10px !important;
}

.woocommerce-ResetPassword {
	width: 100% !important;
}

/* ==========================================================================
   Advertisement Components
   ========================================================================== */

/* Ad Labels */
.mybuck-adlabel {
	color: white;
	background-color: #353535;
	padding: 2px 10px 3px;
	margin-bottom: 10px;
	border-radius: 7px;
	max-width: 540px;
	text-align: center;
	font-size: 14px;
}

/* iFrame Container */
.html5-container {
	background-color: white;
	width: 100%;
	height: 100%;
	padding-top: 100%;
	margin-bottom: 20px;
	position: relative;
	overflow: hidden;
}

.html5-content {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
}

/* In-Story Ads */
@media screen and (min-width: 540px) {
	.mybuck-in-story,
	.mybuck-in-story-2,
	.mybuck-in-story-3,
	.mybuck-in-story-4 {
		padding: 21px 25% 11px;
		background-color: #E8E8E8;
		margin-bottom: 20px;
	}

	.mybuck-manual-in-story {
		padding: 20px 15% 10px;
		background-color: #E8E8E8;
		margin-bottom: 20px;
	}
}

/* ==========================================================================
   Typography & Content
   ========================================================================== */

/* Lists */
ul, ol {
	margin-bottom: 1em;
}

/* Pull Quotes */
.wp-block-pullquote {
	margin-bottom: 15px;
	padding: 30px;
}

/* Post Excerpts */
.elementor-post__excerpt p:after {
	content: "...";
}

/* Text Announcements */
.mybtextannouncement {
	color: gray;
	text-align: center;
	font-size: 18px;
}

/* ==========================================================================
   Jet Form Builder
   ========================================================================== */

.jet-form-builder-messages-wrap {
	background-color: white;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Accessibility - Remove focus outlines (use with caution) */
a:focus,
.focus a {
	outline: none !important;
}

/* Visibility Classes */
body.logged-in .hide-logged-in,
body:not(.logged-in) .hide-logged-out {
	display: none !important;
}

/* ==========================================================================
   Plugin-Specific Styles
   ========================================================================== */

/* Photonic Gallery */
.baguetteBox-button,
.baguetteBox-button:focus,
.baguetteBox-button:active {
	background-color: transparent !important;
	border-style: none !important;
	color: transparent !important;
	outline: none !important;
}

.fancybox-button {
	background-color: transparent !important;
}

#photonic-social {
	display: none;
}

.photonic-more-button {
	width: 100%;
	background: black;
}

a.photonic-more-button {
	color: white;
	font-size: 18px;
}

.photonic-more-button:hover {
	width: 100%;
	background: gray;
}

/* ==========================================================================
   Advanced Ads Pro / Announcement Bar
   ========================================================================== */

.mybuck-announcement-bar {
	background-color: #263a54;
	width: 100%;
	color: white !important;
	font-size: 16px;
	line-height: 125%;
	text-align: center !important;
	padding: 10px 30px 10px 10px;
}

/* Ad Links */
a.adv-link:link,
a.adv-link:hover,
a.adv-link:visited,
a.adv-link:active {
	color: white !important;
	font-size: 16px;
	line-height: 110%;
	text-align: center !important;
}

/* Popup Controls */
.mybuck-close-button {
	color: black;
	margin-left: 5px !important;
}

.mybuck-fullscreen span.mybuck-close-button {
	margin-right: 20px;
	width: 30px !important;
	height: 30px !important;
	line-height: 30px !important;
}

@media screen and (max-width: 600px) {
	.mybuck-fullscreen {
		width: 100%;
	}
}

@media screen and (max-width: 540px) {
	.mybuck-wiggle {
		width: 80%;
	}
}

@media screen and (min-width: 541px) {
	.mybuck-wiggle {
		width: 540px;
		height: 540px;
	}
}

/* ==========================================================================
   2025 Post Content Styles
   ========================================================================== */

.news-post-content h3,
.feature-post-content h3 {
	font-family: 'Merriweather Sans', sans-serif;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 2rem;
}

.news-post-content .mybuck-in-story,
.feature-post-content .mybuck-in-story {
	margin-bottom: 10px;
}

@media screen and (min-width: 540px) {
	.news-post-content .mybuck-in-story,
	.feature-post-content .mybuck-in-story {
		padding: 21px 25% 11px;
		background-color: #E8E8E8;
		margin-bottom: 20px;
	}

	.mybuck-manual-in-story {
		padding: 20px 25% 10px;
		background-color: #E8E8E8;
		margin-bottom: 20px;
	}
}
