/* Jazgot withdrawal module - modern front */
.jwg-withdrawal-page {
  --jwg-primary: #b30016;
  --jwg-primary-hover: #860010;
  --jwg-accent: #2e7d32;
  --jwg-page-bg: #f6f7fb;
  --jwg-surface: #ffffff;
  --jwg-surface-muted: #f8fafc;
  --jwg-border: #e2e8f0;
  --jwg-border-strong: #cbd5e1;
  --jwg-text: #172033;
  --jwg-muted: #64748b;
  --jwg-danger: #b91c1c;
  --jwg-radius: 8px;
  --jwg-shadow: 0 18px 45px rgba(15, 23, 42, .08);
  --jwg-shadow-soft: 0 8px 24px rgba(15, 23, 42, .06);
  padding: 34px 0 58px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(246,247,251,.96)),
    var(--jwg-page-bg);
  color: var(--jwg-text);
}

.jwg-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
  color: var(--jwg-text);
}

.jwg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--jwg-surface);
  border: 1px solid var(--jwg-border);
  border-radius: var(--jwg-radius);
  padding: 34px 38px;
  margin-bottom: 18px;
  box-shadow: var(--jwg-shadow);
}

.jwg-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--jwg-primary);
}

.jwg-hero-compact {
  display: block;
}

.jwg-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(179, 0, 22, .08);
  color: var(--jwg-primary);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
}

.jwg-hero h1 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.18;
  color: var(--jwg-text);
  font-weight: 760;
}

.jwg-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--jwg-muted);
  font-size: 15px;
  line-height: 1.65;
}

.jwg-hero-badge {
  min-width: 170px;
  background: var(--jwg-surface-muted);
  border: 1px solid var(--jwg-border);
  border-radius: var(--jwg-radius);
  padding: 20px 18px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.jwg-hero-badge strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  color: var(--jwg-primary);
  font-weight: 780;
}

.jwg-hero-badge span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--jwg-muted);
}

.jwg-card {
  background: var(--jwg-surface);
  border: 1px solid var(--jwg-border);
  border-radius: var(--jwg-radius);
  padding: 26px 30px;
  margin-bottom: 16px;
  box-shadow: var(--jwg-shadow-soft);
}

.jwg-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.jwg-step {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--jwg-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 760;
  font-size: 13px;
  box-shadow: 0 8px 18px rgba(179, 0, 22, .22);
}

.jwg-card h2 {
  margin: 0 0 5px;
  color: var(--jwg-text);
  font-size: 19px;
  line-height: 1.25;
  font-weight: 740;
}

.jwg-card-head p {
  margin: 0;
  color: var(--jwg-muted);
  font-size: 13px;
  line-height: 1.5;
}

.jwg-grid {
  display: grid;
  gap: 16px 18px;
}

.jwg-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jwg-grid-1 {
  grid-template-columns: 1fr;
}

.jwg-field label {
  display: block;
  margin-bottom: 7px;
  color: #263244;
  font-weight: 700;
  font-size: 12px;
}

.jwg-field label span,
.jwg-required {
  color: var(--jwg-danger);
}

.jwg-field small {
  display: block;
  margin-top: 7px;
  color: var(--jwg-muted);
  font-size: 12px;
  line-height: 1.45;
}

.jwg-field-short {
  max-width: 430px;
}

.jwg-withdrawal-page .form-control {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--jwg-border-strong);
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--jwg-text);
  background-color: #fff;
  box-shadow: none;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.jwg-withdrawal-page textarea.form-control {
  min-height: 116px;
  resize: vertical;
}

.jwg-withdrawal-page select.form-control {
  appearance: auto;
  background-color: #fff;
}

.jwg-withdrawal-page .form-control:focus {
  border-color: var(--jwg-primary);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(179, 0, 22, .10);
}

.jwg-withdrawal-page .form-control[readonly] {
  background: #f8fafc;
  color: #475569;
}

