.bz-tabs-wrapper {
  width: 100%;
  margin-top: 1.5rem;
}

.bz-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 2px solid #ddd;
  margin-bottom: 0;
  margin-left: 20px;
  margin-right: 20px;
  padding: 0;
  list-style: none;
}

.bz-tab-nav li {
  margin: 0;
}

.bz-tab-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #f1f1f1;
  border: 1px solid #ddd;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #444;
  transition:
    background 0.2s,
    color 0.2s;
  user-select: none;
}

.bz-tab-btn:hover {
  background: #e0e0e0;
  color: #111;
}

.bz-tab-btn.active {
  background: #fff;
  color: var(--dkTeal);
  border-color: #ddd;
  border-bottom-color: #fff;
  margin-bottom: -2px;
  position: relative;
  z-index: 1;
}

.bz-tab-panels {
  border: 1px solid #ddd;
  border-top: none;
  background: #fff;
  border-radius: 20px;
}

.bz-tab-panel {
  display: none;
  padding: 1.75rem 2rem;
}

.bz-tab-panel.active {
  display: block;
}

.bz-no-tickets {
  color: #888;
  font-size: 14px;
  padding: 1.5rem 0;
}

.bz-ticket-tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #ddd;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}
.bz-ticket-tab-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #f1f1f1;
  border: 1px solid #ddd;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
  transition:
    background 0.2s,
    color 0.2s;
}
.bz-ticket-tab-btn:hover {
  background: #e0e0e0;
  color: #111;
}
.bz-ticket-tab-btn.active {
  background: #fff;
  color: var(--dkTeal);
  border-bottom-color: #fff;
  margin-bottom: -2px;
  position: relative;
  z-index: 1;
}
.bz-ticket-tab-panel {
  display: none;
  padding: 1.25rem 0;
}
.bz-ticket-tab-panel.active {
  display: block;
}

@media (max-width: 768px) {
  .bz-tab-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    border-bottom: none; /* remove the underline since grid doesn't suit it */
    padding-bottom: 6px;
  }

  .bz-tab-nav li {
    margin: 0;
  }

  .bz-tab-btn {
    width: 100%;
    text-align: center;
    white-space: nowrap;
    padding: 10px 8px;
    font-size: 0.85rem;
    border: 1px solid #ddd;
    border-radius: 6px; /* full rounding since there's no connected underline */
    margin-bottom: 0;
  }

  .bz-tab-btn.active {
    background: var(--teal);
    color: #fff;
    border-color: #1a73e8;
    margin-bottom: 0; /* override the -2px desktop offset */
  }

  .bz-tab-panels {
    border: 1px solid #ddd;
    border-radius: 6px; /* round all corners since nav is detached */
    margin-top: 2px;
  }

  .bz-tab-panel {
    padding: 1.25rem;
  }
}
