.c--feedback-form {
  position: static;
  z-index: 99999;
}

.c--feedback-link {
  color: #fff;
}

.c--feedback-heading {
  display: none;
  margin: 0;
}

.c--feedback-heading button:hover {
  cursor: pointer;
}

.c--feedback-heading button:first-of-type {
  background-color: #0071bc;
  border: none;
  border-radius: 4px 4px 0 0;
  color: #fff;
  font-weight: bold;
  line-height: 0.9;
  padding: 0.8rem;
  width: 100%;
}

.c--feedback-heading button:first-of-type:before {
  background: rgba(55, 55, 55, 0.5);
  content: "";
  height: 20vh;
  right: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: -1;
}

.c--feedback-closer {
  background: none;
  border: none;
  color: #fff;
  display: none;
  font-weight: bold;
  transition: display 0.3s;
}

.c--feedback-body {
  background-color: #f0f0f0;
  display: none;
  height: 80vh;
  overflow-y: scroll;
  padding: 1rem;
}

.c--feedback-body textarea {
  overflow-y: auto;
  resize: none;
}

.c--feedback-body .usa-label {
  margin-top: 1rem;
}

.c--feedback-form:has(.c--feedback-heading button[aria-expanded="true"]) {
  bottom: 0;
  position: fixed;
  right: 0;
  width: 100%;
}

.c--feedback-form:has(.c--feedback-heading button[aria-expanded="true"])
  .c--feedback-body,
.c--feedback-heading:has(button[aria-expanded="true"]) {
  display: block;
}

.c--feedback-form:has(.c--feedback-heading button[aria-expanded="true"])
  .c--feedback-link {
  display: none;
}

.c--feedback-form textarea:disabled,
.c--feedback-form input[type="email"]:disabled {
  border-color: #538200;
  background-color: rgba(83, 130, 0, 0.2);
}

#edit-text--description {
  text-align: right;
  font-size: 0.87rem;
}

.c--feedback-form input[type="submit"] {
  margin-top: 0;
}

#feedback-table table {
  margin-left: auto;
  margin-right: auto;
  max-width: 960px;
}

@media screen and (min-width: 480px) {
  .c--feedback-form {
    border: 1px solid #162e51;
    border-radius: 4px 4px 0 0;
    bottom: calc(-1px - 80vh);
    box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 10%);
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 2rem;
    transition: bottom 0.3s ease, width 0.1s ease;
    width: 220px;
    -webkit-box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 10%);
  }

  .c--feedback-link {
    display: none;
  }

  .c--feedback-heading,
  .c--feedback-body {
    display: initial;
  }

  .c--feedback-heading button:first-of-type:before {
    content: none;
  }

  .c--feedback-body {
    height: 80vh;
  }

  .c--feedback-form:has(.c--feedback-heading button[aria-expanded="true"]) {
    right: 2rem;
    width: 460px;
  }

  .c--feedback-form:has(.c--feedback-heading button[aria-expanded="true"])
    .c--feedback-closer {
    display: block;
    position: absolute;
    top: 0.6rem;
    right: 1rem;
  }
}

@media screen and (min-width: 1100px) {
  .c--feedback-form,
  .c--feedback-form:has(.c--feedback-heading button[aria-expanded="true"]) {
    right: calc(50% - 512px);
  }
}
