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

/* Contenedor general */

.gprs_title label {
    text-align: left !important;
    justify-content: flex-start !important;
}

/* Asegurar que el icono + / − quede también a la izquierda si lo prefieres */
.gprs_title label::after {
    right: auto;
    left: 15px;
}

.gprs_block {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 15px 0;
  background: #fff;
}

/* Ocultamos el checkbox de control */
.gprs-toggle {
  display: none;
}

/* Cabecera / título clickable */
.gprs_title {
  margin: 0;
  font-size: 1.1rem;
}

.gprs_title label {
  display: block;
  margin: 0;
  padding: 10px 35px;
  cursor: pointer;
  font-weight: 600;
  position: relative;
}

/* Icono + / - al lado del título */
.gprs_title label::after {
  content: '+';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
}

/* Contenido plegable */
.gprs_content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 15px;
}

/* Cuando está abierto (checkbox marcado) */
.gprs-toggle:checked ~ .gprs_content {
  max-height: 5000px; /* suficientemente grande para todo el contenido */
  padding-bottom: 15px;
}

/* Cambiamos el icono cuando está abierto */
.gprs-toggle:checked + .gprs_title label::after {
  content: '−';
}

/* Estilos opcionales de tabla */
.gprs-table {
  margin-top: 10px;
}

.gprs-table th,
.gprs-table td {
  vertical-align: top;
}
