/*
 * Avatech - Drept de retragere
 * Stiluri front-office. Culorile pot fi ajustate din variabilele de mai jos.
 * @author Avatech
 */
:root {
  --avw-green: #62b62b;
  --avw-green-dark: #4f9522;
  --avw-navy: #1f2d3d;
  --avw-border: #e3e8ef;
  --avw-muted: #6b7280;
}

/* ---------- Buton footer ---------- */
.avw-footer-wrap {
  text-align: center;
  padding: 16px 12px;
}
.avw-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--avw-green);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  text-decoration: none !important;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  transition: background .18s ease, transform .18s ease;
}
.avw-footer-btn:hover,
.avw-footer-btn:focus {
  background: var(--avw-green-dark);
  color: #fff !important;
  transform: translateY(-1px);
}
/* SVG constrâns explicit: unele teme forțează svg{width:100%} și îl măresc. */
.avw-footer-icon {
  display: inline-flex;
  flex: 0 0 auto;
}
.avw-footer-btn svg {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 auto;
  display: block;
}

/* ---------- Pagina formular ---------- */
.avw-page { max-width: 760px; margin: 0 auto; }
.avw-intro {
  background: #f4f6f8;
  border-left: 4px solid var(--avw-green);
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 22px;
  color: var(--avw-navy);
  line-height: 1.55;
}
.avw-recipient {
  border: 1px solid var(--avw-border);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 18px;
  background: #fff;
}
.avw-recipient-title { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--avw-muted); }
.avw-recipient p { margin: 0; }
.avw-statement { font-weight: 600; margin-bottom: 18px; }

.avw-form .avw-group { margin-bottom: 16px; }
.avw-label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--avw-navy); }
.avw-req { color: #d9534f; }
.avw-hint { display: block; margin-top: 4px; color: var(--avw-muted); font-size: 12px; }

/* ---------- Listă produse (selecție retragere) ---------- */
.avw-products-list {
  border: 1px solid var(--avw-border);
  border-radius: 6px;
  padding: 6px 14px;
  background: #fff;
}
.avw-products-empty {
  margin: 0;
  padding: 10px 2px;
  color: var(--avw-muted);
  font-size: 14px;
}
.avw-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--avw-border);
}
.avw-item:last-child { border-bottom: 0; }
.avw-item.is-checked { background: rgba(98, 182, 43, .06); }
.avw-item-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 500;
  cursor: pointer;
  flex: 1 1 55%;
}
.avw-item-check input { margin: 0; flex: 0 0 auto; }
.avw-item-name { color: var(--avw-navy); }
.avw-item-ref { color: var(--avw-muted); font-weight: 400; font-size: 12px; }
.avw-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--avw-muted);
}
.avw-item-qty-select {
  min-width: 64px;
  padding: 4px 8px;
  border: 1px solid var(--avw-border);
  border-radius: 4px;
  background: #fff;
}
.avw-item-qty-select:disabled { opacity: .5; cursor: not-allowed; }
.avw-item-qty-max { white-space: nowrap; }

.avw-consent { margin: 20px 0; }
.avw-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
}
.avw-checkbox input { margin-top: 3px; }

.avw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border: 0;
  border-radius: 6px;
  background: var(--avw-green);
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background .18s ease;
}
.avw-btn:hover,
.avw-btn:focus { background: var(--avw-green-dark); color: #fff !important; }
.avw-submit { width: 100%; margin-top: 6px; }

.avw-alert { margin-bottom: 20px; }
.avw-error-list { margin: 0; padding-left: 18px; }

@media (max-width: 767px) {
  .avw-submit { padding: 14px; }
  .avw-item { flex-direction: column; align-items: flex-start; }
  .avw-item-check { flex-basis: 100%; }
}

/* ---------- Identificare comandă (vizitator) ---------- */
.avw-identify {
  border: 1px solid var(--avw-border);
  border-radius: 6px;
  padding: 16px 16px 18px;
  margin-bottom: 18px;
  background: #fbfcfe;
}
.avw-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--avw-green);
  border-radius: 6px;
  background: #fff;
  color: var(--avw-green-dark) !important;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.avw-btn-outline:hover,
.avw-btn-outline:focus { background: var(--avw-green); color: #fff !important; }
.avw-btn-outline:disabled { opacity: .6; cursor: default; }
.avw-find-msg { margin-top: 10px; font-size: 13px; font-weight: 600; min-height: 18px; }
.avw-find-info  { color: var(--avw-muted); }
.avw-find-ok    { color: var(--avw-green-dark); }
.avw-find-error { color: #d9534f; }
