/* Cashback Pro V36.8.6 — compact mobile order claim and scene-specific CTA colors. */

/* Use each scene's own visual accent instead of the legacy orange pumpkin color. */
body {
  --v3686-cta: var(--scene-accent, #8b82df);
  --v3686-cta-ink: #17243b;
}
body.theme-default.default-light-mode {
  --v3686-cta: #4f86cf;
  --v3686-cta-ink: #ffffff;
}
body.theme-default.default-dark-mode {
  --v3686-cta: #9b8af0;
  --v3686-cta-ink: #1b1735;
}
body.theme-winter {
  --v3686-cta: #8bd8ff;
  --v3686-cta-ink: #0b2d49;
}
body.theme-ocean {
  --v3686-cta: #50dcd4;
  --v3686-cta-ink: #07343b;
}
/* Halloween keeps orange as a decorative accent; action controls use the scene's violet. */
body.theme-halloween,
body.halloween-active {
  --v3686-cta: #b18af0;
  --v3686-cta-ink: #25173c;
}

/* Main customer actions: consistent theme-colored surface and unmistakable press feedback. */
.btn-convert,
.balance-withdraw-action .btn-copy,
.customer-withdrawals-refresh {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--v3686-cta) 82%, white),
    var(--v3686-cta)) !important;
  border: 1px solid color-mix(in srgb, var(--v3686-cta) 74%, white) !important;
  color: var(--v3686-cta-ink) !important;
  border-radius: 14px !important;
  transition: background .18s ease, border-color .18s ease, color .18s ease,
              box-shadow .18s ease, transform .12s ease, filter .18s ease !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
@supports not (background: color-mix(in srgb, red, white)) {
  .btn-convert,
  .balance-withdraw-action .btn-copy,
  .customer-withdrawals-refresh {
    background: var(--v3686-cta) !important;
  }
}
@media (hover: hover) and (pointer: fine) {
  .btn-convert:hover,
  .balance-withdraw-action .btn-copy:hover,
  .customer-withdrawals-refresh:hover {
    filter: brightness(1.06) saturate(1.05);
    box-shadow: 0 7px 18px color-mix(in srgb, var(--v3686-cta) 28%, transparent) !important;
  }
}
.btn-convert:active,
.balance-withdraw-action .btn-copy:active,
.customer-withdrawals-refresh:active,
.btn-convert.is-pressed,
.balance-withdraw-action .btn-copy.is-pressed,
.customer-withdrawals-refresh.is-pressed {
  transform: translateY(1px) scale(.975) !important;
  filter: brightness(.94) !important;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.18) !important;
}
.btn-convert:focus-visible,
.balance-withdraw-action .btn-copy:focus-visible,
.customer-withdrawals-refresh:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--v3686-cta) 70%, white) !important;
  outline-offset: 3px;
}

/* The legacy mobile rule turns .input-group into a column. For this form, use a
   two-column grid so the button never inherits its old 164–178px flex-basis as height. */
#tab-orders .claim-order-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 164px !important;
  align-items: stretch !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 600px !important;
  min-width: 0 !important;
}
#tab-orders .claim-order-form > #claim-order-id-input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 52px !important;
  min-height: 52px !important;
  flex: 0 0 auto !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  border-radius: 14px !important;
}
#tab-orders .claim-order-form > #claim-order-id-input + .btn-convert {
  width: 100% !important;
  min-width: 0 !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: normal !important;
  line-height: 1.2 !important;
  font-size: 13px !important;
  border-radius: 14px !important;
}

/* Keep the convert-link and chatbot CTAs broad enough, with centered copy. */
#btn-convert-action {
  min-height: 52px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border-radius: 14px !important;
}
#tab-support button.btn-convert[onclick*="toggleChatWidget"] {
  width: min(100%, 520px) !important;
  min-height: 54px !important;
  /* Align the CTA with the support-card content edge instead of centering it. */
  margin: 14px 0 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border-radius: 14px !important;
}
#tab-support button.btn-convert[onclick*="toggleChatWidget"] span { text-align: center !important; }

@media (max-width: 760px) {
  #tab-orders .claim-order-form {
    grid-template-columns: minmax(0, 1fr) 144px !important;
    gap: 9px !important;
    max-width: 100% !important;
  }
  #tab-orders .claim-order-form > #claim-order-id-input,
  #tab-orders .claim-order-form > #claim-order-id-input + .btn-convert {
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
  }
  #tab-orders .claim-order-form > #claim-order-id-input + .btn-convert {
    padding-inline: 8px !important;
    font-size: 12.5px !important;
  }
  #tab-support button.btn-convert[onclick*="toggleChatWidget"] {
    width: min(100%, 520px) !important;
    min-height: 54px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding: 11px 16px !important;
  }
}
@media (max-width: 360px) {
  #tab-orders .claim-order-form { grid-template-columns: minmax(0, 1fr) 126px !important; }
  #tab-orders .claim-order-form > #claim-order-id-input + .btn-convert { font-size: 11.5px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-convert, .balance-withdraw-action .btn-copy, .customer-withdrawals-refresh { transition: none !important; }
}


/* V36.8.8 — withdrawal modal primary action follows the active theme accent. */
#withdraw-submit-btn {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--v3686-cta, var(--scene-accent, #8b82df)) 82%, white),
    var(--v3686-cta, var(--scene-accent, #8b82df))) !important;
  border: 1px solid color-mix(in srgb, var(--v3686-cta, var(--scene-accent, #8b82df)) 74%, white) !important;
  color: var(--v3686-cta-ink, #17243b) !important;
  border-radius: 14px !important;
  min-height: 48px !important;
  font-weight: 750 !important;
  transition: background .18s ease, border-color .18s ease, color .18s ease,
              box-shadow .18s ease, transform .12s ease, filter .18s ease !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
}
@media (hover: hover) and (pointer: fine) {
  #withdraw-submit-btn:not(:disabled):hover {
    filter: brightness(1.06) saturate(1.05) !important;
    box-shadow: 0 7px 18px color-mix(in srgb, var(--v3686-cta, var(--scene-accent, #8b82df)) 28%, transparent) !important;
  }
}
#withdraw-submit-btn:not(:disabled):active,
#withdraw-submit-btn:not(:disabled).is-pressed {
  transform: translateY(1px) scale(.985) !important;
  filter: brightness(.94) !important;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.18) !important;
}
#withdraw-submit-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--v3686-cta, var(--scene-accent, #8b82df)) 70%, white) !important;
  outline-offset: 3px !important;
}
#withdraw-submit-btn:disabled {
  opacity: .62 !important;
  cursor: not-allowed !important;
  filter: saturate(.55) !important;
}
