form#theForm {
  margin-left: -8px;
}
#hpsTypeRow,
#hpsAmountRow,
.hpsCVV2WhatLink {
  display: none;
}
#hpsCardSection input,
#hpsAddressSection input {
  background-color: #f8fbfc;
  box-sizing: border-box;
  height: 40px;
  font-size: 12px;
  box-shadow: 0px 1px 1px rgb(0 0 0 / 8%) inset !important;
  border: 1px solid #ccc !important;
  padding-left: 5px !important;
}
#hpsCardSection select {
  background-color: #f8fbfc;
  box-sizing: border-box;
  height: 40px;
  font-size: 12px;
  box-shadow: 0px 1px 1px rgb(0 0 0 / 8%) inset !important;
  border: 1px solid #ccc !important;
  padding-left: 5px !important;
}
#nameLabelText,
#numberLabelText,
#CVV2LabelText,
#expirationLabelText {
  color: #4a4a4a;
  font-size: 15px;
  letter-spacing: 0.2px;
  font-family: "Allstate Objektiv";
}
#hpsCardSection {
  margin-top: 20px;
}
#hpsCardSection div.hpsRow {
  margin-bottom: 20px;
}
#hpsNameRow {
  width: 95%;
  display: none;
}
#hpsNumberRow {
  width: 95%;
}
#hpsExpirationRow {
  float: left;
}
#hpsButtonRow {
  margin-top: 0px;
  float: left;
  width: 100%;
}
button#completeButton {
  float: right;
  width: 112px;
  height: 45px;
  background-color: #472468;
  color: #fff;
}
button#completeButton:before {
  visibility: visible;
  content: "Soumettre";
}
button#cancelButton {
  float: right;
  width: 112px;
  height: 45px;
  background-color: #fff;
  color: #472468;
  box-sizing: border-box;
  border: 1px solid #472468;
  margin-right: 20px;
}

input#name,
input#ccNumber {
  width: 65%;
}
@media only screen and (max-width: 350px) {
  input#name,
  input#ccNumber {
    width: 50%;
  }
}

input#CVV2 {
  width: 165px;
}
@media only screen and (max-width: 350px) {
  input#CVV2 {
    width: 100px;
  }
}

#hpsCVV2Row {
  position: absolute;
  left: 280px;
  bottom: 152px;
}
@media only screen and (max-width: 350px) {
  #hpsCVV2Row {
    width: 110px;
    float: right;
    margin-right: 305px;
  }
}

#hpsButtonRow {
  width: 370px;
}

#hpsNumberRow {
  display: inline-block;
  width: 50%;
  box-sizing: border-box;
}

#hpsCVV2Row {
  display: inline-block;
  width: 20%;
  box-sizing: border-box;
}

#hpsNumberRow + #hpsCVV2Row {
  margin-left: 66px;
  margin-top: -14px;
}
#hpsAddressSection {
  position: relative;
  left: 280px;
  bottom: 53px;
  margin-bottom: -34px;
}

@media only screen and (max-width: 350px) {
  #hpsButtonRow {
    width: 285px;
  }
}
