/* =========================================================
   OpenCalendarKit – cleaned stylesheet
   ========================================================= */

:root {
  --okit-color-success: #2ecc71;
  --okit-color-danger: #e74c3c;
  --okit-callout-text-on-strong: #ffffff;

  --okit-color-success-soft: #e9f9ee;
  --okit-color-success-border: #bfead0;
  --okit-color-danger-soft: #fdeaea;
  --okit-color-danger-border: #f2c6c6;
  --okit-color-event: #1f6fe5;
  --okit-color-event-soft: #e2f0ff;
  --okit-color-event-border: #b7d3f7;
  --okit-color-event-text: #111111;
  --okit-color-event-strong-text: #ffffff;
  --okit-color-event-sky-soft: #e0f7ff;
  --okit-color-event-sky-border: #a9dff0;
  --okit-color-event-sky-text: #111111;
  --okit-color-event-indigo-soft: #e8eaff;
  --okit-color-event-indigo-border: #bfc6f3;
  --okit-color-event-indigo-text: #111111;
  --okit-color-event-violet-soft: #f1e7ff;
  --okit-color-event-violet-border: #d1b6f2;
  --okit-color-event-violet-text: #111111;
  --okit-color-event-pink-soft: #ffe8f1;
  --okit-color-event-pink-border: #f2bad0;
  --okit-color-event-pink-text: #111111;
  --okit-color-event-amber-soft: #fff1d6;
  --okit-color-event-amber-border: #eac06c;
  --okit-color-event-amber-text: #111111;
  --okit-color-event-orange-soft: #fff0e2;
  --okit-color-event-orange-border: #f2c18f;
  --okit-color-event-orange-text: #111111;
  --okit-color-event-yellow-soft: #fff7cc;
  --okit-color-event-yellow-border: #e7d36a;
  --okit-color-event-yellow-text: #111111;

  /* Future theme hooks for calendar states and event callouts. */
  --okit-day-open-bg: var(--okit-color-success-soft);
  --okit-day-open-border: var(--okit-color-success-border);
  --okit-day-closed-bg: var(--okit-color-danger-soft);
  --okit-day-closed-border: var(--okit-color-danger-border);
  --okit-day-event-bg: var(--okit-color-event-soft);
  --okit-day-event-border: var(--okit-color-event-border);
  --okit-day-event-text: var(--okit-color-event-text);
  --okit-event-callout-bg: var(--okit-color-event-soft);
  --okit-event-callout-border: var(--okit-color-event-border);
  --okit-event-callout-text: var(--okit-color-event-text);

  --okit-notice-bg: #f5f5f3;
  --okit-notice-border: #e2e0db;
  --okit-notice-accent: #cfc9bf;
  --okit-notice-text: #2f2f2f;
}

/* =========================================================
   Shared
   ========================================================= */

.bkit-ui-callout,
.bkit-ui-callout *,
.bkit-opening-hours,
.bkit-opening-hours * {
  box-sizing: border-box;
}

.bkit-ui-callout {
  display: block;
  margin: 0;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
  font-family: inherit;
  letter-spacing: normal;
}

.bkit-ui-callout,
.bkit-ui-callout p,
.bkit-ui-callout span,
.bkit-ui-callout strong,
.bkit-ui-callout em,
.bkit-ui-callout a {
  font-family: inherit;
  color: inherit;
}

/* =========================================================
   Status Today
   ========================================================= */

.bkit-status-today {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  margin: 0 0 1.2rem 0;
  text-align: center;
}

.bkit-status-today .bkit-ui-callout {
  display: inline-flex;
  width: auto;
  max-width: 100%;
}

.bkit-ui-callout__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  min-height: 0;
}

.bkit-status-today__indicator {
  display: none;
}

.bkit-status-today__text {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--okit-callout-text-on-strong);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.bkit-ui-callout--status.bkit-ui-callout--open,
.bkit-ui-callout--status.bkit-ui-callout--upcoming {
  background: var(--okit-color-success);
  color: var(--okit-callout-text-on-strong);
}

.bkit-ui-callout--status.bkit-ui-callout--closed,
.bkit-ui-callout--status.bkit-ui-callout--ended {
  background: var(--okit-color-danger);
  color: var(--okit-callout-text-on-strong);
}

/* =========================================================
   Event Notice
   ========================================================= */