.jwg-products-table {
  border: 1px solid var(--jwg-border);
  border-radius: var(--jwg-radius);
  overflow: hidden;
  background: #fff;
}

.jwg-products-head,
.jwg-products-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr) 110px;
  gap: 0;
  align-items: center;
}

.jwg-products-head-notes,
.jwg-products-row-notes {
  grid-template-columns: minmax(0, 2fr) minmax(140px, 1fr) 96px minmax(170px, 1fr);
}

.jwg-products-head {
  background: #f8fafc;
  color: #334155;
  font-weight: 760;
  font-size: 12px;
  border-bottom: 1px solid var(--jwg-border);
}

.jwg-products-head > div,
.jwg-products-row > div {
  padding: 12px;
  border-right: 1px solid var(--jwg-border);
}

.jwg-products-head > div:last-child,
.jwg-products-row > div:last-child {
  border-right: 0;
}

.jwg-products-row {
  border-top: 1px solid #eef2f7;
}

.jwg-products-row:first-of-type {
  border-top: 0;
}

.jwg-products-row-disabled {
  background: #f8fafc;
  color: var(--jwg-muted);
}

.jwg-products-row-disabled .form-control {
  background: #f1f5f9;
  color: var(--jwg-muted);
}

.jwg-product-name {
  font-weight: 650;
  color: var(--jwg-text);
}

.jwg-checkbox {
  display: flex !important;
  gap: 10px;
  align-items: center;
  margin: 0 !important;
  font-weight: 650 !important;
  cursor: pointer;
}

.jwg-checkbox input {
  margin: 0;
  accent-color: var(--jwg-primary);
}

.jwg-excluded-note {
  display: block;
  margin-top: 7px;
  color: var(--jwg-danger);
  font-size: 12px;
  line-height: 1.4;
}

.jwg-qty {
  max-width: 88px;
}

.jwg-bank-fields {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--jwg-border);
}

.jwg-privacy {
  margin: 4px 0 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--jwg-border);
  border-left: 4px solid var(--jwg-primary);
  border-radius: 7px;
  color: var(--jwg-muted);
  font-size: 13px;
  line-height: 1.5;
}

.jwg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.jwg-btn-primary,
.jwg-withdrawal-page .btn-primary.jwg-btn-primary {
  border: 0;
  border-radius: 7px;
  padding: 12px 22px;
  font-weight: 760;
  background: var(--jwg-primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(179, 0, 22, .22);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.jwg-btn-primary:hover {
  background: var(--jwg-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(179, 0, 22, .26);
}

.jwg-btn-secondary {
  border-radius: 7px;
  padding: 12px 20px;
}

.jwg-alert {
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: var(--jwg-radius);
}

.jwg-alert-danger {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #991b1b;
}

.jwg-alert ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.jwg-summary dl {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 11px 18px;
  margin: 0;
}

.jwg-summary dt {
  font-weight: 760;
  color: #334155;
}

.jwg-summary dd {
  margin: 0;
  color: var(--jwg-muted);
}

.jwg-success-card {
  background: var(--jwg-surface);
  border: 1px solid var(--jwg-border);
  border-radius: var(--jwg-radius);
  padding: 46px 34px;
  text-align: center;
  box-shadow: var(--jwg-shadow);
}

.jwg-success-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--jwg-accent);
  color: #fff;
  font-size: 34px;
  font-weight: 760;
}

.jwg-success-card h1 {
  margin: 0 0 10px;
  font-size: 28px;
  color: var(--jwg-text);
}

.jwg-success-card p {
  color: var(--jwg-muted);
}

.jwg-muted {
  color: var(--jwg-muted);
}

.jwg-footer-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1040;
}

.jwg-footer-cta-bottom_left {
  right: auto;
  left: 22px;
}

.jwg-footer-cta-middle_right {
  right: 22px;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
}

.jwg-footer-cta-middle_left {
  right: auto;
  left: 22px;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
}

