.parent-child-enrollment {
  min-width: 0;
  width: 100%;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid #d5e0db;
  border-radius: 1rem;
  background: #fff;
  color: #26352d;
  box-shadow: 0 0.5rem 1.5rem rgb(24 54 38 / 7%);
}

.parent-child-enrollment__title,
.parent-child-enrollment__child-title {
  margin: 0;
  color: #183d2b;
}

.parent-child-enrollment__child {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid #e2e9e5;
  border-radius: 0.8rem;
}

.parent-child-enrollment__message,
.parent-child-enrollment__expiry {
  margin: 0.65rem 0 0;
  color: #4e5f55;
  line-height: 1.5;
}

.parent-child-enrollment__start,
.parent-child-enrollment__close {
  min-width: 44px;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid #416d53;
  border-radius: 0.65rem;
  background: #225c38;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.parent-child-enrollment__start:disabled,
.parent-child-enrollment__close:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.parent-child-enrollment__start:focus-visible,
.parent-child-enrollment__close:focus-visible,
.parent-child-enrollment__link:focus-visible {
  outline: 3px solid #b66b00;
  outline-offset: 2px;
}

.parent-child-enrollment__link-label {
  display: block;
  margin-top: 1rem;
  font-weight: 700;
}

.parent-child-enrollment__link {
  display: block;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #9daea3;
  border-radius: 0.55rem;
  background: #f7faf8;
  color: #1d3527;
  font: inherit;
}

.parent-child-enrollment__close {
  margin-top: 1rem;
  background: #fff;
  color: #254d34;
}

@media (max-width: 420px) {
  .parent-child-enrollment__child {
    align-items: stretch;
  }

  .parent-child-enrollment__start {
    width: 100%;
  }
}