.bkit-event-notice {
  display: block;
  width: 100%;
  margin: 0.9rem 0 1.2rem 0;
}

.bkit-ui-callout--notice {
  display: block;
  width: 100%;
  background: var(--okit-notice-bg);
  color: var(--okit-notice-text);
  border: 1px solid var(--okit-notice-border);
  border-left: 4px solid var(--okit-notice-accent);
  border-radius: 10px;
  box-shadow: none;
}

.bkit-ui-callout--notice-green {
  background: var(--okit-color-success-soft);
  border-color: var(--okit-color-success-border);
  border-left-color: var(--okit-color-success);
}

.bkit-ui-callout--notice-red {
  background: var(--okit-color-danger-soft);
  border-color: var(--okit-color-danger-border);
  border-left-color: var(--okit-color-danger);
}

.bkit-ui-callout--notice-blue {
  background: var(--okit-color-event-soft);
  border-color: var(--okit-color-event-border);
  border-left-color: var(--okit-color-event);
}

.bkit-ui-callout--notice-sky {
  background: var(--okit-color-event-sky-soft);
  border-color: var(--okit-color-event-sky-border);
  border-left-color: var(--okit-color-event-sky-border);
}

.bkit-ui-callout--notice-indigo {
  background: var(--okit-color-event-indigo-soft);
  border-color: var(--okit-color-event-indigo-border);
  border-left-color: var(--okit-color-event-indigo-border);
}

.bkit-ui-callout--notice-violet {
  background: var(--okit-color-event-violet-soft);
  border-color: var(--okit-color-event-violet-border);
  border-left-color: var(--okit-color-event-violet-border);
}

.bkit-ui-callout--notice-pink {
  background: var(--okit-color-event-pink-soft);
  border-color: var(--okit-color-event-pink-border);
  border-left-color: var(--okit-color-event-pink-border);
}

.bkit-ui-callout--notice-amber {
  background: var(--okit-color-event-amber-soft);
  border-color: var(--okit-color-event-amber-border);
  border-left-color: var(--okit-color-event-amber-border);
}

.bkit-ui-callout--notice-yellow {
  background: var(--okit-color-event-yellow-soft);
  border-color: var(--okit-color-event-yellow-border);
  border-left-color: var(--okit-color-event-yellow-border);
}

.bkit-ui-callout--notice-orange {
  background: var(--okit-color-event-orange-soft);
  border-color: var(--okit-color-event-orange-border);
  border-left-color: var(--okit-color-event-orange-border);
}

.bkit-event-notice__inner {
  display: block;
  padding: 14px 16px;
  min-height: 0;
}

.bkit-event-notice__body {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  color: var(--okit-notice-text);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.35;
}

.bkit-event-notice__body p,
.bkit-event-notice__body div,
.bkit-event-notice__body span {
  margin: 0;
  padding: 0;
  color: inherit;
  line-height: inherit;
}

.bkit-event-notice__body p + p {
  margin-top: 0.45rem;
}

.bkit-event-notice__body > :first-child {
  margin-top: 0;
}

.bkit-event-notice__body > :last-child {
  margin-bottom: 0;
}

.bkit-event-notice__body a {
  color: inherit;
  text-decoration: underline;
}

/* =========================================================
   Calendar
   ========================================================= */

.bkit-calendar {
  --okit-calendar-gap: 6px;
  --okit-calendar-cell-min-height: 40px;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.bkit-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.bkit-cal-head .bkit-cal-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.bkit-cal-head .bkit-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #ffffff;
  color: #666;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.bkit-cal-head .bkit-nav:hover {
  background: #f7f7f7;
  border-color: #bfbfbf;
  color: #222;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .10);
}

.bkit-cal-head .bkit-nav:focus {
  outline: 2px solid rgba(0, 0, 0, .18);
  outline-offset: 2px;
}

.bkit-cal-head .bkit-nav.disabled {
  opacity: .45;
  pointer-events: none;
  box-shadow: none;
}

.bkit-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--okit-calendar-gap);
  min-width: 0;
}

.bkit-cell {
  text-align: center;
  padding: 8px 4px;
  border-radius: 10px;
  min-width: 0;
  min-height: var(--okit-calendar-cell-min-height);
  border: none;
  background: transparent;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
}

.bkit-wd {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  background: #fafafa;
}

.bkit-empty {
  background: transparent;
  border: none;
}

