/**
 * EZ Golf Academy Integration Styles
 * 
 * Mega menu, blog search, hover animations, and mobile optimizations
 * Optimized for Phoenix/desert networks (fast loading)
 *
 * @package EZGolfAcademy
 * @since 1.0.0
 */

/* ========================================
   Mega Menu Styles
   ======================================== */

.mega-menu-parent {
	position: relative;
}

.mega-menu-content {
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--ez-surface);
	min-width: 800px;
	max-width: 1200px;
	padding: 40px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	border-radius: 12px;
	border-top: 4px solid var(--ez-gold);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	z-index: 999;
	margin-top: 10px;
}

.mega-menu-parent:hover .mega-menu-content,
.mega-menu-parent:focus-within .mega-menu-content {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.mega-menu-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-bottom: 20px;
}

.mega-menu-item {
	text-align: center;
}

.mega-menu-link {
	display: block;
	padding: 20px;
	border-radius: 8px;
	transition: all 0.3s ease;
	text-decoration: none;
	color: var(--ez-navy);
	border: 2px solid transparent;
}

.mega-menu-link:hover,
.mega-menu-link:focus {
	background: var(--ez-cream);
	border-color: var(--ez-gold);
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mega-menu-icon {
	font-size: 48px;
	margin-bottom: 15px;
}

.mega-menu-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--ez-navy);
	margin: 0 0 10px;
}

.mega-menu-description {
	font-size: 14px;
	color: var(--ez-text-muted);
	margin: 0;
	line-height: 1.5;
}

.mega-menu-footer {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid rgba(11, 31, 58, 0.12);
}

.mega-menu-view-all {
	color: var(--ez-gold);
	font-weight: 600;
	text-decoration: none;
	transition: color 0.3s ease;
}

.mega-menu-view-all:hover {
	color: var(--ez-gold-dark);
}

/* ========================================
   Blog Search Styles
   ======================================== */

.blog-search-container {
	margin-left: 20px;
}

.blog-search-form {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(255, 255, 255, 0.1);
	padding: 8px 15px;
	border-radius: 50px;
	backdrop-filter: blur(10px);
}

.blog-search-field {
	background: transparent;
	border: none;
	color: var(--ez-white);
	font-size: 14px;
	padding: 5px 10px;
	min-width: 200px;
	outline: none;
}

.blog-search-field::placeholder {
	color: rgba(255, 255, 255, 0.7);
}

.blog-search-submit {
	background: var(--ez-gold);
	border: none;
	color: var(--ez-navy);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	padding: 0;
}

.blog-search-submit:hover {
	background: var(--ez-gold-dark);
	transform: scale(1.1);
}

/* ========================================
   Hover Animations
   ======================================== */

.hover-lift {
	transition: transform 0.3s ease;
}

.hover-lift:hover {
	transform: translateY(-5px);
}

.hover-glow {
	transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
	box-shadow: 0 0 20px rgba(255, 199, 44, 0.5);
}

.hover-scale {
	transition: transform 0.3s ease;
}

.hover-scale:hover {
	transform: scale(1.05);
}

.hover-wing {
	transition: all 0.3s ease;
}

.hover-wing:hover {
	transform: translateY(-10px) rotate(2deg);
	box-shadow: 0 10px 30px rgba(255, 199, 44, 0.4);
}

/* ========================================
   Logo Styles
   ======================================== */

.ez-logo {
	display: flex;
	align-items: center;
	gap: 15px;
}

.ez-logo .logo-icon {
	width: auto;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform 0.3s ease;
	background: transparent;
	border-radius: 0;
}

.ez-logo .logo-icon img.ez-logo-image {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	display: block;
	transition: all 0.3s ease;
}

.ez-logo:hover .logo-icon img.ez-logo-image {
	transform: scale(1.05);
	filter: drop-shadow(0 0 15px rgba(255, 199, 44, 0.7));
}

.ez-logo:hover .logo-icon {
	transform: scale(1.05);
	animation: wing-pulse 0.6s ease;
}

@keyframes wing-pulse {
	0%, 100% { transform: scale(1) rotate(0deg); }
	50% { transform: scale(1.15) rotate(5deg); }
}

.ez-logo .logo-icon svg {
	width: 100%;
	height: 100%;
	padding: 8px;
}

.ez-logo .logo-text {
	display: flex;
	flex-direction: column;
}

