/* Certificate selector (pc-cert-selector) — Präsenzkurs-Varianten. */

pc-cert-selector {
  display: block;
  text-align: left;
}

.rd-certsel-loading {
  padding: 24px;
  color: var(--cl-blue-grey, #67748e);
  font-size: 14px;
}

.rd-certsel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.rd-certsel-tile {
  border: 1px solid #eaecf0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rd-certsel-tile:hover {
  border-color: #cbd2dc;
}

.rd-certsel-tile.is-active {
  border-color: var(--rd-primary-active, #d66181);
  box-shadow: 0 0 0 1px var(--rd-primary-active, #d66181);
}

.rd-certsel-thumb {
  position: relative;
  aspect-ratio: 1 / 1.414;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rd-certsel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.rd-certsel-radio {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd2dc;
  background: #fff;
  z-index: 2;
}

.rd-certsel-tile.is-active .rd-certsel-radio {
  border-color: var(--rd-primary-active, #d66181);
}

.rd-certsel-tile.is-active .rd-certsel-radio::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rd-primary-active, #d66181);
}

.rd-certsel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #eaecf0;
}

.rd-certsel-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--rd-font-dark, #0d1130);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rd-certsel-view {
  font-size: 13px;
  color: var(--rd-primary-active, #d66181);
  white-space: nowrap;
}

.rd-certsel-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed #cbd2dc;
  border-radius: 8px;
  background: #f9fafb;
  color: var(--cl-blue-grey, #67748e);
  text-decoration: none;
  min-height: 160px;
  padding: 16px;
  text-align: center;
}

.rd-certsel-add:hover {
  border-color: var(--rd-primary-active, #d66181);
  color: var(--rd-primary-active, #d66181);
}

.rd-certsel-add-plus {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eaecf0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
}

.rd-certsel-add-text {
  font-size: 13px;
}
