.wp-queue-badge {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px;
  border: 1px solid #e7eaf0;
  border-radius: 14px;
  background: #ffffff;
  text-align: center;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.wp-queue-badge__title {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 16px;
  font-size: clamp(1rem, 1rem + 0.3vw, 1.15em);
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #24324a;
  line-height: 1.2;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
}

.wp-queue-badge__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  max-width: 100%;
  padding: 12px 20px;
  border-radius: 999px;
  background: #9ca3af;
  color: #ffffff;
  font-size: clamp(0.9rem, 0.92rem + 0.18vw, 1em);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .wp-queue-badge {
    padding: 14px 12px;
  }

  .wp-queue-badge__title {
    margin-bottom: 10px;
    font-size: var(--wp-queue-badge-title-font-size-mobile, 13px);
    letter-spacing: 0;
    line-height: 1.15;
  }

  .wp-queue-badge__badge {
    min-width: 0;
    width: 100%;
    padding: 8px 10px;
    font-size: 0.82rem;
    line-height: 1.15;
  }
}

.wp-queue-opening-times {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 24px;
  border: 1px solid #e7eaf0;
  border-radius: 14px;
  background: #ffffff;
  font-family: inherit;
  color: #24324a;
}

.wp-queue-opening-times__heading {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.wp-queue-opening-times__note {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .wp-queue-opening-times {
    padding: 16px 18px;
  }

  .wp-queue-opening-times__heading {
    font-size: 17px;
  }

  .wp-queue-opening-times__note {
    font-size: 15px;
  }
}

.wp-queue-staffing-planner {
  margin: 0;
  padding: 18px;
  border: 1px solid #d6deea;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  color: #1f2d44;
}

.wp-queue-staffing-planner__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.wp-queue-staffing-planner__title {
  margin: 0;
  font-size: 1.1rem;
}

.wp-queue-staffing-planner__actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.wp-queue-staffing-planner__actions label,
.wp-queue-staffing-planner__grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
}

.wp-queue-staffing-planner__status {
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #e7f0ff;
  color: #103b79;
  font-size: 0.9rem;
}

.wp-queue-staffing-planner__status.is-error {
  background: #ffeaed;
  color: #7b1d27;
}

.wp-queue-staffing-planner__panel {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #d6deea;
  border-radius: 10px;
  background: #ffffff;
}

.wp-queue-staffing-planner__panel h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.wp-queue-staffing-planner__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.wp-queue-staffing-planner__grid input,
.wp-queue-staffing-planner__grid select,
.wp-queue-staffing-planner__actions input {
  border: 1px solid #b9c7de;
  border-radius: 6px;
  padding: 7px 8px;
  min-height: 36px;
}

.wp-queue-staffing-planner__table-wrap {
  overflow-x: auto;
}

.wp-queue-staffing-planner__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.wp-queue-staffing-planner__table th,
.wp-queue-staffing-planner__table td {
  border: 1px solid #d6deea;
  padding: 8px;
  text-align: left;
  vertical-align: middle;
}

.wp-queue-staffing-planner__table th {
  background: #f3f7ff;
}

.wp-queue-staffing-planner__summary {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 600;
}

.wp-queue-staffing-planner__table td:last-child {
  white-space: nowrap;
}

.wp-queue-staffing-planner__table td:last-child .button {
  margin-right: 6px;
}

.wp-queue-staffing-planner__table td:last-child .button:last-child {
  margin-right: 0;
}

@media (max-width: 900px) {
  .wp-queue-staffing-planner__grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 560px) {
  .wp-queue-staffing-planner {
    padding: 12px;
  }

  .wp-queue-staffing-planner__grid {
    grid-template-columns: 1fr;
  }
}

.wp-queue-surface-message {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #d6deea;
  border-radius: 10px;
  background: #f7f9fe;
  color: #24324a;
  font-size: 0.95rem;
}

.wp-queue-adherence,
.wp-queue-forecast {
  margin: 0;
  padding: 14px;
  border: 1px solid #d6deea;
  border-radius: 12px;
  background: #ffffff;
  color: #1f2d44;
}

.wp-queue-adherence__header,
.wp-queue-forecast__header {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.wp-queue-adherence__header h3,
.wp-queue-forecast__header h3 {
  margin: 0 8px 0 0;
  font-size: 1.05rem;
}

.wp-queue-adherence__status,
.wp-queue-forecast__status {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #e7f0ff;
  color: #103b79;
}

.wp-queue-adherence__status.is-error,
.wp-queue-forecast__status.is-error {
  background: #ffeaed;
  color: #7b1d27;
}

.wp-queue-adherence__summary,
.wp-queue-forecast__governance {
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.92rem;
}

.wp-queue-adherence__table-wrap,
.wp-queue-forecast__table-wrap {
  overflow-x: auto;
}

.wp-queue-adherence__table,
.wp-queue-forecast__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.wp-queue-adherence__table th,
.wp-queue-adherence__table td,
.wp-queue-forecast__table th,
.wp-queue-forecast__table td {
  border: 1px solid #d6deea;
  padding: 8px;
  text-align: left;
}

.wp-queue-adherence__table th,
.wp-queue-forecast__table th {
  background: #f3f7ff;
}
