/* BK Digital theme consistency v395. Presentation only. */

/* Source: shared/theme-shared.css */
/* v395 public compatibility: colors only, scoped to the existing customer body.
 * The homepage and catalogue styles load after the shared header stylesheet;
 * this specificity keeps their muted text legible without changing artwork. */
html[data-bk-theme] body.bk-customer-v202 .bk-catalog-v202 {
  --bk-catalog-muted: var(--bk-ui-muted);
}

html[data-bk-theme] body.bk-customer-v202 .bk-home-v200 :is(
  .bk-v200-catalog-more, .bk-v200-catalog-open
) {
  color: var(--bk-ui-accent) !important;
}

/* CMS help headings were white in both themes. Only the help text is mapped. */
html[data-bk-theme] body.bk-customer-v202 .help-page .help-content :is(
  h1, h2, h3, h4, h5, h6
) {
  color: var(--bk-ui-text) !important;
}

/* These are filled actions, but an older shared link selector recolored them. */
html[data-bk-theme] body.bk-customer-v202 .article-detail-page .article-back-btn,
html[data-bk-theme] body.bk-customer-v202 .bk-page-return > a {
  background: var(--bk-ui-action) !important;
  color: var(--bk-ui-action-text) !important;
  border-color: var(--bk-ui-action) !important;
}

html[data-bk-theme] body.bk-customer-v202 .article-detail-page .other-article-link {
  background: var(--bk-ui-soft) !important;
  color: var(--bk-ui-link) !important;
  border-color: var(--bk-ui-line) !important;
}

html[data-bk-theme] body.bk-customer-v202 .article-detail-page .other-article-link:hover,
html[data-bk-theme] body.bk-customer-v202 .article-detail-page .other-article-link:focus-visible {
  background: var(--bk-ui-info-bg) !important;
  color: var(--bk-ui-info-text) !important;
  border-color: var(--bk-ui-info-line) !important;
}

/* Match warning text and backgrounds, including legacy inline CMS children. */
html[data-bk-theme] body.bk-customer-v202 :is(
  .refund-page .refund-warning, .contact-page .contact-highlight,
  .legal-page .legal-warning
) {
  background: var(--bk-ui-warning-bg) !important;
  color: var(--bk-ui-warning-text) !important;
  border-color: var(--bk-ui-warning-line) !important;
}

html[data-bk-theme] body.bk-customer-v202 :is(
  .refund-page .refund-warning, .contact-page .contact-highlight,
  .legal-page .legal-warning
) :is(p, li, span, strong, b) {
  color: var(--bk-ui-warning-text) !important;
}

/* Icons on pale auth/information cards previously kept their pale dark colors. */
html[data-bk-theme] body.bk-customer-v202 .auth-page .auth-icon {
  background: var(--bk-ui-warning-bg) !important;
  color: var(--bk-ui-warning-text) !important;
}

html[data-bk-theme] body.bk-customer-v202 :is(
  .register-page .welcome-feature i, .verify-page .verify-icon i,
  .about-page .about-mini-card i, .contact-page .contact-box i
) {
  color: var(--bk-ui-accent) !important;
}

html[data-bk-theme] body.bk-customer-v202 .auth-page .auth-aside li > i {
  color: var(--bk-ui-success-text) !important;
}

/* Category CMS accordions had orange/white summaries and fixed navy bodies.
 * Preserve their expansion behavior, spacing and decorative artwork. */
html[data-bk-theme] body.bk-customer-v202 .kategori-page .category-description details {
  background: var(--bk-ui-soft) !important;
  border-color: var(--bk-ui-line) !important;
}

html[data-bk-theme] body.bk-customer-v202 .kategori-page .category-description details > summary {
  background: var(--bk-ui-soft) !important;
  color: var(--bk-ui-text) !important;
}

html[data-bk-theme] body.bk-customer-v202 .kategori-page .category-description details > summary :is(
  span, strong, b
) {
  color: inherit !important;
}

html[data-bk-theme] body.bk-customer-v202 .kategori-page .category-description details > summary::after {
  background: var(--bk-ui-surface) !important;
  color: var(--bk-ui-accent) !important;
}

html[data-bk-theme] body.bk-customer-v202 .kategori-page .category-description .accordion-content {
  background: var(--bk-ui-surface) !important;
  color: var(--bk-ui-muted) !important;
}

/* Source: account/theme-account.css */
/* Account security and dealer details that still contain fixed inline colors.
 * Shared page surfaces, order states and conversation bubbles already use
 * the theme; keep their existing layout, state and image rules intact. */
html[data-bk-theme] body.bk-customer-v202 .account-page #fatura-bilgileri > div[style*="#fcd34d"] {
  background: var(--bk-ui-warning-bg) !important;
  color: var(--bk-ui-warning-text) !important;
  border-color: var(--bk-ui-warning-line) !important;
}

