*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}
::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}
.hmx-pointer-events-none {
  pointer-events: none;
}
.hmx-absolute {
  position: absolute;
}
.hmx-relative {
  position: relative;
}
.hmx-inset-y-0 {
  top: 0px;
  bottom: 0px;
}
.hmx-left-0 {
  left: 0px;
}
.hmx-right-0 {
  right: 0px;
}
.hmx-mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.hmx--ml-1 {
  margin-left: -0.25rem;
}
.hmx-ml-2 {
  margin-left: 0.5rem;
}
.hmx-mr-2 {
  margin-right: 0.5rem;
}
.hmx-flex {
  display: flex;
}
.hmx-inline-flex {
  display: inline-flex;
}
.hmx-hidden {
  display: none;
}
.hmx-h-4 {
  height: 1rem;
}
.hmx-h-5 {
  height: 1.25rem;
}
.hmx-h-full {
  height: 100%;
}
.hmx-min-h-screen {
  min-height: 100vh;
}
.hmx-w-4 {
  width: 1rem;
}
.hmx-w-5 {
  width: 1.25rem;
}
.hmx-w-full {
  width: 100%;
}
.hmx-flex-shrink-0 {
  flex-shrink: 0;
}
@keyframes hmx-spin {
  to {
    transform: rotate(360deg);
  }
}
.hmx-animate-spin {
  animation: hmx-spin 1s linear infinite;
}
.hmx-flex-col {
  flex-direction: column;
}
.hmx-items-start {
  align-items: flex-start;
}
.hmx-items-center {
  align-items: center;
}
.hmx-justify-center {
  justify-content: center;
}
.hmx-justify-between {
  justify-content: space-between;
}
.hmx-rounded-lg {
  border-radius: 0.5rem;
}
.hmx-border-2 {
  border-width: 2px;
}
.hmx-border-secondary {
  --tw-border-opacity: 1;
  border-color: rgb(223 102 39 / var(--tw-border-opacity, 1));
}
.hmx-bg-primary {
  --tw-bg-opacity: 1;
  background-color: rgb(26 26 46 / var(--tw-bg-opacity, 1));
}
.hmx-bg-red-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
}
.hmx-bg-secondary {
  --tw-bg-opacity: 1;
  background-color: rgb(223 102 39 / var(--tw-bg-opacity, 1));
}
.hmx-p-4 {
  padding: 1rem;
}
.hmx-px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.hmx-px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.hmx-px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.hmx-py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
.hmx-py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.hmx-py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.hmx-py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.hmx-py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.hmx-pl-3 {
  padding-left: 0.75rem;
}
.hmx-pr-3 {
  padding-right: 0.75rem;
}
.hmx-text-left {
  text-align: left;
}
.hmx-text-center {
  text-align: center;
}
.hmx-text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.hmx-text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.hmx-text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.hmx-font-medium {
  font-weight: 500;
}
.hmx-font-semibold {
  font-weight: 600;
}
.hmx-text-gray-400 {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.hmx-text-primary {
  --tw-text-opacity: 1;
  color: rgb(26 26 46 / var(--tw-text-opacity, 1));
}
.hmx-text-secondary {
  --tw-text-opacity: 1;
  color: rgb(223 102 39 / var(--tw-text-opacity, 1));
}
.hmx-text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.hmx-opacity-25 {
  opacity: 0.25;
}
.hmx-opacity-75 {
  opacity: 0.75;
}
.hmx-transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.hmx-transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.hmx-duration-200 {
  transition-duration: 200ms;
}

/* 
 * Hair Mechanix Booking App Styles
 * All Tailwind classes are prefixed with 'hmx-' to avoid WordPress conflicts
 */

/* Hide WordPress page title on pages with booking widget */
body:has(#booking_root) .wp-block-post-title {
  display: none !important;
}

/* Override WordPress content width restrictions */
body:has(#booking_root) .entry-content,
body:has(#booking_root) .entry-content.alignfull,
body:has(#booking_root) .wp-block-group.alignfull,
body:has(#booking_root) .wp-site-blocks > main,
body:has(#booking_root) .wp-site-blocks > main > *,
body:has(#booking_root) #wp--skip-link--target,
body:has(#booking_root) #wp--skip-link--target > * {
  max-width: none !important;
  width: 100% !important;
}

/* Set background color on booking pages */
body:has(#booking_root) {
  background-color: #221E1F !important;
}

/* Remove WordPress global padding on booking pages */
body:has(#booking_root) #wp--skip-link--target,
body:has(#booking_root) main.wp-block-group.has-global-padding,
body:has(#booking_root) .wp-block-group.alignfull.has-global-padding {
  padding: 0 !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-top: 0 !important;
}

/* Custom base styles that won't conflict with WordPress */
#booking_root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100% !important;
  max-width: none !important;
}

#booking_root > * {
  width: 100% !important;
  max-width: none !important;
}

/* Ensure proper box-sizing within booking root */
#booking_root *,
#booking_root *::before,
#booking_root *::after {
  box-sizing: border-box;
}

/* Reset button styles within booking root */
#booking_root button {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

/* Ensure flex work properly */
#booking_root .hmx-flex {
  display: flex !important;
}

#booking_root .hmx-hidden {
  display: none !important;
}

#booking_root .hmx-flex-shrink-0 {
  flex-shrink: 0 !important;
}

/* Mobile/desktop visibility helpers */
#booking_root .mobile-only {
  display: block !important;
}

#booking_root .desktop-only {
  display: none !important;
}

#booking_root .desktop-only-flex {
  display: none !important;
}

