/**
 * CM EU B2B VAT Exemption & VIES Checker module
 * PrestaShop 1.6.x - 9.x
 * CSS
 * Front-office
 */

/* Result of the live check, below the VAT number field */
.cm_euvat-live {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
}
.cm_euvat-live:empty {
  display: none;
}
.cm_euvat-live-checking {
  color: #7a7a7a;
}
.cm_euvat-live-valid {
  color: #2e7d32;
}
.cm_euvat-live-invalid,
.cm_euvat-live-format {
  color: #c62828;
}
.cm_euvat-live-unavailable,
.cm_euvat-live-info {
  color: #8a6d00;
}
/* White symbol in a filled circle in the colour of the message */
.cm_euvat-live-valid:before,
.cm_euvat-live-invalid:before,
.cm_euvat-live-format:before,
.cm_euvat-live-unavailable:before,
.cm_euvat-live-info:before {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: middle;
  position: relative;
  top: -1px;
  text-align: center;
  font-size: 11px;
  font-weight: bold;
  line-height: 16px;
}
.cm_euvat-live-valid:before,
.cm_euvat-live-invalid:before,
.cm_euvat-live-format:before,
.cm_euvat-live-unavailable:before,
.cm_euvat-live-info:before {
  color: #fff;
}
.cm_euvat-live-valid:before {
  content: "\2713";
  background: #2e7d32;
}
.cm_euvat-live-invalid:before,
.cm_euvat-live-format:before {
  content: "\2715";
  background: #c62828;
}
.cm_euvat-live-unavailable:before,
.cm_euvat-live-info:before {
  content: "!";
  background: #8a6d00;
}

/* Badge next to the name of a verified address ("Your addresses") */
.cm_euvat-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 8px;
  border-radius: 3px;
  background: #2e7d32;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: middle;
}

/* The VAT number field itself: green when valid, red when invalid */
input.cm_euvat-input-valid,
input.cm_euvat-input-valid:focus {
  border-color: #2e7d32 !important;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.18);
  background-color: #f3faf3;
}
input.cm_euvat-input-invalid,
input.cm_euvat-input-invalid:focus {
  border-color: #c62828 !important;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.18);
  background-color: #fdf3f3;
}
input.cm_euvat-input-unavailable {
  border-color: #c9a227 !important;
}

/* The button of the "after the button is pressed" mode */
.cm_euvat-btn {
  margin-top: 6px;
}

/* Address type switch - private person / company */
.cm-euvat-type-option {
  display: inline-flex;
  align-items: center;
  margin: 0.4rem 1rem 0 0;
  white-space: nowrap;
  font-weight: normal;
  cursor: pointer;
}
/* !important: the theme drops the gap on the registration and identity pages */
.cm-euvat-type-option .custom-radio {
  margin-right: 0.5rem !important;
}

/* Notice in the cart */
.cm_euvat-notice,
.alert.cm_euvat-notice {
  margin: 20px 0 15px !important;
}

/* EOF */