.ez-logo .logo-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0;
	line-height: 1.2;
	color: var(--ez-white);
}

.ez-logo .logo-tagline {
	font-size: 12px;
	margin: 0;
	opacity: 0.9;
	font-style: italic;
	color: var(--ez-gold-primary, #FFC72C);
}

/* Remove duplicate text from logo images - hide text if logo image contains text */
.ez-logo-version-full .logo-text,
.ez-logo-version-full .logo-title,
.ez-logo-version-full .logo-tagline {
	display: none !important;
}

/* Header logo - ensure no duplicate text shows */
.site-header .ez-logo .logo-text,
.site-header .ez-logo .logo-title,
.site-header .ez-logo .logo-tagline {
	display: none !important;
}

.site-header .custom-logo-link {
	display: inline-block;
	line-height: 0;
	background: transparent !important;
	background-color: transparent !important;
	padding: 0 !important;
	border: none !important;
	margin: 0;
}

.site-header .custom-logo-link img {
	max-height: 45px !important;
	width: auto;
	height: auto;
	display: block;
	background: transparent !important;
	background-color: transparent !important;
	padding: 0 !important;
	border: none !important;
	margin: 0;
}

/* Ensure all header logo elements are transparent - EXACTLY Match Footer */
.site-header .site-logo,
.site-header .ez-logo,
.site-header .ez-logo .logo-icon {
	background: transparent !important;
	background-color: transparent !important;
	padding: 0 !important;
	border: none !important;
	margin: 0;
}

.site-header .site-logo img,
.site-header .ez-logo .logo-icon img {
	max-height: 45px !important;
	background: transparent !important;
	background-color: transparent !important;
	padding: 0 !important;
	border: none !important;
	margin: 0;
}

/* Logo Sizes */
.ez-logo.logo-small .logo-icon img.ez-logo-image {
	max-height: 40px;
	max-width: 100px;
}

.ez-logo.logo-small .logo-title {
	font-size: 20px;
}

.ez-logo.logo-large .logo-icon img.ez-logo-image {
	max-height: 120px;
	max-width: 300px;
}

.ez-logo.logo-large .logo-title {
	font-size: 32px;
}

/* Full version logo (includes text) */
.ez-logo-full .logo-icon img.ez-logo-image {
	max-width: 400px;
	max-height: 200px;
	width: 100%;
	height: auto;
}

/* Default logo in header */
.custom-logo-link img.custom-logo,
.custom-logo-link .ez-logo-default {
	max-height: 60px;
	width: auto;
	height: auto;
	display: block;
	transition: all 0.3s ease;
}

.custom-logo-link:hover img.custom-logo,
.custom-logo-link:hover .ez-logo-default {
	transform: scale(1.05);
	filter: drop-shadow(0 0 10px rgba(255, 199, 44, 0.5));
}

/* Header logo sizing */
.site-header .custom-logo-link img,
.site-header .ez-logo .logo-icon img {
	max-height: 60px;
	width: auto;
	background: transparent !important;
	background-color: transparent !important;
}

@media (max-width: 768px) {
	.site-header .custom-logo-link img,
	.site-header .ez-logo .logo-icon img {
		max-height: 45px;
	}
	
	.ez-logo.logo-large .logo-icon img.ez-logo-image {
		max-height: 100px;
		max-width: 250px;
	}
}

/* ========================================
   Book Page & SimplyBook Embed
   ======================================== */

.page-book {
	background: var(--ez-surface);
}

.page-book .book-page-inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 60px 28px 80px;
}

/* Header */
.page-book .book-page-header {
	text-align: center;
	margin-bottom: 32px;
}

.page-book .book-page-title {
	font-family: 'DM Sans', sans-serif;
	font-size: clamp(2rem, 4.5vw, 3rem);
	font-weight: 800;
	color: var(--ez-navy);
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 14px;
}

.page-book .book-page-intro {
	font-size: 1.1rem;
	line-height: 1.65;
	color: var(--ez-text-muted);
	max-width: 540px;
	margin: 0 auto 6px;
}

.page-book .book-page-support {
	font-size: 0.9rem;
	color: #4A5568;
	margin: 8px auto 0;
}

/* "What to expect" steps */
.book-steps {
	display: flex;
	justify-content: center;
	gap: 32px;
	list-style: none;
	padding: 0;
	margin: 0 0 36px;
}

.book-step {
	display: flex;
	align-items: center;
	gap: 10px;
}