html[data-bk-theme] body.bk-customer-v202 .account-page .account-info-card > p[style*="#86efac"] {
  color: var(--bk-ui-success-text) !important;
}

html[data-bk-theme] body.bk-customer-v202 .account-page #telegram-bildirimleri small[style] {
  color: var(--bk-ui-muted) !important;
}

/* Change the surrounding security panel, never the white QR canvas. */
html[data-bk-theme] body.bk-customer-v202 .account-page .account-info-card > div:has(> #bk-authenticator-qr) {
  background: var(--bk-ui-surface) !important;
  color: var(--bk-ui-text) !important;
  border-color: var(--bk-ui-line) !important;
}

html[data-bk-theme] body.bk-customer-v202 .account-page #bk-authenticator-qr ~ div {
  color: var(--bk-ui-muted) !important;
}

html[data-bk-theme] body.bk-customer-v202 .account-page #bk-authenticator-qr ~ div strong {
  color: var(--bk-ui-accent) !important;
}

html[data-bk-theme] body.bk-customer-v202 .dealer-page .dealer-secret {
  background: var(--bk-ui-warning-bg) !important;
  color: var(--bk-ui-warning-text) !important;
  border-color: var(--bk-ui-warning-line) !important;
}

html[data-bk-theme] body.bk-customer-v202 .dealer-page .dealer-card code {
  color: var(--bk-ui-accent) !important;
}

/* Source: payment/theme-payment.css */
/* Payment presentation only. Existing forms, gateway states and brand artwork
   are unchanged. Specificity covers the older inline view palettes. */
html[data-bk-theme] body.bk-customer-v202 :is(
  .binance-payment-page, .odeme-page, .payment-notify-page, .cryptomus-page
) {
  background: var(--bk-ui-page) !important;
  color: var(--bk-ui-text) !important;
}

html[data-bk-theme] body.bk-customer-v202 :is(
  .binance-payment-card, .pm-hero, .odeme-page .payment-method-item,
  .odeme-page .bybit-live-box, .odeme-page .cryptomus-auto-box,
  .paycell-card, .payment-notify-card, .cryptomus-card
) {
  background: var(--bk-ui-surface) !important;
  color: var(--bk-ui-text) !important;
  border-color: var(--bk-ui-line) !important;
  box-shadow: var(--bk-ui-shadow) !important;
}
html[data-bk-theme] body.bk-customer-v202 .pm-hero {
  background: linear-gradient(125deg, var(--bk-ui-soft), var(--bk-ui-surface)) !important;
}
html[data-bk-theme] body.bk-customer-v202 .odeme-page :is(.odeme-card, .odeme-card-body) {
  background: transparent !important;
  color: var(--bk-ui-text) !important;
  box-shadow: none !important;
}
html[data-bk-theme] body.bk-customer-v202 :is(
  .binance-txid-recipient, .binance-payment-card .binance-txid-form,
  .odeme-page .payment-accordion-body, .pm-subdetails, .pm-proof-amount,
  .paycell-head, .payment-notify-header, .payment-info-box,
  .cryptomus-header, .cryptomus-info, .cryptomus-calc,
  .odeme-page .payment-value, .odeme-page .bybit-uid-value,
  .bk-uid-box, .bk-uid-window
) {
  background: var(--bk-ui-soft) !important;
  color: var(--bk-ui-text) !important;
  border-color: var(--bk-ui-line) !important;
}

html[data-bk-theme] body.bk-customer-v202 :is(
  .binance-payment-card h1, .binance-txid-box, .binance-txid-form label,
  .pm-hero h1, .pm-section-head h2, .pm-step, .pm-step strong,
  .pm-form-grid label, .pm-subdetails summary, .pm-proof-amount strong,
  .paycell-wrap, .paycell-head strong, .paycell-form label,
  .paycell-history h3, .odeme-page .payment-method-name,
  .cryptomus-auto-title
) { color: var(--bk-ui-text) !important; }

html[data-bk-theme] body.bk-customer-v202 :is(
  .binance-payment-lead, .binance-txid-box p, .binance-txid-note,
  .pm-hero p, .pm-section-head span, .pm-method-kicker, .pm-method-desc,
  .pm-copy, .pm-fine-print, .pm-subdetails p, .pm-proof-amount span,
  .pm-proof-amount small, .paycell-head small, .paycell-phone-prefix,
  .paycell-note, .odeme-page .payment-note, .odeme-page .cryptomus-auto-text
) { color: var(--bk-ui-muted) !important; }

