/**
 * Theme Name: eds Child
 * Description: Child theme for the eds
 * Author: LineThemes
 * Template: eds
 */

/* --- General Customizations --- */
/* Replace all instances of the old color with the new color */
/* Target elements using the old color 
* {
    color: #eb3678 !important;
    border-color: #eb3678 !important;
    background-color: #eb3678 !important;
}

 Replace specific occurrences 
[style*="color: #B80067C7"] {
    color: #eb3678 !important;
}
[style*="background-color: #B80067C7"] {
    background-color: #eb3678 !important;
}
[style*="border-color: #B80067C7"] {
    border-color: #eb3678 !important;
}*/
.bio-popup {
    position: fixed;
    width: 80%;
    max-width: 600px;
    background: white;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    display: none;
}



/* Remove footer copyright completely */
/* Hide footer ONLY on mobile for page ID 1215 */
@media only screen and (max-width: 767px) {
    body.page-id-1215 #site-footer {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

/* Hide session cells in profile widgets */
.iq_kivicare_doctor_session-cell,
.grid-container .iq_kivicare_doctor_session-cell {
    display: none !important; /* Removes session cells */
}


.login #login_error {
    display: none; /* Hide the error message container */
}

#login-message.notice-info.message {
    display: none !important; /* Force hiding the info message box */
}



/* Hide the license message */
.fc-license-message {
    display: none !important;
}

/* Alternative selector */
/* Force hide license message in Kivicare */
body #kivicare-appointment-calendar > div.fc-view-container > div.fc-license-message,
body .fc-license-message,
div.fc-license-message,
[class*="fc-license-message"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    position: absolute !important;
    left: -9999px !important;
}
/* --- Custom Login Page Styling --- */
/* Base styling for the header on desktop */
.site-header-inner {
    height: 85px; /* Set the fixed height for desktop */
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: space-between; /* Space out the logo and navigation */
    padding: 0 20px; /* Optional: Adjust padding as necessary */
}

/* Adjust the logo size to fit the new header size */
.site-header-inner .header-brand a img {
    height: 85%; /* Scale the logo to maintain padding and aesthetics */
    width: auto; /* Maintain aspect ratio */
}

/* Responsive adjustments for tablets */
@media (max-width: 768px) {
    .site-header-inner {
        height: 65px; /* Slightly smaller header for tablet devices */
    }

    .site-header-inner .header-brand a img {
        height: 75%; /* Adjust logo size proportionally */
    }
}

/* Responsive adjustments for mobile devices */
@media (max-width: 480px) {
    .site-header-inner {
        height: 55px; /* Smaller header for mobile devices */
        padding: 0 15px; /* Adjust padding to fit smaller screens */
    }

    .site-header-inner .header-brand a img {
        height: 75%; /* Further adjust logo size for mobile */
    }
}

/* Additional styling to handle navigational elements sizing */
.site-header-inner .navigator {
    font-size: 0.8em; /* Scale down text size on smaller screens */
}
/* logo sizing */
/* Targeting the logo within the header */
.header-brand a img.logoDefault {
    height: 40px; /* Set the logo height */
    width: auto; /* Auto-adjust the width to maintain aspect ratio */
    max-width: 95%; /* Ensure the logo doesn't exceed the width of its container */
}

/* Modern responsive background for the login page */
/* --- Custom Login Page Styling --- */

/* wordpress messages styling +/
 * /* Custom Admin Notice Styling */
.notice {
    border-left: 4px solid #eb3678; /* Use your branding color */
    padding: 10px;
    margin: 15px 0;
    border-radius: 5px;
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
    color: #333;
}
.notice-success {
    border-left-color: #4caf50; /* Success color */
    background-color: #e8f5e9;
}
.notice-error {
    border-left-color: #f44336; /* Error color */
    background-color: #ffebee;
}



/* Hide header on WooCommerce Cart, Checkout, and My Account pages */
body.woocommerce-cart .site-header,
body.woocommerce-checkout .site-header,
body.woocommerce-account .site-header {
    display: none !important;
}

/* Optional: also hide footer */
body.woocommerce-cart .site-footer,
body.woocommerce-checkout .site-footer,
body.woocommerce-account .site-footer {
    display: none !important;
}

/* Remove default WooCommerce header and page title */
.woocommerce-page .entry-header,
.woocommerce-page .woocommerce-breadcrumb {
    display: none;
}


/*  Logged in and out parameter */
@media only screen and (min-width: 1025px) {
    .site-topbar .menu-top > li:not([class*="current"]):not(:hover) > a {
        color: inherit;
    }
}

@media only screen and (min-width: 1025px) {
    .site-topbar .menu-top > li > a {
        padding: 15px 0;
        display: block;
        position: relative;
        white-space: nowrap;
        font-weight: 700;
    }
}

a {
    color: #2f4858; /* Default link color */
    text-decoration: none;
}

/* Style for "Return to account" when logged in */
#menu-item-1966 a {
    font-size: 16px;
    text-decoration: underline;
}

#menu-item-1966 a:hover {
    color: #eb3678; /* Bright red on hover */
}




/*SCREEN enhace 
/* ==================== MOBILE & DESKTOP OPTIMIZATION CSS ==================== */

/* CSS Variables for consistent theming */
:root {
  --vh: 1vh;
  --mobile-breakpoint: 768px;
  --tablet-breakpoint: 1024px;
  --desktop-breakpoint: 1200px;
}

/* Base mobile-first styles */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

/* Prevent layout shift */
img, 
video, 
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
  }
  
  /* Improve touch targets */
  button,
  .btn,
  a[role="button"],
  input[type="submit"],
  input[type="button"] {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 16px;
  }
  
  /* Optimize typography */
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.9rem; }
  
  /* Improve form elements */
  input, 
  textarea, 
  select {
    font-size: 16px !important; /* Prevent zoom on iOS */
  }
  
  /* Smooth scrolling container */
  .scrollable {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  
  /* Full viewport height for mobile */
  .full-height-mobile {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
  }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
  body {
    font-size: 17px;
  }
}

/* Desktop optimizations */
@media (min-width: 1025px) {
  /* Smooth animations */
  .smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Hardware acceleration */
  .hardware-accelerate {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
  }
}

/* Image sharpness optimization */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), 
       (min-resolution: 192dpi) { 
  img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Loading states */
.eds-loading {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.eds-loaded {
  opacity: 1;
}

/* Performance classes */
.will-change {
  will-change: transform, opacity;
}

.no-scroll {
  overflow: hidden;
}

/* Custom scrollbar for desktop */
@media (min-width: 769px) {
  ::-webkit-scrollbar {
    width: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }
}