.jwg-footer-cta-bar {
  left: 50%;
  right: auto;
  bottom: 18px;
  width: min(680px, calc(100vw - 32px));
  transform: translateX(-50%);
}

.jwg-footer-cta-inline {
  position: static;
  display: inline-flex;
  margin: 10px 0;
  z-index: auto;
}

.jwg-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  max-width: min(260px, calc(100vw - 44px));
  padding: 10px 14px;
  border: 1px solid rgba(179, 0, 22, .18);
  border-radius: 999px;
  background: #fff;
  color: var(--jwg-primary, #b30016) !important;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 760;
  text-decoration: none !important;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .18);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease;
}

.jwg-footer-cta-bar .jwg-footer-link {
  justify-content: center;
  width: 100%;
  max-width: none;
  border-radius: 8px;
}

.jwg-footer-cta-inline .jwg-footer-link {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit !important;
  font-size: inherit;
  box-shadow: none;
}

.jwg-footer-cta-inline .jwg-footer-link:hover,
.jwg-footer-cta-inline .jwg-footer-link:focus {
  background: transparent;
  color: inherit !important;
  transform: none;
  box-shadow: none;
  text-decoration: underline !important;
}

.jwg-footer-cta-inline .jwg-footer-link-icon {
  display: none;
}

.jwg-footer-link:hover,
.jwg-footer-link:focus {
  background: var(--jwg-primary, #b30016);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, .24);
}

.jwg-footer-link-icon {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(179, 0, 22, .10);
  color: inherit;
  font-size: 14px;
  font-weight: 760;
}

.jwg-order-detail-action {
  margin: 16px 0;
}

.jwg-order-history-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-left: 8px;
  padding: 5px 10px;
  border: 1px solid #b30016;
  border-radius: 6px;
  background: #b30016;
  color: #fff !important;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}

.jwg-order-history-action:hover,
.jwg-order-history-action:focus {
  background: #860010;
  border-color: #860010;
  color: #fff !important;
  text-decoration: none !important;
}

@media (max-width: 767px) {
  .jwg-withdrawal-page {
    padding: 18px 0 38px;
  }

  .jwg-shell {
    padding: 0 12px;
  }

  .jwg-hero {
    grid-template-columns: 1fr;
    padding: 26px 20px;
  }

  .jwg-hero h1 {
    font-size: 24px;
  }

  .jwg-hero-badge {
    min-width: 0;
  }

  .jwg-card {
    padding: 22px 16px;
  }

  .jwg-card-head {
    gap: 11px;
  }

  .jwg-grid-2 {
    grid-template-columns: 1fr;
  }

  .jwg-products-head {
    display: none;
  }

  .jwg-products-row,
  .jwg-products-row-notes {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .jwg-products-row > div {
    padding: 7px 0;
    border-right: 0;
  }

  .jwg-actions {
    flex-direction: column;
  }

  .jwg-actions .btn {
    width: 100%;
  }

  .jwg-summary dl {
    grid-template-columns: 1fr;
  }

  .jwg-footer-cta {
    right: 12px;
    left: auto;
    bottom: 12px;
    top: auto;
    width: auto;
    transform: none;
  }

  .jwg-footer-link {
    justify-content: center;
    width: auto;
    max-width: calc(100vw - 24px);
    border-radius: 8px;
  }

  .jwg-footer-cta-bar {
    left: 12px;
    right: 12px;
    width: auto;
  }

  .jwg-footer-cta-bar .jwg-footer-link {
    width: 100%;
    max-width: none;
  }

  .jwg-footer-cta-inline {
    display: inline-flex;
    margin: 10px 0;
  }

  .jwg-footer-cta-inline .jwg-footer-link {
    width: auto;
  }

  .jwg-order-history-action {
    margin-top: 6px;
    margin-left: 0;
  }
}

@media print {
  .jwg-footer-cta {
    display: none !important;
  }
}
