/* =============================================
   STICKY HEADER
   ============================================= */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 1000;
}
header.wp-block-template-part .wp-block-navigation,
header.wp-block-template-part .wp-block-site-title {
  min-height: unset;
}

/* =============================================
   TOGGLE BUTTON — track & thumb
   ============================================= */
.yss-toggle {
  background: none;
  border: none;
  cursor: pointer;
  min-height: unset;
}
body.yss-light .yss-thumb {
  transform: translateX(15px);
  background: #00a863 !important;
}
body.yss-light .yss-track {
  background: rgba(0,168,99,0.25) !important;
}

/* =============================================
   LIGHT MODE
   ============================================= */
html.yss-light,
body.yss-light {
  background-color: #f7f8fb !important;
  color: #1a202c !important;
}
body.yss-light .wp-site-blocks,
body.yss-light main,
body.yss-light #page,
body.yss-light #content {
  background-color: #f7f8fb !important;
}

/* Footer */
body.yss-light footer,
body.yss-light .site-footer,
body.yss-light footer.wp-block-template-part,
body.yss-light footer .wp-block-group,
body.yss-light footer [class*="has-background"],
body.yss-light footer [class*="has-theme"] {
  background-color: #f7f8fb !important;
  color: #5a6478 !important;
}
body.yss-light footer a { color: #1a202c !important; }

/* Header */
body.yss-light header.wp-block-template-part,
body.yss-light header.wp-block-template-part .wp-block-group,
body.yss-light header.wp-block-template-part [class*="has-background"],
body.yss-light header.wp-block-template-part [class*="has-theme"] {
  background-color: #ffffff !important;
}
body.yss-light header.wp-block-template-part .wp-block-navigation a,
body.yss-light header.wp-block-template-part .wp-block-site-title a {
  color: #1a202c !important;
}

/* Cover section backgrounds */
body.yss-light .wp-block-cover[style*="background-color:#0b0f17"],
body.yss-light .wp-block-cover[style*="background-color: #0b0f17"] {
  background-color: #f7f8fb !important;
}
body.yss-light .wp-block-cover[style*="background-color:#0b0f17"] .wp-block-cover__background,
body.yss-light .wp-block-cover[style*="background-color: #0b0f17"] .wp-block-cover__background {
  background-color: #f7f8fb !important;
}
body.yss-light .wp-block-cover[style*="background-color:#111827"],
body.yss-light .wp-block-cover[style*="background-color: #111827"] {
  background-color: #edf0f5 !important;
}
body.yss-light .wp-block-cover[style*="background-color:#111827"] .wp-block-cover__background,
body.yss-light .wp-block-cover[style*="background-color: #111827"] .wp-block-cover__background {
  background-color: #edf0f5 !important;
}

/* Cards */
body.yss-light .wp-block-group[style*="background-color:#0d1219"] {
  background-color: #ffffff !important;
  border-color: rgba(0,0,0,0.1) !important;
}

/* Text */
body.yss-light .wp-block-heading[style*="color:#f7f8fb"],
body.yss-light .wp-block-paragraph[style*="color:#f7f8fb"] { color: #1a202c !important; }
body.yss-light .wp-block-paragraph[style*="color:#8892a4"],
body.yss-light .wp-block-list[style*="color:#8892a4"] { color: #5a6478 !important; }
body.yss-light .wp-block-paragraph[style*="color:#00c97a"] { color: #00a863 !important; }
body.yss-light a[style*="color:#00c97a"] { color: #00a863 !important; }

/* Separators */
body.yss-light .wp-block-separator {
  background-color: rgba(0,0,0,0.1) !important;
}

/* Jetpack contact form */
body.yss-light .contact-form input,
body.yss-light .contact-form textarea,
body.yss-light .contact-form select {
  background-color: #ffffff !important;
  color: #1a202c !important;
  border-color: rgba(0,0,0,0.2) !important;
}

/* =============================================
   BOOKING WIDGET LIGHT MODE
   ============================================= */
body.yss-light .yb { color: #1a202c; }
body.yss-light .yb-step {
  background: #ffffff !important;
  border-color: rgba(0,0,0,0.1) !important;
}
body.yss-light .yb-step h3 { color: #5a6478 !important; }
body.yss-light .yb-cal-nav button {
  border-color: rgba(0,0,0,0.15) !important;
  color: #1a202c !important;
  background: #f7f8fb !important;
}
body.yss-light .yb-cal-nav button:hover { background: #edf0f5 !important; }
body.yss-light .yb-cal-month { color: #1a202c !important; }
body.yss-light .yb-dl { color: #5a6478 !important; }
body.yss-light .yb-d { color: #1a202c !important; }
body.yss-light .yb-d:hover:not(.yb-dis):not(.yb-emp) { background: rgba(0,0,0,0.05) !important; }
body.yss-light .yb-d.yb-dis { color: rgba(0,0,0,0.25) !important; }
body.yss-light .yb-d.yb-today { border-color: rgba(0,0,0,0.2) !important; }
body.yss-light .yb-d.yb-sel { background: #00a863 !important; color: #fff !important; }
body.yss-light .yb-slot {
  color: #1a202c !important;
  border-color: rgba(0,0,0,0.12) !important;
}
body.yss-light .yb-slot:hover:not(.yb-sdis) { background: rgba(0,0,0,0.04) !important; }
body.yss-light .yb-slot.yb-ssel { background: #00a863 !important; color: #fff !important; }
body.yss-light .yb-svc {
  border-color: rgba(0,0,0,0.12) !important;
}
body.yss-light .yb-svc:hover { background: rgba(0,0,0,0.03) !important; }
body.yss-light .yb-svc.yb-svcsel { border-color: #00a863 !important; }
body.yss-light .yb-svcn { color: #1a202c !important; }
body.yss-light .yb-svcr { color: #5a6478 !important; }
body.yss-light .yb-tl { color: #1a202c !important; }
body.yss-light .yb-tr { background: rgba(0,0,0,0.15) !important; }
body.yss-light .yb-ai {
  background: #ffffff !important;
  color: #1a202c !important;
  border-color: rgba(0,0,0,0.15) !important;
}
body.yss-light .yb-ni {
  background: #ffffff !important;
  color: #1a202c !important;
  border-color: rgba(0,0,0,0.15) !important;
}
body.yss-light .yb-qb { background: rgba(0,0,0,0.04) !important; }
body.yss-light .yb-qr { color: #5a6478 !important; }
body.yss-light .yb-qt { color: #1a202c !important; border-color: rgba(0,0,0,0.1) !important; }
body.yss-light .yb-em { color: #5a6478 !important; }
body.yss-light .yb-oa {
  background: rgba(0,0,0,0.03) !important;
  border-color: rgba(0,0,0,0.1) !important;
}
body.yss-light .yb-oa p { color: #1a202c !important; }
body.yss-light .yb-note { color: #5a6478 !important; }
body.yss-light .yb-hrs label { color: #5a6478 !important; }

/* Schedule button (new widget trigger) */
body.yss-light .yss-schedule-btn {
  background: #00a863 !important;
  color: #fff !important;
}

/* =============================================
   DARK MODE — explicit baseline
   ============================================= */
body:not(.yss-light) header.wp-block-template-part,
body:not(.yss-light) header.wp-block-template-part .wp-block-group {
  background-color: #0b0f17 !important;
}