/* Compact time slot grid on smaller mobile to prevent overflow */
@media screen and (max-width: 768px) {
  #booking_root .time-slot-check {
    display: none !important;
  }

  #booking_root .time-slot-pill {
    justify-content: center !important;
    padding: 8px 6px !important;
    font-size: 13px !important;
  }

  #booking_root .time-slot-pill span {
    font-size: 13px !important;
  }

  #booking_root .time-slots-grid {
    gap: 8px !important;
  }
}

/* Mobile: remove nested scroll — single page scroll with sticky button */
#booking_root .booking-card {
  height: auto !important;
  overflow: visible !important;
  padding: 12px !important;
  box-sizing: border-box !important;
}

#booking_root .locations-list-scroll,
#booking_root .services-list-scroll,
#booking_root .addons-list-scroll,
#booking_root .staff-list-scroll,
#booking_root .date-list-scroll {
  overflow-y: visible !important;
  padding-right: 0 !important;
  padding-bottom: 80px !important;
  max-width: 100% !important;
}

/* Shrink calendar day squares on mobile to prevent overflow */
#booking_root .calendar-day-square {
  width: 34px !important;
  height: 34px !important;
}

@media screen and (min-width: 1024px) {
  #booking_root .mobile-only {
    display: none !important;
  }
  
  #booking_root .desktop-only {
    display: block !important;
  }

  #booking_root .desktop-only-flex {
    display: flex !important;
  }

  /* Desktop: restore fixed-height card with inner scroll */
  #booking_root .booking-card {
    height: 800px !important;
    overflow: hidden !important;
    padding: 24px !important;
  }

  #booking_root .locations-list-scroll,
  #booking_root .services-list-scroll,
  #booking_root .addons-list-scroll,
  #booking_root .staff-list-scroll,
  #booking_root .date-list-scroll {
    overflow-y: auto !important;
    padding-right: 12px !important;
    padding-bottom: 8px !important;
  }

  /* Desktop: restore full-size calendar day squares */
  #booking_root .calendar-day-square {
    width: 40px !important;
    height: 40px !important;
  }
}

/* Account page: two-column layout on desktop */
#booking_root .account-columns {
  display: flex !important;
  flex-direction: column !important;
  gap: 28px !important;
}

@media screen and (min-width: 1024px) {
  #booking_root .account-columns {
    flex-direction: row !important;
    gap: 48px !important;
    align-items: stretch !important;
  }

  #booking_root .account-columns > div:first-child {
    flex: 10 !important;
    min-width: 0 !important;
  }

  #booking_root .account-columns > .account-right-col {
    flex: 6 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }
}

/* Communications card: border only on desktop */
#booking_root .account-comms-card {
  padding: 0 !important;
}

@media screen and (min-width: 1024px) {
  #booking_root .account-comms-card {
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 10px !important;
    padding: 4px 16px !important;
  }
}

/* Full-width button below 768px, reverts to inline/natural width above */
@media screen and (max-width: 767px) {
  #booking_root .btn-full-mobile {
    width: 100% !important;
  }
}

/* Location grid - 1 column mobile, 2 columns desktop */
#booking_root .location-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}

