.cc-modal-open {
  overflow: hidden;
}

.cc-modal-open .cc-modal-form-container {
  position: relative;
  z-index: 999999;
}

.hidden {
  display: none !important;
}

.m-0.m-0 {
  margin: 0;
}

.m-1.m-1 {
  margin: 8px;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mt-0 {
  margin-top: 0;
}

.page-indicator {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  margin: 20px 0;
  font-size: 20px;
}

.page-title {
  display: flex;
  align-items: center;
  font-weight: normal;
  color: #30313D;
  transition: color 0.3s ease;
}

.page-title span {
  display: inline-block;
  width: 34px;
  height: 34px;
  line-height: 30px;
  border-radius: 50%;
  background-color: #e6e6e6;
  color: #30313D;
  text-align: center;
  margin-right: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-title.active {
  font-weight: bold;
  color: #62dd43;
}

.page-title.active span {
  background-color: #62dd43;
  color: #ffffff;
}

.suggestion-wrapper {
  display: none;
  gap: 10px;
}

.suggestion-wrapper.active {
  display: flex;
}

.suggestion-wrapper .button-wrapper {
  display: contents;
  flex-direction: column;
  gap: 10px;
}

.suggestion-wrapper .suggestion span {
  font-family: Arial, sans-serif;
  font-size: 105%;
  letter-spacing: 1px;
  color: #30313D;
  padding-left: 5px;
}

.mini-button {
  background: #62dd43;
  font-family: Arial, sans-serif;
  color: #ffffff;
  border-radius: 4px;
  border: 0;
  box-sizing: border-box;
  padding: 7px 8px;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  display: inline-block;
  transition: all 0.2s ease;
  box-shadow: 0 4px 5.5px 0 rgba(0, 0, 0, 0.07);
  text-transform: uppercase;
  max-height: 32px;
}

.mini-button.dismiss-suggestion {
  background: #ffffff;
  color: #62dd43;
  border: 1px solid #62dd43;
}

.mini-button:hover {
  filter: contrast(115%);
}

.quantity-changer {
  display: flex;
  align-items: center;
  margin: 0 10px;
}

.quantity-changer .qty-btn {
  background-color: #62dd43;
  color: #ffffff;
  border: none;
  padding: 0px 10px 4px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 4px;
  margin: 0 5px;
  line-height: 1.4;
  text-align: center;
}

.quantity-changer .qty-btn:disabled {
  background-color: #e6e6e6;
  cursor: not-allowed;
}

#cc-stripe-form {
  /* width: 90vw; */
  max-width: 500px;
  align-self: center;
  /* box-shadow: 0px 0px 0px 0.5px rgba(50, 50, 93, 0.1),
  0px 2px 5px 0px rgba(50, 50, 93, 0.1), 0px 1px 1.5px 0px rgba(0, 0, 0, 0.07); */
  /* border-radius: 7px; */
  /* padding: 40px; */
  margin: 0 auto;
}

#cc-stripe-form .form-step {
  display: none;
  color: #30313D;
  text-align: center;
}

#cc-stripe-form .form-step a, #cc-stripe-form .form-step h2 {
  color: #30313D;
}

#cc-stripe-form .form-step hr {
  border-top: 1px solid #30313d6b;
}

#cc-stripe-form .form-step.active {
  display: block;
}

.name-wrap {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.name-wrap label {
  width: 48%;
}

#cc-stripe-form input, #cc-stripe-form select {
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 16px;
  color: #30313D;
  width: 100%;
  margin-top: 12px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  box-sizing: border-box;
  border: 1px solid #e6e6e6;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0px 3px 6px rgba(0, 0, 0, 0.02);
}

/* select styles for Mac and iOS*/
#cc-stripe-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px top 50%;
}

#cc-stripe-form select:focus, #cc-stripe-form input:focus {
  outline: 0;
  border-color: #60dc4180;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 3px 6px rgba(0, 0, 0, 0.02), 0 0 0 3px #60dc4140, 0 1px 1px 0 #00000014;
}

#cc-stripe-form input.error, #cc-stripe-form select.error {
  border-color: #a61c1c;
}

#cc-stripe-form .dropshadow {
  box-shadow: 2px 4px 15px 0px #989898ee;
  border-radius: 35px;
}

.summary {
  color: #30313D;
  margin-bottom: 20px;
  border-bottom: 1px solid #8c8c8c;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e6e6e6;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item .qty {
  display: flex;
  align-items: center;
  flex-direction: row;
}

