﻿.discount {
  transition: -webkit-transform 500ms cubic-bezier(0.2, 0.6, 0.3, 1);
  transition: transform 500ms cubic-bezier(0.2, 0.6, 0.3, 1);
  transition: transform 500ms cubic-bezier(0.2, 0.6, 0.3, 1), -webkit-transform 500ms cubic-bezier(0.2, 0.6, 0.3, 1);
  background-color: #ffffff;
  bottom: 0;
  box-shadow: 0 0 0.625rem rgba(0, 0, 0, 0.2);
  left: 0;
  padding: 1rem;
  position: fixed;
  right: 0;
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  z-index: 2147483647;
}

@media only screen and (min-width: 66.25em) {
  .discount {
    padding: 2rem 1rem;
  }
}

.discount::before {
  transition: opacity 500ms cubic-bezier(0.2, 0.6, 0.3, 1), visibility 500ms cubic-bezier(0.2, 0.6, 0.3, 1);
  background: rgba(59, 62, 77, 0.8);
  bottom: 100%;
  content: "";
  height: 100dvh;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  visibility: hidden;
}

.discount.is-active {
  -webkit-transform: translate(0);
  transform: translate(0);
}

  .discount.is-active::before {
    opacity: 1;
    visibility: visible;
  }

.discount__container {
  margin: 0 auto;
  max-width: 50rem;
  position: relative;
}

.discount__form {
  align-items: center;
  display: flex;
  width: 100%;
}

  .discount__form .field {
    flex-grow: 1;
  }

  .discount__form .field--style-outline .field__helper {
    border-bottom-right-radius: 0;
    border-right: 0;
    border-top-right-radius: 0;
  }

  .discount__form .button {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    flex-shrink: 0;
  }

.discount__close {
  position: absolute;
  top: 0;
  right: 0;
}

  .discount__close.button--size-m {
    min-height: 1.875rem;
    min-width: 1.875rem;
  }

@media only screen and (min-width: 66.25em) {
  .discount__close.button--size-m {
    min-height: 2.5rem;
    min-width: 2.5rem;
  }
}

.discount .check {
  font-size: 0.875rem;
}
