/* ===================================
   JFM Golf Header Pro - Ultra Modern Design
   Clean, Contemporary, Professional
   VERSION 2.0 - TWO ROW LAYOUT ACTIVE
   =================================== */

/* Debugging marker - if you see this background, CSS is loading */
.jfm-golf-header-pro-wrapper {
    /* This should be invisible but confirms CSS loading */
    position: relative;
}

/* Debug pseudo-element removed for production */
.jfm-golf-header-pro-wrapper::before {
    content: none !important;
    display: none !important;
}

/* CSS Variables for Ultra Modern Design - Scoped to prevent conflicts */
.jfm-golf-header-pro-wrapper {
    --header-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    --header-text: #1f2937;
    --header-border: rgba(0, 0, 0, 0.04);
    --header-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    --search-bg: rgba(248, 250, 252, 0.8);
    --search-border: rgba(0, 0, 0, 0.06);
    --search-focus: #d4af37;
    --button-primary: linear-gradient(135deg, #d4af37, #c19a2e);
    --button-hover: linear-gradient(135deg, #c19a2e, #a8851f);
    --button-secondary: #d4af37;
    --text-muted: #6b7280;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --backdrop-blur: blur(20px);
    --glow-effect: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Reset and Base Styles - Scoped to prevent theme conflicts */
.jfm-golf-header-pro-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    box-sizing: border-box;
    font-weight: 400;
    letter-spacing: -0.005em;
    color: var(--header-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Isolate from parent styles */
    all: initial;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Only apply box-sizing to direct children to avoid theme conflicts */
.jfm-golf-header-pro-wrapper > *,
.jfm-golf-header-pro-wrapper .jfm-header-container *,
.jfm-golf-header-pro-wrapper .jfm-header-inner *,
.jfm-golf-header-pro-wrapper .jfm-header-content * {
    box-sizing: border-box;
}

/* Elementor Widget Full Width Override */
.elementor-widget-jfm_golf_header_pro {
    
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    gap: 5px;
}

.elementor-widget-jfm_golf_header_pro .elementor-widget-container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 5px;
}

/* Zero out padding/margins and gaps on the specific Elementor container wrapping our header widget */
.elementor-element.elementor-element-758c99c,
.elementor-element-758c99c.e-con { 
    padding: 0 !important; 
    margin: 0 !important; 
    gap: 0 !important;
    row-gap: 0 !important;
    column-gap: 0 !important;
    /* Elementor container padding variables */
    --e-con-padding-block-start: 0 !important;
    --e-con-padding-block-end: 0 !important;
    --e-con-padding-inline-start: 0 !important;
    --e-con-padding-inline-end: 0 !important;
}
.elementor-element-758c99c .e-con-inner { 
    padding: 0 !important; 
    margin: 0 !important; 
    gap: 0 !important;
    row-gap: 0 !important;
    column-gap: 0 !important;
}

/* Announcement/Contact Bar Above Header */
.jfm-announcement-bar {
    background: #2f7650; /* Default color - can be overridden by Elementor */
    color: white;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    position: relative;
    z-index: 1001;
}

/* Allow Elementor controls to override default styles */
.elementor-widget-jfm_golf_header_pro .jfm-announcement-bar {
    /* Elementor typography and styling controls will override these */
}

/* Announcement bar close button */
.jfm-announcement-bar .jfm-announcement-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.jfm-announcement-bar .jfm-announcement-close:hover {
    opacity: 1;
}

/* Phone icon styling */
.jfm-announcement-bar .jfm-phone-icon {
    margin-right: 5px;
    font-size: 1em;
}

.jfm-announcement-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px; /* Space for close button */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.jfm-announcement-bar a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.jfm-announcement-bar a:hover {
    opacity: 0.8;
}

/* Menu items with clickable titles and submenus */
.jfm-menu-link-with-submenu {
    cursor: pointer;
}

/* Ensure dropdown/mega menu still appears on hover for clickable titles */
.jfm-nav-menu .menu-item.has-submenu:hover .jfm-submenu,
.jfm-nav-menu .menu-item.has-submenu:hover .jfm-mega-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Prevent default link behavior for menu toggle when no URL is set */
.jfm-menu-toggle[href="#"] {
    cursor: pointer;
}

.jfm-contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jfm-contact-text {
    font-weight: 600;
}

.jfm-contact-hours {
    opacity: 0.9;
}

.jfm-phone-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.jfm-phone-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Responsive adjustments for announcement bar */
@media (max-width: 768px) {
    /* Hide announcement bar on mobile */
    .jfm-announcement-bar {
        display: none !important;
    }
    
    /* Remove padding on the specific Elementor container causing spacing */
    .elementor-widget-jfm_golf_header_pro .elementor-element-758c99c { padding: 0 !important; }
    /* If it's inside the announcement bar, ensure zero as well */
    .jfm-announcement-bar .elementor-element-758c99c { padding: 0 !important; }
    .jfm-announcement-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        text-align: center !important;
    }
    .jfm-announcement-content > * {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    .jfm-contact-info { flex-direction: column !important; gap: 2px !important; }

    /* Strip Elementor container padding inside announcement bar */
    .jfm-announcement-bar .elementor-section,
    .jfm-announcement-bar .elementor-container,
    .jfm-announcement-bar .elementor-column,
    .jfm-announcement-bar .elementor-element,
    .jfm-announcement-bar .elementor-widget-container,
    .jfm-announcement-bar .e-con,
    .jfm-announcement-bar .e-con-inner {
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Ultra Modern Header Container */
.jfm-header-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--header-border);
    box-shadow: var(--header-shadow);
    padding: 20px 0; /* Remove horizontal padding for full width */
    position: relative;
    z-index: 1000;
    min-height: 120px; /* Increased to accommodate two rows */
    display: flex;
    align-items: center;
    width: 100%; /* Ensure full width */
    border-radius: 0; /* Remove border radius for full width */
    overflow: visible !important; /* Ensure no internal scroll */
    overflow-y: visible !important;
    max-height: none !important;
}

.jfm-header-inner {
    width: 100%; /* Full width instead of max-width constraint */
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 0 32px; /* Move padding to inner container */
}

.jfm-header-content {
    display: flex;
    width: 100%;
}

/* Main Layout: Logo Left | Right Container with Search Top + Nav Bottom */
.jfm-header-main-layout {
    display: flex;
    align-items: center; /* Changed from stretch to center for better logo alignment */
    width: 100%;
    gap: 20px; /* Reduced from 32px to give search bar more space */
    min-height: 100px; /* Increased from 80px to 100px to give logo more room */
    margin-top: 20px; /* Added top margin as requested */
}

/* Left Side: Logo Section (Its Own Div) */
.jfm-header-logo-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 200px; /* Reduced to give more space for search bar */
    flex: 0 0 auto; /* Don't grow or shrink, use natural size */
}

.jfm-header-logo {
    display: flex;
    align-items: center;
    margin-right: 0; /* Ensure no extra right margin */
    padding-right: 0; /* Ensure no extra right padding */
}

.jfm-header-logo img {
    height: 80px; /* Increased from 60px to 80px for even bigger logo */
    width: auto;
    max-width: none; /* Remove any width constraints */
    max-height: none; /* Remove any height constraints */
}

/* Mobile override for logo height constraint */
@media (max-width: 768px) {
    .jfm-header-logo img {
        height: auto !important; /* Remove height constraint on mobile */
        max-height: none !important; /* Allow logo to be as tall as needed */
    }
}

.jfm-header-logo h1 {
    margin: 0;
    font-size: 26px;
    font-weight: var(--font-weight-semibold);
    color: var(--header-text);
}

/* Right Container: Search Top + Nav Bottom */
.jfm-header-right-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

/* Top of Right Container: Search + Icons */
.jfm-header-right-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px; /* Reduced from 24px to give search bar more space */
}

/* Buttons container grouping support/account/cart/hamburger */
.jfm-header-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

/* Bottom of Right Container: Navigation */
.jfm-header-right-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Search Bar Styling - Clean minimal design - Flexible width to match nav */
.jfm-header-search {
    display: flex;
    align-items: center;
    flex: 1 1 auto; /* Allow growing and shrinking for better space utilization */
    max-width: none; /* Remove any max-width constraints */
}

.jfm-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0;
    transition: var(--transition);
    width: 100%;
    height: 44px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.jfm-search-form:focus-within {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    outline: none;
}

.jfm-search-input {
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 15px;
    color: #374151;
    outline: none;
    flex: 1;
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.jfm-search-input::placeholder {
    color: #9ca3af;
    font-size: 15px;
}

.jfm-search-button {
    background: transparent;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151; /* Darker gray for better visibility */
    border-radius: 0 6px 6px 0;
}

.jfm-search-button:hover {
    background: rgba(212, 175, 55, 0.05);
    color: #d4af37;
}

.jfm-search-icon {
    color: #374151; /* Dark gray for better visibility */
    font-size: 16px;
}

/* Navigation Menu - Flexible width to match search */
.jfm-header-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-start;
}

.jfm-header-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px; /* compact spacing between top-level nav items */
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

/* Ensure 5px gap wins inside Elementor/Jupiter widgets */
.elementor-widget-jfm_golf_header_pro .jfm-header-nav ul { gap: 5px !important; }
.elementor-widget-jfm_golf_header_pro .jfm-header-nav .jfm-menu { gap: 5px !important; }

.jfm-header-nav li {
    position: relative;
}

.jfm-header-nav a {
    color: var(--header-text);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 6px;
}

.jfm-header-nav a:hover {
    background: rgba(49, 116, 76, 0.1);
    color: #31744c;
}

/* Support Button */
.jfm-header-support {
    display: flex;
    align-items: center;
}

.jfm-support-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius);
    color: var(--search-focus);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: 14px;
    transition: var(--transition);
}

