/* Cashback Pro V36.8.4 — theme-aware, centered CTA geometry and reliable release feedback. */
:root { --v3684-cta-a: var(--pumpkin-hover, #ff8c38); --v3684-cta-b: var(--pumpkin, #ff7518); }

/* Shared theme palette for the customer-facing orange action buttons. */
#btn-convert-action,
#tab-orders .converter-card .input-group > button,
#tab-support button[onclick*="toggleChatWidget"] {
  background: linear-gradient(135deg, color-mix(in srgb, var(--v3684-cta-a) 92%, white 8%), var(--v3684-cta-b)) !important;
  color: #fff !important;
  border: 1px solid color-mix(in srgb, var(--v3684-cta-b) 72%, white 28%) !important;
  box-shadow: 0 5px 16px color-mix(in srgb, var(--v3684-cta-b) 24%, transparent) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.2 !important;
  min-height: 42px !important;
  padding: 9px 18px !important;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease, background .2s ease !important;
  -webkit-tap-highlight-color: transparent;
}
#btn-convert-action { min-width: min(100%, 230px); }
#tab-support button[onclick*="toggleChatWidget"] { width: min(100%, 360px) !important; min-height: 42px !important; margin: 14px auto 0 !important; gap: 9px !important; }
#tab-support button[onclick*="toggleChatWidget"] .support-chat-action-icon { margin: 0 !important; }
#tab-support button[onclick*="toggleChatWidget"] span { text-align: center !important; }

/* Order-claim action: shorter height, wider footprint, aligned to the right. */
#tab-orders .converter-card .input-group { justify-content: flex-end !important; align-items: stretch !important; gap: 10px !important; }
#tab-orders .converter-card .input-group > input { flex: 1 1 auto !important; min-width: 0 !important; }
#tab-orders .converter-card .input-group > button { flex: 0 0 clamp(150px, 34%, 210px) !important; min-height: 42px !important; white-space: normal !important; }

/* Withdrawal and refresh buttons use the active theme accent, not a fixed orange/blue. */
.balance-withdraw-action .btn-copy,
.customer-withdrawals-refresh {
  background: linear-gradient(135deg, color-mix(in srgb, var(--v3684-cta-a) 88%, white 12%), var(--v3684-cta-b)) !important;
  color: #fff !important;
  border: 1px solid color-mix(in srgb, var(--v3684-cta-b) 72%, white 28%) !important;
  box-shadow: 0 5px 16px color-mix(in srgb, var(--v3684-cta-b) 22%, transparent) !important;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease !important;
  -webkit-tap-highlight-color: transparent;
}

#btn-convert-action:hover,
#tab-orders .converter-card .input-group > button:hover,
#tab-support button[onclick*="toggleChatWidget"]:hover,
.balance-withdraw-action .btn-copy:hover,
.customer-withdrawals-refresh:hover { filter: brightness(1.06) saturate(1.08) !important; box-shadow: 0 8px 20px color-mix(in srgb, var(--v3684-cta-b) 30%, transparent) !important; }
#btn-convert-action:active,
#tab-orders .converter-card .input-group > button:active,
#tab-support button[onclick*="toggleChatWidget"]:active,
.balance-withdraw-action .btn-copy:active,
.customer-withdrawals-refresh:active,
.v3684-pressed { transform: translateY(1px) scale(.975) !important; filter: brightness(.92) saturate(1.15) !important; box-shadow: 0 2px 6px color-mix(in srgb, var(--v3684-cta-b) 24%, transparent) !important; }
#btn-convert-action:focus-visible,
#tab-orders .converter-card .input-group > button:focus-visible,
#tab-support button[onclick*="toggleChatWidget"]:focus-visible,
.balance-withdraw-action .btn-copy:focus-visible,
.customer-withdrawals-refresh:focus-visible { outline: 2px solid color-mix(in srgb, var(--v3684-cta-b) 65%, white 35%) !important; outline-offset: 3px; }

/* Refresh always returns to its resting state after the tap/click. */
.customer-withdrawals-refresh:not(.v3684-pressed),
#dashboard-refresh:not(.v3684-pressed) { transform: none; }

@media (max-width: 620px) {
  #tab-orders .converter-card .input-group { flex-wrap: nowrap !important; }
  #tab-orders .converter-card .input-group > button { flex-basis: clamp(145px, 38%, 190px) !important; }
  #btn-convert-action { min-width: min(100%, 210px); }
  #tab-support button[onclick*="toggleChatWidget"] { width: min(100%, 340px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  #btn-convert-action, #tab-orders .converter-card .input-group > button,
  #tab-support button[onclick*="toggleChatWidget"], .balance-withdraw-action .btn-copy,
  .customer-withdrawals-refresh { transition: none !important; }
}
