/* Recipient form */
.sgc-recipient-form {
  display: block;
  position: relative;
  margin-bottom: 1.5em;
  font-size: 1em;
}

@media screen and (min-width: 992px) {
  .sgc-recipient-form {
    max-width: 27.5em;
  }
}

.sgc-recipient-form__checkbox,
.sgc-recipient-form__checkbox-input + .sgc-recipient-form__checkbox {
  flex-grow: 1;
  line-height: 1.25em !important;
  display: flex;
  word-break: break-word;
  align-items: flex-start;
  position: relative;
  cursor: pointer;
  float: none !important;
}

.sgc-recipient-form__checkbox-input {
  position: absolute;
  width: 1.25em;
  height: 1.25em;
  margin: 0;
  top: 0;
  left: 0;
  z-index: -1;
  appearance: none;
  -webkit-appearance: none;
}

.sgc-recipient-form__checkbox > svg {
  margin-right: 0.75em;
  flex-shrink: 0;
}

.sgc-recipient-form__field {
  margin: 0 0 1.25em 0;
}

.sgc-recipient-form__field:last-child {
  margin-bottom: 0;
}

.sgc-recipient-form__field .field {
  margin-bottom: 0.75em;
}

.sgc-recipient-form__field .field:last-child {
  margin-bottom: 0;
}

.sgc-recipient-form__field-input {
  display: block;
  width: 100%;
  font-size: 1em;
  margin: 0;
}

.sgc-recipient-form__field-input::placeholder {
  opacity: 1 !important;
}

.sgc-recipient-form__field-input,
.sgc-recipient-form__field-input:placeholder-shown,
.sgc-recipient-form__field-input:not(:placeholder-shown) {
  padding: 1em;
}

.sgc-recipient-form__field-label {
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: calc(100% - 2em);
  overflow: hidden;
  float: none !important;
}

.sgc-recipient-form__help-label {
  font-size: 80%;
  line-height: normal !important;
  float: none !important;
}

.sgc-recipient-form__checkbox-frame {
  width: 1.25em;
  height: 1.25em;
}

.sgc-recipient-form__checkbox-mark {
  visibility: hidden;
  position: absolute;
  left: 0.1875em;
  z-index: 5;
  top: 0.3125em;
  width: 0.875em;
  height: auto;
}

.sgc-recipient-form__checkbox-input:checked + .sgc-recipient-form__checkbox .sgc-recipient-form__checkbox-mark {
  visibility: visible;
}

.js .sgc-recipient-form__fields {
  display: none;
}

.sgc-recipient-form__fields hr {
  margin: 1em auto;
}

.sgc-recipient-form__checkbox-input:checked ~ .sgc-recipient-form__fields {
  display: block;
  animation: animateRecipientFormOpen 0.2s ease;
}

.sgc-recipient-form__checkbox-input:not(:checked, :disabled) ~ .sgc-recipient-form__fields {
  display: none;
}

.sgc-recipient-form__message {
  display: flex;
  align-items: center;
  font-size: 87.5%;
  margin-top: 0.625em;
}

.sgc-recipient-form__message.hidden {
  display: none;
}

.sgc-recipient-form__message svg {
  height: 0.9em;
  width: 0.9em;
  margin-right: 0.5em;
}

.sgc-recipient-form__error-message::first-letter {
  text-transform: capitalize;
}

.sgc-visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

@keyframes animateRecipientFormOpen {
  0% {
    opacity: 0;
    transform: translateY(-1em);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