.book-step__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ez-navy);
	color: var(--ez-text-inverse);
	font-family: 'DM Sans', sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	flex-shrink: 0;
}

.book-step__text {
	font-size: 0.9rem;
	color: var(--ez-charcoal);
	font-weight: 500;
}

/* Widget embed */
.page-book .book-page-embed {
	margin: 0 0 24px;
}

.ez-simplybook-embed {
	background: var(--ez-surface);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(14, 42, 71, 0.07);
	border: 1px solid var(--ez-border);
}

.ez-simplybook-embed iframe,
.ez-simplybook-embed .sb-widget-iframe {
	border: none;
	width: 100%;
	min-height: 700px;
	display: block;
}

.ez-simplybook-responsive {
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
}

/* Post-widget note */
.page-book .book-page-note {
	text-align: center;
	font-size: 0.85rem;
	color: #4A5568;
	margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
	.page-book .book-page-inner {
		padding: 40px 20px 60px;
	}

	.book-steps {
		flex-direction: column;
		align-items: center;
		gap: 12px;
		margin-bottom: 28px;
	}

	.ez-simplybook-embed iframe,
	.ez-simplybook-embed .sb-widget-iframe {
		min-height: 600px;
	}
}

/* BOOK PAGE: dashboard layout (matches portal) */
body.page-book,
body.page-template-page-book {
	background: var(--ez-cream, #F5F2EA);
}

/* Global widget wrapper defaults */
.ezgolf-booking-wrapper {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0;
}

.ezgolf-booking-wrapper iframe {
	width: 100% !important;
	min-height: 860px;
	border: 0 !important;
	background: #fff;
	display: block;
}

/* Mobile */
@media (max-width: 768px) {
	.ezgolf-booking-wrapper iframe {
		min-height: 780px;
		border-radius: var(--ez-radius-lg, 16px);
	}
}

/* ========================================
   SimplyBook.me Widget Styling (legacy)
   ======================================== */

.ezgolf-booking-widget,
.simplybook-widget-container {
	background: var(--ez-surface);
	border: 2px solid var(--ez-navy);
	border-radius: 12px;
	padding: 20px;
	margin: 30px 0;
	box-shadow: 0 5px 20px rgba(14, 42, 71, 0.1);
	position: relative;
}

.ezgolf-booking-widget::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--ez-navy) 0%, var(--ez-gold) 50%, var(--ez-navy) 100%);
	border-radius: 12px 12px 0 0;
}

.ezgolf-booking-widget iframe {
	border: none;
	border-radius: 8px;
	width: 100%;
	min-height: 700px;
}

