.wdr-page {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 20px);
  font-family: var(--font-sans, "STC Forward", "Tajawal", "Segoe UI", Tahoma, sans-serif);
}

.wdr-panels-grid {
  display: grid;
  gap: clamp(16px, 2vw, 20px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.wdr-panel--stack,
.wdr-panel--methods {
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 20px);
}

.wdr-panel--stack .wdr-head,
.wdr-panel--methods .wdr-head {
  margin-bottom: 0;
  padding-bottom: 12px;
}

.wdr-page .svc-head__eyebrow {
  margin-bottom: 10px;
}

.wdr-lead {
  margin: -4px 0 0;
  font-size: 0.875rem;
  color: #71717a;
  line-height: 1.55;
  max-width: 52ch;
}

.wdr-balance-card {
  padding: clamp(14px, 1.8vw, 18px);
  border-radius: 14px;
  border: 1px solid #e4e4e7;
  background: linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
}

.wdr-balance-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #71717a;
  margin-bottom: 8px;
}

.wdr-subsection {
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid #ececee;
}

.wdr-subsection__title {
  margin: 0 0 10px;
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0a0a0a;
  letter-spacing: -0.02em;
}

.seller-app-shell .wdr-withdraw-amount-group {
  gap: 0;
  margin: 0;
}

.seller-app-shell .wdr-withdraw-amount-group .wdr-amount-field {
  width: 100%;
}

.seller-app-shell .wdr-subsection:has(#withdrawForm) {
  padding-top: 12px;
}

