/**
 * VEO Commercial Module
 *
 * NOTICE OF LICENSE
 *
 * This file is not open source. Each license purchased grants the right to use this module
 * on a single PrestaShop installation (including test stores and multishop instances).
 * You may modify it for your own or your client's use, but you may not redistribute, resell,
 * lease, sublicense or share it, in whole or in part, with third parties.
 *
 * DISCLAIMER
 *
 * This module is provided "as is", without warranties of any kind. The author is not
 * responsible for any data loss, security breach or damage resulting from its use.
 *
 * @author    Veo by Kebes <hola@kebes.es>
 * @copyright 2026 Veo by Kebes
 * @license   Commercial license - valid for one installation only
 */
#veogc {
  --veogc-bg: #fff;
  --veogc-text: #374151;
  --veogc-title: #111827;
  --veogc-line: #e5e7eb;
  --veogc-soft: #f3f4f6;
  font-size: 14px;
  line-height: 1.55;
  color: var(--veogc-text);
}
#veogc *,
#veogc *::before,
#veogc *::after {
  box-sizing: border-box;
}
#veogc p {
  margin: 0 0 .5em;
}
#veogc p:last-child {
  margin-bottom: 0;
}

.veogc-banner {
  display: none;
  position: fixed;
  z-index: 2147483000;
  background: rgba(255, 255, 255, var(--veogc-banner-alpha, 1));
  box-shadow: 0 -2px 24px rgba(0, 0, 0, .12);
  gap: 16px 32px;
  align-items: center;
}
.veogc-banner.veogc-blur {
  -webkit-backdrop-filter: blur(var(--veogc-banner-blur, 0));
  backdrop-filter: blur(var(--veogc-banner-blur, 0));
}
html.veogc-pending .veogc-banner {
  display: flex;
}
/* Optional backdrop behind the banner while the visitor has not chosen (off by default) */
.veogc-overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147482999;
  background: rgba(var(--veogc-overlay-rgb, 17, 24, 39), var(--veogc-overlay-alpha, .5));
}
.veogc-overlay.veogc-blur {
  -webkit-backdrop-filter: blur(var(--veogc-overlay-blur, 0));
  backdrop-filter: blur(var(--veogc-overlay-blur, 0));
}
html.veogc-pending .veogc-overlay {
  display: block;
}
.veogc-bar {
  left: 0;
  right: 0;
  padding: 18px max(16px, calc((100% - 1200px) / 2));
}
.veogc-bar.veogc-bottom {
  bottom: 0;
}
.veogc-bar.veogc-top {
  top: 0;
  box-shadow: 0 2px 24px rgba(0, 0, 0, .12);
}
.veogc-box {
  left: 16px;
  max-width: 420px;
  flex-direction: column;
  align-items: stretch;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 32px rgba(0, 0, 0, .18);
}
.veogc-box.veogc-bottom {
  bottom: 16px;
}
.veogc-box.veogc-top {
  top: 16px;
}
.veogc-banner-text {
  flex: 1 1 auto;
}
.veogc-banner-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--veogc-title);
}
.veogc-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
}
.veogc-box .veogc-banner-actions > .veogc-btn {
  flex: 1 1 0;
}
.veogc-link {
  color: inherit;
  text-decoration: underline;
}

#veogc .veogc-btn {
  appearance: none;
  border: 2px solid var(--veogc-color);
  background: var(--veogc-color);
  color: var(--veogc-ink);
  font: inherit;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
  transition: opacity .15s;
}
#veogc .veogc-btn:hover {
  opacity: .88;
}
#veogc .veogc-btn-outline {
  background: transparent;
  color: var(--veogc-title);
  border-color: var(--veogc-line);
}
#veogc .veogc-btn-link {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  color: var(--veogc-title);
  text-decoration: underline;
  padding: 9px 8px;
  cursor: pointer;
}
#veogc button:focus:not(:focus-visible) {
  outline: 0;
}
#veogc button:focus-visible,
#veogc a:focus-visible,
#veogc input:focus-visible + .veogc-slider {
  outline: 2px solid var(--veogc-color);
  outline-offset: 2px;
}

