.ielts-progress-toolbar {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px;
  overflow-x: auto;
  border: 1px solid #cfd8df;
  border-radius: 6px;
  background: #fff;
}

.ielts-progress-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-right: 1px solid #dbe2e8;
  border-radius: 0;
  color: #485463;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.ielts-progress-toolbar button:last-child {
  border-right: 0;
}

.ielts-progress-toolbar button[aria-pressed="true"] {
  color: #fff;
  background: #173a40;
}

.ielts-progress-toolbar b {
  min-width: 22px;
  padding: 2px 5px;
  border-radius: 4px;
  color: inherit;
  background: rgba(93, 105, 117, .12);
  text-align: center;
  font-size: 11px;
}

.ielts-progress-toolbar button[aria-pressed="true"] b {
  background: rgba(255, 255, 255, .18);
}

.ielts-continue-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid #b9d8d3;
  border-left: 5px solid #0f766e;
  border-radius: 6px;
  background: #f2faf8;
}

.ielts-continue-panel div {
  display: grid;
  min-width: 0;
}

.ielts-continue-panel span,
.ielts-continue-panel small {
  color: #586574;
  font-size: 12px;
  font-weight: 750;
}

.ielts-continue-panel strong {
  overflow: hidden;
  color: #14242a;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ielts-continue-panel a {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 5px;
  color: #fff;
  background: #0f766e;
  font-weight: 850;
  text-decoration: none;
}

.ielts-progress-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid #cfd8df;
  border-radius: 5px;
  color: #52606e;
  background: #f5f7f9;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.test-card > .ielts-progress-badge,
.mock-card > .ielts-progress-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.ielts-progress-badge.is-in-progress {
  border-color: #e5bd66;
  color: #77500b;
  background: #fff8e8;
}

.ielts-progress-badge.is-completed {
  border-color: #82c5a1;
  color: #11663d;
  background: #eefaf3;
}

.passage-card .ielts-progress-badge {
  margin-left: auto;
}

[data-progress-state="completed"] {
  border-color: rgba(20, 122, 69, .32) !important;
}

[data-progress-state="in_progress"] {
  border-color: rgba(183, 121, 12, .38) !important;
}

@media (max-width: 640px) {
  .ielts-progress-toolbar {
    width: 100%;
  }

  .ielts-progress-toolbar button {
    flex: 1 0 auto;
    justify-content: center;
  }

  .ielts-continue-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .ielts-continue-panel a {
    text-align: center;
  }
}
