/* Shared colours for booking, owner controls and the sign-in dialog. */
:is(#ebk-booking-calendar, #ygdi-booking-login) {
  --booking-ink: #30231e;
  --booking-muted: #57483e;
  --booking-border: #967557;
  --booking-gold: linear-gradient(112deg, #fff1d9, #e7bd82);
  --booking-rose: linear-gradient(112deg, #5f3040, #713b4f);
  --booking-primary: linear-gradient(112deg, #291e1b, #613f30);
  --booking-focus: #713451;
}

#ebk-booking-calendar .ebn-scheduler {
  color: var(--booking-ink);
  border-color: #bc9d7e;
  background: linear-gradient(120deg, #fffdfa, #faf3ea);
}
#ebk-booking-calendar .ebn-toolbar {
  background: var(--booking-primary);
  border-radius: 12px;
  padding: 10px 14px;
}
#ebk-booking-calendar .ebn-step { color: #fff6eb; font-weight: 700; }
#ebk-booking-calendar .ebn-demo-badge {
  background: #f3d5ac;
  border-color: #e9bc86;
  color: #39291e;
}
#ebk-booking-calendar :is(.ebn-label, .ygdi-booking-check), #ygdi-booking-login label {
  color: var(--booking-ink);
  font-weight: 600;
}
#ebk-booking-calendar :is(.ebn-week span, .ebn-time-date, .ebn-selection, .ebn-legend, .ygdi-booking-muted, .ebn-time-hint, .ygdi-booking-deposit-note) {
  color: var(--booking-muted);
}
#ebk-booking-calendar :is(.ebn-field, .ebn-form-field textarea), #ygdi-booking-login input {
  border-color: var(--booking-border);
  color: var(--booking-ink);
  background-color: #fffdfa;
}
#ebk-booking-calendar select.ebn-field:enabled {
  background-color: #fff0dc;
  border-color: #88613e;
  accent-color: #713b4f;
}
#ebk-booking-calendar select.ebn-field option { background: #fffdfa; color: #30231e; }
#ebk-booking-calendar input::placeholder, #ygdi-booking-login input::placeholder { color: #695a50; opacity: 1; }
#ebk-booking-calendar input[type="checkbox"] { accent-color: #713b4f; }
#ebk-booking-calendar :is(.studio-map, .ebn-bottom, .ebn-time-panel, .ygdi-booking-rule) { border-color: var(--booking-border); }
#ebk-booking-calendar .studio-map { outline: 2px solid var(--booking-border); }
#ebk-booking-calendar :is(.ebn-result, #owner-day-status, #house-map [role="status"]):not(:empty) {
  padding: 8px 12px;
  border-inline-start: 3px solid #916130;
  border-radius: 5px;
  background: #fff0d9;
  color: #482e20;
}
#ebk-booking-calendar :is(.ygdi-booking-cart, .ebn-form-summary, .ygdi-booking-deposit-summary) {
  background: #f5e5d5;
  color: var(--booking-ink);
  border-color: #b99370;
}
#ebk-booking-calendar .ebn-scheduler a:not([class]) { color: #69324a; text-decoration: underline; }

/* Feed the site's existing animated fill, including its hover and focus states. */
#ebk-booking-calendar :is(.ebn-arrow, .ebn-day, .ebn-time, .ebn-back, .ygdi-booking-pill, .ygdi-booking-control > summary, .leaflet-bar a),
#ygdi-booking-login .ygdi-booking-pill {
  --yg-paint: var(--booking-gold);
  --yg-ink: #342419;
  --yg-sweep: #dcaa71;
  border-color: #88613e;
}
#ebk-booking-calendar .ebn-back { border-radius: 999px; padding: 6px 12px; }
#ebk-booking-calendar :is(.ebn-button, #check-trip, .map-confirm, #go-pay),
#ygdi-booking-login #ygdi-booking-auth-submit {
  --yg-paint: var(--booking-primary);
  --yg-ink: #fff7ee;
  --yg-sweep: #744630;
  font-weight: 700;
}
#ebk-booking-calendar :is(.ebn-day.selected, .ebn-time.selected, .ygdi-booking-control[open] > summary) {
  --yg-paint: var(--booking-rose);
  --yg-ink: #fff8f3;
  --yg-sweep: #653344;
  border-color: #552c3b;
}
#ebk-booking-calendar :is(.ebn-day.selected, .ebn-time.selected) {
  box-shadow: inset 0 0 0 2px #fff4e3, 0 0 0 1px #653344;
  font-weight: 800;
}
#ebk-booking-calendar .ebn-day.today { outline: 1px dashed #674530; outline-offset: 1px; }
#ebk-booking-calendar #owner-days .booked:not(.selected) {
  --yg-paint: linear-gradient(110deg, #f1e8e6, #e6ced3);
  --yg-ink: #59303a;
  --yg-sweep: #ddbac3;
  border-style: dashed;
}
#ebk-booking-calendar :is(button, .ebn-field):disabled, #ygdi-booking-login :is(button,input):disabled {
  opacity: 1;
  background: #e8e3dd;
  color: #544c45;
  border: 1px dashed #927e70;
  cursor: not-allowed;
}
#ebk-booking-calendar :is(.ebn-day,.ebn-time):disabled { text-decoration: line-through; }
#ebk-booking-calendar .ebn-legend i { background: #e7bd82; box-shadow: 0 0 0 1px #88613e; }
#ebk-booking-calendar .ebn-legend .unavailable { background: #e8e3dd; box-shadow: 0 0 0 1px #716258; }
#ebk-booking-calendar .ebn-legend .selected-key { background: #713b4f; box-shadow: 0 0 0 1px #552c3b; }

#ebk-booking-calendar .ygdi-booking-control { background: #fffcf7; border-color: #b89c81; }
#ebk-booking-calendar .ygdi-booking-control > summary {
  border-radius: 8px;
  padding: 7px 10px;
  --yg-paint: linear-gradient(112deg, #f6e5ce, #ead1b4);
}
#ebk-booking-calendar .ygdi-booking-control[open] { border-color: #87596a; }
#ebk-booking-calendar :is(#ygdi-booking-owner-controls,#ygdi-booking-editor-wrap) :is(p,label,dt,dd,h3,h4) { color: var(--booking-ink); }
#ebk-booking-calendar .studio-state {
  display: inline-block;
  border-radius: 999px;
  padding: 1px 8px;
  background: #ffedc5;
  color: #543607;
  font-weight: 700;
}
#ebk-booking-calendar .studio-state:is([data-state="confirmed"],[data-state="completed"],[data-state="reviewed"]) {
  background: #e0efe2; color: #234c32;
}
#ebk-booking-calendar .studio-state:is([data-state="cancelled"],[data-state="expired"],[data-state="no_show"],[data-state="forfeited"],[data-state="closed"]) {
  background: #f4dce2; color: #632b3c;
}
#ebk-booking-calendar .studio-caution {
  --yg-paint: linear-gradient(112deg,#f6e4e7,#eecbd1);
  --yg-ink: #632b3c;
  --yg-sweep: #e5b6bc;
  border-color: #975f6c;
}
:is(#ebk-booking-calendar, #ygdi-booking-login) :is(a, button, summary, select, input, textarea):focus-visible {
  outline: 3px solid var(--booking-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px white;
}
