/**
 * 2007-2015 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 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/osl-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 B-Ant Digital Solutions Zrt. <addons@blueant-solutions.com>
 *  @copyright 2019-2026 B-Ant Digital Solutions Zrt.
 *  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 *  International Registered Trademark & Property of PrestaShop SA
 */
/**
 * Copyright since 2026 Bant
 *
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 *
 * Scoped to .euw-app / .euw-hub so it only touches this module's own markup.
 * It deliberately overrides the theme's card, form and button look inside those
 * two roots so the withdrawal flow matches the shipped design (design/*.dc.html).
 * Everything is driven by the custom properties below — a theme that wants its
 * own palette redeclares them on `.euw-app, .euw-hub` and touches nothing else.
 *
 * No web fonts are loaded on purpose (a consumer-rights module must not call out
 * to a font CDN); --euw-font-display inherits the theme face unless overridden.
 */

.euw-app,
.euw-hub {
  --euw-acc: #3a6351;
  --euw-acc-dark: #0e2338;
  --euw-acc-tint: #e6ecf2;
  --euw-ink: #3a6351;
  --euw-body: #3a4442;
  --euw-muted: #78827f;
  --euw-line: #e5e2d9;
  --euw-line-soft: #efece4;
  --euw-field: #d5d1c5;
  --euw-surface: #fff;
  --euw-canvas: #f7f5ef;
  --euw-ok: #2e7d4f;
  --euw-ok-bg: #e7f2ea;
  --euw-ok-line: #bfdcc9;
  --euw-warn: #7a5410;
  --euw-warn-bg: #f9f0de;
  --euw-warn-line: #e5d3a8;
  --euw-font-display: inherit;

  color: var(--euw-ink);
}

.euw-hub {
  max-width: 100%;
  margin-inline: auto;
}

.euw-app {
  max-width: 100%;
  margin-inline: auto;
}

.euw-app h1,
.euw-app h2,
.euw-app h3,
.euw-hub h1,
.euw-hub h2,
.euw-hub h3 {
  font-family: var(--euw-font-display);
  letter-spacing: -0.02em;
}

.euw-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Cards --------------------------------------------------------------- */

.euw-hero,
.euw-app [data-euw-content] {
  background: var(--euw-surface);
  border: 1px solid var(--euw-line);
  border-radius: 18px;
  padding: 2em 2.25em;
}

.euw-hero {
  margin-bottom: 2em;
}

.euw-eyebrow {
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--euw-acc);
  margin-bottom: 0.75em;
}

.euw-hub-intro {
  font-size: 1.03em;
  line-height: 1.7;
  color: var(--euw-body);
  /*max-width: 42em;*/
}

/* --- Buttons ------------------------------------------------------------- */

.euw-app .btn-primary,
.euw-hub .btn-primary {
  background: var(--euw-acc);
  border-color: var(--euw-acc);
  color: #fff;
  border-radius: 10px;
  padding: 0.95em 1.9em;
  font-weight: 600;
  min-height: 3em;
}

.euw-app .btn-primary:hover,
.euw-app .btn-primary:focus,
.euw-hub .btn-primary:hover,
.euw-hub .btn-primary:focus {
  background: var(--euw-acc-dark);
  border-color: var(--euw-acc-dark);
  color: #fff;
}

.euw-hub .btn-secondary {
  background: var(--euw-surface);
  border: 1px solid #b9c5d1;
  color: var(--euw-acc);
  border-radius: 10px;
  padding: 0.95em 1.6em;
  font-weight: 600;
  min-height: 3em;
}

.euw-hub .btn-secondary:hover,
.euw-hub .btn-secondary:focus {
  background: var(--euw-acc-tint);
  color: var(--euw-acc);
}

.euw-hub-actions {
  display: flex;
  gap: 0.875em;
  margin-top: 1.75em;
  flex-wrap: wrap;
}

/* --- Forms --------------------------------------------------------------- */

.euw-app .form-group {
  margin-bottom: 1.25em;
}

.euw-app label {
  display: block;
  font-weight: 600;
  font-size: 0.9em;
  margin-bottom: 0.45em;
}

