.bofos-card,
.bofos-card * {
  box-sizing: border-box;
}

.bofos-card {
  --bofos-green: #087443;
  --bofos-green-bg: #ecfdf3;
  --bofos-green-border: #75e0a7;
  --bofos-red: #b42318;
  --bofos-red-bg: #fff1f0;
  --bofos-red-border: #fda29b;
  --bofos-amber: #b54708;
  --bofos-amber-bg: #fff7ed;
  --bofos-amber-border: #fdba74;
  --bofos-grey: #475467;
  --bofos-grey-bg: #f8fafc;
  --bofos-grey-border: #d0d5dd;
  --bofos-text: #1f2937;
  --bofos-muted: #667085;
  --bofos-border: #e5e7eb;
  --bofos-surface: #ffffff;
  --bofos-blue: #155eef;
  margin: 1.25rem 0 1.8rem !important;
  background: var(--bofos-surface) !important;
  border: 1px solid var(--bofos-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.10) !important;
  overflow: hidden !important;
  color: var(--bofos-text) !important;
  font-family: inherit !important;
}

.bofos-status-strip {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 14px 18px !important;
  border-bottom: 1px solid transparent !important;
  font-weight: 800 !important;
}

.bofos-status-strip--open {
  background: var(--bofos-green-bg) !important;
  color: var(--bofos-green) !important;
  border-color: var(--bofos-green-border) !important;
}

.bofos-status-strip--closed {
  background: var(--bofos-red-bg) !important;
  color: var(--bofos-red) !important;
  border-color: var(--bofos-red-border) !important;
}

.bofos-status-strip--unknown {
  background: var(--bofos-grey-bg) !important;
  color: var(--bofos-grey) !important;
  border-color: var(--bofos-grey-border) !important;
}

.bofos-status-strip--special {
  background: var(--bofos-amber-bg) !important;
  color: var(--bofos-amber) !important;
  border-color: var(--bofos-amber-border) !important;
}

.bofos-status-dot {
  width: 14px !important;
  height: 14px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.65) !important;
  flex: 0 0 auto !important;
}

