/* dialog */

.dialog {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  display: none;
}

.dialogVisible {
  display: block;
}

.dialogContent {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #FFFFFF;
  padding: 30px;
  width: 600px;
  max-width: 100%;
}

.dialogTitle {
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #6C9400;
}

.dialogText {
  margin-bottom: 15px;
}

.dialogError {
  display: none;
  margin-bottom: 15px;
  color: #FF5300;
}

.dialogErrorShow {
  display: block;
}

.dialogButtons {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.dialog input, .dialog textarea {
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 15px;
  border: 1px solid #9F9691;
  padding: 0 7px;
  line-height: 2.1rem;
  display: block;
}

.dialog textarea {
  line-height: normal;
  padding: 7px;
  resize: none;
  height: 5rem;
}

.dialog .error {
  outline: 2px solid #FF5300;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="-63 155.5 16 16"><path d="M-47.1 169.5l-7-13.1c-.2-.3-.5-.5-.9-.5s-.7.2-.9.5l-7 13.1c-.2.3-.2.7 0 1 .2.3.5.5.9.5h14c.4 0 .7-.2.9-.5.1-.3.1-.7 0-1zm-7.9-.5c-.6 0-1-.5-1-1 0-.6.5-1 1-1 .6 0 1 .5 1 1s-.4 1-1 1zm1-4c0 .6-.5 1-1 1-.6 0-1-.4-1-1v-4c0-.6.5-1 1-1 .6 0 1 .5 1 1v4z" fill="%23ff5300"/></svg>');
  background-size: 16px 16px;
  background-repeat: no-repeat;
  background-position: calc(100% - 7px) 50%;
}

.dialog a:not(.dialogButton) {
  color: #BC1212;
}

.dialog a:hover {
  text-decoration: none;
}

.dialogIcon {
  display: inline-block;
  line-height: 2rem;
  padding-left: 1.7rem;
  background-repeat: no-repeat;
  background-position: 0 50%;
  background-size: 1.3rem 1.3rem;
}

.dialogIconPhone {
  background-image: url(/_resources/images/iconPhone.svg);
}

.dialogIconWhatsapp {
  background-image: url(/_resources/images/iconWhatsapp.svg);
}

.dialogButton {
  display: table;
  padding: 0 1rem;
  border: 1px solid #9F9691;
  color: #9F9691;
  background-color: #FFFFFF;
  font-family: inherit;
  font-weight: 900;
  font-size: 0.9rem;
  line-height: 40px;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.dialogButton:first-child {
  background-color: #6C9400;
  color: #FFFFFF;
}

.dialogButton:hover {
  background-color: #9F9691;
  color: #FFFFFF;
}

.dialogButton:first-child:hover {
  background-color: #4A4A4A;
}

button::-moz-focus-inner, .button::-moz-focus-inner, .buttonLessImportant::-moz-focus-inner {
  padding: 0;
  border: none;
}