.euw-app input[type='text'],
.euw-app input[type='email'],
.euw-app input[type='tel'],
.euw-app select,
.euw-app textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.8em 0.875em;
  min-height: 3em;
  border: 1px solid var(--euw-field);
  border-radius: 9px;
  background: var(--euw-surface);
  color: var(--euw-ink);
}

.euw-app input:focus,
.euw-app select:focus,
.euw-app textarea:focus {
  outline: 2px solid var(--euw-acc);
  outline-offset: 1px;
  border-color: var(--euw-acc);
}

.euw-app input[type='checkbox'],
.euw-app input[type='radio'] {
  accent-color: var(--euw-acc);
  width: 1.125em;
  height: 1.125em;
  flex: none;
}

.euw-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--euw-acc-tint);
  color: var(--euw-acc);
  border-radius: 8px;
  padding: 0.6em 0.9em;
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: 1.5em;
}

.euw-gdpr-type {
  border: 1px solid var(--euw-line);
  border-radius: 12px;
  padding: 0.5em 1em 0.75em;
  margin: 0 0 1.25em;
}

.euw-gdpr-type label {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 400;
  margin: 0.5em 0;
  cursor: pointer;
}

.euw-optional {
  font-weight: 400;
  color: var(--euw-muted);
}

.euw-errors {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  border-radius: 12px;
  padding: 0.875em 1.125em;
  margin-bottom: 1.25em;
}

.euw-error {
  color: #a83232;
  margin: 0;
}

/* --- Step indicator ------------------------------------------------------ */

.euw-steps {
  display: flex;
  align-items: center;
  gap: 0.75em;
  list-style: none;
  margin: 0 0 1.75em;
  padding: 0;
}

.euw-step {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--euw-muted);
}

.euw-step + .euw-step {
  flex: 1;
}

.euw-step + .euw-step::before {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--euw-line);
}

.euw-step-dot {
  display: grid;
  place-items: center;
  width: 1.75em;
  height: 1.75em;
  flex: none;
  border-radius: 50%;
  background: #eceae2;
  color: var(--euw-muted);
  font-size: 0.8em;
}

/* Active / completed states come from the step the controller (or front.js)
   put on the section — no per-step markup swap needed. */
.euw-app[data-euw-step='lookup'] .euw-step:first-child,
.euw-app[data-euw-step='select'] .euw-step,
.euw-app[data-euw-step='confirmed'] .euw-step {
  color: var(--euw-ink);
}

.euw-app[data-euw-step='lookup'] .euw-step:first-child .euw-step-dot,
.euw-app[data-euw-step='select'] .euw-step:last-child .euw-step-dot {
  background: var(--euw-acc);
  color: #fff;
}

.euw-app[data-euw-step='select'] .euw-step:first-child .euw-step-dot,
.euw-app[data-euw-step='confirmed'] .euw-step-dot {
  background: var(--euw-ok);
  color: #fff;
}

.euw-app[data-euw-step='select'] .euw-step + .euw-step::before,
.euw-app[data-euw-step='confirmed'] .euw-step + .euw-step::before {
  background: var(--euw-ok);
}

/* --- Order lines --------------------------------------------------------- */

.euw-app [data-euw-content] h2 {
  font-size: 1.6em;
  margin: 0 0 0.4em;
}

.euw-deadline {
  color: var(--euw-ok);
  font-weight: 600;
  margin-bottom: 1.25em;
}

.euw-app .euw-select-all {
  display: flex;
  align-items: center;
  gap: 0.7em;
  background: var(--euw-acc-tint);
  color: var(--euw-acc);
  border-radius: 11px;
  padding: 0.875em 1.125em;
  font-weight: 600;
  margin-bottom: 0.875em;
  cursor: pointer;
}

.euw-lines {
  list-style: none;
  margin: 0 0 1.5em;
  padding: 0;
  border: 1px solid var(--euw-line);
  border-radius: 14px;
  overflow: hidden;
}

.euw-line {
  padding: 1em 1.25em;
  border-bottom: 1px solid var(--euw-line-soft);
}

.euw-line:last-child {
  border-bottom: none;
}

.euw-line-disabled {
  opacity: 0.65;
}

