/* =========================================================
   KKF Partner Bookings UI
   Version: 1.4.0
   ========================================================= */

.kkf-hbp-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}

.kkf-hbp-head>div>span,
.kkf-hbp-calendar-head>div>span {
  display:block;
  color:var(--d-sun,#f0522b);
  font-size:9px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.kkf-hbp-head h3 {
  margin:2px 0 4px !important;
  font-size:25px !important;
}

.kkf-hbp-head p {
  margin:0;
  color:var(--d-soft,#5f6f6a);
  font-size:12px;
}

.kkf-hbp-live {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 11px;
  border-radius:999px;
  background:#e8f6ee;
  color:#17663f;
  font-size:9px;
  font-weight:800;
}

.kkf-hbp-live::before {
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:#2ea36a;
}

/* Calendar */
.kkf-hbp-calendar {
  margin-bottom:16px;
  padding:14px;
  border:1px solid var(--d-line,#ecdfd3);
  border-radius:16px;
  background:#fff;
}

.kkf-hbp-calendar-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.kkf-hbp-calendar-month {
  display:block;
  margin-top:2px;
  font-size:16px;
  line-height:1.2;
}

.kkf-hbp-calendar-nav {
  display:flex;
  align-items:center;
  gap:5px;
}

.kkf-hbp-calendar-nav button {
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-width:34px;
  min-height:34px;
  padding:6px 9px !important;
  border:1px solid var(--d-line,#ecdfd3) !important;
  border-radius:999px !important;
  background:#fff !important;
  color:var(--d-ink,#17211f) !important;
  box-shadow:none !important;
  font:inherit;
  font-size:10px;
  font-weight:700;
  cursor:pointer;
}

.kkf-hbp-calendar-nav button:hover {
  border-color:var(--d-sun,#f0522b) !important;
  color:var(--d-sun,#f0522b) !important;
}

.kkf-hbp-calendar-nav svg {
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.kkf-hbp-calendar-grid {
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:4px;
}

.kkf-hbp-cal-dow {
  padding:4px 0;
  color:#85908b;
  font-size:8px;
  font-weight:800;
  text-align:center;
  text-transform:uppercase;
}

.kkf-hbp-cal-blank {
  min-height:38px;
}

.kkf-hbp-cal-day {
  position:relative;
  display:flex !important;
  align-items:center;
  justify-content:center;
  min-width:0;
  min-height:42px;
  padding:4px !important;
  border:1px solid transparent !important;
  border-radius:11px !important;
  background:#faf9f7 !important;
  color:#56615d !important;
  box-shadow:none !important;
  font:inherit;
  font-size:10px;
  font-weight:700;
  cursor:pointer;
}

.kkf-hbp-cal-day.has-booking {
  border-color:#f4c2ac !important;
  background:#fff4ed !important;
  color:#c94820 !important;
}

.kkf-hbp-cal-day.is-selected {
  border-color:#f0522b !important;
  background:#f0522b !important;
  color:#fff !important;
}

.kkf-hbp-cal-day b {
  position:absolute;
  top:3px;
  right:3px;
  display:grid;
  place-items:center;
  min-width:14px;
  height:14px;
  padding:0 3px;
  border-radius:999px;
  background:#f0522b;
  color:#fff;
  font-size:7px;
  line-height:1;
}

.kkf-hbp-cal-day.is-selected b {
  background:#fff;
  color:#f0522b;
}

.kkf-hbp-clear-date {
  margin-top:10px;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#f0522b !important;
  font:inherit;
  font-size:10px;
  font-weight:700;
  cursor:pointer;
}

/* tools */
.kkf-hbp-tools {
  display:grid;
  grid-template-columns:minmax(0,1fr) 180px auto;
  gap:8px;
  align-items:end;
  margin-bottom:14px;
}

.kkf-hbp-search>span,
.kkf-hbp-filter>span {
  display:block;
  margin-bottom:5px;
  color:var(--d-soft,#5f6f6a);
  font-size:8px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.kkf-hbp-search input,
.kkf-hbp-filter select {
  width:100%;
  min-height:42px;
  padding:8px 11px;
  border:1px solid var(--d-line,#ecdfd3);
  border-radius:11px;
  background:#fff;
  color:var(--d-ink,#17211f);
  font:inherit;
  font-size:11px;
}

.kkf-hbp-search input:focus,
.kkf-hbp-filter select:focus {
  outline:none;
  border-color:#f0522b;
  box-shadow:0 0 0 3px rgba(240,82,43,.10);
}

.kkf-hbp-view-toggle {
  display:flex;
  gap:4px;
  padding:3px;
  border:1px solid var(--d-line,#ecdfd3);
  border-radius:11px;
  background:#faf8f5;
}

.kkf-hbp-view-toggle button {
  display:flex !important;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:34px;
  padding:6px 8px !important;
  border:0 !important;
  border-radius:8px !important;
  background:transparent !important;
  color:#69736f !important;
  box-shadow:none !important;
  font:inherit;
  font-size:9px;
  font-weight:700;
  cursor:pointer;
}

.kkf-hbp-view-toggle button.is-active {
  background:#fff !important;
  color:#f0522b !important;
  box-shadow:0 2px 8px rgba(0,0,0,.06) !important;
}

.kkf-hbp-view-toggle svg {
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
}

/* cards */
.kkf-hbp-card-list {
  display:flex;
  flex-direction:column;
  gap:12px;
}

.kkf-hbp-card {
  padding:16px;
  border:1px solid #ece9e5;
  border-radius:17px;
  background:#fafbf9;
  box-shadow:none;
}

.kkf-hbp-meta-line {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:10px 0 11px;
}

.kkf-hbp-booked-date {
  color:#7c8782;
  font-size:9px;
  font-weight:600;
}

.kkf-hbp-details {
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}

.kkf-hbp-details>span {
  min-height:72px;
}

.kkf-hbp-settlement {
  background:#fff7f1 !important;
  border:1px solid #f3d7c8 !important;
}

.kkf-hbp-settlement strong,
.kkf-hbp-settlement b,
.kkf-hbp-settlement em {
  display:block;
}

.kkf-hbp-settlement b {
  margin-top:2px;
  color:#6b5146;
  font-size:11px;
}

.kkf-hbp-settlement em {
  margin-top:4px;
  color:#958178;
  font-size:7.5px;
  font-style:normal;
  line-height:1.3;
}

.kkf-hbp-cost-note {
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  margin-top:10px;
  padding:9px 10px;
  border-top:1px solid #ece9e5;
  color:#6e7974;
  font-size:8.5px;
}

.kkf-hbp-cost-note strong {
  color:#37413d;
}

/* table */
.kkf-hbp-table-wrap {
  width:100%;
  overflow-x:auto;
  border:1px solid #e9e5e1;
  border-radius:14px;
  background:#fff;
}

.kkf-hbp-table {
  width:100%;
  min-width:1180px;
  border-collapse:collapse;
  font-size:10px;
}

.kkf-hbp-table th {
  padding:10px 9px;
  border-bottom:1px solid #ddd9d4;
  background:#f8f6f3;
  color:#5f6965;
  font-size:8px;
  font-weight:800;
  letter-spacing:.04em;
  text-align:left;
  text-transform:uppercase;
  white-space:nowrap;
}

.kkf-hbp-table td {
  padding:11px 9px;
  border-bottom:1px solid #eeeae6;
  vertical-align:top;
  color:#39423f;
}

.kkf-hbp-table tbody tr:last-child td {
  border-bottom:0;
}

.kkf-hbp-table td strong,
.kkf-hbp-table td b,
.kkf-hbp-table td small {
  display:block;
}

.kkf-hbp-table td strong {
  color:#1e2522;
  font-size:10px;
}

.kkf-hbp-table td b {
  margin-top:3px;
  color:#5f6965;
  font-size:9px;
}

.kkf-hbp-table td small {
  margin-top:3px;
  color:#89928e;
  font-size:8px;
}

.kkf-hbp-table .kkf-hb-status {
  white-space:nowrap;
}

.kkf-hbp-table-settlement {
  min-width:150px;
  background:#fffaf6;
}

.kkf-hbp-empty {
  padding:32px 18px;
  border:1px dashed #e4ddd7;
  border-radius:14px;
  background:#faf8f5;
  text-align:center;
}

.kkf-hbp-empty strong {
  display:block;
  margin-bottom:4px;
  font-size:14px;
}

.kkf-hbp-empty p {
  margin:0;
  color:#75807b;
  font-size:10px;
}

/* mobile */
@media (max-width:620px) {
  .kkf-hbp-head h3 {
    font-size:21px !important;
  }

  .kkf-hbp-head p {
    font-size:10px;
  }

  .kkf-hbp-calendar {
    padding:12px 10px;
  }

  .kkf-hbp-calendar-head {
    align-items:flex-start;
  }

  .kkf-hbp-calendar-month {
    font-size:14px;
  }

  .kkf-hbp-calendar-nav button {
    min-width:31px;
    min-height:31px;
    padding:5px 7px !important;
    font-size:8px;
  }

  .kkf-hbp-cal-day {
    min-height:39px;
    border-radius:9px !important;
    font-size:9px;
  }

  .kkf-hbp-tools {
    grid-template-columns:1fr 1fr;
  }

  .kkf-hbp-view-toggle {
    grid-column:1 / -1;
    width:max-content;
  }

  .kkf-hbp-card {
    padding:14px 12px;
  }

  .kkf-hbp-meta-line {
    align-items:flex-start;
    flex-direction:column;
  }

  .kkf-hbp-details {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  .kkf-hbp-details>span {
    min-height:68px;
  }

  .kkf-hbp-settlement {
    grid-column:1 / -1;
  }

  .kkf-hbp-cost-note {
    display:grid;
    grid-template-columns:1fr;
  }
}
