/* Subtelna złota ramka na obu panelach */
.keb-booking .ke-panel {
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-color: color-mix(in srgb, var(--ke-gold) 35%, transparent);
  border-radius: 22px;
}

/*
 * Calendar day tiles
 * - enforce a consistent 2-line label (weekday + day-of-month)
 * - improve mobile ergonomics (no ultra-narrow tiles)
 */
.keb-booking .ke-cal__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(44px, 1fr));
  gap: 8px;
}

/* Calendar header (month + arrows) */
.keb-booking .ke-cal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.keb-booking .ke-cal__month {
  flex: 1 1 auto;
  text-align: center;
  font-weight: 700;
  text-transform: capitalize;
}

.keb-booking .ke-cal__nav {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.keb-booking .ke-cal__nav:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--ke-gold) 70%, #e5e7eb);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ke-gold) 20%, transparent);
}

.keb-booking .ke-cal__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}


.keb-booking .ke-cal__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border-radius: 14px;
  line-height: 1.1;
  min-height: 58px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.keb-booking .ke-cal__day-dow {
  font-size: 12px;
  opacity: 0.85;
}

.keb-booking .ke-cal__day-dom {
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

/*
 * Mobile: 2-row picker (zamiast 1-rzędowego przewijania)
 * - nadal można przewijać w bok, ale mieści się więcej dni na ekranie
 */
 @media (max-width: 640px) {
   .keb-booking .ke-cal__days {
     display: grid;
     grid-template-columns: repeat(4, minmax(0, 1fr));
     gap: 8px;
      overflow-x: hidden;
      overflow-y: auto;
      max-height: 286px; /* ~4 rzędy: 4*(58px) + 3*(8px) + zapas na border */
      padding-right: 2px; /* miejsce na scrollbar */
   }
}

/* Form controls: make <select> visually consistent with inputs (non-system look) */
.keb-booking .ke-input,
.keb-booking .ke-select,
.keb-booking .ke-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  padding: 12px 14px;
  font: inherit;
  line-height: 1.2;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.keb-booking .ke-input:focus,
.keb-booking .ke-select:focus,
.keb-booking .ke-textarea:focus {
  border-color: color-mix(in srgb, var(--ke-gold) 70%, #e5e7eb);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ke-gold) 20%, transparent);
}

/* Custom arrow for selects */
.keb-booking .ke-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(0,0,0,0.55) 50%),
    linear-gradient(135deg, rgba(0,0,0,0.55) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Calendar: days without availability */
.ke-cal__day.is-disabled,
.ke-cal__day:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #6b7280;
}
.ke-cal__day.is-disabled:hover,
.ke-cal__day:disabled:hover {
  filter: none;
}

/* Calendar: unified hover gold border for days and hours */
.keb-booking .ke-cal__day,
.keb-booking .ke-cal__slot {
  border: 1px solid #e5e7eb; /* widoczna ramka jak w godzinach */
  background: #fff;          /* spójne tło w stanie normalnym */
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

/* Hover złota ramka – DNI (TYLKO nieaktywne) */
.keb-booking .ke-cal__day:hover:not(.is-active):not(:disabled):not(.is-disabled) {
  border-color: color-mix(in srgb, var(--ke-gold) 80%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ke-gold) 35%, transparent);
}

/* Hover złota ramka – GODZINY (TYLKO nieaktywne) */
.keb-booking .ke-cal__slot:hover:not(.is-active):not(:disabled) {
  border-color: color-mix(in srgb, var(--ke-gold) 80%, transparent) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ke-gold) 35%, transparent) !important;
}

/* Public action results (confirm/cancel/decline redirects) */
.keb-action-result {
  border-radius: 12px;
  padding: 16px 18px;
  margin: 18px 0;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
}
.keb-action-result__title {
  font-weight: 700;
  margin-bottom: 6px;
}
.keb-action-result__msg {
  line-height: 1.4;
}
.keb-action-result--success {
  border-color: rgba(16, 185, 129, 0.35);
}
.keb-action-result--warning {
  border-color: rgba(245, 158, 11, 0.35);
}
.keb-action-result--error {
  border-color: rgba(239, 68, 68, 0.35);
}