.bkit-cell.day {
  position: relative;
  background: #f8f8f8;
  cursor: default;
}

.bkit-cell.day .num {
  display: block;
  position: relative;
  z-index: 2;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
}

.bkit-cell.day.open {
  background: var(--okit-day-open-bg);
  outline: 1px solid var(--okit-day-open-border);
}

.bkit-cell.day.open.clickable {
  cursor: pointer;
}

.bkit-cell.day.closed {
  background: var(--okit-day-closed-bg);
  outline: 1px solid var(--okit-day-closed-border);
  cursor: pointer;
}

.bkit-cell.day.disabled {
  opacity: .6;
  cursor: not-allowed;
}

.bkit-cell.day.past {
  background: #f2f2f2;
  color: #9aa0a6;
  cursor: not-allowed;
}

.bkit-cell.day.past .num {
  opacity: .8;
}

.bkit-legend {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  justify-content: center;
}

.bkit-legend .legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bkit-legend .legend::before {
  content: "";
  width: 14px;
  height: 14px;
  display: inline-block;
  border-radius: 4px;
}

.bkit-legend .legend.open::before {
  background: var(--okit-day-open-bg);
  border: 1px solid var(--okit-day-open-border);
}

.bkit-legend .legend.closed::before {
  background: var(--okit-day-closed-bg);
  border: 1px solid var(--okit-day-closed-border);
}

.bkit-calendar .bkit-cal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: var(--okit-calendar-gap);
  table-layout: fixed;
}

.bkit-calendar .bkit-cal-table th,
.bkit-calendar .bkit-cal-table td {
  padding: 0;
  border: 0;
}

.bkit-calendar .bkit-cal-table .bkit-wd {
  background: #fafafa;
  font-weight: 700;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.bkit-calendar .bkit-cal-table .bkit-empty {
  background: transparent;
}

.bkit-calendar .bkit-cal-table button.bkit-cell {
  width: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--okit-calendar-cell-min-height);
  padding: 8px 4px;
  border-radius: 10px;
  border: 0;
  background: #f8f8f8;
  cursor: default;
}

.bkit-calendar .bkit-cal-table button.bkit-cell .num {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  color: #111;
  opacity: 1;
}

.bkit-calendar .bkit-cal-table button.bkit-cell.day.open {
  background: var(--okit-day-open-bg);
  outline: 1px solid var(--okit-day-open-border);
}

.bkit-calendar .bkit-cal-table button.bkit-cell.day.closed {
  background: var(--okit-day-closed-bg);
  outline: 1px solid var(--okit-day-closed-border);
}

.bkit-cell.day.has-event,
.bkit-calendar .bkit-cal-table button.bkit-cell.day.has-event {
  background: var(--okit-day-event-bg);
  outline: 1px solid var(--okit-day-event-border);
}

.bkit-cell.day.has-event.event-color-orange,
.bkit-calendar .bkit-cal-table button.bkit-cell.day.has-event.event-color-orange {
  background: var(--okit-color-event-orange-soft);
  outline: 1px solid var(--okit-color-event-orange-border);
}

.bkit-cell.day.has-event.event-color-yellow,
.bkit-calendar .bkit-cal-table button.bkit-cell.day.has-event.event-color-yellow {
  background: var(--okit-color-event-yellow-soft);
  outline: 1px solid var(--okit-color-event-yellow-border);
}

.bkit-cell.day.has-event.event-color-sky,
.bkit-calendar .bkit-cal-table button.bkit-cell.day.has-event.event-color-sky {
  background: var(--okit-color-event-sky-soft);
  outline: 1px solid var(--okit-color-event-sky-border);
}

.bkit-cell.day.has-event.event-color-indigo,
.bkit-calendar .bkit-cal-table button.bkit-cell.day.has-event.event-color-indigo {
  background: var(--okit-color-event-indigo-soft);
  outline: 1px solid var(--okit-color-event-indigo-border);
}

.bkit-cell.day.has-event.event-color-violet,
.bkit-calendar .bkit-cal-table button.bkit-cell.day.has-event.event-color-violet {
  background: var(--okit-color-event-violet-soft);
  outline: 1px solid var(--okit-color-event-violet-border);
}

.bkit-cell.day.has-event.event-color-pink,
.bkit-calendar .bkit-cal-table button.bkit-cell.day.has-event.event-color-pink {
  background: var(--okit-color-event-pink-soft);
  outline: 1px solid var(--okit-color-event-pink-border);
}

