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

/* Extra services options (cart page + delivery step) */
.aes-heading {
  margin-bottom: .75rem;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--bs-secondary-color, #757575);
}

.aes-list {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  margin-bottom: 1.5rem;
}

.aes-option {
  padding: .75rem .875rem;
  background-color: var(--bs-tertiary-bg, #f6f6f6);
  border: 1px solid var(--bs-border-color, #e0e0e0);
  border-radius: var(--bs-border-radius, .625rem);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.aes-option--checked {
  background-color: color-mix(in srgb, var(--bs-primary, #9cbe20) 10%, var(--bs-tertiary-bg, #f6f6f6));
  border-color: var(--bs-primary, #9cbe20);
}

.aes-option__row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.aes-option__checkbox {
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  margin: .1875rem 0 0;
  background-color: var(--bs-white);
  border: 1.5px solid var(--bs-border-color, #c7ced4);
  border-radius: .25rem;
  position: relative;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.aes-option__checkbox:checked {
  background-color: var(--bs-primary, #9cbe20);
  border-color: var(--bs-primary, #9cbe20);
}

.aes-option__checkbox:checked::after {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  width: .3125rem;
  height: .5625rem;
  border: solid var(--bs-white);
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

.aes-option__checkbox:focus-visible {
  outline: 2px solid var(--bs-primary, #9cbe20);
  outline-offset: 2px;
}

.aes-option__body {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
  cursor: pointer;
}

.aes-option__top {
  display: flex;
  align-items: baseline;
  gap: .75rem;
}

.aes-option__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--bs-body-color, #262626);
  line-height: 1.3;
  overflow-wrap: break-word;
}

.aes-option__price {
  flex: 0 0 auto;
  font-size: .95rem;
  font-weight: 700;
  color: var(--bs-primary-text-emphasis, var(--bs-primary, #62772a));
  white-space: nowrap;
}

.aes-option__toggle {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  margin-top: .5rem;
  padding: .1875rem .625rem;
  background-color: var(--bs-body-bg, #fff);
  border: 1px solid var(--bs-border-color, #e0e0e0);
  border-radius: 999px;
  color: var(--bs-secondary-color, #626262);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.aes-option__toggle:hover {
  background-color: var(--bs-tertiary-bg, #f2f2f2);
}

.aes-option__toggle:focus-visible {
  outline: 2px solid var(--bs-primary, #9cbe20);
  outline-offset: 2px;
}

.aes-option__toggle[aria-expanded="true"] {
  border-color: var(--bs-primary, #9cbe20);
  color: var(--bs-primary-text-emphasis, var(--bs-primary, #62772a));
}

.aes-option__chevron {
  flex-shrink: 0;
  transition: transform .2s ease;
}

.aes-option__toggle[aria-expanded="true"] .aes-option__chevron {
  transform: rotate(180deg);
}

.aes-option__desc-inner {
  margin-top: .625rem;
  padding: .625rem .75rem;
  background-color: var(--bs-body-bg, #fff);
  border-radius: calc(var(--bs-border-radius, .625rem) - .25rem);
  color: var(--bs-secondary-color, #626262);
  font-size: .85rem;
  line-height: 1.5;
}

.aes-option__desc-inner :last-child {
  margin-bottom: 0;
}

/* Extra-service products (insurance, express...) are controlled only by the
   checkbox above: hide the quantity stepper entirely in the main cart list. */
.aes-qty-locked {
  display: none;
}