.euw-line label {
  display: flex;
  align-items: center;
  gap: 0.75em;
  font-weight: 400;
  font-size: 0.95em;
  margin: 0;
  cursor: pointer;
}

.euw-line-name {
  flex: 1;
  font-weight: 600;
}

.euw-line-attrs,
.euw-line-qty {
  color: var(--euw-muted);
  font-size: 0.8em;
  flex: none;
}

.euw-line-price {
  flex: none;
  font-family: var(--euw-font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.euw-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin: 0.5em 0 0 1.9em;
  background: var(--euw-warn-bg);
  border: 1px solid var(--euw-warn-line);
  color: var(--euw-warn);
  border-radius: 6px;
  padding: 0.25em 0.6em;
  font-size: 0.75em;
  font-weight: 600;
}

/* Confirmation reuses .euw-lines, but its rows are plain text — no checkbox,
   no label, so the flex layout lives on the row instead. */
.euw-line-row {
  display: flex;
  align-items: center;
  gap: 0.75em;
  font-size: 0.95em;
}

.euw-lines-static {
  margin-bottom: 1em;
}

.euw-refund {
  font-family: var(--euw-font-display);
  font-weight: 700;
  font-size: 1.05em;
  margin: 0 0 1em;
}

/* --- Confirmation -------------------------------------------------------- */

.euw-confirmation h2 {
  display: flex;
  align-items: center;
  gap: 0.9em;
}

.euw-confirmation h2::before {
  content: '✓';
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  flex: none;
  border-radius: 50%;
  background: var(--euw-ok-bg);
  color: var(--euw-ok);
  font-size: 1em;
}

.euw-confirmation-mail {
  background: var(--euw-ok-bg);
  border: 1px solid var(--euw-ok-line);
  color: var(--euw-ok);
  border-radius: 11px;
  padding: 0.85em 1.125em;
  font-weight: 600;
  margin: 0 0 1em;
}

.euw-next-steps {
  background: var(--euw-canvas);
  border-radius: 11px;
  padding: 1em 1.25em;
  color: var(--euw-body);
  line-height: 1.6;
}

/* --- Hub: how it works + FAQ --------------------------------------------- */

.euw-hub h2 {
  font-size: 1.75em;
  margin: 2.5em 0 1.25em;
}

.euw-how-it-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25em;
}

.euw-how-it-works-block {
  background: var(--euw-surface);
  border: 1px solid var(--euw-line);
  border-radius: 16px;
  padding: 1.6em 1.75em;
}

.euw-how-it-works-block h3 {
  font-size: 1em;
  margin: 0 0 0.4em;
}

.euw-how-it-works-block .euw-rich {
  font-size: 0.85em;
  line-height: 1.6;
  color: var(--euw-muted);
}

.euw-step-number {
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  background: var(--euw-acc);
  color: #fff;
  font-family: var(--euw-font-display);
  font-weight: 700;
  margin-bottom: 0.875em;
}

.euw-faq {
    max-width: 100%;
    gap: 16px;
    column-count: 2;
    column-gap: 16px;
}

.euw-faq-item {
  background: var(--euw-surface);
  border: 1px solid var(--euw-line);
  border-radius: 12px;
  break-inside: avoid;
  margin-bottom: 16px;
  display: inline-block;
  width: 100%;
}

.euw-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 1.05em 1.375em;
  min-height: 2.75em;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.euw-faq-item summary::-webkit-details-marker {
  display: none;
}

.euw-faq-item summary::after {
  content: '▼';
  color: var(--euw-muted);
  font-size: 0.7em;
  flex: none;
}

.euw-faq-item[open] summary::after {
  content: '▲';
}

.euw-faq-item summary:hover {
  background: var(--euw-canvas);
}

.euw-faq-item .euw-rich {
  padding: 0 1.375em 1.125em;
  line-height: 1.65;
  color: #5a6462;
}

/* --- Admin-authored rich text (FAQ answers, how-it-works steps) ------------
   The editor emits paragraphs, lists and links; the theme's own spacing does not
   reach inside a module block, so the few tags Quill produces are styled here. */

.euw-rich > :first-child {
  margin-top: 0;
}

