/* Restablecer márgenes y rellenos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

/* Establecer fuente y fondo básicos */
body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f4f4f4;
  color: #313131;
  line-height: 1.6;
  padding: 0 20px;
  min-height: 100%;
  font-size: 12px;
}

header {
  position: relative;
  width: 100%;
  height: 100px;
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-image: url(./media/logo.png);
}

.row {
  margin: 0;
}

#main {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  background-color: #fff;
  min-height: 100%;
  letter-spacing: 1px;
}

#form_recipient {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: row;
}

/* Estilo para el encabezado */
h1 {
  font-size: 18px;
  color: #000;
  margin-bottom: 20px;
}

.form-block {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-block-checkbox {
  position: relative;
  display: flex;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 16px;
}

.form-block-checkbox span {
  margin-top: 4px;
}

label {
  margin-bottom: 4px;
  font-size: 12px;
}

input,
select,
textarea {
  position: relative;
  width: 100%;
  font-family: Arial, Helvetica, sans-serif;
  height: 24px;
  line-height: 24px;
  border-radius: 5px;
  border: 1px solid #e4e4e4;
  font-size: 12px;
  color: #666;
  padding: 0 4px;
  background-color: transparent;
  letter-spacing: 1px;
}

textarea {
  height: auto;
}

input[readonly] {
  background-color: #f4f4f4;
}

select.mini {
  width: 50px;
}

input[type="checkbox"] {
  width: 16px;
  margin-right: 8px;
}

input[type="submit"] {
  background-color: #313131;
  color: #fff;
  font-size: 10px;
  height: 30px;
  line-height: 29px;
}

input[type="button"] {
  background-color: #f4f4f4;
  color: #313131;
  font-size: 10px;
  height: 30px;
  line-height: 29px;
}

.text_mini {
  color: #999;
  font-size: 10px;
  letter-spacing: 0;
  font-family: Arial, Helvetica, sans-serif;
}

#direccion_envio,
#datos_sepa {
  display: none;
}

#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  letter-spacing: 1px;
}

#popup {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 2000;
}

#popup_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 1);
}

#popup_content {
  position: absolute;
  width: 400px;
  height: 80px;
  border: 1px solid #fff;
  background-color: #f4f4f4;
  color: #313131;
  letter-spacing: 1px;
  text-align: justify;
  top: 50%;
  left: 50%;
  margin-top: -40px;
  margin-left: -200px;
  padding: 10px;
}

#send-success {
  display: none;
  position: relative;
  width: 100%;
  border: 1px solid #006600;
  border-radius: 5px;
  background-color: rgba(0, 102, 0, 0.4);
  padding: 10px;
  line-height: 20px;
  font-size: 11px;
  margin-bottom: 10px;
}

#send-error {
  display: none;
  position: relative;
  width: 100%;
  border: 1px solid #660000;
  border-radius: 5px;
  background-color: rgba(102, 0, 0, 0.4);
  padding: 10px;
  line-height: 20px;
  font-size: 11px;
  margin-bottom: 10px;
}
