/**
 * EU Withdrawal Button (euwithdrawal) — self-contained front styles.
 *
 * Fully namespaced (.euw-*) and theme-agnostic. Minimalist, centered, clean
 * layout with a black/white/grey palette and a system font stack. Mobile-first.
 *
 * @author    shelby-software.ro
 * @license   Commercial — proprietary. See README.
 * @copyright Since 2026 shelby-software.ro
 */

/* ============================ Floating button ============================ */
/* Black pill + white text: guaranteed contrast on any theme. Very high z-index. */
.euw-float {
  position: fixed;
  z-index: 2147483000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  margin: 0;
  padding: 13px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  color: #fff;
  background: #111;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  transition: background-color .15s ease, transform .15s ease;
}
.euw-float:hover,
.euw-float:focus { background: #000; color: #fff; text-decoration: none; transform: translateY(-1px); }
.euw-float__ico, .euw-float__txt { color: #fff; }
/* The glyph is an inline SVG, not a character: U+21A9 (and most arrow codepoints)
   are force-rendered as a colour emoji by iOS Safari, which ignores our colour and
   sits off-baseline. The SVG scales off font-size so the rules below still apply. */
.euw-float__ico { display: inline-flex; font-size: 17px; line-height: 1; }
.euw-float__ico svg,
.euw-footerbar__ico svg { width: 1em; height: 1em; display: block; }
.euw-float--top-left     { top: 18px;    left: 18px;  }
.euw-float--top-right    { top: 18px;    right: 18px; }
.euw-float--bottom-left  { bottom: 18px; left: 18px;  }
.euw-float--bottom-right { bottom: 18px; right: 18px; }
@media (max-width: 480px) {
  .euw-float { padding: 13px; }
  .euw-float__txt { display: none; }
  .euw-float__ico { font-size: 20px; }
}

/* Icon-only variant: the same fixed anchor collapsed to a round badge. The label
   stays in the DOM for screen readers (clipped, not display:none). */
.euw-float--icon { padding: 0; width: 46px; height: 46px; justify-content: center; gap: 0; }
.euw-float--icon .euw-float__ico { font-size: 20px; }
.euw-float--icon .euw-float__txt {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ===================== Fixed bar (dark band below footer) ================ */
/* A full-width dark strip in normal flow (position:relative), rendered AFTER the
   footer by a tiny script. Holds one centered, minimalist link — no pill, no
   shadow: just white text on a dark band. */
.euw-footerbar {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 20px 16px;
  text-align: center;
  background: #111;
}
.euw-footerbar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
  text-decoration: none;
  color: #fff;
  opacity: .85;
  transition: opacity .15s ease;
}
.euw-footerbar__link:hover,
.euw-footerbar__link:focus { opacity: 1; color: #fff; text-decoration: none; }
.euw-footerbar__ico { display: inline-flex; font-size: 15px; line-height: 1; color: #fff; }

/* Bare variant: same placement, no band. Transparent background with the link in
   currentColor so it blends into whatever the theme puts below the footer. */
.euw-footerbar--bare { padding: 14px 16px; background: transparent; }
.euw-footerbar--bare .euw-footerbar__link,
.euw-footerbar--bare .euw-footerbar__ico { color: inherit; }
.euw-footerbar--bare .euw-footerbar__link {
  font-weight: 500;
  opacity: .7;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.euw-footerbar--bare .euw-footerbar__link:hover,
.euw-footerbar--bare .euw-footerbar__link:focus { color: inherit; opacity: 1; text-decoration: underline; }

/* ============================ Withdrawal page =========================== */
.euw-scope {
  box-sizing: border-box;
  max-width: 540px;
  margin: 48px auto;
  padding: 0 16px;
  color: #1a1d21;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.euw-scope *, .euw-scope *::before, .euw-scope *::after { box-sizing: border-box; }

.euw-card {
  background: #fff;
  border: 1px solid #ededf0;
  border-radius: 16px;
  padding: 44px 40px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .05);
}
.euw-card--center { text-align: center; }

.euw-title {
  margin: 0 0 10px;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.25;
  text-align: center;
  color: #0d0f12;
}
.euw-lead {
  max-width: 400px;
  margin: 0 auto 30px;
  text-align: center;
  color: #6b7280;
  font-size: 15px;
}

/* ----- Stepper (centered, thin connectors) ----- */
.euw-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}
.euw-steps li {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .01em;
  color: #b0b4bb;
  white-space: nowrap;
}
.euw-steps li:not(:last-child)::after {
  content: "";
  width: 26px;
  height: 1px;
  margin: 0 12px;
  background: #e6e7eb;
}
.euw-steps li.is-active { color: #0d0f12; font-weight: 600; }

/* ----- Fields ----- */
.euw-field { margin: 0 0 20px; text-align: left; }
.euw-field--center, .euw-field--center .euw-label { text-align: center; }
.euw-label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #353a42;
}
.euw-hint { display: block; margin: 7px 0 0; font-size: 12.5px; color: #9aa0a8; }
.euw-input, .euw-textarea, select.euw-input {
  display: block;
  width: 100%;
  padding: 13px 15px;
  font-size: 15px;
  font-family: inherit;
  color: #1a1d21;
  background: #fff;
  border: 1px solid #dcdfe4;
  border-radius: 11px;
  appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.euw-input::placeholder, .euw-textarea::placeholder { color: #b6bbc2; }
.euw-input:focus, .euw-textarea:focus, select.euw-input:focus {
  outline: none;
  border-color: #0d0f12;
  box-shadow: 0 0 0 3px rgba(13, 15, 18, .08);
}
.euw-textarea { min-height: 96px; resize: vertical; }
.euw-input--otp {
  max-width: 260px;
  margin: 0 auto;
  letter-spacing: .5em;
  text-indent: .5em;
  text-align: center;
  font-size: 26px;
  font-weight: 600;
}

/* ----- Buttons ----- */
.euw-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}
.euw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: #0d0f12;
  border: 1px solid #0d0f12;
  border-radius: 11px;
  cursor: pointer;
  transition: background-color .15s ease, opacity .15s ease;
}
.euw-btn:hover { background: #000; color: #fff; text-decoration: none; }
.euw-btn--ghost { color: #0d0f12; background: transparent; border-color: #dcdfe4; }
.euw-btn--ghost:hover { background: #f6f7f8; color: #0d0f12; }

/* ----- Notices ----- */
.euw-notice {
  margin: 0 0 22px;
  padding: 13px 16px;
  border-radius: 11px;
  font-size: 14px;
  text-align: center;
}
.euw-notice--info    { background: #f2f5fb; color: #2c4a73; }
.euw-notice--warning { background: #fff6e9; color: #875300; }
.euw-notice--success { background: #ecf7f0; color: #1d6b3b; }
.euw-notice--danger  { background: #fdeeec; color: #98271c; }

/* ----- Product table (Flow B) ----- */
.euw-products { width: 100%; border-collapse: collapse; margin: 0 0 22px; }
.euw-products th, .euw-products td {
  padding: 13px 8px;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
  border-bottom: 1px solid #eef0f2;
}
.euw-products th { color: #9aa0a8; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.euw-products tr:last-child td { border-bottom: 0; }
.euw-products .euw-col-qty { width: 86px; text-align: center; }
.euw-products input[type="number"] {
  width: 68px; padding: 9px 8px; text-align: center; font-size: 15px;
  border: 1px solid #dcdfe4; border-radius: 9px;
}

/* ----- Summary list (Flow A) ----- */
.euw-summary { margin: 0 0 22px; padding: 0; list-style: none; }
.euw-summary li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid #eef0f2;
}
.euw-summary li:last-child { border-bottom: 0; }
.euw-summary li span:last-child { color: #9aa0a8; white-space: nowrap; }

/* ----- Success ----- */
.euw-success-ico {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin: 0 auto 18px;
  font-size: 26px; color: #fff; background: #1d6b3b; border-radius: 50%;
}
.euw-reference {
  display: inline-block;
  margin: 4px 0 18px;
  padding: 12px 22px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #0d0f12;
  background: #f6f7f8;
  border: 1px dashed #d4d7dc;
  border-radius: 12px;
}
.euw-legal { margin: 22px 0 0; font-size: 12.5px; line-height: 1.6; color: #9aa0a8; text-align: center; }

/* ----- Mobile ----- */
@media (max-width: 560px) {
  .euw-scope { margin: 28px auto; }
  .euw-card { padding: 28px 20px; border-radius: 14px; }
  .euw-title { font-size: 22px; }
  .euw-steps li:not(:last-child)::after { width: 16px; margin: 0 8px; }
  .euw-actions { flex-direction: column-reverse; }
  .euw-btn { width: 100%; min-width: 0; }
  .euw-products th, .euw-products td { padding: 11px 6px; font-size: 13px; }
}