@media screen and (min-width: 768px) {
  #booking_root .location-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media screen and (min-width: 1024px) {
  #booking_root .location-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

@media screen and (min-width: 1300px) {
  #booking_root .location-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Staff grid - 2 columns mobile, 3 medium, 4 large */
#booking_root .staff-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
}

@media screen and (min-width: 768px) {
  #booking_root .staff-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media screen and (min-width: 1200px) {
  #booking_root .staff-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* Services grid - 1 column mobile, 3 columns desktop */
#booking_root .services-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

@media screen and (min-width: 768px) {
  #booking_root .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media screen and (min-width: 1200px) {
  #booking_root .services-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Confirmation page: phone overlay visible only at wide screens */
#booking_root .confirm-phone {
  display: none !important;
}

@media screen and (min-width: 1400px) {
  #booking_root .confirm-phone {
    display: block !important;
  }
}

/* Confirmation page: download card centers content below 1400, row layout above */
#booking_root .confirm-download-content {
  text-align: center !important;
}

#booking_root .confirm-download-content .confirm-badges {
  justify-content: center !important;
}

@media screen and (min-width: 1400px) {
  #booking_root .confirm-download-content {
    text-align: left !important;
  }

  #booking_root .confirm-download-content .confirm-badges {
    justify-content: flex-start !important;
  }

  /* Keep card content clear of the phone mockup overlay */
  #booking_root .confirm-card-inner {
    padding-right: 200px !important;
  }
}

/* Width utilities */
#booking_root .hmx-w-full {
  width: 100% !important;
}

@media (min-width: 1024px) {
  #booking_root .lg\:hmx-flex {
    display: flex !important;
  }
  
  #booking_root .lg\:hmx-flex-row {
    flex-direction: row !important;
  }
}

/* Ensure the location list container expands properly */
#booking_root .hmx-flex-1 {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: 100% !important;
}

/* Text utilities */
#booking_root .hmx-text-left {
  text-align: left !important;
}

/* Block display */
#booking_root .hmx-block {
  display: block !important;
}

/* Remove default focus outlines on buttons - inputs handle their own focus styles */
#booking_root button,
#booking_root button:focus,
#booking_root button:focus-visible,
#booking_root button:active {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

#booking_root input:focus,
#booking_root input:focus-visible,
#booking_root textarea:focus,
#booking_root textarea:focus-visible,
#booking_root select:focus,
#booking_root select:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Ensure location cards don't get extra borders */
#booking_root button[aria-pressed] {
  border: none !important;
  outline: none !important;
}

/* Skeleton shimmer animation */
@keyframes hmx-shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}

#booking_root .skeleton-bone {
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 800px 100%;
  animation: hmx-shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}

/* Spinner animation (used by loading states) */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile app download popup slide-up animation */
@keyframes hmx-slide-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  #booking_root *,
  #booking_root *::before,
  #booking_root *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.hover\:hmx-bg-gray-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.hover\:hmx-bg-primary-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(23 23 41 / var(--tw-bg-opacity, 1));
}
.hover\:hmx-bg-red-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(185 28 28 / var(--tw-bg-opacity, 1));
}
.hover\:hmx-bg-secondary-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(254 246 240 / var(--tw-bg-opacity, 1));
}
.hover\:hmx-bg-secondary-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(212 99 29 / var(--tw-bg-opacity, 1));
}
.hover\:hmx-text-gray-600:hover {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.focus\:hmx-outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.focus\:hmx-ring-2:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus\:hmx-ring-gray-300:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1));
}
.focus\:hmx-ring-primary-300:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(165 165 185 / var(--tw-ring-opacity, 1));
}
.focus\:hmx-ring-red-300:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(252 165 165 / var(--tw-ring-opacity, 1));
}
.focus\:hmx-ring-secondary-300:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(247 176 122 / var(--tw-ring-opacity, 1));
}
.focus\:hmx-ring-offset-2:focus {
  --tw-ring-offset-width: 2px;
}
.disabled\:hmx-cursor-not-allowed:disabled {
  cursor: not-allowed;
}
.disabled\:hmx-opacity-50:disabled {
  opacity: 0.5;
}
@media (min-width: 640px) {
  .sm\:hmx-px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .lg\:hmx-flex {
    display: flex;
  }
  .lg\:hmx-flex-row {
    flex-direction: row;
  }
  .lg\:hmx-items-center {
    align-items: center;
  }
  .lg\:hmx-px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