.form-step.step-4 {
  margin-bottom: 20px;
  /* background: url(/wp-content/uploads/silver-bg.jpg); */
  background-blend-mode: overlay;
  background-size: cover;
  padding: 20px;
  border-radius: 8px;
}

.form-step.step-3.active {
  display: flex !important;
  flex-direction: column;
}

.upsell-top-copy h2 {
  position: relative;
  margin-bottom: 20px;
}

.upsell-top-copy h2:before, .upsell-top-copy h2:after {
  top: -30px;
  /*content: "";*/
  /*display: block;*/
  width: 50px;
  height: 50px;
  /*background: url(/wp-content/uploads/gold-badge.png) no-repeat;*/
  background-size: contain;
  position: absolute;
}

.upsell-top-copy h2:before {
  left: -20px;
}

.upsell-top-copy h2:after {
  right: -20px;
}

.upsell-bottom-copy > * {
  margin: 0;
}

.count-down {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  color: #ffffff;
  margin: 0 auto 20px;
  width: 100%;
  max-width: 150px;
  padding: 12px;
}

.count-down .numbers {
  font-weight: bold;
  font-size: 32px;
  font-family: monospace;
  margin: -4px 8px 0;
  display: block;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #62dd43, #fcff70);
  padding: 0 10px 5px;
  border-radius: 8px;
  box-shadow: 0px 6px 10px 0px rgba(0, 0, 0, 0.15);
  border: 2px solid #00000017;
}

.count-down .divider {
  font-weight: bold;
  font-size: 28px;
  margin: 0 0 10px;
  color: #000000;
  text-shadow: none;
}

.text-center {
  text-align: center;
}

.no-thanks-button {
  color: #979797 !important;
  margin-top: 35px;
  text-align: center;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  font-size: 13px;
}

.no-thanks-button:hover {
  color: #30313D;
}

/* big bright payment success message */
#payment-message {
  color: #30313D;
  font-size: 26px;
  text-align: center;
  border: 1px solid #62dd43;
  padding: 12px 16px;
  border-radius: 4px;
  margin-top: 22px;
}

#payment-message:before {
  content: "✔";
  margin-right: 10px;
  color: #62dd43;
}

#payment-element {
  margin-bottom: 24px;
}


.modal__content {
  margin-top: 20px;
  z-index: 999;
  position: relative;
}

.modal__header,
.modal__close {
  position: relative;
  z-index: 1000;
}

.upsell-top-copy {
  position: relative;
  z-index: 999;
}


/* Buttons and links */
button:not(.modal__close, .no-thanks-button), .button {
  background: #62dd43;
  font-family: Arial, sans-serif;
  color: #ffffff;
  border-radius: 4px;
  border: 0;
  box-sizing: border-box;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  transition: all 0.2s ease;
  box-shadow: 0px 4px 5.5px 0px rgba(0, 0, 0, 0.07);
  width: 100%;
  margin-top: 16px;
  text-transform: uppercase;
}

button:hover, .button:hover {
  filter: contrast(115%);
}

button:disabled, .button:disabled {
  opacity: 0.5;
  cursor: default;
}

.back-button {
  background: #ffffff;
  color: #62dd43;
  border: 1px solid #62dd43;
  margin-top: 22px;
  text-align: center;
  padding: 12px 14px;
}

.upsell-button {
  background: #62dd43;
  color: #ffffff;
  border: 0;
  padding: 12px 16px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 5.5px 0 rgba(0, 0, 0, 0.07);
  width: 100%;
  text-align: center;
  margin-top: 16px;
}

/* spinner/processing state, errors */
.spinner, .spinner:before, .spinner:after {
  border-radius: 50%;
}

.spinner {
  color: #ffffff;
  font-size: 22px;
  text-indent: -99999px;
  margin: 0px auto;
  position: relative;
  width: 20px;
  height: 20px;
  box-shadow: inset 0 0 0 2px;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}

.spinner:before, .spinner:after {
  position: absolute;
  content: "";
}

.spinner:before {
  width: 10.4px;
  height: 20.4px;
  background: #62dd43;
  border-radius: 20.4px 0 0 20.4px;
  top: -0.2px;
  left: -0.2px;
  -webkit-transform-origin: 10.4px 10.2px;
  transform-origin: 10.4px 10.2px;
  -webkit-animation: loading 2s infinite ease 1.5s;
  animation: loading 2s infinite ease 1.5s;
}