html[data-bk-theme] body.bk-customer-v202 :is(.binance-txid-recipient code, .pm-eyebrow) {
  color: var(--bk-ui-accent) !important;
}
html[data-bk-theme] body.bk-customer-v202 .pm-step span,
html[data-bk-theme] body.bk-customer-v202 .pm-subdetails summary::before {
  background: var(--bk-ui-surface) !important;
  color: var(--bk-ui-accent) !important;
}
html[data-bk-theme] body.bk-customer-v202 .pm-fine-print a {
  color: var(--bk-ui-link) !important;
}

html[data-bk-theme] body.bk-customer-v202 :is(
  .binance-txid-form input[type="text"], .pm-form-grid input,
  .paycell-wrap .form-control, .paycell-country, .paycell-country option,
  .payment-notify-form .form-control, .cryptomus-form .form-control,
  .bk-uid-box input
) {
  background: var(--bk-ui-input) !important;
  color: var(--bk-ui-text) !important;
  border-color: var(--bk-ui-line) !important;
}
html[data-bk-theme] body.bk-customer-v202 :is(
  .binance-txid-box, .odeme-page, .paycell-wrap, .payment-notify-page,
  .cryptomus-page, .bk-uid-box
) :is(input, textarea)::placeholder {
  color: var(--bk-ui-muted) !important;
  opacity: 1;
}
html[data-bk-theme] body.bk-customer-v202 :is(
  .binance-txid-box, .odeme-page, .paycell-wrap, .payment-notify-page,
  .cryptomus-page, .bk-uid-box
) :is(input:not([type="hidden"]), select, textarea, button, a, summary, [role="button"]):focus-visible {
  outline: 2px solid var(--bk-ui-link) !important;
  outline-offset: 3px;
}
html[data-bk-theme] body.bk-customer-v202 :is(
  .binance-txid-box, .odeme-page, .paycell-wrap, .payment-notify-page,
  .cryptomus-page, .bk-uid-box
) :is(input, select, textarea):disabled {
  background: var(--bk-ui-soft) !important;
  color: var(--bk-ui-muted) !important;
}
html[data-bk-theme] body.bk-customer-v202 :is(
  .binance-txid-box, .odeme-page, .paycell-wrap, .payment-notify-page,
  .cryptomus-page, .bk-uid-box
) button:disabled { opacity: .65; }

html[data-bk-theme] body.bk-customer-v202 :is(
  .binance-payment-back, .binance-txid-recipient button,
  .odeme-page .payment-copy-btn, .odeme-page .bybit-copy-btn,
  .odeme-page .payment-detail-toggle, .pm-secondary-btn,
  .odeme-page .cryptomus-auto-btn, .bk-uid-box .bk-uid-cancel
) {
  background: var(--bk-ui-soft) !important;
  color: var(--bk-ui-text) !important;
  border-color: var(--bk-ui-line) !important;
}
html[data-bk-theme] body.bk-customer-v202 :is(
  .binance-payment-back, .binance-txid-recipient button,
  .odeme-page .payment-copy-btn, .odeme-page .bybit-copy-btn,
  .odeme-page .payment-detail-toggle, .pm-secondary-btn,
  .odeme-page .cryptomus-auto-btn, .bk-uid-box .bk-uid-cancel
):hover {
  background: var(--bk-ui-info-bg) !important;
  color: var(--bk-ui-info-text) !important;
  border-color: var(--bk-ui-info-line) !important;
}
html[data-bk-theme] body.bk-customer-v202 :is(.pm-primary-btn, .odeme-page .payment-notify-btn) {
  background: var(--bk-ui-action) !important;
  color: var(--bk-ui-action-text) !important;
}
/* Keep Paycell blue, with sufficient contrast for its white button label. */
html[data-bk-theme] body.bk-customer-v202 .paycell-submit {
  background: #0873ce !important;
  color: #fff !important;
}
html[data-bk-theme] body.bk-customer-v202 .paycell-submit:hover:not(:disabled) {
  background: #0664b5 !important;
}

html[data-bk-theme] body.bk-customer-v202 :is(
  .binance-txid-notice, .pm-notice,
  .paycell-info, .paycell-status:not(.paid)
) {
  background: var(--bk-ui-info-bg) !important;
  color: var(--bk-ui-info-text) !important;
  border-color: var(--bk-ui-info-line) !important;
}
html[data-bk-theme] body.bk-customer-v202 :is(.pm-notice-ok, .pm-uid-status-ok, .paycell-status.paid) {
  background: var(--bk-ui-success-bg) !important;
  color: var(--bk-ui-success-text) !important;
  border-color: var(--bk-ui-success-line) !important;
}
html[data-bk-theme] body.bk-customer-v202 :is(.pm-uid-status-pending, .paycell-mode, .odeme-page .odeme-alert) {
  background: var(--bk-ui-warning-bg) !important;
  color: var(--bk-ui-warning-text) !important;
  border-color: var(--bk-ui-warning-line) !important;
}
html[data-bk-theme] body.bk-customer-v202 :is(.pm-uid-status strong, .pm-uid-status span, .paycell-info strong, .paycell-info > div) {
  color: inherit !important;
}

