.o-input--amount {
  position: relative;
}

.o-input__currency {
  position: absolute;
  left: 0.5rem;
  z-index: 100;
}

.o-input--amount input {
  padding-left: 1rem;
}

.c-livestock {
  position: relative;
  min-height: calc(100vh - 5.2rem);
  background: #ccc;
  background-image: url(/multimedia/christmas-donate-animal.jpg);
  background-size: cover;
  background-position: center bottom 41%;
  background-repeat: no-repeat;
  padding-bottom: 6rem;
}

@media (max-width: 45.5rem) {
  .c-livestock {
    padding-bottom: 10rem;
  }
}
.c-livestock__content {
  background: -webkit-linear-gradient(top, rgba(50, 50, 50, 0.7) 50%, transparent);
  background: linear-gradient(to bottom, rgba(50, 50, 50, 0.7) 50%, transparent);
  color: #fff;
  text-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.5);
}

.c-livestock__content-holder {
  width: 62.5rem;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1rem;
}

.c-livestock__title {
  color: #fff;
  line-height: 1.4em;
}

@media (max-width: 62.5rem) and (min-width: 45.5rem) {
  .c-livestock__title {
    font-size: 1.75rem;
  }

  .c-livestock__copy {
    font-size: 0.9em;
  }
}
@media (max-width: 45.5rem) {
  .c-livestock__title {
    font-size: 1.2rem;
  }

  .c-livestock__copy {
    font-size: 0.8rem;
  }
}
.c-livestock__funds {
  -webkit-box-flex: 100%;
  -webkit-flex: 100%;
      -ms-flex: 100%;
          flex: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
      -ms-flex-align: end;
          align-items: flex-end;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 100%;
}

@media (max-width: 45.5rem) {
    .c-livestock__funds {
        position: relative;
        bottom: 0;
    }
}

@media (min-width: 35.5rem) {
  .c-livestock__funds {
    position: absolute;
    bottom: 8rem;
  }
}
@media (max-width: 35.5rem) {
  .c-livestock__funds {
    padding-top: 5rem;
  }
}
@media (max-height: 40rem) {
    .c-livestock__fund-image { 
        width: 7rem;
    }
}
.c-livestock__fund {
  position: relative;
  margin: 0 2rem;
  text-align: center;
}

@media (max-width: 35.5rem) {
  .c-livestock__fund {
    width: 7rem;
  }
}
.c-livestock__control {
  position: relative;
  font-size: 2rem;
  color: #0054a6;
  background: #fff;
  margin: 0;
  padding: 0;
  line-height: 0;
  height: 2rem;
  margin-top: -2rem;
  border: 0;
  border-radius: 50%;
  -webkit-transition: 0.2s linear;
          transition: 0.2s linear;
}

.c-livestock__control--remove {
  margin-right: -1rem;
  opacity: 0;
}

.c-livestock__control--add {
  margin-left: -1rem;
}

.c-livestock__fund-total {
  width: 3rem;
  text-align: center;
}

.c-livestock__fund-total-holder {
  background: #fff;
  width: 7rem;
  border-radius: 0.25rem;
  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.2);
  -webkit-transition: 0.2s linear;
          transition: 0.2s linear;
  opacity: 0;
}

.c-livestock__fund-amount {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  position: absolute;
  z-index: 100;
  width: 100%;
  padding: 0 0.5rem 0.5rem;
  text-align: center;
}

.c-livestock__fund[data-key=goats] .c-livestock__fund-amount {
  bottom: 2em;
  left: -0.5em;
}

.c-livestock__fund[data-key=chickens] .c-livestock__fund-amount {
  bottom: -1.5em;
  left: -2em;
}

.c-livestock__fund[data-key=pigs] .c-livestock__fund-amount {
  bottom: -2.4em;
  left: -1.5em;
}

@media (min-width: 45.5rem) {
  .c-livestock__fund[data-key=goats] .c-livestock__fund-amount,
.c-livestock__fund[data-key=pigs] .c-livestock__fund-amount {
    bottom: -1.5rem;
  }

  .c-livestock__fund[data-key=goats] .c-livestock__fund-amount {
    left: -3em;
  }

  .c-livestock__fund[data-key=pigs] .c-livestock__fund-amount {
    left: 0.5rem;
  }
}
input[type=number].c-livestock__fund-total {
  width: 100%;
  padding: 0.5rem;
  border: 0;
  line-height: 1em;
  height: auto;
  font-size: 1.75rem;
  color: #0054a6;
  font-weight: bold;
}

.c-livestock__fund--active .c-livestock__control--remove,
.c-livestock__fund--active .c-livestock__fund-total-holder {
  opacity: 1;
}

.c-livestock__price {
  padding: 0 0.5rem 0.5rem;
  font-size: 0.9rem;
  color: #777;
}

.c-livestock__fund-image {
  width: 14rem;
  max-width: 100%;
  -webkit-filter: grayscale(1) contrast(0.2);
          filter: grayscale(1) contrast(0.2);
  -webkit-transition: 0.2s linear;
          transition: 0.2s linear;
}

@media (max-width: 62.5rem) and (min-width: 45.5rem) {
  .c-livestock__fund-image {
    width: 11rem;
  }
}
@media (max-width: 45.5rem) {
  .c-livestock__fund-image {
    width: 7rem;
  }
}
@media (max-height: 50rem) {
    .c-livestock__fund-image {
        width: 10rem;
    }
}

@media (max-height: 40rem) {
    .c-livestock__fund-image { 
        width: 7rem;
    }
}
.c-livestock__fund--active .c-livestock__fund-image {
  -webkit-filter: none;
          filter: none;
}

.c-livestock__donate {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  position: fixed;
  z-index: 101;
  bottom: 0;
  left: 0;
  width: 100%;
}

@media (min-width: 35.5rem) {
  .c-livestock__donate {
    bottom: 1rem;
  }
}
.c-livestock__donate-holder {
  margin: 0 auto;
  background: #efefef;
  border-radius: 0.25rem;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
  -webkit-transition: 0.2s linear;
          transition: 0.2s linear;
}

@media (min-width: 35.5rem) {
  .c-livestock__donate-holder {
    max-width: 35.5rem;
  }
}
@media (max-width: 35.5rem) {
  .c-livestock__donate-holder {
    width: 100%;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
  }
}
.c-livestock__summary {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 0.5rem;
}

.c-livestock__summary-title {
  font-size: 1rem;
}

.c-livestock__summary-amount {
  font-weight: bold;
  font-size: 1.25rem;
  margin: 0 0.5rem 0;
}

.c-livestock__donate-extra {
  display: none;
  background: #ccc;
  padding: 0.5rem 1rem;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 0.8rem;
}

.c-livestock__donate-input {
  margin: 0 0 0 1rem;
  width: 10rem;
}

@media (max-width: 45.5rem) {
  .c-livestock__submit {
    width: 100%;
  }
}