.veogc-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  background: rgba(17, 24, 39, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.veogc-modal[hidden] {
  display: none;
}
html.veogc-modal-open {
  overflow: hidden;
}
.veogc-modal-box {
  background: var(--veogc-bg);
  width: 100%;
  max-width: 780px;
  max-height: calc(100vh - 32px);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.veogc-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--veogc-line);
}
#veogc .veogc-modal-title {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
  color: var(--veogc-title);
}
#veogc .veogc-close {
  appearance: none;
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--veogc-text);
  cursor: pointer;
  padding: 0 4px;
}
.veogc-modal-body {
  display: flex;
  min-height: 300px;
  overflow: hidden;
  flex: 1 1 auto;
}
.veogc-tabs {
  flex: 0 0 230px;
  background: var(--veogc-soft);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
#veogc .veogc-tab {
  appearance: none;
  border: 0;
  border-left: 3px solid transparent;
  background: none;
  font: inherit;
  text-align: left;
  color: var(--veogc-text);
  padding: 13px 16px;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid var(--veogc-line);
}
#veogc .veogc-tab[aria-selected="true"] {
  background: var(--veogc-bg);
  border-left-color: var(--veogc-color);
  color: var(--veogc-title);
  font-weight: 600;
}
.veogc-panes {
  flex: 1 1 auto;
  padding: 20px 24px;
  overflow-y: auto;
}
#veogc .veogc-pane-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--veogc-title);
  margin: 0;
}
.veogc-pane-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.veogc-pane > .veogc-pane-title {
  margin-bottom: 12px;
}
.veogc-always {
  font-size: 13px;
  font-weight: 600;
  color: #047857;
  white-space: nowrap;
}
.veogc-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
  margin: 0;
}
.veogc-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}
.veogc-slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 26px;
  transition: background .15s;
}
.veogc-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .15s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.veogc-switch input:checked + .veogc-slider {
  background: var(--veogc-color);
}
.veogc-switch input:checked + .veogc-slider::before {
  transform: translateX(20px);
}
.veogc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.veogc-modal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid var(--veogc-line);
}
#veogc .veogc-credit {
  margin-right: auto;
  font-size: 12px;
  color: var(--veogc-text);
  text-decoration: none;
  opacity: .8;
}
#veogc .veogc-credit:hover {
  opacity: 1;
  text-decoration: underline;
}
/* The floating button steps aside while the panel is open */
html.veogc-modal-open #veogc .veogc-float {
  opacity: 0;
  pointer-events: none;
}

#veogc .veogc-float {
  position: fixed;
  bottom: 16px;
  z-index: 2147482999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--veogc-color);
  color: var(--veogc-ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}
html.veogc-done #veogc .veogc-float {
  display: flex;
}
.veogc-float-left {
  left: 16px;
}
.veogc-float-right {
  right: 16px;
}

.veogc-cookies-scroll {
  overflow-x: auto;
  margin-bottom: 1.5em;
}
.veogc-cookies table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92em;
}
.veogc-cookies th,
.veogc-cookies td {
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.veogc-cookies th {
  background: #f9fafb;
}

@media (max-width: 767px) {
  .veogc-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .veogc-bar {
    padding: 16px;
  }
  .veogc-box {
    left: 8px;
    right: 8px;
    max-width: none;
  }
  .veogc-banner-actions > .veogc-btn {
    flex: 1 1 0;
  }
  .veogc-banner-actions > .veogc-btn-link {
    flex: 1 1 100%;
  }
  .veogc-modal {
    padding: 0;
    align-items: flex-end;
  }
  .veogc-modal-box {
    max-height: 92vh;
    border-radius: 12px 12px 0 0;
  }
  .veogc-modal-body {
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
  }
  .veogc-tabs {
    flex: 0 0 auto;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
  }
  #veogc .veogc-tab {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 3px solid transparent;
  }
  #veogc .veogc-tab[aria-selected="true"] {
    border-bottom-color: var(--veogc-color);
  }
  .veogc-panes {
    overflow: visible;
  }
  .veogc-modal-foot .veogc-btn {
    flex: 1 1 auto;
  }
  #veogc .veogc-credit {
    flex: 1 1 100%;
    text-align: center;
    order: 9;
    margin: 4px 0 0;
  }
}