.bkit-cell.day.has-event.event-color-amber,
.bkit-calendar .bkit-cal-table button.bkit-cell.day.has-event.event-color-amber {
  background: var(--okit-color-event-amber-soft);
  outline: 1px solid var(--okit-color-event-amber-border);
}

.bkit-cell.day.has-event .num,
.bkit-calendar .bkit-cal-table button.bkit-cell.day.has-event .num {
  color: var(--okit-day-event-text);
}

.bkit-calendar .bkit-cal-table button.bkit-cell.day.has-event.clickable {
  cursor: pointer;
}

.bkit-calendar .bkit-cal-table button.bkit-cell.day.open.clickable {
  cursor: pointer;
}

.bkit-calendar .bkit-cal-table button.bkit-cell.day.disabled {
  opacity: .6;
  cursor: not-allowed;
}

.bkit-calendar.is-loading {
  opacity: .6;
  pointer-events: none;
}

.bkit-calendar .bkit-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.bkit-calendar .bkit-grid > * {
  margin: 0;
}

.bkit-calendar .bkit-grid button.bkit-cell {
  width: auto;
  max-width: none;
}

.bkit-calendar .bkit-grid button.bkit-cell:focus {
  outline: 2px solid rgba(0, 0, 0, .15);
  outline-offset: 2px;
}

.bkit-calendar-event-callout {
  margin: 0 0 0.95rem 0;
}

.bkit-calendar-event-callout .bkit-ui-callout {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  background: var(--okit-event-callout-bg);
  color: var(--okit-event-callout-text);
  border: 1px solid var(--okit-event-callout-border);
}

.bkit-calendar-event-callout--orange .bkit-ui-callout {
  background: var(--okit-color-event-orange-soft);
  border-color: var(--okit-color-event-orange-border);
  color: var(--okit-color-event-orange-text);
}

.bkit-calendar-event-callout--yellow .bkit-ui-callout {
  background: var(--okit-color-event-yellow-soft);
  border-color: var(--okit-color-event-yellow-border);
  color: var(--okit-color-event-yellow-text);
}

.bkit-calendar-event-callout--sky .bkit-ui-callout {
  background: var(--okit-color-event-sky-soft);
  border-color: var(--okit-color-event-sky-border);
  color: var(--okit-color-event-sky-text);
}

.bkit-calendar-event-callout--indigo .bkit-ui-callout {
  background: var(--okit-color-event-indigo-soft);
  border-color: var(--okit-color-event-indigo-border);
  color: var(--okit-color-event-indigo-text);
}

.bkit-calendar-event-callout--violet .bkit-ui-callout {
  background: var(--okit-color-event-violet-soft);
  border-color: var(--okit-color-event-violet-border);
  color: var(--okit-color-event-violet-text);
}

.bkit-calendar-event-callout--pink .bkit-ui-callout {
  background: var(--okit-color-event-pink-soft);
  border-color: var(--okit-color-event-pink-border);
  color: var(--okit-color-event-pink-text);
}

.bkit-calendar-event-callout--amber .bkit-ui-callout {
  background: var(--okit-color-event-amber-soft);
  border-color: var(--okit-color-event-amber-border);
  color: var(--okit-color-event-amber-text);
}

.bkit-calendar-event__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 18px;
}

