/**
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2015 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

.quotation-submittion-loader.loading{
  display:flex!important;
}

.quotation-submittion-loader {
  position:absolute;
  display: none!important;
  top:0;
  height:100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 10000;
}

.quotation-submittion-loader img{
  max-height: 50px;
}

.quotation-quanitity-warning img{
  width: 100%;
}

.quotation-form-container {
  width: 100%;
  background-color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  padding: 4% 3% 3% 3%;
  border: 2px solid #e0e0e0;
  border-radius: 20px 20px 20px 0;
}

.quotation-form-container .required > label::after{
  content: '*';
  color: red;
  margin-left: 2px;
}

.quotation-form-container .form-title {
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 18px;
  line-height: 20px;
  color: var(--grey-sp);
  width: 100%;
}

.quotation-form-container input[type="text"],
.quotation-form-container input[type="email"],
.quotation-form-container select,
.quotation-form-container textarea {
  width: 100%;
  max-width: 100%;
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--grey-sp);
  background-color: #ffffff;
  background-clip: padding-box;
  border: 1px solid var(--grey);
  border-radius: 0.25rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  box-sizing: border-box;
  margin-bottom: 0;
}

.quotation-form-container .form-group {
  margin-bottom: 1rem;
  /* padding-right: 0; -- Quitado, Bootstrap .row debe manejar gutters */
}

.quotation-form-container label:not(.form-check-label):not(.file-upload-label) {
  font-size: 0.875rem;
  color: var(--grey-sp);
  display: block;
  margin-bottom: 0.3rem;
  font-family:'Almarai',Open sans, arial, sans-serif;
    font-weight: 700;
}

.quotation-form-container span.obligatorio {
  color: red;
  font-weight: bold;
}

.quotation-form-container select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2210%22%20height%3D%225%22%20viewBox%3D%220%200%2010%205%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M0%200l5%205%205-5H0z%22%20fill%3D%22%2355595c%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 10px 5px;
  padding-right: 2.5rem;
}

.quotation-form-container input[type="text"]:focus,
.quotation-form-container input[type="email"]:focus,
.quotation-form-container select:focus,
.quotation-form-container textarea:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

.quotation-form-container textarea {
  min-height: 120px;
  resize: vertical;
}

.quotation-form-container .avisoUnidades a {
  font-weight: bold;
  text-decoration: underline;
}

/* Estilos para Checkbox GDPR (simplificados) */
.quotation-form-container .gdpr-consent-group {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}
.quotation-form-container .gdpr-consent-group input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0 0.5rem 0 0;
  padding:0;
  flex-shrink: 0;
}
/* Estos selectores apuntan a los labels del hook de GDPR de PrestaShop y a un label manual */
.quotation-form-container .gdpr_consent .psgdpr_consent_message {
  padding-left: 25px !important;
}

.quotation-form-container .gdpr_consent .psgdpr_consent_message input[type=checkbox] + span {
  margin-top: 3px;
}

.quotation-form-container .gdpr-consent-group label,
.quotation-form-container .gdpr-consent-group .ps_dataprivacy label, /* ps_dataprivacy es común en PS 1.7+ */
.quotation-form-container .gdpr-consent-group .psgdpr_consent_label { /* Clase del módulo psgdpr */
  font-size: 0.875rem;
  color: #555;
  font-weight: normal;
  margin-bottom: 0;
  line-height: 1.4;
  cursor: pointer;
}
.quotation-form-container .gdpr-consent-group a {
  color: #007bff;
  text-decoration: underline;
}

.quotation-form-container .gdpr_consent .psgdpr_consent_message a {
  font-size: 14px;
  text-decoration: underline;
}



.quotation-form-container #wim_submitquotation {
  float: none;
  display: inline-block;
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 2rem;
  color: #FFF;
  padding: .125rem 2rem;
  border-radius: var(--selfpack-border-radius);
  background: var(--black-sp);
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background-color .15s ease-in-out;
  text-transform: lowercase;
  min-width: 240px;
}

.quotation-form-container #wim_submitquotation:hover {
  background: #23272b;
}

.quotation-form-container .submit-button-container {
  text-align: right;
  margin-top: 1rem;
}

.quotation-form-container .tag_upload {
  display: none;
}
.quotation-form-container .custom-file-upload-wrapper {
  margin-top: 1rem;
}
.quotation-form-container .custom-file-upload-wrapper > label {
  display: block;
  font-size: 0.875rem;
  color: #555555;
  margin-bottom: 0.3rem;
  font-weight: normal;
}
.quotation-form-container .custom-file-upload .file-upload-label {
  border: 1px solid #ced4da;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-radius: 0.25rem;
  color: #555555;
  font-size: 0.875rem;
  width: auto;
}
.quotation-form-container .custom-file-upload .file-upload-label:hover {
  background-color: #e9ecef;
}
.quotation-form-container .custom-file-upload .upload-icon {
  width: 16px;
  height: 16px;
  margin-left: 50px;
}

.quotation-form-container .custom-file-upload .loaded-image-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 94px;
}

.quotation-form-container .submit-btn-container {
  text-align: right;
}

/* Media Queries */
@media (max-width: 767.98px) {

  .quotation-form-container {
    padding: 1em 2em;
  }

  .quotation-form-container .form-fields-left-group {
    margin-bottom: 1.5rem;
  }

  .quotation-form-container .submit-button-container {
    text-align: center;
  }

  .quotation-form-container #wim_submitquotation {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .quotation-form-container .gdpr-consent-group {
    text-align: center;
    justify-content: center;
  }
  .quotation-form-container .gdpr-consent-group .ps_dataprivacy p,
  .quotation-form-container .gdpr-consent-group label {
    display: inline-block;
    max-width: 90%;
    text-align: left;
  }

  .quotation-form-container .custom-file-upload .file-upload-label {
    width: 100%;
    justify-content: space-between;
  }
}

@media (min-width: 768px) {
  .quotation-form-container #wim_submitquotation {
    margin-top: 0;
  }
}