.wdr-amount-field {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  min-height: 3.125rem;
  border: 1px solid var(--s-border, #e4e4e7);
  border-radius: 14px;
  background: var(--s-surface2, #f4f4f5);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wdr-amount-field:focus-within {
  border-color: var(--s-chart-line, #3f3f46);
  box-shadow: 0 0 0 3px rgba(63, 63, 70, 0.1);
}

.seller-app-shell .wdr-amount-field__input.form-control {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-block: 0.65rem;
  padding-inline: 14px 10px;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.35;
}

.seller-app-shell .wdr-amount-field__input.form-control::placeholder {
  color: #a1a1aa;
  font-weight: 500;
}

.seller-app-shell .wdr-amount-field__input.form-control[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.seller-app-shell
  .wdr-amount-field__input.form-control[type="number"]::-webkit-outer-spin-button,
.seller-app-shell
  .wdr-amount-field__input.form-control[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.seller-app-shell .wdr-amount-field__input.form-control:focus {
  outline: none !important;
  box-shadow: none !important;
}

.wdr-amount-field__suffix {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px;
  border-inline-start: none;
  background: transparent;
}

.wdr-amount-field__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #18181b;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: none;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.wdr-amount-field__icon-wrap {
  width: 1.8125rem;
  height: 1.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wdr-amount-field__send-img {
  width: 1.8125rem;
  height: 1.8125rem;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  flex-shrink: 0;
}

.wdr-amount-field__send-fallback-svg {
  display: block;
  flex-shrink: 0;
  width: 1.8125rem;
  height: 1.8125rem;
}

.wdr-amount-field__send:hover:not(:disabled) {
  opacity: 1;
  background: rgba(15, 23, 42, 0.06);
  box-shadow: none;
}

.wdr-amount-field__send:focus-visible {
  outline: 2px solid var(--s-chart-line, #3f3f46);
  outline-offset: 2px;
}

.wdr-amount-field__send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.wdr-amount-field__send--busy {
  pointer-events: none;
}

.wdr-subsection__lead {
  margin: 0 0 12px;
  font-size: 0.875rem;
  color: #71717a;
  line-height: 1.5;
}

.wdr-section-title {
  margin: 0 0 12px;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  font-weight: 800;
  color: #0a0a0a;
  letter-spacing: -0.02em;
}

.wdr-note-cell {
  white-space: normal;
  word-break: break-word;
  max-width: 280px;
}

.svc-table--withdrawals {
  min-width: 720px;
}

.svc-th--wdr-status {
  min-width: 7.5rem;
}

.svc-table--withdrawals .status-pill.pending {
  background: var(--s-surface2, #f4f4f5);
  color: var(--s-muted, #71717a);
  border: 1px solid var(--s-border, #e4e4e7);
}

.svc-table--withdrawals .status-pill.approved {
  background: var(--s-surface, #fff);
  color: var(--s-text, #0a0a0a);
  border: 1px solid var(--s-chart-line, #3f3f46);
}

.svc-table--withdrawals .status-pill.rejected {
  background: var(--s-surface2, #f4f4f5);
  color: var(--s-muted, #71717a);
  border: 1px dashed var(--s-border, #e4e4e7);
}

.svc-table--withdrawals .status-pill {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  white-space: nowrap;
}

.iban-input-wrapper {
  display: flex;
  align-items: stretch;
  flex-direction: row;
  direction: ltr;
  border: 1px solid var(--s-border);
  border-radius: 12px;
  background: var(--s-surface2);
}

.iban-input-wrapper:focus-within {
  border-color: var(--s-chart-line);
  box-shadow: 0 0 0 3px rgba(63, 63, 70, 0.12);
}

.iban-prefix {
  padding: 0.65rem 0.85rem;
  background: var(--s-surface2);
  color: var(--s-text);
  font-weight: 600;
  font-size: 1rem;
  border-inline-end: 1px solid var(--s-border);
  border-radius: 12px 0 0 12px;
}

.iban-input-wrapper .form-control {
  border: none !important;
  border-radius: 0 12px 12px 0 !important;
  flex: 1;
  min-width: 0;
  background: transparent !important;
}

.iban-input-wrapper .form-control:focus {
  box-shadow: none !important;
}

.wdr-panel--methods > .wdr-add-account {
  margin-top: 0;
}

.wdr-methods-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wdr-methods-block .methods-list {
  margin-bottom: 0;
}

.methods-list {
  display: grid;
  gap: 14px;
  margin-bottom: 0;
}

.wdr-methods-empty {
  margin: 0;
  padding: 14px 16px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #71717a;
  background: #fafafa;
  border: 1px dashed #d4d4d8;
  border-radius: 14px;
  text-align: center;
}

.wdr-add-account {
  margin-top: 14px;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  background: linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.wdr-add-account__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 13px 16px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.28s ease;
}

.wdr-add-account__trigger:hover {
  background: rgba(15, 23, 42, 0.04);
}

.wdr-add-account__trigger:focus-visible {
  outline: 2px solid var(--s-chart-line, #3f3f46);
  outline-offset: -2px;
}

.wdr-add-account__chev-wrap {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: #52525b;
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.wdr-add-account--open .wdr-add-account__chev-wrap {
  transform: rotate(180deg);
}

.wdr-add-account__collapsible {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.wdr-add-account--open .wdr-add-account__collapsible {
  grid-template-rows: 1fr;
}

.wdr-add-account__collapsible-panel {
  min-height: 0;
  overflow: hidden;
}

.wdr-add-account__body {
  padding: 0 16px 16px;
  background: #fff;
  border-top: 1px solid transparent;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.38s ease 0.06s,
    transform 0.42s cubic-bezier(0.33, 1, 0.68, 1) 0.04s,
    border-color 0.35s ease;
}

.wdr-add-account--open .wdr-add-account__body {
  opacity: 1;
  transform: translateY(0);
  border-top-color: #ececee;
}

.wdr-add-account__body .method-form {
  padding-top: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .wdr-add-account__collapsible {
    transition: none;
  }

  .wdr-add-account__body {
    transition: none;
  }

  .wdr-add-account__chev-wrap {
    transition: transform 0.15s ease;
  }

  .wdr-add-account--open .wdr-add-account__body {
    opacity: 1;
    transform: none;
  }
}

.wdr-panel--methods .svc-head__title {
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.wdr-balance-amount {
  line-height: 1.1;
}

.wdr-balance-amount .svc-price--sar {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 800;
}

.wdr-balance-amount .svc-price--sar .svc-price__amount {
  font-size: inherit;
}

.wdr-balance-amount .svc-price--sar .sar-symbol__img {
  width: 1em;
  height: 1.12em;
}

.wdr-default-hint {
  margin-top: 8px !important;
  margin-bottom: 0;
  font-size: 0.8125rem !important;
  line-height: 1.45;
  color: #52525b;
}

.wdr-default-hint[hidden] {
  display: none !important;
  margin: 0 !important;
}

.wdr-method-card {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wdr-method-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.wdr-method-card__bank {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.97rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--s-text, #0a0a0a);
  line-height: 1.35;
}

.wdr-method-card__meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 8px;
  flex-shrink: 0;
}

.wdr-method-card__default-btn {
  padding: 5px 10px !important;
  font-size: 0.72rem !important;
  border-radius: 9px !important;
}

.wdr-method-card__delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  margin: 0;
  border: none;
  background: none;
  border-radius: 8px;
  color: var(--s-muted, #71717a);
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}

.wdr-method-card__delete .wdr-icon-btn__svg {
  display: block;
}

.wdr-method-card__delete:hover:not(:disabled) {
  color: var(--s-text, #0a0a0a);
  background: var(--s-row-hover, #e4e4e7);
}

.wdr-method-card__delete:focus-visible {
  outline: 2px solid var(--s-chart-line, #3f3f46);
  outline-offset: 2px;
}

.wdr-method-card__delete:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wdr-method-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.wdr-method-badge--default {
  background: var(--s-surface2, #f4f4f5);
  color: var(--s-text, #0a0a0a);
  border: 1px solid var(--s-border, #e4e4e7);
}

.wdr-method-badge--secondary {
  background: #f4f4f5;
  color: #52525b;
  border: 1px solid #e4e4e7;
}

.wdr-method-card__dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wdr-method-card__pair {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  column-gap: 10px;
  row-gap: 2px;
}

.wdr-method-card__pair dt {
  margin: 0;
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: #71717a;
  letter-spacing: 0.02em;
}

.wdr-method-card__pair dd {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--s-text, #27272a);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.wdr-method-card__iban {
  direction: ltr;
  unicode-bidi: plaintext;
}

.wdr-default-toggle-wrap {
  margin-bottom: 0;
}

.wdr-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin: 0;
  min-height: 2.75rem;
  padding: 4px 0;
}

.wdr-switch__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wdr-switch__input:focus-visible + .wdr-switch__track {
  outline: 2px solid var(--s-chart-line, #3f3f46);
  outline-offset: 3px;
}

.wdr-switch__track {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #d4d4d8;
  transition: background 0.2s ease;
}

.wdr-switch__thumb {
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
  transition: inset-inline-start 0.22s ease;
}

.wdr-switch__input:checked + .wdr-switch__track {
  background: var(--s-chart-line, #3f3f46);
}

.wdr-switch__input:checked + .wdr-switch__track .wdr-switch__thumb {
  inset-inline-start: 21px;
}

.wdr-switch__text {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--s-text, #27272a);
}

@media (max-width: 520px) {
  .wdr-method-card__pair {
    flex-direction: column;
    align-items: stretch;
    row-gap: 0;
  }

  .wdr-method-card__pair dd {
    margin-top: 1px;
  }

  .wdr-method-card__pair dt {
    font-size: 0.68rem;
  }
}

.btn.danger {
  border: 1px solid var(--s-border, #e4e4e7);
  color: var(--s-text, #0a0a0a);
  background: var(--s-surface2, #f4f4f5);
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

.checkbox-group label {
  line-height: 1.5;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--s-text, #27272a);
}

.seller-app-shell .form-group.checkbox-group label {
  line-height: 1.5;
  font-weight: 600;
  font-size: 0.86rem;
}

.wdr-panels-grid > .svc-panel.wdr-panel {
  padding: clamp(15px, 2vw, 24px);
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.panel-actions--center {
  justify-content: center;
  width: 100%;
}

.seller-app-shell .wdr-submit-account {
  min-width: min(100%, 200px);
}

@media (max-width: 900px) {
  .wdr-panels-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .svc-table--withdrawals {
    min-width: 640px;
  }
}
