/* Doodles and Doods rustic booking theme + staff portal helpers.
   Injected by the gateway; upstream Easy!Appointments files stay unmodified. */

@import url("https://fonts.googleapis.com/css2?family=Pinyon+Script&family=Cormorant+Garamond:ital,wght@0,600;0,700;1,600&family=Montserrat:wght@400;500;600;700;800&display=swap");

:root {
  --cream: #F7F1E8;
  --paper: #FFFCF8;
  --sand: #F3E6DC;
  --linen: #EFE4D4;
  --ink: #2C1D18;
  --ink-soft: #6B5348;
  --rose: #8C3D4A;
  --rose-bright: #A84555;
  --rose-deep: #5C2E35;
  --wood: #6B4A2E;
  --sage-soft: #F6E6E3;
  --line: rgba(140, 61, 74, .16);
  --font-script: "Pinyon Script", Georgia, "Times New Roman", cursive;
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --r-pill: 999px;
  --r-md: 20px;
  --bs-primary: var(--rose);
  --bs-link-color: var(--rose);
}

/* ---- Staff portal (Tailscale) ---- */
#header-logo img { max-height: 32px; }
.tl-logo-pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: #fff; border-radius: 9px;
}
.tl-logo-pill img { width: 22px; height: 22px; object-fit: contain; }
.tl-brand-title { letter-spacing: .04em; font-size: .95rem; }
.tl-login-logo { width: 96px; height: auto; margin-bottom: 1rem; filter: none; }
.tl-pet-search {
  display: flex; align-items: center; gap: .4rem;
  margin-left: auto; margin-right: .75rem; max-width: 16rem;
}
.tl-pet-search .form-control { min-width: 9rem; }
@media (max-width: 767.98px) {
  .tl-pet-search { margin: .5rem 1rem; max-width: none; }
}

/* ---- Always hide vendor credits on customer-facing booking/confirmation ---- */
.footer-powered-by,
#frame-footer a[href*="easyappointments"],
.powered-by,
img[alt="Easy!Appointments"],
img[alt="Easy!Appointments Logo"],
.tl-booking-credit { display: none !important; }

#company-logo[src*="assets/img/logo.png"] { display: none !important; }

/* ---- Standalone booking (not embedded): rustic salon look ---- */
#book-appointment-wizard,
body.tl-booking,
body.tl-customer {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
}

body.tl-customer { background: var(--cream); }

body.tl-customer h1,
body.tl-customer h2,
body.tl-customer h3,
body.tl-customer h4,
#book-appointment-wizard h1,
#book-appointment-wizard h2,
#book-appointment-wizard h3,
#book-appointment-wizard h4,
#book-appointment-wizard .book-step strong {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink);
}

/* Script accent: salon name / decorative kickers */
#header #company-name,
#book-appointment-wizard #header h1,
#book-appointment-wizard #header .company-name,
body.tl-customer .script-kicker {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--rose);
  letter-spacing: 0;
}

#header.bg-primary,
#book-appointment-wizard #header {
  background: var(--cream) !important;
  color: var(--ink) !important;
  border-bottom: 1px solid var(--line);
}

#header.bg-primary h1,
#header.bg-primary h2,
#header .company-name,
#header #company-name,
#book-appointment-wizard #header {
  color: var(--rose) !important;
}

#book-appointment-wizard .btn-primary,
body.tl-customer .btn-primary {
  background: var(--rose) !important;
  border: 2px solid var(--rose) !important;
  color: #fff !important;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  padding: 15px 24px;
  border-radius: var(--r-pill) !important;
  box-shadow: 0 10px 22px rgba(140, 61, 74, .28);
}
#book-appointment-wizard .btn-primary:hover,
body.tl-customer .btn-primary:hover {
  background: var(--rose-bright) !important;
  border-color: var(--rose-bright) !important;
}

#book-appointment-wizard .btn-outline-secondary,
#book-appointment-wizard .btn-outline-primary,
body.tl-customer .btn-outline-secondary,
body.tl-customer .btn-outline-primary {
  border-radius: var(--r-pill) !important;
  font-weight: 600;
  border-color: rgba(140, 61, 74, .35) !important;
  color: var(--rose) !important;
  background: transparent;
}

#book-appointment-wizard .form-control,
#book-appointment-wizard .form-select,
body.tl-customer .form-control,
body.tl-customer .form-select {
  border-radius: 12px;
  border-color: var(--line);
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
}
#book-appointment-wizard .form-control:focus,
#book-appointment-wizard .form-select:focus,
body.tl-customer .form-control:focus {
  border-color: var(--rose-bright);
  box-shadow: 0 0 0 3px rgba(168, 69, 85, .20);
}

#book-appointment-wizard .book-step {
  background: var(--sand) !important;
  color: var(--ink) !important;
  border-radius: var(--r-md);
}
#book-appointment-wizard .book-step.active,
#book-appointment-wizard .book-step.current,
#book-appointment-wizard .book-step.selected {
  background: var(--rose) !important;
  color: #fff !important;
}

/* Confirmation page: replace Bootstrap "success" green with rose */
body.tl-customer .text-success,
html.tl-embed .text-success { color: var(--rose) !important; }
body.tl-customer .bg-success,
html.tl-embed .bg-success {
  background-color: var(--sage-soft) !important;
}
body.tl-customer .bg-success.bg-opacity-10,
html.tl-embed .bg-success { background-color: #F6E6E3 !important; }

#frame-footer {
  background: transparent;
  border-top-color: var(--line) !important;
  color: var(--ink-soft);
}

a, body.tl-customer a { color: var(--rose); }
body.tl-customer .text-muted { color: var(--ink-soft) !important; }
body.tl-customer .text-primary { color: var(--rose) !important; }

/* Panels / cards on the wizard and confirmation */
#book-appointment-wizard .card,
#book-appointment-wizard .book-frame,
body.tl-customer .card {
  background: var(--sand);
  border-color: var(--line);
}

/* ---- Embedded in the Doodles site: drop our chrome, no inner scroll ---- */
html.tl-embed,
html.tl-embed body {
  background: transparent !important;
  overflow: hidden !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ink);
  font-family: var(--font-body);
}
html.tl-embed #header,
html.tl-embed #frame-footer,
html.tl-embed #company-logo,
html.tl-embed .navbar,
html.tl-embed .footer-options,
html.tl-embed .tl-booking-credit {
  display: none !important;
}
html.tl-embed #book-appointment-wizard,
html.tl-embed .container,
html.tl-embed .container-fluid {
  max-width: none;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding-left: 0;
  padding-right: 0;
}
html.tl-embed body.tl-customer,
html.tl-embed #book-appointment-wizard {
  background: transparent !important;
}