/* Booking Button Styling */
.ezgolf-booking-button {
	background: var(--ez-gold-primary, #FFC72C);
	color: var(--ez-navy-primary, #0B1F3A);
	border: 2px solid var(--ez-gold-dark, #E6B325);
	border-radius: 9999px;
	padding: 15px 35px;
	font-weight: 700;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
	display: inline-block;
	text-decoration: none;
}

.ezgolf-booking-button:hover {
	background: var(--ez-gold-dark, #E6B325);
	transform: translateY(-2px);
	box-shadow: 0 6px 22px rgba(255, 199, 44, 0.35);
}

/* Booking Modal + SimplyBook enhanced (was inline) */
#ezgolf-custom-booking-modal {
	z-index: 999999 !important;
}

#ezgolf-custom-booking-modal .ezgolf-booking-modal-body iframe {
	background: #FFFFFF !important;
	border: 2px solid #001F3F !important;
	border-radius: 12px !important;
	padding: 20px !important;
	margin: 20px 0 !important;
	box-shadow: 0 5px 20px rgba(0, 31, 63, 0.1) !important;
}

.ezgolf-booking-modal-container {
	background: #FFFFFF !important;
	border: 3px solid var(--ez-gold-dark, #E6B325) !important;
	box-shadow: 0 10px 50px rgba(0, 31, 63, 0.3) !important;
}

.ezgolf-booking-modal-header {
	background: linear-gradient(135deg, #001F3F 0%, #003366 100%) !important;
	border-bottom: 3px solid var(--ez-gold-dark, #E6B325) !important;
}

.ezgolf-booking-modal-header h2 {
	color: #FFFFFF !important;
}

.simplybook-widget-button {
	background: var(--ez-gold-primary, #FFC72C) !important;
	color: var(--ez-navy-primary, #0B1F3A) !important;
	border: 2px solid var(--ez-gold-dark, #E6B325) !important;
	border-radius: 9999px !important;
	padding: 15px 35px !important;
	font-weight: 700 !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.simplybook-widget-button:hover {
	background: var(--ez-gold-dark, #E6B325) !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 22px rgba(255, 199, 44, 0.35) !important;
}

.ezgolf-simplybook-wrapper {
	background: #001F3F !important;
	padding: 20px !important;
	border-radius: 12px !important;
}

/* SimplyBook widget container (was inline ezgolf_simplybook_widget_styles) */
.simplybook-widget-container {
	background: var(--ez-surface, #FFFFFF);
	border: 2px solid var(--ez-navy, #001F3F);
	border-radius: 12px;
	padding: 20px;
	margin: 20px 0;
}

.simplybook-widget-container iframe {
	border: none;
	border-radius: 8px;
	width: 100%;
	min-height: 700px;
}

.ezgolf-booking-modal {
	border-radius: 12px;
	overflow: hidden;
}

.ezgolf-booking-modal .modal-header {
	background: var(--ez-navy, #001F3F);
	color: var(--ez-text-inverse, #FFFFFF);
	padding: 20px;
	border-radius: 12px 12px 0 0;
}

.ezgolf-booking-modal .modal-body {
	background: var(--ez-surface, #FFFFFF);
	padding: 20px;
}

/* ========================================
   Mobile Optimizations (Phoenix/Desert Networks)
   ======================================== */

@media (max-width: 768px) {
	/* Mega Menu - Stack on Mobile */
	.mega-menu-content {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		min-width: 100%;
		max-width: 100%;
		border-radius: 0;
		overflow-y: auto;
		margin-top: 0;
		z-index: 9999;
	}
	
	.mega-menu-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	/* Blog Search - Full Width on Mobile */
	.blog-search-container {
		margin: 15px 0 0;
		width: 100%;
	}
	
	.blog-search-form {
		width: 100%;
		justify-content: space-between;
	}
	
	.blog-search-field {
		flex: 1;
		min-width: 0;
	}
	
	/* Optimize Images for Fast Loading */
	img {
		loading: lazy;
		max-width: 100%;
		height: auto;
	}
	
	/* Reduce Animations on Mobile for Performance */
	@media (prefers-reduced-motion: no-preference) {
		.hover-lift:hover,
		.hover-scale:hover,
		.hover-wing:hover {
			transform: none;
		}
	}
}

/* ========================================
   Performance Optimizations
   ======================================== */

/* Will-change for smooth animations */
.ez-logo .logo-icon,
.mega-menu-link,
.blog-search-submit {
	will-change: transform;
}

/* Contain for better performance */
.mega-menu-content,
.ezgolf-booking-widget {
	contain: layout style paint;
}

/* Reduce repaints */
.ez-logo,
.mega-menu-item {
	transform: translateZ(0);
}

/* ========================================
   Accessibility Enhancements
   ======================================== */

.mega-menu-content:focus-within {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.blog-search-field:focus {
	background: rgba(255, 255, 255, 0.2);
	outline: 2px solid var(--ez-gold);
	outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--ez-navy);
	color: var(--ez-text-inverse);
	padding: 8px 16px;
	text-decoration: none;
	z-index: 10000;
}

.skip-link:focus {
	top: 0;
}

/* ========================================
   Touch-Friendly (Mobile)
   ======================================== */

@media (hover: none) and (pointer: coarse) {
	.mega-menu-link,
	.blog-search-submit,
	.ezgolf-booking-button {
		min-height: 44px;
		min-width: 44px;
		padding: 12px 24px;
	}
	
	.mega-menu-icon {
		font-size: 56px;
	}
}

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

@media print {
	.mega-menu-content,
	.blog-search-container,
	.ezgolf-booking-widget {
		display: none;
	}
}

/* =========================================================
   EZ Golf Academy — Elite Premium Dashboard Mode
   Unified system for: Client Portal + /book/
   ========================================================= */

/* Background — subtle gold radial warmth */
body.page-client-portal,
body.page-template-page-client-portal,
body.page-book,
body.page-template-page-book {
	background: radial-gradient(circle at top, rgba(255, 199, 44, 0.055), #F5F2EB 62%);
}

body.page-client-portal .site-main,
body.page-template-page-client-portal .site-main,
body.page-book .site-main,
body.page-template-page-book .site-main {
	padding: 0;
}

/* Hide marketing header/nav + old mini-headers on dashboard pages */
body.ez-booking-mode header.site-header,
body.ez-booking-mode #masthead,
body.ez-booking-mode .site-header,
body.ez-booking-mode .ez-header,
body.ez-booking-mode .ast-desktop-header,
body.ez-booking-mode .ast-mobile-header,
body.page-book #masthead,
body.page-book .site-header,
body.page-book .ez-header,
body.page-template-page-book #masthead,
body.page-template-page-book .site-header,
body.page-template-page-book .ez-header,
body.page-client-portal #masthead,
body.page-client-portal .site-header,
body.page-client-portal .ez-header,
body.page-template-page-client-portal #masthead,
body.page-template-page-client-portal .site-header,
body.page-template-page-client-portal .ez-header {
	display: none !important;
}

body.page-client-portal .ez-min-booking-header,
body.page-template-page-client-portal .ez-min-booking-header,
body.page-book .ez-min-booking-header,
body.page-template-page-book .ez-min-booking-header {
	display: none !important;
}

body.ez-booking-mode #content,
body.ez-booking-mode .site-content {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* Remove Astra container framing */
body.page-book .site-content .ast-container,
body.page-template-page-book .site-content .ast-container,
body.page-client-portal .site-content .ast-container,
body.page-template-page-client-portal .site-content .ast-container {
	max-width: 100% !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}

/* ---------------------------------------------------------
   Dashboard Top Bar — centered logo, sticky navy band
   --------------------------------------------------------- */
.ez-dashboard-topbar {
	position: sticky;
	top: 0;
	z-index: 999;
	background: #0E2A47;
	box-shadow: 0 14px 34px rgba(11, 31, 58, 0.22);
}

.ez-dashboard-topbar::after {
	content: "";
	display: block;
	height: 2px;
	background: linear-gradient(90deg, rgba(255, 199, 44, 0), rgba(255, 199, 44, 0.65), rgba(255, 199, 44, 0));
}

.ez-dashboard-topbar__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 16px 18px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
}

.ez-dashboard-topbar__logo {
	grid-column: 2;
	justify-self: center;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.ez-dashboard-topbar__logo img {
	height: 52px;
	width: auto;
	max-width: 280px;
	display: block;
	filter: none !important;
	opacity: 1 !important;
}

.ez-dashboard-topbar__title {
	color: #FFC72C;
	font-weight: 800;
	letter-spacing: 0.4px;
	font-size: 18px;
	line-height: 1;
}

/* ---------------------------------------------------------
   Dashboard Shell — content wrapper
   --------------------------------------------------------- */
.ez-dashboard-shell {
	max-width: 1120px;
	margin: 0 auto;
	padding: 36px 18px 70px;
}

.ez-dashboard-heading {
	text-align: center;
	color: #0B1F3A;
	font-size: clamp(26px, 2.4vw, 34px);
	font-weight: 850;
	letter-spacing: -0.02em;
	margin: 10px 0 6px;
}

.ez-dashboard-subtitle {
	text-align: center;
	color: rgba(11, 31, 58, 0.65);
	font-size: 14px;
	margin: 0 0 22px;
}

/* "New here?" conversion link */
.ez-dashboard-newhere {
	margin-top: 4px !important;
	margin-bottom: 24px !important;
	color: rgba(11, 31, 58, 0.5) !important;
}

.ez-dashboard-newhere a {
	color: var(--ez-gold-dark, #E6B325);
	font-weight: 600;
	text-decoration: none;
	transition: color 150ms ease;
}

.ez-dashboard-newhere a:hover {
	color: var(--ez-gold-primary, #FFC72C);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------------------------------------------------------
   Widget Card — white surface + deep shadow + gold accent
   --------------------------------------------------------- */
.ez-widget-card {
	background: #ffffff;
	border-radius: 22px;
	box-shadow: 0 28px 70px rgba(11, 31, 58, 0.18);
	overflow: hidden;
	position: relative;
}

.ez-widget-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: #FFC72C;
	z-index: 1;
}

.ez-widget-card__inner {
	padding: 18px 18px 22px;
}

/* Widget wrapper — no double framing inside card */
.ez-widget-card__inner .ezgolf-booking-wrapper,
.ez-widget-card__inner .simplybook-widget-container {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	overflow: hidden;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.ez-widget-card__inner .ezgolf-booking-wrapper > div:first-child {
	background: #fff !important;
}

.ez-widget-card__inner #ezgolf-simplybook {
	margin-top: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	border: 0 !important;
}

.ez-widget-card__inner iframe {
	width: 100% !important;
	min-height: 900px;
	border: 0 !important;
	border-radius: 16px;
	background: #fff;
	display: block;
	margin: 0;
	box-shadow: 0 18px 44px rgba(11, 31, 58, 0.12);
	outline: 1px solid rgba(11, 31, 58, 0.08);
	outline-offset: -1px;
}

/* Minimal footer on dashboard pages — hide widget columns, keep copyright */
body.page-client-portal .site-footer,
body.page-template-page-client-portal .site-footer,
body.page-book .site-footer,
body.page-template-page-book .site-footer {
	background: transparent;
}

body.page-client-portal .site-footer .widget-area,
body.page-template-page-client-portal .site-footer .widget-area,
body.page-book .site-footer .widget-area,
body.page-template-page-book .site-footer .widget-area,
body.page-client-portal .site-footer .ast-footer-widget-1,
body.page-template-page-client-portal .site-footer .ast-footer-widget-1,
body.page-client-portal .site-footer .ast-footer-widget-2,
body.page-template-page-client-portal .site-footer .ast-footer-widget-2,
body.page-client-portal .site-footer .ast-footer-widget-3,
body.page-template-page-client-portal .site-footer .ast-footer-widget-3,
body.page-client-portal .site-footer .ast-footer-widget-4,
body.page-template-page-client-portal .site-footer .ast-footer-widget-4,
body.page-book .site-footer .ast-footer-widget-1,
body.page-template-page-book .site-footer .ast-footer-widget-1,
body.page-book .site-footer .ast-footer-widget-2,
body.page-template-page-book .site-footer .ast-footer-widget-2,
body.page-book .site-footer .ast-footer-widget-3,
body.page-template-page-book .site-footer .ast-footer-widget-3,
body.page-book .site-footer .ast-footer-widget-4,
body.page-template-page-book .site-footer .ast-footer-widget-4 {
	display: none !important;
}

body.page-client-portal .site-footer .ast-footer-copyright,
body.page-template-page-client-portal .site-footer .ast-footer-copyright,
body.page-book .site-footer .ast-footer-copyright,
body.page-template-page-book .site-footer .ast-footer-copyright {
	color: rgba(11, 31, 58, 0.65);
	font-size: 13px;
	padding: 18px 0 28px;
	text-align: center;
}

/* Login hint pulse (portal) */
body.page-client-portal #ezgolf-simplybook.ez-login-hint,
body.page-template-page-client-portal #ezgolf-simplybook.ez-login-hint {
	outline: 3px solid rgba(255, 199, 44, 0.65);
	outline-offset: 6px;
	border-radius: 16px;
}

/* Consent button polish */
body.page-client-portal button[aria-label="Manage consent"],
body.page-template-page-client-portal button[aria-label="Manage consent"],
body.page-book button[aria-label="Manage consent"],
body.page-template-page-book button[aria-label="Manage consent"] {
	box-shadow: 0 14px 30px rgba(11, 31, 58, 0.14) !important;
	border-radius: 12px !important;
}

/* ---------------------------------------------------------
   Dashboard Mobile Responsive
   --------------------------------------------------------- */
@media (max-width: 768px) {
	.ez-dashboard-topbar__inner {
		padding: 14px 14px;
	}

	.ez-dashboard-topbar__logo img {
		height: 42px;
		max-width: 220px;
	}

	.ez-dashboard-shell {
		padding: 28px 12px 50px;
	}

	.ez-dashboard-heading {
		font-size: 22px;
	}

	.ez-widget-card {
		border-radius: 18px;
	}

	.ez-widget-card__inner {
		padding: 14px 14px 18px;
	}

	.ez-widget-card__inner iframe {
		min-height: 780px;
		border-radius: 12px;
	}
}

@media (max-width: 480px) {
	.ez-dashboard-topbar__inner {
		padding: 12px 12px;
	}

	.ez-dashboard-topbar__logo img {
		height: 36px;
		max-width: 180px;
	}

	.ez-widget-card__inner {
		padding: 10px 10px 14px;
	}

	.ez-widget-card__inner iframe {
		border-radius: 10px;
	}
}