.euw-rich > :last-child {
  margin-bottom: 0;
}

.euw-rich p {
  margin: 0 0 0.6em;
}

.euw-rich ul,
.euw-rich ol {
  margin: 0 0 0.6em;
  padding-left: 1.25em;
}

.euw-rich a {
  color: var(--euw-acc);
  text-decoration: underline;
}

.euw-rich a:hover {
  text-decoration: none;
}

@media (max-width: 575px) {
  .euw-hero,
  .euw-app [data-euw-content] {
    padding: 1.25em;
  }

  .euw-line label,
  .euw-line-row {
    flex-wrap: wrap;
  }
}

/* --- Custom dropdown ------------------------------------------------------
   Progressive enhancement over a real <select>: without JS the native control
   shows (and submits) as usual; with JS the select is hidden and this listbox
   takes over, so the control looks the same in every browser. */

.euw-app .euw-dropdown {
  position: relative;
}

.euw-app .euw-dd-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  min-height: 0;
}

.euw-app .euw-dd-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75em;
  width: 100%;
  min-height: 3em;
  padding: 0.8em 0.875em;
  border: 1px solid var(--euw-field);
  border-radius: 9px;
  background: var(--euw-surface);
  color: var(--euw-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.euw-app .euw-dd-button::after {
  content: '';
  flex: none;
  width: 0.5em;
  height: 0.5em;
  margin-bottom: 0.2em;
  border-right: 2px solid var(--euw-muted);
  border-bottom: 2px solid var(--euw-muted);
  transform: rotate(45deg);
}

.euw-app .euw-dd-button:hover {
  border-color: var(--euw-acc);
}

.euw-app .euw-dd-button:focus-visible {
  outline: 2px solid var(--euw-acc);
  outline-offset: 1px;
  border-color: var(--euw-acc);
}

.euw-app .euw-dd-button[aria-expanded='true'] {
  border-color: var(--euw-acc);
}

.euw-app .euw-dd-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.35em);
  left: 0;
  right: 0;
  max-height: 16em;
  overflow-y: auto;
  margin: 0;
  padding: 0.35em;
  list-style: none;
  border: 1px solid var(--euw-line);
  border-radius: 9px;
  background: var(--euw-surface);
  box-shadow: 0 12px 28px rgba(28, 36, 38, 0.12);
}

.euw-app .euw-dd-option {
  padding: 0.6em 0.7em;
  border-radius: 7px;
  color: var(--euw-body);
  cursor: pointer;
}

.euw-app .euw-dd-option-active {
  background: var(--euw-acc-tint);
  color: var(--euw-acc);
}

.euw-app .euw-dd-option-selected {
  font-weight: 600;
  color: var(--euw-acc);
}

/* --- Line thumbnail + form actions ---------------------------------------- */

.euw-line-img {
  flex: none;
  width: 3em;
  height: 3em;
  object-fit: cover;
  border: 1px solid var(--euw-line-soft);
  border-radius: 8px;
  background: var(--euw-canvas);
}

.euw-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75em;
  flex-wrap: wrap;
}

/* Back sits on the left, whatever else the row holds. */
.euw-form-actions .euw-back {
  margin-right: auto;
}

.euw-app .btn-outline {
  display: inline-block;
  padding: 0.85em 1.6em;
  border: 1px solid var(--euw-field);
  border-radius: 9px;
  background: transparent;
  color: var(--euw-ink);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.euw-app .btn-outline:hover,
.euw-app .btn-outline:focus {
  border-color: var(--euw-acc);
  color: var(--euw-acc);
  text-decoration: none;
}

/* --- Contact block --------------------------------------------------------- */

.euw-app .euw-subhead {
  font-family: var(--euw-font-display);
  font-size: 1.05em;
  font-weight: 700;
  margin: 1.75em 0 1em;
}

/* Two fields on one line, stacked once there is no room for both. */
.euw-app .euw-field-row {
  display: grid;
  gap: 0 1em;
  grid-template-columns: repeat(auto-fit, minmax(14em, 1fr));
}

.euw-app .euw-help {
  display: block;
  margin-top: 0.35em;
  color: var(--euw-muted);
  font-size: 0.8em;
}
