/**
* 2007-2023 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-2023 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.
*/

.dixi-form-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dixi-form_item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dixi-form_item label {
  font-weight: bold;
  color: white;
}

.dixi-form_item:has(input:required) label::after,
label.required::after {
  content: "*";
  color: red;
  font-weight: bold;
  margin-left: 3px;
}
.dixi-form_item input,
.dixi-form_item select,
.dixi-form_item textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.dixi-form_submit {
  width: 100%;
  padding: 10px;
  border-radius: 50px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  background-color: white;
  color: black;
  cursor: pointer;
  border: none;
  &:hover {
    background: black;
    color: white;
  }
}

.dixi-form_alert {
  width: 100%;
  border-radius: 10px;
  padding: 20px;
  margin: 10px 0;
}
.dixi-form--success {
  background: rgb(82, 199, 115);
  color: white;
}

.dixi-form--error {
  background: rgb(199, 82, 82);
  color: white;
}

.dixi-form--row {
  display: grid;
}

.dixi-form--row.row-double {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* MODAL */
#product-form_modal {
  display: none;
  position: fixed;
  width: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background-color: white;
  padding: 2rem;
}
#product-form_modal h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  text-align: center;
}
.product-form_modal--overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.product-form_modal--close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.dixi-product_form-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dixi-product_form--row {
  display: grid;
}

.row-double {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.dixi-product_form_item {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.dixi-product_form_item input,
.dixi-product_form_item textarea {
  padding: 0.7rem;
}

.dixi-product_form_item:has(input:required) label::after,
label.required::after {
  content: "*";
  color: red;
  font-weight: bold;
  margin-left: 3px;
}

.is-open {
  display: block !important;
}

.modal-open {
  overflow: hidden;
}

#product-form_modal .dixi-form_submit {
  background-color: #0b1531;
}


@media screen and (max-width:768px) {
  .dixi-product_form--row {
    display: flex;
    flex-direction: column;
  }
}