#couponCodeDiv {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1em 20px;
  color: #333;
  font-size: 18px;
  flex-wrap: wrap;
  background-color: #f2f2f2;
  box-sizing: border-box;
  overflow: hidden;
  max-width: 950px;
  margin: 0 auto 30px;
}

#couponCodeDiv > label {
  flex-basis: 100%;
  text-align: center;
  line-height: 1.2em;
  padding: 7px 15px;
}

#pcInput {
  width: 40%;
  padding: 10px 15px !important;
  margin-right: 1em;
  font-size: 1.3rem;
  color: #333;
  box-sizing: border-box;
}

/*#pcInput:focus,*/
#pcInput + button:focus {
  outline: none;
}

#couponCodeDiv input[type="text"] {
  font-size: 2rem;
}

#pcInput::placeholder {
  font-style: italic;
}

#pcInput + button {
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  width: 20%;
  padding: 10px 10px;
  background: #333;
  border-width: 0;
}

#pcInput + button:hover {
  background: linear-gradient(0deg, rgb(24, 23, 23) 0%, rgb(101, 101, 101) 100%);;
}

.cc-confirm,
.cc-fail {
  display: flex;
  max-width: 950px;
  margin: 0 auto 30px;
  border-radius: 5px;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  font-weight: 500;
}

.cc-confirm {
  border: solid #EACD33;
  position: relative;
}

.cc-fail {
  border: solid #AC0326;
  align-items: center;
}

#star-bg,
#cc-fail-bg {
  width: 2em;
  height: 2em;
  display: flex;
  position: relative;
}

#star-bg {
  background-color: #EACD33;
}

#cc-fail-bg {
  background-color: #AC0326;
  color: #fff;
}

#cc-fail-bg > span {
  margin: auto;
  font-weight: 600;
  font-size: 1.3em;
}

#star {
  position: absolute;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  -webkit-clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background-color: #fff;
  width: 1.6em;
  height: 1.6em;
  left: 3px;
}

.cc-confirm > p,
.cc-fail > p {
  color: #333 !important;
  padding-left: 5%;
  margin: 0;
}

@media (max-width: 830px) {
  #couponCodeDiv {
    margin: 0 15px 30px;
  }
  #couponCodeDiv > label {
    flex-grow: 1;
    text-align: center;
    margin-top: 1em;
  }
  #pcInput {
    margin: 1em 0;
    flex-grow: 1;
    flex-basis: 100%;
    padding: 20px 15px;
  }
  #pcInput + button {
    flex-grow: 1;
    padding: 10px 10px;
    margin-bottom: 1em;
  }
  .cc-confirm, .cc-fail {
    margin: 0 15px 30px;
  }
  .cc-confirm > p {
    white-space: normal;
  }
  #star {
    left: 9px;
  }
  #cc-fail-bg > span {
    font-size: 1.5em;
  }
  #star-bg,
  #cc-fail-bg {
    width: 2.8em;
    height: 2.8em;
  }
}