/* Legacy Western Union has no page-specific wrapper. Its existing form action
   scopes these overrides without recoloring unrelated Bootstrap containers. */
html[data-bk-theme] body.bk-customer-v202 > .bg-dark:has(form[action$="/bakiye/western-union"]),
html[data-bk-theme] body.bk-customer-v202 > .bg-dark:has(form[action$="/bakiye/western-union"]) + .bg-dark,
html[data-bk-theme] body.bk-customer-v202 > .jumbotron:has(+ .bg-dark form[action$="/bakiye/western-union"]) {
  background: var(--bk-ui-page) !important;
  color: var(--bk-ui-text) !important;
}
html[data-bk-theme] body.bk-customer-v202 > .bg-dark:has(form[action$="/bakiye/western-union"]) .text-white,
html[data-bk-theme] body.bk-customer-v202 > .jumbotron:has(+ .bg-dark form[action$="/bakiye/western-union"]) h1 {
  color: var(--bk-ui-text) !important;
}
html[data-bk-theme] body.bk-customer-v202 > .jumbotron:has(+ .bg-dark form[action$="/bakiye/western-union"]) .lead.text-success {
  color: var(--bk-ui-success-text) !important;
}
html[data-bk-theme] body.bk-customer-v202 > .bg-dark:has(form[action$="/bakiye/western-union"]) + .bg-dark hr {
  border-color: var(--bk-ui-line) !important;
}
html[data-bk-theme] body.bk-customer-v202 form[action$="/bakiye/western-union"] .form-control {
  background: var(--bk-ui-input) !important;
  color: var(--bk-ui-text) !important;
  border-color: var(--bk-ui-line) !important;
}
html[data-bk-theme] body.bk-customer-v202 form[action$="/bakiye/western-union"] input::placeholder {
  color: var(--bk-ui-muted) !important;
  opacity: 1;
}
html[data-bk-theme] body.bk-customer-v202 form[action$="/bakiye/western-union"] .btn-success,
html[data-bk-theme] body.bk-customer-v202 form[action$="/bakiye/western-union"] .btn-success:hover,
html[data-bk-theme] body.bk-customer-v202 form[action$="/bakiye/western-union"] .btn-success:focus {
  background: var(--bk-ui-action) !important;
  color: var(--bk-ui-action-text) !important;
  border-color: var(--bk-ui-action) !important;
}
html[data-bk-theme] body.bk-customer-v202 form[action$="/bakiye/western-union"] :is(input, button):focus-visible {
  outline: 2px solid var(--bk-ui-link) !important;
  outline-offset: 3px;
}

/* Source: root/theme-verified.css */
/* The live help CMS includes a fixed blue inline link on a navy background. */
html[data-bk-theme] body.bk-customer-v202 .help-page .help-content a {
  color: var(--bk-ui-link) !important;
}

/* Announcement links and guest payment steps share the active text palette. */
html[data-bk-theme] body.bk-customer-v202 .newsticker a { color: var(--bk-ui-link) !important; }
html[data-bk-theme] body.bk-customer-v202 .payment-guest :is(.payment-guest-steps span, .payment-guest-note p) { color: var(--bk-ui-muted) !important; }

/* Source: account/theme-verified-extra.css */
/* Additional contrast fixes confirmed by the v395 rendered-page audit.
 * Keep behavior, sizing and states intact; change only their color pairing. */
html[data-bk-theme] body.bk-customer-v202 .product-detail-page .qty-detail-box > button.btn-success {
  background: var(--bk-ui-success-bg) !important;
  color: var(--bk-ui-success-text) !important;
  border-color: var(--bk-ui-success-line) !important;
}

html[data-bk-theme] body.bk-customer-v202 .bk-fav-page .bk-fav-empty > a {
  background: var(--bk-ui-action) !important;
  color: var(--bk-ui-action-text) !important;
  border-color: var(--bk-ui-action) !important;
}

/* The legacy notifications page has no dedicated page wrapper. Bind its
 * adjacent heading to the existing accordion ID instead of all jumbotrons. */
html[data-bk-theme] body.bk-customer-v202 > .jumbotron:has(+ .bg-dark #BildirimAccordion) > .lead.text-primary {
  color: var(--bk-ui-muted) !important;
}

html[data-bk-theme] body.bk-customer-v202 #BildirimAccordion .badge-success {
  background: var(--bk-ui-success-bg) !important;
  color: var(--bk-ui-success-text) !important;
  border-color: var(--bk-ui-success-line) !important;
}

html[data-bk-theme] body.bk-customer-v202 .bk-dealer-application .alert.alert-info a {
  color: var(--bk-ui-info-text) !important;
}