.bofos-status-text {
  font-size: clamp(1.08rem, 2.2vw, 1.38rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.01em !important;
}

.bofos-status-context {
  margin-left: auto !important;
  color: inherit !important;
  opacity: 0.78 !important;
  font-size: 0.88rem !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

.bofos-main {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 300px) !important;
  gap: 16px !important;
  padding: 18px !important;
  align-items: stretch !important;
}

.bofos-label,
.bofos-mini,
.bofos-today,
.bofos-source p,
.bofos-report-note {
  margin: 0 !important;
}

.bofos-label {
  color: var(--bofos-muted) !important;
  font-weight: 800 !important;
  font-size: 0.86rem !important;
  line-height: 1.3 !important;
  text-transform: none !important;
}

.bofos-title {
  margin: 4px 0 10px !important;
  padding: 0 !important;
  color: var(--bofos-text) !important;
  font-size: clamp(1.28rem, 2.7vw, 1.85rem) !important;
  line-height: 1.18 !important;
  font-weight: 800 !important;
  text-align: left !important;
}

.bofos-title::after {
  display: none !important;
  content: none !important;
}

.bofos-today {
  color: var(--bofos-text) !important;
  font-size: 1rem !important;
  line-height: 1.45 !important;
}

.bofos-mini {
  margin-top: 6px !important;
  color: var(--bofos-muted) !important;
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
}

.bofos-side-note {
  display: grid !important;
  gap: 4px !important;
  align-content: center !important;
  padding: 14px !important;
  background: #f8fbff !important;
  border: 1px solid #dbe7ff !important;
  border-radius: 14px !important;
}

.bofos-side-note strong {
  display: block !important;
  color: var(--bofos-text) !important;
  font-size: 0.95rem !important;
  line-height: 1.35 !important;
}

.bofos-side-note span {
  display: block !important;
  color: var(--bofos-muted) !important;
  font-size: 0.9rem !important;
  line-height: 1.45 !important;
}

.bofos-week {
  display: grid !important;
  gap: 8px !important;
  padding: 0 18px 18px !important;
}

.bofos-day-row {
  display: grid !important;
  grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 11px 13px !important;
  border: 1px solid var(--bofos-border) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
}

.bofos-day-row.is-today {
  border-color: #9db7ff !important;
  background: #f5f8ff !important;
  box-shadow: inset 4px 0 0 var(--bofos-blue) !important;
}

.bofos-day-name {
  font-weight: 800 !important;
  color: var(--bofos-text) !important;
  line-height: 1.3 !important;
}

.bofos-day-hours {
  color: var(--bofos-text) !important;
  line-height: 1.45 !important;
}

.bofos-source {
  display: grid !important;
  gap: 6px !important;
  margin: 0 18px 18px !important;
  padding: 13px 14px !important;
  border: 1px solid #e6eefc !important;
  border-radius: 12px !important;
  background: #fbfdff !important;
  color: var(--bofos-muted) !important;
  font-size: 0.93rem !important;
  line-height: 1.5 !important;
}

.bofos-source a {
  color: var(--bofos-blue) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

.bofos-report {
  margin: 0 18px 18px !important;
  border: 1px solid var(--bofos-border) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

.bofos-report summary {
  cursor: pointer !important;
  padding: 13px 14px !important;
  color: var(--bofos-blue) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

.bofos-report-form {
  display: grid !important;
  gap: 12px !important;
  padding: 0 14px 14px !important;
}

.bofos-report-note {
  color: var(--bofos-muted) !important;
  font-size: 0.92rem !important;
  line-height: 1.5 !important;
}

.bofos-report-form label {
  display: grid !important;
  gap: 6px !important;
  color: var(--bofos-text) !important;
  font-weight: 750 !important;
}

.bofos-report-form input,
.bofos-report-form textarea {
  width: 100% !important;
  border: 1px solid #d0d5dd !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  font: inherit !important;
  background: #ffffff !important;
  color: var(--bofos-text) !important;
}

.bofos-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: start !important;
  min-height: 42px !important;
  padding: 0.76rem 1.15rem !important;
  border-radius: 10px !important;
  border: 0 !important;
  background: var(--bofos-blue) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.bofos-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.bofos-card--compact .bofos-main {
  grid-template-columns: 1fr !important;
}

.bofos-card--compact .bofos-side-note {
  display: none !important;
}

@media (max-width: 760px) {
  .bofos-card {
    border-radius: 14px !important;
  }

  .bofos-status-strip {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    padding: 13px 14px !important;
  }

  .bofos-status-context {
    width: 100% !important;
    margin-left: 24px !important;
  }

  .bofos-main {
    grid-template-columns: 1fr !important;
    padding: 14px !important;
  }

  .bofos-week {
    padding: 0 14px 14px !important;
  }

  .bofos-day-row {
    grid-template-columns: 1fr !important;
    gap: 3px !important;
    padding: 10px 12px !important;
  }

  .bofos-source,
  .bofos-report {
    margin-left: 14px !important;
    margin-right: 14px !important;
    margin-bottom: 14px !important;
  }
}

/* v1.2.0 UK bank holiday refinements */
.bofos-day-row.is-bank-holiday {
  border-color: #fed7aa !important;
  background: #fff7ed !important;
  box-shadow: inset 4px 0 0 #b54708 !important;
}

.bofos-day-row.is-bank-holiday .bofos-day-hours {
  color: #7c2d12 !important;
  font-weight: 700 !important;
}

.bofos-bank-mini {
  color: #7c2d12 !important;
  background: #fff7ed !important;
  border: 1px solid #fed7aa !important;
  border-radius: 10px !important;
  padding: 8px 10px !important;
  margin-top: 10px !important;
}