/* Micro-animations (Appearance > Micro-animations): transform and opacity only, so they run on the
   compositor and never move the layout; off when the visitor prefers reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  #veogc.veogc-motion .veogc-bar.veogc-bottom {
    animation: veogc-up .25s cubic-bezier(.2, .8, .2, 1) both;
  }
  #veogc.veogc-motion .veogc-bar.veogc-top {
    animation: veogc-down .25s cubic-bezier(.2, .8, .2, 1) both;
  }
  #veogc.veogc-motion .veogc-box {
    animation: veogc-pop .25s cubic-bezier(.2, .8, .2, 1) both;
  }
  #veogc.veogc-motion .veogc-overlay {
    animation: veogc-fade .25s ease-out both;
  }
  /* Leaving: the bar goes back where it came from, the box and the overlay fade */
  #veogc.veogc-motion .veogc-bar.veogc-bottom.veogc-out {
    animation: veogc-out-down .2s ease-in both;
  }
  #veogc.veogc-motion .veogc-bar.veogc-top.veogc-out {
    animation: veogc-out-up .2s ease-in both;
  }
  #veogc.veogc-motion .veogc-box.veogc-out {
    animation: veogc-out-fade .18s ease-in both;
  }
  #veogc.veogc-motion .veogc-overlay.veogc-out {
    animation: veogc-out-fade .2s ease-in both;
  }
  html.veogc-modal-open #veogc.veogc-motion .veogc-float {
    transform: scale(.6);
  }
  #veogc.veogc-motion .veogc-btn {
    transition: transform .15s, box-shadow .15s, opacity .15s;
  }
  #veogc.veogc-motion .veogc-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  }
  #veogc.veogc-motion .veogc-btn:active {
    transform: translateY(0) scale(.98);
    box-shadow: none;
  }
  #veogc.veogc-motion .veogc-btn-link,
  #veogc.veogc-motion .veogc-link {
    transition: opacity .15s;
  }
  #veogc.veogc-motion .veogc-btn-link:hover,
  #veogc.veogc-motion .veogc-link:hover {
    opacity: .7;
  }
  #veogc.veogc-motion .veogc-modal {
    animation: veogc-fade .15s ease-out both;
  }
  #veogc.veogc-motion .veogc-modal-box {
    animation: veogc-pop .2s cubic-bezier(.2, .8, .2, 1) both;
  }
  #veogc.veogc-motion .veogc-pane {
    animation: veogc-fade .15s ease-out both;
  }
  #veogc.veogc-motion .veogc-tab {
    transition: color .15s, background-color .15s, border-color .15s;
  }
  #veogc.veogc-motion .veogc-slider {
    transition: background-color .2s;
  }
  #veogc.veogc-motion .veogc-slider::before {
    transition: transform .2s cubic-bezier(.2, .8, .2, 1);
  }
  #veogc.veogc-motion .veogc-close {
    transition: transform .15s;
  }
  #veogc.veogc-motion .veogc-close:hover {
    transform: rotate(90deg);
  }
  html.veogc-done #veogc.veogc-motion .veogc-float {
    animation: veogc-pop .3s cubic-bezier(.2, .8, .2, 1) backwards;
    transition: transform .2s cubic-bezier(.2, .8, .2, 1), opacity .2s, box-shadow .15s;
  }
  #veogc.veogc-motion .veogc-float:hover {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
  }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 767px) {
  #veogc.veogc-motion .veogc-modal-box {
    animation: veogc-up .22s cubic-bezier(.2, .8, .2, 1) both;
  }
}
@keyframes veogc-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes veogc-down {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: none; }
}
@keyframes veogc-pop {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes veogc-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes veogc-out-down {
  to { opacity: 0; transform: translateY(24px); }
}
@keyframes veogc-out-up {
  to { opacity: 0; transform: translateY(-24px); }
}
@keyframes veogc-out-fade {
  to { opacity: 0; transform: scale(.98); }
}