.jfm-support-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    transform: translateY(-1px);
}

.jfm-support-icon {
    font-size: 16px;
}

/* Sign Up Button - Desktop */
.jfm-header-signup {
    display: flex;
    align-items: center;
}

.jfm-signup-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border: 2px solid #d4af37;
    border-radius: var(--border-radius);
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
    white-space: nowrap;
}

.jfm-signup-btn:hover {
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.jfm-signup-icon {
    flex-shrink: 0;
}

.jfm-signup-text {
    font-weight: 600;
}

/* Mobile Sign Up Button - Hidden on desktop */
.jfm-mobile-signup-container {
    display: none;
}

/* Account and Cart Icons */
.jfm-header-account,
.jfm-header-cart {
    display: flex;
    align-items: center;
}

.jfm-header-account a,
.jfm-header-cart a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid var(--search-border);
    border-radius: 50%;
    color: var(--header-text);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.jfm-header-account a:hover,
.jfm-header-cart a:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--search-focus);
    transform: translateY(-1px);
}

/* Header Section Wrappers */
.jfm-header-logo-wrapper {
    flex-shrink: 0;
}

.jfm-header-right-section {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.jfm-header-search-wrapper {
    flex-shrink: 1; /* Allow shrinking to make room for bigger logo */
    min-width: 240px; /* Reduced from 320px to allow more space for logo */
}

.jfm-header-nav-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.jfm-header-cart-wrapper {
    flex-shrink: 0;
}

/* Modern Logo Styling */
.jfm-header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.jfm-header-logo:hover {
    background: rgba(212, 175, 55, 0.08);
    transform: translateY(-1px);
}

.jfm-header-logo img {
    width: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.jfm-header-logo h1 {
    font-weight: var(--font-weight-semibold);
    color: var(--header-text);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Ultra Modern Navigation - Enhanced positioning */
.jfm-header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Add positioning context */
}

.jfm-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 12px 16px; /* Increased padding from 8px 12px to 12px 16px */
    gap: 2px; /* Increased gap from 4px to 8px for better item separation */
    background: rgba(248, 250, 252, 0.8);
    border-radius: var(--border-radius-xl);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative; /* Add positioning context for mega menus */
}

.jfm-nav-menu li {
    position: relative;
}

.jfm-nav-menu a {
    display: flex;
    align-items: center;
    padding: 14px 24px; /* Increased from 12px 20px to 14px 24px for more breathing room */
    color: var(--header-text);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.jfm-nav-menu a:hover,
.jfm-nav-menu a.current-menu-item {
    background: #31744c;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 116, 76, 0.25);
}

.jfm-nav-menu a:active {
    transform: translateY(0);
}

.jfm-nav-menu a.active {
    background: var(--button-primary);
    color: white;
}

/* Clean Dropdown Menus */
.jfm-nav-menu .menu-item-has-children > a::after {
    content: '⌄';
    font-size: 12px;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.jfm-nav-menu .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.jfm-nav-menu .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--header-border);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 1000;
    padding: 4px;
}

.jfm-nav-menu .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.jfm-nav-menu .sub-menu a {
    padding: 8px 12px;
    color: var(--header-text);
    border-radius: 4px;
    margin: 0;
    font-size: 13px;
    width: 100%;
}

.jfm-nav-menu .sub-menu a:hover {
    background: var(--search-bg);
    color: #31744c;
}

/* ===================================
   ADVANCED MENU SYSTEM STYLES
   =================================== */

/* Advanced Menu Container - Enhanced positioning context */
.jfm-advanced-menu {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Advanced Menu Items */
.jfm-advanced-menu .menu-item {
    position: relative;
}

/* Mega menu item needs relative positioning for proper mega menu placement */
.jfm-advanced-menu .mega-menu-item {
    position: relative;
}

.jfm-advanced-menu .has-submenu > .jfm-menu-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.jfm-submenu-indicator {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.jfm-advanced-menu .has-submenu:hover .jfm-submenu-indicator {
    transform: rotate(180deg);
    opacity: 1;
}

/* Submenu Base Styles */
.jfm-submenu {
    position: absolute;
    top: calc(100% + 3px); /* Reduced from 6px to 3px - completing the half margin reduction */
    left: 0;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--header-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-3px); /* Reduced from -6px to -3px - completing the half margin reduction */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    min-width: 250px;
    overflow: hidden;
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
}

/* Show submenu on hover */
.jfm-advanced-menu .has-submenu:hover .jfm-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Submenu Content */
.jfm-submenu-content {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
    word-wrap: normal; /* Prevent word wrapping */
    position: relative;
}

/* Mega Menu Specific Styles - Dynamic responsive system */
.jfm-mega-menu {
    position: fixed !important; /* Fixed positioning controlled by JavaScript */
    left: 0 !important; /* Always start from left edge */
    right: 0 !important; /* Always extend to right edge */
    width: 100vw !important; /* Force full viewport width */
    max-width: 100vw !important; /* Force full viewport width */
    z-index: 10000;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    padding: 0; /* Remove default padding - content will handle padding */
    margin: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: none !important; /* Ensure no transform is applied */
}

/* Dynamic responsive classes */
.jfm-mega-menu.jfm-mobile {
    border-radius: 6px;
}

.jfm-mega-menu.jfm-tablet {
    border-radius: 7px;
}

.jfm-mega-menu.jfm-desktop {
    border-radius: 8px;
}

.jfm-mega-menu.jfm-large-desktop {
    border-radius: 10px;
}

/* Responsive padding for mega menu content */
.jfm-mega-menu.jfm-mobile .jfm-submenu-content {
    padding: 15px 32px !important;
}

.jfm-mega-menu.jfm-tablet .jfm-submenu-content {
    padding: 18px 32px !important;
}

.jfm-mega-menu.jfm-desktop .jfm-submenu-content {
    padding: 20px 32px !important;
}

.jfm-mega-menu.jfm-large-desktop .jfm-submenu-content {
    padding: 24px 32px !important;
}

/* Hide mega menu on very small screens */
.jfm-mega-menu-mobile-hidden {
    display: none !important;
}

/* Content-aware positioning */
.jfm-mega-menu.jfm-content-wide {
    max-width: none !important;
}

.jfm-mega-menu.jfm-content-narrow {
    min-width: 300px;
}

.jfm-mega-menu.jfm-width-full {
    position: fixed !important; /* Fixed positioning to break out of parent constraints */
    left: 0 !important; /* Start from left edge of viewport */
    right: 0 !important; /* Extend to right edge of viewport */
    top: var(--mega-menu-top, 140px) !important; /* Dynamic top position */
    transform: none !important; /* No transform needed with fixed positioning */
    width: 100vw !important; /* Force full viewport width */
    max-width: 100vw !important; /* Force full viewport width */
    z-index: 10000;
    padding: 0 !important; /* No container padding */
    box-shadow: none !important;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.jfm-mega-menu.jfm-width-full .jfm-submenu-content {
    padding: 16px 32px 20px 32px !important;
}

.jfm-mega-menu.jfm-width-custom {
    position: fixed !important; /* Fixed positioning to break out of parent constraints */
    left: 0 !important; /* Start from left edge of viewport */
    right: 0 !important; /* Extend to right edge of viewport */
    top: var(--mega-menu-top, 140px) !important; /* Dynamic top position */
    transform: none !important; /* No transform needed with fixed positioning */
    width: 100vw !important; /* Force full viewport width */
    max-width: 100vw !important; /* Force full viewport width */
    z-index: 10000;
    padding: 0 !important; /* No container padding */
    box-shadow: none !important;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.jfm-mega-menu.jfm-width-custom .jfm-submenu-content {
    padding: 16px 32px 20px 32px !important;
}

/* Dynamic responsive positioning - controlled by JavaScript */
.jfm-header-container {
    position: relative;
}

/* Force all mega menus to full viewport width regardless of parent constraints */
.jfm-advanced-menu .jfm-mega-menu,
.jfm-navigation .jfm-mega-menu,
.has-submenu .jfm-mega-menu,
.jfm-menu-item .jfm-mega-menu {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    transform: none !important;
    margin: 0 !important;
}

/* Ultimate override - catch all mega menus with maximum specificity */
[class*="jfm-mega-menu"] {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    transform: none !important;
    margin: 0 !important;
}

/* Content padding for all mega menus */
[class*="jfm-mega-menu"] .jfm-submenu-content {
    padding: 20px 32px !important;
}

/* Enhanced mega menu visibility and positioning */
@media (min-width: 1441px) {
    .jfm-mega-menu.jfm-large-desktop {
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .jfm-mega-menu.jfm-desktop {
        border-radius: 10px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .jfm-mega-menu.jfm-tablet {
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }
    
    .jfm-mega-menu.jfm-tablet .jfm-submenu-content {
        padding: 12px 32px 15px 32px !important;
    }
    
    .jfm-mega-menu .elementor-column {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 10px;
        padding: 0 10px !important;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .jfm-mega-menu.jfm-mobile {
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        padding: 0 12px 10px 12px !important;
    }
    
    .jfm-mega-menu .elementor-row {
        display: block !important;
        gap: 10px;
    }
    
    .jfm-mega-menu .elementor-column {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 8px;
        padding: 0 8px !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    /* Hide mega menus on very small screens - show mobile menu instead */
    .jfm-mega-menu {
        display: none !important;
    }
    
    .jfm-advanced-menu .mega-menu-item .jfm-menu-toggle::after {
        content: ' (Mobile Menu)';
        font-size: 10px;
        opacity: 0.7;
    }
}

/* Show mega menu on hover - enhanced responsive behavior */
.jfm-advanced-menu .mega-menu-item:hover .jfm-mega-menu,
.jfm-mega-menu.jfm-touch-active {
    opacity: 1;
    visibility: visible;
}

/* Enhanced hover states for different screen sizes */
@media (min-width: 769px) {
    .jfm-advanced-menu .mega-menu-item:hover .jfm-mega-menu.jfm-width-full,
    .jfm-advanced-menu .mega-menu-item:hover .jfm-mega-menu.jfm-width-custom,
    .jfm-mega-menu.jfm-width-full.jfm-touch-active,
    .jfm-mega-menu.jfm-width-custom.jfm-touch-active {
        opacity: 1;
        visibility: visible;
        position: fixed !important; /* Maintain fixed positioning */
        left: 0 !important; /* Full width from left edge */
        right: 0 !important; /* Full width to right edge */
        transform: none !important; /* No transform needed */
        width: 100vw !important; /* Force full viewport width */
        max-width: 100vw !important; /* Force full viewport width */
    }
}

@media (max-width: 768px) {
    .jfm-advanced-menu .mega-menu-item:hover .jfm-mega-menu,
    .jfm-mega-menu.jfm-touch-active {
        opacity: 1;
        visibility: visible;
        position: fixed !important; /* Maintain fixed positioning */
        left: 0 !important; /* Full width from left edge */
        right: 0 !important; /* Full width to right edge */
        transform: none !important; /* No transform needed */
        width: 100vw !important; /* Force full viewport width */
        max-width: 100vw !important; /* Force full viewport width */
    }
}

/* Mobile menu alternative styling */
@media (max-width: 480px) {
    .jfm-advanced-menu .mega-menu-item .jfm-menu-toggle {
        background: rgba(212, 175, 55, 0.1);
        padding: 12px 16px;
        border-radius: 6px;
        margin: 2px 0;
        transition: background 0.3s ease;
    }
    
    .jfm-advanced-menu .mega-menu-item .jfm-menu-toggle:hover {
        background: rgba(212, 175, 55, 0.2);
    }
    
    .jfm-advanced-menu .mega-menu-item .jfm-menu-toggle::after {
        content: ' → Mobile';
        font-size: 10px;
        opacity: 0.7;
        margin-left: 8px;
    }
}

/* Submenu Animation Enhancement */
.jfm-submenu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 16px;
    height: 16px;
    background: white;
    border: 1px solid var(--header-border);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
    z-index: -1;
}

.jfm-mega-menu::before {
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}

.jfm-mega-menu.jfm-width-full::before {
    display: none; /* No arrow for full width */
}

/* Content Styling within Submenus */
.jfm-submenu-content p {
    margin: 0 0 12px 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.jfm-submenu-content h1,
.jfm-submenu-content h2,
.jfm-submenu-content h3,
.jfm-submenu-content h4,
.jfm-submenu-content h5,
.jfm-submenu-content h6 {
    margin: 0 0 16px 0;
    color: var(--header-text);
    font-weight: var(--font-weight-semibold);
}

.jfm-submenu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jfm-submenu-content ul li {
    margin: 0 0 8px 0;
}

.jfm-submenu-content ul li a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    display: block;
    transition: var(--transition);
    /* Allow text to wrap onto the next line for long labels */
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.jfm-submenu-content ul li a:hover {
    background: var(--search-bg);
    color: var(--header-text);
    transform: translateX(4px);
}

/* ===================================
   DROPDOWN MENU STYLES (Simple Links)
   =================================== */

/* Dropdown menu specific styling */
.jfm-dropdown-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.jfm-dropdown-menu li {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.jfm-dropdown-menu li:last-child {
    border-bottom: none;
}

.jfm-dropdown-menu li a {
    display: block !important;
    padding: 12px 16px !important;
    color: var(--header-text) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    border-radius: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.jfm-dropdown-menu li a:hover {
    background: var(--search-bg) !important;
    color: var(--button-primary) !important;
    transform: translateX(4px) !important;
    padding-left: 20px !important;
}

/* Show dropdown on hover */
.jfm-advanced-menu .jfm-menu-item-dropdown:hover .jfm-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===================================
   END DROPDOWN MENU STYLES
   =================================== */

/* Mega menu link styling - Compact with full text display */
.jfm-mega-menu .jfm-submenu-content a {
    white-space: normal !important;
    min-width: 0;
    flex-shrink: 0;
    overflow: visible !important;
    text-overflow: clip !important;
    word-wrap: break-word;
}

/* For Elementor content within mega menus - better readable text */
.jfm-submenu-content .elementor-widget-text-editor a,
.jfm-submenu-content .elementor-text-editor a,
.jfm-submenu-content .elementor-widget a {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: inline-block;
    max-width: 100%;
    font-size: 12px !important; /* Increased from 11px to 12px */
    line-height: 1.3 !important;
    word-wrap: break-word;
}

/* Product category links - compact with readable text */
.jfm-submenu-content .product-category a,
.jfm-submenu-content .woocommerce-product-category a {
    white-space: normal !important;
    font-size: 11px !important; /* Increased from 10px to 11px */
    line-height: 1.3;
    padding: 1px 3px; /* Minimal padding */
    word-wrap: break-word;
}

/* Elementor columns in mega menu - compact grid layout */
.jfm-mega-menu .elementor-column {
    word-wrap: normal;
    padding: 0 10px !important; /* Reduced from 20px to 10px */
    margin-bottom: 0 !important;
}

.jfm-mega-menu .elementor-row {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px; /* Reduced gap */
    align-items: flex-start;
    justify-content: space-between;
}

/* Column base sizing: allow consistent width for list group columns */
.jfm-mega-menu .elementor-column {
    flex: 0 0 var(--jfm-mega-col-width, 200px) !important;
    max-width: var(--jfm-mega-col-width, 200px) !important;
}

/* Allow override class for tighter columns */
.jfm-mega-menu.jfm-cols-tight { --jfm-mega-col-width: 170px; }
.jfm-mega-menu.jfm-cols-wide { --jfm-mega-col-width: 240px; }

/* Control UL column blocks when raw ULs are used (non-Elementor widgets) */
.jfm-mega-menu .jfm-submenu-content > ul { 
    columns: var(--jfm-mega-multi-col, 1); 
    column-gap: 32px; 
}

.jfm-mega-menu .elementor-column-gap-default > .elementor-column > .elementor-element-populated {
    padding: 10px; /* Reduced padding */
}

/* Enhanced column headers - Compact with readable text */
.jfm-mega-menu .elementor-widget-heading h1,
.jfm-mega-menu .elementor-widget-heading h2,
.jfm-mega-menu .elementor-widget-heading h3,
.jfm-mega-menu .elementor-widget-heading h4,
.jfm-mega-menu .elementor-widget-heading h5,
.jfm-mega-menu .elementor-widget-heading h6 {
    white-space: normal !important; /* Allow text wrapping for full display */
    overflow: visible !important; /* Show full text */
    text-overflow: clip !important; /* No ellipsis */
    font-size: 14px !important; /* Increased from 12px to 14px for better readability */
    font-weight: 600 !important;
    color: #ff6b35 !important; /* Orange color like reference */
    margin-bottom: 6px !important; /* Compact margin */
    margin-top: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.3px; /* Reduced letter spacing */
    border-bottom: 1px solid #ff6b35; /* Thinner border */
    padding-bottom: 2px; /* Minimal padding */
    line-height: 1.2; /* Good readability */
    word-wrap: break-word; /* Break long words if needed */
}

/* Enhanced list styling - Compact with full text display */
.jfm-mega-menu ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 1px; /* Minimal gap for very tight spacing */
}

.jfm-mega-menu li {
    margin: 0 !important;
    padding: 0 !important;
}

.jfm-mega-menu a {
    color: #333 !important;
    text-decoration: none !important;
    padding: 2px 6px !important; /* Slightly more padding for better click area */
    border-radius: 3px; /* Smaller border radius */
    display: block;
    transition: all 0.2s ease;
    /* Allow natural wrapping for long labels */
    white-space: normal; 
    font-size: 12px !important; /* Increased from 11px to 12px for better readability */
    line-height: 1.3 !important; /* Better readability */
    max-width: 100%; /* Ensure it fits container */
    word-wrap: break-word; /* Break long words if needed */
}

.jfm-mega-menu a:hover {
    background: #f8f9fa !important;
    color: #ff6b35 !important;
    transform: translateX(2px);
}

/* Allow full text display in mega menu */
.jfm-mega-menu * {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    box-shadow: none !important; /* Remove shadows from all child elements */
}

/* Allow full text for list items */
.jfm-mega-menu ul li,
.jfm-mega-menu ol li {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* Force no shadows on mega menu and all descendants */
.jfm-mega-menu,
.jfm-mega-menu *,
.jfm-mega-menu::before,
.jfm-mega-menu::after,
.jfm-mega-menu *::before,
.jfm-mega-menu *::after {
    box-shadow: none !important;
}

/* Ensure adequate column width for single-line text */
.jfm-mega-menu .elementor-column {
    min-width: 180px;
    flex-shrink: 0;
}

/* Responsive padding adjustments for different screen sizes */
@media (max-width: 768px) {
    .jfm-mega-menu .jfm-submenu-content {
        padding: 15px 20px !important; /* Reduced horizontal padding for mobile */
    }
}

@media (max-width: 480px) {
    .jfm-mega-menu .jfm-submenu-content {
        padding: 10px 16px !important; /* Minimal padding for small screens */
    }
}

/* Mega menu spacing compression (viewport-friendly, no behavioral changes) */
.jfm-mega-menu .jfm-submenu-content .elementor-icon-list-items .elementor-icon-list-item a,
.jfm-mega-menu .jfm-submenu-content ul li a {
    /* Remove single-line enforcement so text can wrap */
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: 100% !important;
    display: block !important;
}

.jfm-mega-menu .jfm-submenu-content .elementor-icon-list-text {
    /* Allow icon list text to wrap with readable size */
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 12px !important; /* Increased from 11px to 12px for better readability */
    line-height: 1.3 !important;
}

/* --- Compact overrides to fit without vertical scrolling --- */
.jfm-mega-menu,
.jfm-mega-menu.jfm-width-full,
.jfm-mega-menu.jfm-width-custom {
    padding: 0 !important; /* Container has no padding */
}

.jfm-mega-menu .jfm-submenu-content {
    padding: 20px 32px !important; /* Horizontal padding matches header-inner padding */
}

.jfm-mega-menu .elementor-row {
    gap: 2px !important;
}

.jfm-mega-menu a {
    font-size: 12px !important; /* Updated to match main styling */
    line-height: 1.3 !important; /* Better readability */
    padding: 2px 6px !important; /* Better click area */
}

/* Remove decorative/image widgets inside mega menu to save height */
.jfm-mega-menu .elementor-widget-image {
    display: none !important;
}
.jfm-mega-menu .e-con,
.jfm-mega-menu .e-con-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.jfm-mega-menu .elementor-widget { /* Trim default Elementor widget gaps */
    margin-bottom: 6px !important;
}

.jfm-mega-menu .elementor-widget-divider { /* Keep the visual line but reduce its space */
    margin: 2px 0 !important;
}
.jfm-mega-menu .elementor-divider,
.jfm-mega-menu .elementor-divider-separator {
    padding: 0 !important;
    margin: 0 !important;
    border-top-width: 1px !important;
}

.jfm-mega-menu .elementor-icon-list-items .elementor-icon-list-item a {
    padding-top: 1px !important;
    padding-bottom: 1px !important;
    line-height: 1.15 !important; /* prevent text overlap while staying tight */
}

/* Reduce vertical spacing specifically for Elementor icon lists inside mega menu */
.jfm-mega-menu .elementor-icon-list-items {
    margin: 0 !important;
    padding: 0 !important;
    gap: 5px !important; /* desired spacing between icon list items */
}

.jfm-mega-menu .elementor-icon-list-items .elementor-icon-list-item {
    margin: 0 !important;
    padding: 0 !important;
}

/* Let the mega menu container handle scrolling (no nested scrollbars) */
.jfm-mega-menu .jfm-submenu-content {
    max-height: none !important;
    overflow: visible !important;
}

.jfm-mega-menu .elementor-icon-list-text {
    line-height: 1.15 !important; /* match anchor line-height for consistency */
}

/* Mobile Menu Enhancements */
@media (max-width: 768px) {
    .jfm-advanced-menu .jfm-submenu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background: var(--search-bg);
        border-radius: 0;
        margin-top: 8px;
        display: none;
    }
    
    .jfm-advanced-menu .has-submenu.mobile-submenu-open .jfm-submenu {
        display: block;
    }
    
    .jfm-submenu::before {
        display: none;
    }
    
    .jfm-advanced-menu .jfm-menu-toggle {
        cursor: pointer;
    }
}

/* Ultra Modern Search Bar */
.jfm-header-search {
    position: relative;
    flex-shrink: 1; /* Allow shrinking to make room for bigger logo */
    min-width: 240px; /* Reduced from 320px to allow more space for logo */
}

.jfm-search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--search-border);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    height: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.jfm-search-form:focus-within {
    border-color: var(--search-focus);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.jfm-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 20px;
    font-size: 15px;
    color: var(--header-text);
    outline: none;
    font-family: inherit;
    border-radius: var(--border-radius-lg);
}

.jfm-search-input::placeholder {
    color: var(--text-muted);
}

.jfm-search-button {
    background: var(--button-primary);
    border: none;
    padding: 0 16px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border-radius: 0 calc(var(--border-radius-lg) - 1px) calc(var(--border-radius-lg) - 1px) 0;
    font-size: 16px;
}

.jfm-search-button:hover {
    background: var(--button-hover);
    transform: scale(1.02);
}

.jfm-search-icon {
    font-size: 16px;
}

/* Ultra Modern Cart & User */
.jfm-header-cart {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.jfm-cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--search-border);
    border-radius: var(--border-radius-lg);
    color: var(--header-text);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.jfm-cart-link:hover {
    background: var(--button-primary);
    color: white;
    border-color: var(--button-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}

.jfm-cart-icon {
    font-size: 18px;
}

.jfm-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #f43f5e, #dc2626);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Ultra Modern User Avatar */
.jfm-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--button-primary), var(--button-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: var(--font-weight-semibold);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.jfm-user-avatar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}

/* Simplified Dropdowns */
.jfm-cart-dropdown,
.jfm-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--header-border);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 1000;
}

.jfm-cart-link:hover + .jfm-cart-dropdown,
.jfm-cart-dropdown:hover,
.jfm-user-avatar:hover + .jfm-user-dropdown,
.jfm-user-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.jfm-cart-header,
.jfm-user-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--header-border);
    font-weight: var(--font-weight-semibold);
    font-size: 13px;
    color: var(--header-text);
}

.jfm-cart-items {
    max-height: 200px;
    overflow-y: auto;
    padding: 8px;
}

.jfm-cart-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 4px;
    font-size: 13px;
}

.jfm-cart-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--header-border);
}

.jfm-checkout-btn {
    width: 100%;
    padding: 8px;
    background: var(--button-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: var(--font-weight-medium);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.jfm-checkout-btn:hover {
    background: var(--button-hover);
}

.jfm-user-menu {
    list-style: none;
    margin: 0;
    padding: 8px;
}

.jfm-user-menu a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: var(--header-text);
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    transition: var(--transition);
    gap: 8px;
}

.jfm-user-menu a:hover {
    background: var(--search-bg);
}

/* Mobile Menu Button - Modern Design */
.jfm-mobile-menu-toggle {
    display: none;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 10px 12px;
    color: var(--header-text);
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.jfm-mobile-menu-toggle:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.jfm-mobile-menu-toggle:active {
    transform: translateY(0);
}

.jfm-hamburger {
    width: 22px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.jfm-hamburger span {
    display: block;
    height: 2.5px;
    width: 100%;
    background: linear-gradient(90deg, #1e293b 0%, #475569 100%);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    transform-origin: center;
}

/* ==========================================
   MOBILE MENU GLOBAL STYLES (Always Active)
   ========================================== */

/* Mobile Menu Footer - Base Styles */
.jfm-mobile-menu-footer {
    padding: 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
    flex-shrink: 0;
}

.jfm-mobile-menu-footer-actions {
    display: flex;
    gap: 12px;
}

.jfm-mobile-menu-footer-btn {
    flex: 1;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}

.jfm-mobile-menu-footer-btn svg {
    flex-shrink: 0;
}

.jfm-mobile-menu-footer-btn.primary {
    background: linear-gradient(135deg, #31744c 0%, #22c55e 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(49, 116, 76, 0.25);
}

.jfm-mobile-menu-footer-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 116, 76, 0.35);
}

.jfm-mobile-menu-footer-btn.secondary {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.jfm-mobile-menu-footer-btn.secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.jfm-hamburger span:nth-child(1) {
    width: 100%;
}

.jfm-hamburger span:nth-child(2) {
    width: 75%;
}

.jfm-hamburger span:nth-child(3) {
    width: 50%;
}

/* Animated hamburger to X transformation */
.jfm-mobile-menu-toggle.active .jfm-hamburger span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    width: 100%;
}

.jfm-mobile-menu-toggle.active .jfm-hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.jfm-mobile-menu-toggle.active .jfm-hamburger span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    width: 100%;
}

/* Ultra Modern Responsive Design */
@media (max-width: 1024px) {
    .jfm-header-inner {
        gap: 32px;
    }
    
    .jfm-header-top-row {
        gap: 24px;
    }
    
    .jfm-header-right-section {
        gap: 16px;
    }
    
    .jfm-header-search-wrapper {
        min-width: 280px;
    }
    
    .jfm-header-search {
        min-width: 280px;
    }
    
    .jfm-nav-menu {
        gap: 6px; /* Increased from 2px to 6px */
        padding: 10px 14px; /* Increased from 6px 10px to 10px 14px */
    }
    
    .jfm-nav-menu a {
        padding: 12px 20px; /* Increased from 10px 16px to 12px 20px */
        font-size: 14px;
    }
}

/* iPad/Tablet specific - Remove margins */
@media (min-width: 769px) and (max-width: 1024px) {
    .jfm-header-container {
        margin: 0 !important; /* Remove margins on iPad/tablet */
    }
    
    .jfm-golf-header-pro-wrapper {
        margin: 0 !important; /* Remove wrapper margins on iPad/tablet */
    }
}

@media (max-width: 768px) {
    .jfm-header-container {
        padding: 4px 0 !important; /* Halved from 8px to 4px for mobile */
        margin: 40px auto 10px auto !important; /* 40px top, 10px bottom, auto left/right for centering */
        min-height: 60px !important; /* Compact height for mobile */
        position: relative !important;
        width: 100% !important; /* Full available width */
        max-width: 1200px !important; /* Match typical site max-width */
    }
}

/* Override margins for 481px-768px range only */
@media (min-width: 481px) and (max-width: 768px) {
    .jfm-header-container {
        margin: 0 auto !important; /* Remove top/bottom margins, keep auto centering */
    }
    
    /* Also ensure wrapper has no extra spacing */
    .jfm-golf-header-pro-wrapper {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .jfm-header-inner {
        padding: 0 7px; /* Reduced horizontal padding for tighter mobile layout */
        gap: 0px !important; /* Remove gap to eliminate extra spacing between elements */
    }
    
    .jfm-header-content {
        gap: 12px; /* Reduced gap for mobile */
    }
    
    .jfm-header-bottom-row {
        display: none; /* Hide navigation row on mobile */
    }
    
    .jfm-header-nav-wrapper {
        display: none;
    }
    
    .jfm-header-right-section {
        gap: 12px; /* Reduced gap for mobile */
    }
    
    .jfm-header-search-wrapper {
        min-width: 0 !important; /* Remove fixed minimum to prevent overflow */
        width: 100% !important; /* Full width of container */
        max-width: 100% !important; /* Prevent overflow */
        flex: 1 1 auto !important; /* Allow flexible sizing */
    }
    
    .jfm-header-search {
        min-width: 0 !important; /* Remove fixed minimum to prevent overflow */
        width: 100% !important; /* Full width of container */
        max-width: 100% !important; /* Prevent overflow */
        flex: 1 1 auto !important; /* Allow flexible sizing */
    }
    
    .jfm-search-form {
        height: 44px;
    }
    
    .jfm-search-input {
        padding: 0 16px;
        font-size: 14px;
    }

    /* Critical override: allow wrapping & remove large injected gap from theme */
    .jfm-header-content {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px !important; /* prevent huge gap:400px overrides */
        justify-content: space-between;
        width: 100% !important;
    }

    /* --- Mobile Enhancement v2: Icons on first row, hamburger + search on second row --- */
    .jfm-header-right-top {
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }
    /* Icons (support/account/cart) stay first row */
    .jfm-header-right-top .jfm-header-support,
    .jfm-header-right-top .jfm-header-account,
    .jfm-header-right-top .jfm-header-cart,
    .jfm-header-right-top .jfm-user-avatar,
    .jfm-header-right-top .jfm-cart-link { order: 1; }
    /* Show hamburger and place it at start of second line */
    .jfm-mobile-menu-toggle { display: flex !important; order: 2; }
    /* Search occupies remaining full width on second line */
    .jfm-header-right-top .jfm-header-search { order: 3; flex: 1 1 auto !important; min-width: 0; }
    .jfm-header-right-top .jfm-search-form { width: 100% !important; }
    /* Reduce icon sizes for cleaner compact top row */
    .jfm-header-right-top .jfm-cart-link,
    .jfm-header-right-top .jfm-user-avatar { width: 42px; height: 42px; }
    /* Ensure mega menu unaffected (already hidden on mobile) */

    /* --- NEW: Prevent horizontal overflow by stacking main layout --- */
    .jfm-header-main-layout { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
    /* Make logo section only as wide as the image */
    .jfm-header-logo-section { width: auto; flex: 0 0 auto; }
    .jfm-header-logo { width: auto; justify-content: flex-start; padding: 4px 0; background: transparent; }
    .jfm-header-right-container { width: 100%; flex: 0 0 auto; }
    .jfm-header-right-top { width: 100%; }
    /* Remove fixed search minimums to allow shrink within viewport */
    .jfm-header-search-wrapper, .jfm-header-search { min-width: 0 !important; width: 100% !important; }
    .jfm-search-form { width: 100% !important; }
    /* Ensure icons don't stretch container */
    .jfm-header-right-top .jfm-header-support, .jfm-header-right-top .jfm-header-account, .jfm-header-right-top .jfm-header-cart { flex: 0 0 auto; }
}

/* ===================================
   MOBILE MENU TOGGLE & RESPONSIVE
   =================================== */

/* Mobile Menu Toggle */
.jfm-mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.jfm-mobile-menu-toggle:hover {
    background: rgba(212, 175, 55, 0.1);
}

.jfm-hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.jfm-hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--header-text);
    border-radius: 1px;
    transition: var(--transition);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .jfm-header-nav {
        display: none; /* Hide navigation on tablets and mobile */
    }
    
    .jfm-mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Hide mobile menu toggle on tablet mode only */
@media (min-width: 769px) and (max-width: 1024px) {
    .jfm-mobile-menu-toggle {
        display: none !important; /* Hide orange menu button on tablet */
    }
    
    .jfm-header-right-container {
        gap: 16px;
    }
    
    .jfm-search-form {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .jfm-header-inner {
        padding: 0 16px;
        margin-top: 5% !important; /* Add 5% top margin for mobile only */
    }
    
    .jfm-header-main-row {
        gap: 16px;
    }
    
    .jfm-header-right-container {
        gap: 12px;
    }
    
    .jfm-search-form {
        width: 160px;
    }
    
    .jfm-support-btn .jfm-support-text {
        display: none; /* Hide support text on mobile */
    }
    
    .jfm-support-btn {
        padding: 8px;
        min-width: 40px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .jfm-header-support {
        display: none; /* Hide support button on very small screens */
    }
    
    .jfm-search-form {
        width: 120px;
    }
    
    .jfm-search-input {
        font-size: 12px;
        padding: 10px 12px;
    }
    
    .jfm-search-button {
        padding: 10px 12px;
    }
}
    
    .jfm-mobile-menu-toggle:hover {
        background: var(--button-primary);
        color: white;
        transform: translateY(-1px);
    }
    
    .jfm-header-content {
        gap: 20px;
    }
    
    .jfm-header-inner {
        gap: 20px;
    }
    
    .jfm-cart-link,
    .jfm-user-avatar {
        width: 44px;
        height: 44px;
    }


@media (max-width: 480px) {
    .jfm-header-container {
        padding: 6px 8px; /* Halved from 12px 16px to 6px 8px */
        height: 72px; /* Increased from 64px to 72px */
    }
    
    .jfm-header-search {
        min-width: 180px;
    }
    
    .jfm-search-form {
        height: 40px;
    }
    
    .jfm-search-input {
        padding: 0 12px;
        font-size: 13px;
    }
    
    .jfm-search-button {
        padding: 0 12px;
        height: 38px;
    }
    
    .jfm-header-content {
        gap: 12px;
    }
    
    .jfm-header-inner {
        gap: 12px;
    }
    
    .jfm-cart-link,
    .jfm-user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .jfm-header-logo {
        padding: 6px 12px;
    }
    
    .jfm-header-logo h1 {
        font-size: 22px;
    }
}

/* Focus States for Accessibility */
.jfm-nav-menu a:focus,
.jfm-cart-link:focus,
.jfm-search-button:focus,
.jfm-mobile-menu-toggle:focus {
    outline: 2px solid var(--search-focus);
    outline-offset: 2px;
}

/* Dark Theme Override */
.design-preset-modern_dark {
    --header-bg: #1a1a1a;
    --header-text: #ffffff;
    --header-border: rgba(255, 255, 255, 0.08);
    --search-bg: #2a2a2a;
    --search-border: rgba(255, 255, 255, 0.12);
    --text-muted: #a0a0a0;
}

.design-preset-modern_dark .jfm-search-form:focus-within {
    background: #2a2a2a;
}

.design-preset-modern_dark .jfm-nav-menu a:hover {
    background: #2a2a2a;
}

/* Ultra Modern Micro-Interactions */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Subtle hover animations */
.jfm-header-logo:hover {
    animation: float 2s ease-in-out infinite;
}

.jfm-cart-count {
    animation: pulse 2s ease-in-out infinite;
}

/* Smooth reveal animation */
.jfm-golf-header-pro-wrapper {
    animation: slideIn 0.6s ease-out;
}

/* Focus glow effects */
.jfm-search-form:focus-within {
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15), var(--glow-effect);
}

/* Loading state for interactive elements */
.jfm-nav-menu a:active,
.jfm-cart-link:active,
.jfm-user-avatar:active {
    transform: scale(0.98);
}

/* Glass morphism effect for dropdowns */
.jfm-cart-dropdown,
.jfm-user-dropdown {
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced button gradients */
.jfm-search-button {
    background: var(--button-primary);
}

.jfm-search-button:hover {
    background: var(--button-hover);
    box-shadow: var(--glow-effect);
}

/* Improved accessibility with better focus indicators */
.jfm-nav-menu a:focus-visible,
.jfm-cart-link:focus-visible,
.jfm-user-avatar:focus-visible,
.jfm-search-input:focus-visible,
.jfm-search-button:focus-visible {
    outline: 2px solid var(--search-focus);
    outline-offset: 2px;
    box-shadow: var(--glow-effect);
}

.design-preset-modern_dark .jfm-cart-link {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.12);
}

.design-preset-modern_dark .jfm-mobile-menu-toggle:hover {
    background: #2a2a2a;
}

/* === FORCE LEFT ALIGN ALL MEGA MENU TEXT === */
.jfm-mega-menu,
.jfm-mega-menu *,
.jfm-mega-menu .elementor-element,
.jfm-mega-menu .elementor-widget,
.jfm-mega-menu .elementor-column,
.jfm-mega-menu .elementor-section,
.jfm-mega-menu .elementor-container,
.jfm-mega-menu .elementor-row,
.jfm-mega-menu .elementor-widget-wrap,
.jfm-mega-menu .elementor-icon-list-items,
.jfm-mega-menu .elementor-icon-list-item,
.jfm-mega-menu .elementor-icon-list-text,
.jfm-mega-menu ul,
.jfm-mega-menu li,
.jfm-mega-menu a,
.jfm-mega-menu p,
.jfm-mega-menu span,
.jfm-mega-menu div {
    text-align: left !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

/* Global readable text for all mega menu content */
.jfm-mega-menu p,
.jfm-mega-menu span,
.jfm-mega-menu div:not(.elementor-widget-heading),
.jfm-mega-menu li:not(.elementor-widget-heading) {
    font-size: 12px !important; /* Increased from 11px to 12px for better readability */
    line-height: 1.3 !important;
}

/* Force single column layout for mega menu content */
.jfm-mega-menu .elementor-row {
    flex-direction: column !important;
    align-items: flex-start !important;
}

.jfm-mega-menu .elementor-column {
    width: 100% !important;
    flex: none !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 10px !important;
}

/* Force icon lists to display as single column */
.jfm-mega-menu ul.elementor-icon-list-items {
    text-align: left !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    columns: 1 !important;
    column-count: 1 !important;
}

.jfm-mega-menu .elementor-icon-list-item {
    text-align: left !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    break-inside: avoid !important;
}

.jfm-mega-menu .elementor-icon-list-item > .elementor-icon-list-text,
.jfm-mega-menu .elementor-icon-list-item > a {
    text-align: left !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

/* Override any Elementor centering with maximum specificity */
.jfm-mega-menu [class*="elementor-"] {
    text-align: left !important;
    justify-content: flex-start !important;
}

/* Nuclear option - override any inline styles */
.jfm-mega-menu [style*="text-align"] {
    text-align: left !important;
}

.jfm-mega-menu [style*="justify-content"] {
    justify-content: flex-start !important;
}

/* Force no multi-column layouts */
.jfm-mega-menu * {
    column-count: 1 !important;
    columns: 1 !important;
}
/* === END MEGA MENU LEFT ALIGN === */

/* Hide mobile navigation bar on desktop */
.jfm-mobile-nav-bar {
    display: none !important;
}

/* ===================================
   CART SLIDER STYLES
   =================================== */

/* Cart Slider Overlay */
.jfm-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.jfm-cart-overlay.jfm-cart-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Cart Slider */
.jfm-cart-slider {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    z-index: 10000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.jfm-cart-slider.jfm-cart-slider-open {
    right: 0;
}

/* Cart Slider Header */
.jfm-cart-slider-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.jfm-cart-slider-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.jfm-cart-slider-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.jfm-cart-slider-close:hover {
    background: #e0e0e0;
    color: #333;
}

/* Cart Slider Content */
.jfm-cart-slider-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.jfm-cart-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Cart Items Styling */
.jfm-cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.jfm-cart-empty p {
    margin-bottom: 20px;
    font-size: 16px;
}

.jfm-continue-shopping {
    display: inline-block;
    padding: 12px 24px;
    background: #31744c;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.jfm-continue-shopping:hover {
    background: #2a6340;
    transform: translateY(-1px);
}

.jfm-cart-items {
    max-height: 400px;
    overflow-y: auto;
}

.jfm-cart-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    gap: 12px;
}

.jfm-cart-item:last-child {
    border-bottom: none;
}

.jfm-cart-item-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 6px;
}

.jfm-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jfm-cart-item-details {
    flex: 1;
    min-width: 0;
}

.jfm-cart-item-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.3;
}

.jfm-cart-item-price,
.jfm-cart-item-quantity,
.jfm-cart-item-subtotal {
    font-size: 13px;
    color: #666;
    margin: 4px 0;
}

.jfm-cart-item-subtotal {
    font-weight: 600;
    color: #31744c;
}

.jfm-cart-item-remove {
    position: absolute;
    top: 10px;
    right: 5px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 50%;
    color: #999;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.jfm-cart-item-remove:hover {
    background: #ff4757;
    color: white;
}

.jfm-cart-totals {
    padding: 20px 0;
    border-top: 2px solid #f0f0f0;
    margin-top: 10px;
}

.jfm-cart-subtotal {
    text-align: right;
    font-size: 16px;
    color: #333;
}

/* Cart Slider Footer */
.jfm-cart-slider-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    display: flex;
    gap: 10px;
}

.jfm-cart-view-cart,
.jfm-cart-checkout {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.jfm-cart-view-cart {
    background: white;
    color: #333;
}

.jfm-cart-view-cart:hover {
    background: #f0f0f0;
}

.jfm-cart-checkout {
    background: #31744c;
    color: white;
    border-color: #31744c;
}

.jfm-cart-checkout:hover {
    background: #2a6340;
    border-color: #2a6340;
}

/* Body class when cart slider is active */
.jfm-cart-slider-active {
    overflow: hidden;
}

/* Mobile responsiveness for cart slider */
@media (max-width: 480px) {
    .jfm-cart-slider {
        width: 100%;
        right: -100%;
    }
    
    .jfm-cart-slider-footer {
        flex-direction: column;
    }
}

/* JupiterX Cart Compatibility */
.jupiterx-raven-cart-quick-view-overlay {
    overflow: hidden;
}

.jupiterx-shopping-cart-overlay-activated {
    display: block !important;
}

/* === END CART SLIDER STYLES === */
/* ===================================
     MOBILE LAYOUT - Logo Left, Search Right, All Buttons Bottom Row
     =================================== */
@media (max-width: 768px) {
    /* Mobile: Create proper two-row structure */
    .jfm-header-content {
        flex-direction: column !important;
        gap: 1px !important; /* Minimal gap between nav-bar and main-layout for mobile */
        align-items: stretch !important; /* Ensure full width alignment */
        justify-content: flex-start !important; /* Pack elements tightly */
    }
    
    /* Top Row: Logo and Right Container Stack Vertically on Mobile */
    .jfm-header-main-layout { 
        flex-direction: column !important; 
        align-items: stretch !important; 
        justify-content: flex-start !important;
        gap: 2px !important;
        width: 100% !important; 
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    
    /* Logo section - full width on mobile */
    .jfm-header-logo-section { 
        flex: 0 0 auto !important; 
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    .jfm-header-logo { 
        width: auto !important; 
        justify-content: center !important; 
        padding: 8px 12px !important;
        background: rgba(248, 250, 252, 0.95) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    }
    
    .jfm-header-logo img { 
        max-width: 280px !important;
        height: auto !important; 
        max-height: none !important;
    }
    
    /* Right container - full width for search and signup */
    .jfm-header-right-container { 
        flex: 0 0 auto !important; 
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .jfm-header-right-top { 
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important; 
        gap: 8px !important;
        align-items: stretch !important;
    }
    
    /* Search bar full width */
    .jfm-header-right-top .jfm-header-search { 
        width: 100% !important;
    }
    
    .jfm-header-right-top .jfm-search-form { 
        width: 100% !important; 
    }
    
    /* Show mobile signup button below search */
    .jfm-header-right-top .jfm-mobile-signup-container {
        display: block !important;
        width: 100% !important;
    }
    
    .jfm-header-right-top .jfm-mobile-signup-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
        height: 44px !important;
        padding: 0 16px !important;
        background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%) !important;
        border: 2px solid #d4af37 !important;
        border-radius: 6px !important;
        color: #1a1a1a !important;
        text-decoration: none !important;
        font-weight: 700 !important;
        font-size: 14px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    }
    
    .jfm-header-right-top .jfm-mobile-signup-btn:hover {
        background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%) !important;
        box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1) !important;
    }
    
    /* Hide all buttons from top row - they go to mobile nav bar */
    .jfm-header-right-top .jfm-header-support,
    .jfm-header-right-top .jfm-header-account,
    .jfm-header-right-top .jfm-header-cart,
    .jfm-header-right-top .jfm-user-avatar,
    .jfm-header-right-top .jfm-cart-link,
    .jfm-header-right-top .jfm-mobile-menu-toggle,
    .jfm-header-buttons {
        display: none !important;
    }
    
    /* Hide desktop navigation */
    .jfm-header-right-bottom {
        display: none !important;
    }
    
    /* Show and style mobile navigation bar */
    .jfm-mobile-nav-bar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-evenly !important;
        gap: 8px !important; /* Improved spacing for better touch targets */
        width: 100% !important; /* Back to 100% for proper container fit */
        padding: 8px 8px !important; /* Reduced top/bottom padding for tighter spacing */
        margin: 0 !important; /* Remove all margins */
        margin-top: 0 !important; /* Explicit top margin removal */
        margin-bottom: 0 !important; /* Explicit bottom margin removal */
        border: 1px solid rgba(0, 0, 0, 0.08) !important; /* Subtle border for definition */
        background: rgba(248, 250, 252, 0.95) !important; /* Slightly more opaque */
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important; /* Enhanced shadow */
    }
    
    /* Mobile navigation buttons styling */
    .jfm-mobile-nav-bar .jfm-mobile-menu-toggle,
    .jfm-mobile-nav-bar .jfm-header-support a,
    .jfm-mobile-nav-bar .jfm-header-account a,
    .jfm-mobile-nav-bar .jfm-header-cart a,
    .jfm-mobile-nav-bar .jfm-user-avatar,
    .jfm-mobile-nav-bar .jfm-cart-link,
    .jfm-mobile-nav-bar .jfm-icon-button,
    .jfm-mobile-nav-bar .elementor-button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        background: white !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        color: var(--header-text) !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Mobile nav button hover effects */
    .jfm-mobile-nav-bar .jfm-mobile-menu-toggle:hover,
    .jfm-mobile-nav-bar .jfm-header-support a:hover,
    .jfm-mobile-nav-bar .jfm-header-account a:hover,
    .jfm-mobile-nav-bar .jfm-header-cart a:hover,
    .jfm-mobile-nav-bar .jfm-user-avatar:hover,
    .jfm-mobile-nav-bar .jfm-cart-link:hover,
    .jfm-mobile-nav-bar .jfm-icon-button:hover,
    .jfm-mobile-nav-bar .elementor-button:hover {
        background: #31744c !important;
        color: white !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(49, 116, 76, 0.3) !important;
    }
    
    /* Hide button text labels on mobile nav by default */
    .jfm-mobile-nav-bar .elementor-button .elementor-button-text,
    .jfm-mobile-nav-bar .jfm-btn-text,
    .jfm-mobile-nav-bar .jfm-support-text,
    .jfm-mobile-nav-bar .jfm-icon-label {
        display: none !important;
    }
    
    /* Show labels when enabled */
    .jfm-mobile-nav-bar.show-labels .jfm-icon-label {
        display: block !important;
        font-size: 10px !important;
        color: var(--header-text) !important;
        text-align: center !important;
        margin-top: 2px !important;
        line-height: 1 !important;
    }
    
    /* Adjust button layout when labels are shown */
    .jfm-mobile-nav-bar.show-labels .jfm-mobile-menu-toggle,
    .jfm-mobile-nav-bar.show-labels .jfm-header-support a,
    .jfm-mobile-nav-bar.show-labels .jfm-header-account a,
    .jfm-mobile-nav-bar.show-labels .jfm-header-cart a,
    .jfm-mobile-nav-bar.show-labels .jfm-user-avatar,
    .jfm-mobile-nav-bar.show-labels .jfm-cart-link,
    .jfm-mobile-nav-bar.show-labels .jfm-icon-button,
    .jfm-mobile-nav-bar.show-labels .elementor-button {
        flex-direction: column !important;
        height: auto !important;
        padding: 8px 4px !important;
        border-radius: 8px !important;
    }
    
    /* Show mobile menu toggle in nav bar */
    .jfm-mobile-menu-toggle {
        display: inline-flex !important;
    }
    
    /* ========================================
       MODERN MOBILE MENU - PREMIUM DESIGN
       ======================================== */
    
    /* Mobile Menu Overlay - Elegant Glass Effect */
    .jfm-mobile-menu-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.9) 100%) !important;
        z-index: 99999 !important;
        backdrop-filter: blur(12px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .jfm-mobile-menu-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Modern Mobile Menu Content Panel */
    .jfm-mobile-menu-content {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 88% !important;
        max-width: 380px !important;
        height: 100% !important;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
        box-shadow: 
            4px 0 32px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(255, 255, 255, 0.1) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        transform: translateX(-100%) !important;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .jfm-mobile-menu-overlay.active .jfm-mobile-menu-content {
        transform: translateX(0) !important;
    }
    
    /* Sleek Header with Gradient */
    .jfm-mobile-menu-header {
        padding: 24px 20px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
        position: relative !important;
        flex-shrink: 0 !important;
    }
    
    .jfm-mobile-menu-header::after {
        content: '' !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 20px !important;
        right: 20px !important;
        height: 1px !important;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
    }
    
    .jfm-mobile-menu-header h3 {
        margin: 0 !important;
        font-size: 15px !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        letter-spacing: 1.5px !important;
        text-transform: uppercase !important;
        opacity: 0.9 !important;
    }
    
    /* Modern Close Button */
    .jfm-mobile-menu-close {
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        font-size: 18px !important;
        color: #ffffff !important;
        cursor: pointer !important;
        padding: 0 !important;
        width: 36px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 10px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        font-weight: 300 !important;
        line-height: 1 !important;
    }
    
    .jfm-mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        transform: rotate(90deg) !important;
        border-color: rgba(255, 255, 255, 0.3) !important;
    }
    
    .jfm-mobile-menu-close:focus,
    .jfm-mobile-menu-close:active {
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2) !important;
    }
    
    .jfm-mobile-menu-close {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    /* Menu Body with Scroll */
    .jfm-mobile-menu-body {
        padding: 8px 0 !important;
        flex: 1 !important;
        overflow-y: auto !important;
    }
    
    /* Premium Menu List */
    .jfm-mobile-menu-list {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .jfm-mobile-menu-list > li {
        border-bottom: none !important;
        margin: 0 !important;
        position: relative !important;
    }
    
    /* Top Level Menu Items - Modern Cards */
    .jfm-mobile-menu-list > li > a {
        display: flex !important;
        align-items: center !important;
        padding: 16px 24px !important;
        margin: 4px 12px !important;
        color: #1e293b !important;
        text-decoration: none !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        letter-spacing: 0.3px !important;
        border-radius: 12px !important;
        background: transparent !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .jfm-mobile-menu-list > li > a::before {
        content: '' !important;
        position: absolute !important;
        left: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 4px !important;
        height: 0 !important;
        background: linear-gradient(180deg, #31744c 0%, #22c55e 100%) !important;
        border-radius: 0 4px 4px 0 !important;
        transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .jfm-mobile-menu-list > li > a:hover,
    .jfm-mobile-menu-list > li > a:focus {
        background: transparent !important;
        color: #166534 !important;
        padding-left: 32px !important;
        box-shadow: 0 4px 12px rgba(49, 116, 76, 0.08) !important;
    }
    
    .jfm-mobile-menu-list > li > a:hover::before,
    .jfm-mobile-menu-list > li > a:focus::before {
        height: 60% !important;
    }
    
    /* Items with Submenus - Add Chevron */
    .jfm-mobile-menu-list > li.menu-item-has-children > a::after {
        content: '' !important;
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) rotate(0deg) !important;
        width: 8px !important;
        height: 8px !important;
        border-right: 2px solid #94a3b8 !important;
        border-bottom: 2px solid #94a3b8 !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .jfm-mobile-menu-list > li.menu-item-has-children > a:hover::after {
        border-color: #166534 !important;
        transform: translateY(-50%) rotate(45deg) !important;
    }
    
    .jfm-mobile-menu-list > li.menu-item-has-children.submenu-open > a::after {
        transform: translateY(-30%) rotate(45deg) !important;
    }
    
    /* Submenu Styling - Elegant Nested Design */
    .jfm-mobile-menu-list .sub-menu {
        list-style: none !important;
        margin: 0 !important;
        padding: 8px 12px 12px 20px !important;
        background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
        border-radius: 0 0 12px 12px !important;
        margin: -4px 12px 8px 12px !important;
        box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.02) !important;
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .jfm-mobile-menu-list > li.submenu-open .sub-menu {
        max-height: 500px !important;
        opacity: 1 !important;
        padding-top: 12px !important;
    }
    
    .jfm-mobile-menu-list .sub-menu li {
        border-bottom: none !important;
        position: relative !important;
    }
    
    .jfm-mobile-menu-list .sub-menu a {
        display: flex !important;
        align-items: center !important;
        padding: 12px 16px 12px 20px !important;
        font-size: 14px !important;
        color: #475569 !important;
        text-decoration: none !important;
        font-weight: 400 !important;
        border-radius: 8px !important;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
    }
    
    .jfm-mobile-menu-list .sub-menu a::before {
        content: '' !important;
        position: absolute !important;
        left: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 6px !important;
        height: 6px !important;
        background: #cbd5e1 !important;
        border-radius: 50% !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .jfm-mobile-menu-list .sub-menu a:hover,
    .jfm-mobile-menu-list .sub-menu a:focus {
        background: #ffffff !important;
        color: #166534 !important;
        padding-left: 28px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    }
    
    .jfm-mobile-menu-list .sub-menu a:hover::before,
    .jfm-mobile-menu-list .sub-menu a:focus::before {
        background: #22c55e !important;
        transform: translateY(-50%) scale(1.3) !important;
    }
    
    /* Deep Nested Submenus */
    .jfm-mobile-menu-list .sub-menu .sub-menu {
        margin-left: 8px !important;
        padding-left: 12px !important;
        border-left: 2px solid #e2e8f0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    
    /* Mobile Menu Footer Area */
    .jfm-mobile-menu-footer {
        padding: 20px !important;
        background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
        border-top: 1px solid #e2e8f0 !important;
        margin-top: auto !important;
        flex-shrink: 0 !important;
    }
    
    .jfm-mobile-menu-footer-actions {
        display: flex !important;
        gap: 12px !important;
    }
    
    .jfm-mobile-menu-footer-btn {
        flex: 1 !important;
        padding: 14px 16px !important;
        border-radius: 10px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        text-align: center !important;
        text-decoration: none !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
    }
    
    .jfm-mobile-menu-footer-btn.primary {
        background: linear-gradient(135deg, #31744c 0%, #22c55e 100%) !important;
        color: #ffffff !important;
        box-shadow: 0 4px 14px rgba(49, 116, 76, 0.25) !important;
    }
    
    .jfm-mobile-menu-footer-btn.primary:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(49, 116, 76, 0.35) !important;
    }
    
    .jfm-mobile-menu-footer-btn.secondary {
        background: #ffffff !important;
        color: #1e293b !important;
        border: 1px solid #e2e8f0 !important;
    }
    
    .jfm-mobile-menu-footer-btn.secondary:hover {
        background: #f8fafc !important;
        border-color: #cbd5e1 !important;
    }
    
    /* Scroll Indicator */
    .jfm-mobile-menu-content::-webkit-scrollbar {
        width: 4px !important;
    }
    
    .jfm-mobile-menu-content::-webkit-scrollbar-track {
        background: transparent !important;
    }
    
    .jfm-mobile-menu-content::-webkit-scrollbar-thumb {
        background: #cbd5e1 !important;
        border-radius: 4px !important;
    }
    
    .jfm-mobile-menu-content::-webkit-scrollbar-thumb:hover {
        background: #94a3b8 !important;
    }
    
    /* Body Lock When Menu Open */
    body.jfm-menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Adjust search bar for mobile */
    .jfm-header-search-wrapper, 
    .jfm-header-search { 
        min-width: 0 !important; 
    }
    
    .jfm-search-form {
        height: 44px !important; /* Increased from 40px for better mobile usability */
        border-radius: 8px !important;
        width: 100% !important; /* Full width of container */
        max-width: 100% !important; /* Prevent overflow */
        min-width: 0 !important; /* Remove fixed minimum to prevent overflow */
        box-sizing: border-box !important; /* Include padding in width calculation */
    }
    
    .jfm-search-input {
        font-size: 15px !important; /* Increased from 14px for better readability */
        padding: 0 16px !important; /* Increased from 12px for better touch targets */
        width: 100% !important; /* Full width of form */
        max-width: 100% !important; /* Prevent overflow */
        min-width: 0 !important; /* Allow shrinking */
        box-sizing: border-box !important; /* Include padding in width calculation */
    }
    
    .jfm-search-button {
        padding: 0 16px !important; /* Increased from 12px for better touch targets */
    }
    
    /* Prevent overflow */
    .jfm-golf-header-pro-wrapper, 
    .jfm-header-container, 
    .jfm-header-inner { 
        overflow-x: visible !important; 
    }
    
    .jfm-header-main-layout, 
    .jfm-header-right-top, 
    .jfm-header-right-container, 
    .jfm-header-search, 
    .jfm-search-form { 
        min-width: 0 !important; 
    }
}

/* ===================================
   SIGNUP MODAL STYLES
   =================================== */

.jfm-signup-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: jfmFadeIn 0.3s ease-out;
}

@keyframes jfmFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.jfm-signup-modal {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: jfmSlideUp 0.3s ease-out;
}

@keyframes jfmSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.jfm-signup-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    transition: all 0.2s ease;
    z-index: 100 !important;
    padding: 0;
    color: #374151 !important;
    pointer-events: auto !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.jfm-signup-modal-close:hover {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
}

.jfm-signup-modal-close .jfm-close-icon {
    font-size: 28px !important;
    line-height: 1 !important;
    color: #374151 !important;
    font-weight: 300 !important;
    pointer-events: none !important;
}

.jfm-signup-modal-close:hover .jfm-close-icon {
    color: #1f2937 !important;
}

.jfm-signup-modal-content {
    padding: 40px 30px 30px;
}

/* Gravity Forms styling within modal */
.jfm-signup-modal-content .gform_wrapper {
    margin: 0 !important;
}

.jfm-signup-modal-content .gform_heading {
    margin-bottom: 20px;
}

.jfm-signup-modal-content .gform_title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

/* Mobile adjustments for modal */
@media (max-width: 768px) {
    .jfm-signup-modal {
        max-width: 100%;
        margin: 0 10px;
        max-height: 85vh;
    }
    
    .jfm-signup-modal-content {
        padding: 50px 20px 20px;
    }
    
    .jfm-signup-modal-close {
        top: 12px;
        right: 12px;
    }
}