.spinner:after {
  width: 10.4px;
  height: 10.2px;
  background: #62dd43;
  border-radius: 0 10.2px 10.2px 0;
  top: -0.1px;
  left: 10.2px;
  -webkit-transform-origin: 0px 10.2px;
  transform-origin: 0px 10.2px;
  -webkit-animation: loading 2s infinite ease;
  animation: loading 2s infinite ease;
}

.terms-wrapper {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.terms-wrapper input {
  width: 30px !important;
  margin: 3px;
}

.terms-wrapper.error {
  border: 1px solid #a61c1c !important;
}

.terms-wrapper label {
  font-size: 16px;
  color: #30313D;
  margin-left: 10px;
  display: inline;
  gap: 8px;
}

.terms-wrapper label span {
  display: inline-block;
  padding-bottom: 2px;
  line-height: 1;
}

.terms-wrapper a {
  line-height: 1.2;
  font-size: 16px;
  color: #62dd43;
  display: inline;
}

/* Payment status page */
#payment-status {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  row-gap: 30px;
  width: 30vw;
  /*min-width: 500px;*/
  min-height: 380px;
  align-self: center;
  box-shadow: 0px 0px 0px 0.5px rgba(50, 50, 93, 0.1), 0px 2px 5px 0px rgba(50, 50, 93, 0.1), 0px 1px 1.5px 0px rgba(0, 0, 0, 0.07);
  border-radius: 7px;
  padding: 40px;
  opacity: 0;
  animation: fadeInAnimation 1s ease forwards;
}

#error-message {
  opacity: 0;
  color: #a61c1c;
  font-size: 16px;
  text-align: center;
  border: 1px solid #a61c1c;
  padding: 12px 16px;
  border-radius: 4px;
  transition: all 0.2s ease;
  margin-top: 22px;
}

#error-message.show {
  display: block;
  opacity: 1;
}

#status-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  width: 40px;
  border-radius: 50%;
}

#upsell-button {
  font-size: x-large;
}

h2 {
  margin: 0;
  color: #30313D;
  text-align: center;
}

a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  font-family: Arial, sans-serif;
  display: block;
}

a:hover {
  filter: contrast(120%);
}

#details-table {
  overflow-x: auto;
  width: 100%;
}

table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}

table tbody tr:first-child td {
  border-top: 1px solid #E6E6E6;
  /* Top border */
  padding-top: 10px;
}

table tbody tr:last-child td {
  border-bottom: 1px solid #E6E6E6;
  /* Bottom border */
}

td {
  padding-bottom: 10px;
}

.TableContent {
  text-align: right;
  color: #6D6E78;
}

.TableLabel {
  font-weight: 600;
  color: #30313D;
}

#view-details {
  color: #62dd43;
}

#retry-button {
  text-align: center;
  background: #62dd43;
  color: #ffffff;
  border-radius: 4px;
  border: 0;
  padding: 12px 16px;
  transition: all 0.2s ease;
  box-shadow: 0px 4px 5.5px 0px rgba(0, 0, 0, 0.07);
  width: 100%;
}

.cc-stripe-product-button-wrapper button.cc-stripe-product-button {
  width: auto;
  margin: 20px auto 0;
  border-radius: 50px;
  padding: 10px 30px;
  font-size: 20px;
}

@-webkit-keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes fadeInAnimation {
  to {
    opacity: 1;
  }
}

@media screen and (max-width: 1024px) {
  .suggestion-wrapper.active {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .suggestion-wrapper .button-wrapper {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }
}


@media only screen and (max-width: 600px) {
  .modal__content {
    padding: 0 10px 30px !important;
  }

  #cc-stripe-form {
    padding: 10px;
    box-sizing: border-box;
  }

  #cc-stripe-form form, #payment-status {
    /*width: 80vw;*/
    box-sizing: border-box;
  }

  .name-wrap {
    flex-direction: column;
  }

  .name-wrap label, .name-wrap input {
    width: 100%;
  }
}

@media only screen and (max-width: 500px) {
  .form-header .page-indicator {
    /*align-items: flex-start;*/ /*gap: 10px;*/
  }

  .form-header .page-indicator .page-title:not(span) {
    font-size: 14px;
  }

  .form-header .page-indicator .page-title span {
    width: 20px;
    height: 20px;
    line-height: 19px;
    font-size: 11px;
    padding: 0 1px 0 0;
  }

  .upsell-top-copy h2:before, .upsell-top-copy h2:after {
    top: 40px;
  }
}

/* stupid safari ... */
@media (orientation: portrait) {
  @media (-webkit-device-pixel-ratio: 3) {

  }
}
