.ab-avail {
  --ab-avail-accent: #667eea;
  --ab-avail-heading: #ffffff;
  --ab-avail-muted: #93a1b8;
  --ab-avail-blocked-bg: #55637a;
  --ab-avail-blocked-fg: #f2f4f8;
  --ab-avail-open-bg: #2c3e50;
  --ab-avail-open-fg: #f2f4f8;
  --ab-avail-border: rgba(255, 255, 255, 0.12);
  --ab-avail-today-ring: #667eea;
  max-width: 360px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ab-avail-open-fg);
  background: var(--ab-avail-open-bg);
  border: 1px solid var(--ab-avail-border);
  border-radius: 22px;
  padding: 28px;
  box-sizing: border-box;
}

.ab-avail * {
  box-sizing: border-box;
}

.ab-avail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ab-avail-header button {
  background: rgba(102, 126, 234, 0.12);
  border: 1.5px solid var(--ab-avail-accent);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  padding: 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--ab-avail-accent);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ab-avail-header button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.ab-avail-header button:hover:not(:disabled) {
  background: var(--ab-avail-accent);
  color: #ffffff;
}

.ab-avail-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--ab-avail-heading);
}

.ab-avail-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.ab-avail-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ab-avail-muted);
  padding-bottom: 4px;
}

.ab-avail-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  background: var(--ab-avail-open-bg);
  color: var(--ab-avail-open-fg);
}

.ab-avail-day.is-empty {
  background: transparent;
}

.ab-avail-day.is-blocked {
  background: var(--ab-avail-blocked-bg);
  color: var(--ab-avail-blocked-fg);
  font-weight: 400;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.ab-avail-day.is-past {
  opacity: 0.4;
}

.ab-avail-day.is-today {
  box-shadow: inset 0 0 0 2px var(--ab-avail-today-ring);
  font-weight: 700;
}

.ab-avail-legend {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--ab-avail-muted);
}

.ab-avail-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ab-avail-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.ab-avail-legend-swatch.is-open {
  background: var(--ab-avail-open-bg);
  border: 1.5px solid var(--ab-avail-muted);
}

.ab-avail-legend-swatch.is-blocked {
  background: var(--ab-avail-blocked-bg);
  border: 1px solid var(--ab-avail-border);
}

.ab-avail-meta {
  margin-top: 12px;
  font-size: 11px;
  color: var(--ab-avail-muted);
}

.ab-avail-error {
  font-size: 13px;
  color: #ff8a80;
}