.bkit-calendar-event__text {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--okit-event-callout-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

.bkit-calendar-event__meta,
.bkit-event-meta {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--okit-event-callout-text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.bkit-calendar-event-callout--orange .bkit-calendar-event__text,
.bkit-calendar-event-callout--orange .bkit-calendar-event__meta {
  color: var(--okit-color-event-orange-text);
}

.bkit-calendar-event-callout--yellow .bkit-calendar-event__text,
.bkit-calendar-event-callout--yellow .bkit-calendar-event__meta {
  color: var(--okit-color-event-yellow-text);
}

.bkit-calendar-event-callout--sky .bkit-calendar-event__text,
.bkit-calendar-event-callout--sky .bkit-calendar-event__meta {
  color: var(--okit-color-event-sky-text);
}

.bkit-calendar-event-callout--indigo .bkit-calendar-event__text,
.bkit-calendar-event-callout--indigo .bkit-calendar-event__meta {
  color: var(--okit-color-event-indigo-text);
}

.bkit-calendar-event-callout--violet .bkit-calendar-event__text,
.bkit-calendar-event-callout--violet .bkit-calendar-event__meta {
  color: var(--okit-color-event-violet-text);
}

.bkit-calendar-event-callout--pink .bkit-calendar-event__text,
.bkit-calendar-event-callout--pink .bkit-calendar-event__meta {
  color: var(--okit-color-event-pink-text);
}

.bkit-calendar-event-callout--amber .bkit-calendar-event__text,
.bkit-calendar-event-callout--amber .bkit-calendar-event__meta {
  color: var(--okit-color-event-amber-text);
}

.bkit-event-title,
.bkit-closed-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.bkit-event-date,
.bkit-closed-date {
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.bkit-event-text,
.bkit-closed-reason {
  line-height: 1.4;
}

.bkit-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0;
  padding: 0.7rem 1rem;
  border: 1px solid #c7d8f1;
  border-radius: 999px;
  background: #f4f9ff;
  color: #1b4d84;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.bkit-admin-link:hover,
.bkit-admin-link:focus {
  background: #e9f3ff;
  color: #143a63;
  text-decoration: none;
}

.bkit-admin-link--denied {
  background: transparent;
  border-style: dashed;
  color: #606a73;
}

.openkit-calendar-events {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #dcdcde;
  max-width: 980px;
}

.openkit-calendar-events__header,
.openkit-calendar-events__row {
  display: grid;
  grid-template-columns: 150px minmax(340px, 2.7fr) 110px 110px 110px 40px;
  gap: 12px;
  align-items: center;
}

.openkit-calendar-events__header {
  font-weight: 600;
  margin: 0 0 8px;
  color: #1d2327;
}

.openkit-calendar-events__filters {
  margin: 0 0 12px;
}

.openkit-calendar-events__filters label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.openkit-calendar-events__rows {
  display: grid;
  gap: 8px;
}

.openkit-calendar-events__template {
  display: none !important;
}

.openkit-calendar-events__row input[type="date"] {
  width: 100%;
}

.openkit-calendar-events__text {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.openkit-calendar-events__text-cell {
  display: grid;
  grid-template-columns: minmax(170px, 0.95fr) minmax(0, 1.6fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.openkit-calendar-events__preset,
.openkit-calendar-events__color {
  width: 100%;
}

.openkit-calendar-events__time {
  width: 100%;
}

.openkit-calendar-events__remove {
  font-size: 22px;
  text-align: center;
  text-decoration: none;
}

.openkit-calendar-events__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .openkit-calendar-events__header {
    display: none;
  }

  .openkit-calendar-events__row {
    grid-template-columns: 1fr;
  }

  .openkit-calendar-events__text-cell {
    grid-template-columns: 1fr;
  }

  .openkit-calendar-events__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   Opening Hours
   ========================================================= */

.bkit-opening-hours {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.bkit-opening-hours h3 {
  width: 100%;
  margin: 0 0 0.55rem 0;
  text-align: left;
}

.bkit-opening-hours .bkit-oh-table {
  width: auto;
  margin: 0;
  border-collapse: collapse;
}

.bkit-opening-hours .bkit-oh-table th,
.bkit-opening-hours .bkit-oh-table td {
  padding: 4px 10px 4px 0;
  vertical-align: top;
}

.bkit-opening-hours .bkit-oh-table th.day {
  font-weight: 700;
  white-space: nowrap;
  text-align: left;
}

.bkit-opening-hours .bkit-oh-table td.time.is-closed {
  opacity: .75;
  font-style: italic;
}

.bkit-opening-hours .bkit-oh-table {
  margin-bottom: 0;
}

.bkit-opening-hours .bkit-opening-hours-note {
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin: 10px 0 0 0;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.2;
  color: #555;
  text-align: left;
  vertical-align: top;
}

.bkit-opening-hours .bkit-opening-hours-note p,
.bkit-opening-hours .bkit-opening-hours-note div,
.bkit-opening-hours .bkit-opening-hours-note span {
  margin: 0;
  padding: 0;
  line-height: inherit;
}

.bk-day-idx {
  margin-left: 6px;
  color: #777;
  font-weight: 600;
}

.bkit-wd .bk-wd-idx {
  color: #777;
  font-size: .75em;
}

.bkit-opening-hours ul.bk-oh-grid {
  margin: .5rem 0 0;
}

/* =========================================================
   Admin
   ========================================================= */

.bk-table-hours th,
.bk-table-hours td {
  padding: 6px 10px;
}

.bk-table-hours input[type="text"],
.bk-table-hours input[type="date"],
.bk-table-hours input[type="tel"],
.bk-table-hours input[type="email"],
.bk-table-hours select {
  height: 36px;
  padding: 6px 8px;
  line-height: 24px;
}

/* =========================================================
   Modal
   ========================================================= */

.bkit-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.bkit-modal-box {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 95%;
  max-width: 520px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

.bkit-modal-box--closed {
  padding-top: 20px;
}

.bkit-modal-box--event-orange {
  border-top: 4px solid var(--okit-color-event-orange-border);
}

.bkit-modal-box--event-yellow {
  border-top: 4px solid var(--okit-color-event-yellow-border);
}

.bkit-modal-box--event-blue {
  border-top: 4px solid var(--okit-color-event-border);
}

.bkit-modal-box--event-sky {
  border-top: 4px solid var(--okit-color-event-sky-border);
}

.bkit-modal-box--event-indigo {
  border-top: 4px solid var(--okit-color-event-indigo-border);
}

.bkit-modal-box--event-violet {
  border-top: 4px solid var(--okit-color-event-violet-border);
}

.bkit-modal-box--event-pink {
  border-top: 4px solid var(--okit-color-event-pink-border);
}

.bkit-modal-box--event-amber {
  border-top: 4px solid var(--okit-color-event-amber-border);
}

.openkit-bulk-closed-days {
  margin: 1rem 0 1.25rem;
  max-width: 980px;
}

.openkit-bulk-closed-days__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.openkit-bulk-closed-days__panel {
  display: none;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  background: #fff;
}

.openkit-bulk-closed-days.is-open .openkit-bulk-closed-days__panel {
  display: block;
}

.openkit-bulk-closed-days__fields {
  display: grid;
  grid-template-columns: 150px 150px minmax(220px, 1fr);
  gap: 12px;
  align-items: end;
}

.openkit-bulk-closed-days__field {
  display: grid;
  gap: 6px;
}

.openkit-bulk-closed-days__field label {
  font-weight: 600;
}

.openkit-bulk-closed-days__field input {
  width: 100%;
}

.openkit-bulk-closed-days__actions {
  margin-top: 12px;
}

.openkit-text-blocks {
  max-width: 760px;
}

.openkit-text-blocks__rows {
  display: grid;
  gap: 8px;
}

.openkit-text-block-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.openkit-text-block-row input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 640px) {
  .openkit-bulk-closed-days__fields {
    grid-template-columns: 1fr;
  }

  .openkit-text-block-row {
    align-items: stretch;
    flex-direction: column;
  }
}

.bkit-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.bkit-closed-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bkit-closed-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
}

.bkit-closed-date,
.bkit-closed-reason {
  margin: 0;
}

.bkit-modal-actions {
  margin-top: 8px;
}

.bkit-feedback {
  margin-top: 10px;
  font-weight: 600;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 768px) {
  .bkit-status-today {
    justify-content: center;
    text-align: center;
  }

  .bkit-status-today .bkit-ui-callout {
    display: inline-flex;
    width: auto;
    max-width: calc(100% - 32px);
  }

  .bkit-ui-callout__inner {
    padding: 10px 16px;
    min-height: 0;
  }

  .bkit-status-today__text {
    font-size: 0.95rem;
    line-height: 1.15;
  }

  .bkit-event-notice__inner {
    padding: 12px 14px;
  }

  .bkit-event-notice__body {
    font-size: 1rem;
    line-height: 1.3;
  }

  .bkit-calendar-event-callout {
    margin: 0 0 0.85rem 0;
  }

  .bkit-calendar-event-callout .bkit-ui-callout {
    max-width: calc(100% - 32px);
  }

  .bkit-calendar-event__inner {
    padding: 4px 16px;
  }

  .bkit-calendar-event__text,
  .bkit-calendar-event__meta,
  .bkit-event-meta {
    font-size: 0.96rem;
    line-height: 1.35;
  }

  .bkit-opening-hours {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .bkit-opening-hours .bkit-opening-hours-note {
    margin: 8px 0 0 0;
    padding: 0;
    font-size: 0.82rem;
    line-height: 1.15;
  }
}
