/* ============================================================
   Nu Babysitter — Availability Calendar Widget
   File: assets/nu-babysitter-availability-calendar.css
   ============================================================ */

/* ── WIDGET SHELL ── */
.nubs-av-widget {
  border: 1.5px solid #F0E4DC;
  border-radius: 16px;
  overflow: hidden;
  background: #FFFFFF;
}

/* ── TOP BAR ── */
.nubs-av-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1.5px solid #F0E4DC;
  background: #FFFAF6;
  flex-wrap: wrap;
}
.nubs-av-hint {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #A8998C;
}
.nubs-av-clear-btn {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #A8998C;
  background: transparent;
  border: 1.5px solid #F0E4DC;
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  transition: all 0.18s;
}
.nubs-av-clear-btn:hover {
  border-color: #F07272;
  color: #D85A30;
  background: #FDE8E0;
}

/* ── WEEK GRID ── */
.nubs-av-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border-bottom: 1.5px solid #F0E4DC;
}

/* Day column */
.nubs-av-day-col {
  display: flex;
  flex-direction: column;
  border-right: 1.5px solid #F0E4DC;
}
.nubs-av-day-col:last-child { border-right: none; }

/* Day header — click to toggle day */
.nubs-av-day-header {
  padding: 10px 4px 11px;
  text-align: center;
  cursor: pointer;
  background: #FFFAF6;
  border-bottom: 1.5px solid #F0E4DC;
  transition: background 0.18s;
  user-select: none;
}
.nubs-av-day-header:hover { background: #FDE8E0; }
.nubs-av-day-header.day-on { background: #FDE8E0; }

.nubs-av-day-name {
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: #A8998C;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nubs-av-day-num {
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: #6B5B4E;
  line-height: 1.25;
  margin-top: 2px;
}
.nubs-av-day-header.day-on .nubs-av-day-name,
.nubs-av-day-header.day-on .nubs-av-day-num {
  color: #D85A30;
}

/* Slot list */
.nubs-av-slots {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.nubs-av-day-col.day-inactive .nubs-av-slots {
  opacity: 0.38;
  pointer-events: none;
}

.nubs-av-slot {
  padding: 9px 4px;
  text-align: center;
  cursor: pointer;
  border-bottom: 1.5px solid #F0E4DC;
  transition: background 0.15s;
  user-select: none;
}
.nubs-av-slot:last-child { border-bottom: none; }
.nubs-av-slot:hover { background: #F5F0EC; }

.nubs-av-slot-name {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #6B5B4E;
  display: block;
}
.nubs-av-slot-time {
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #A8998C;
  display: block;
  margin-top: 1px;
}
.nubs-av-slot.slot-on {
  background: #D8F5F2;
}
.nubs-av-slot.slot-on .nubs-av-slot-name { color: #0F6E56; }
.nubs-av-slot.slot-on .nubs-av-slot-time { color: #2EA89E; }
.nubs-av-slot.slot-on:hover { background: #9FE1CB; }

/* ── CUSTOM SLOT BUILDER ── */
.nubs-av-custom-wrap {
  padding: 16px 18px;
  border-bottom: 1.5px solid #F0E4DC;
  background: #FFFAF6;
}
.nubs-av-custom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nubs-av-custom-label {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #6B5B4E;
  white-space: nowrap;
}
.nubs-av-custom-days {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.nubs-av-cd-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid #F0E4DC;
  background: white;
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: #A8998C;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
}
.nubs-av-cd-btn:hover { border-color: #F07272; color: #D85A30; }
.nubs-av-cd-btn.cd-on {
  background: #FDE8E0;
  border-color: #F07272;
  color: #D85A30;
}
.nubs-av-time-inputs {
  display: flex;
  align-items: center;
  gap: 7px;
}
.nubs-av-time-input {
  padding: 7px 10px;
  border: 1.5px solid #F0E4DC;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #2C2018;
  background: white;
  outline: none;
  transition: border-color 0.18s;
  width: 118px;
}
.nubs-av-time-input:focus { border-color: #F07272; }
.nubs-av-time-input.input-error { border-color: #E24B4A; }
.nubs-av-time-sep {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  color: #A8998C;
  font-weight: 700;
}
.nubs-av-add-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FDE8E0;
  color: #D85A30;
  border: none;
  padding: 9px 16px;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s;
}
.nubs-av-add-btn:hover { background: #F5C4B3; }

/* Custom slot chips */
.nubs-av-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.nubs-av-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #D8F5F2;
  border: 1.5px solid #4DBFB5;
  border-radius: 20px;
  padding: 5px 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #0F6E56;
}
.nubs-av-chip-remove {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #9FE1CB;
  color: #085041;
  border: none;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  line-height: 1;
  transition: background 0.15s;
  padding: 0;
}
.nubs-av-chip-remove:hover { background: #4DBFB5; color: white; }

/* ── SUMMARY ── */
.nubs-av-summary {
  padding: 16px 18px;
  background: white;
}
.nubs-av-summary-title {
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 900;
  color: #A8998C;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.nubs-av-summary-empty {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  color: #A8998C;
  font-style: italic;
  font-weight: 600;
}
.nubs-av-summary-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.nubs-av-summary-row:last-child { margin-bottom: 0; }
.nubs-av-summary-day {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: #2C2018;
  min-width: 36px;
}
.nubs-av-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.nubs-av-summary-pill {
  background: #F5F0EC;
  border: 1.5px solid #F0E4DC;
  border-radius: 20px;
  padding: 3px 11px;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #6B5B4E;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .nubs-av-grid { grid-template-columns: repeat(4, 1fr); }
  .nubs-av-grid .nubs-av-day-col:nth-child(5),
  .nubs-av-grid .nubs-av-day-col:nth-child(6),
  .nubs-av-grid .nubs-av-day-col:nth-child(7) {
    grid-column: span 1;
  }
  .nubs-av-custom-row { flex-direction: column; align-items: flex-start; }
  .nubs-av-time-inputs { width: 100%; }
  .nubs-av-time-input { flex: 1; width: auto; }
}
