/**
 * White label global theme overrides.
 * Applies partner primary/secondary colors across all WL pages (home + inner).
 */

.wl-portal .wl-lender-panel .wl-section-title,
.wl-portal .wl-lender-panel .wl-section-title span {
  color: var(--wl-title-lender) !important;
}

.wl-portal .wl-welcome .wl-title-lg,
.wl-portal .wl-welcome .wl-title-lg span {
  color: var(--wl-title-welcome) !important;
}

.wl-portal .wl-services .wl-title-lg,
.wl-portal .wl-services .wl-title-lg span,
.wl-portal .wl-services .wl-title-lg .wl-text-primary,
.wl-portal .wl-services .wl-title-lg.text-white {
  color: var(--wl-title-services) !important;
}

.wl-portal .wl-why .wl-title-lg,
.wl-portal .wl-why .wl-title-lg span {
  color: var(--wl-title-why) !important;
}

.wl-portal .wl-contact > .wl-container > form > div:first-child .wl-title-lg,
.wl-portal .wl-contact > .wl-container > form > div:first-child .wl-title-lg span,
.wl-portal .wl-contact-grid > div:first-child .wl-title-lg,
.wl-portal .wl-contact-grid > div:first-child .wl-title-lg span {
  color: var(--wl-title-contact) !important;
}

.wl-portal .wl-contact-info .wl-title-lg,
.wl-portal .wl-contact-info .wl-title-lg span,
.wl-portal .wl-contact-info h3,
.wl-portal .wl-contact-info h3 span {
  color: var(--wl-title-contact-info) !important;
}

/* ---- Headings & accent text (inner pages) ---- */
.wl-portal .section-title,
.wl-portal .page-title,
.wl-portal .banner-text,
.wl-portal .small-title,
.wl-portal .calc-step-title,
.wl-portal .thank-page .title {
  color: var(--wl-section-title) !important;
}

.wl-portal .banner-text span,
.wl-portal .section-title span,
.wl-portal .small-title span,
.wl-portal .page-title span {
  color: var(--wl-section-title) !important;
}

.wl-portal .section-title:after,
.wl-portal .section-title:before,
.wl-portal .small-title:after,
.wl-portal .small-title:before,
.wl-portal .banner-text:before,
.wl-portal .wl-title-underline {
  background: var(--wl-primary) !important;
}

.wl-portal .inner-banner-wrapper .banner-text:after {
  background: var(--wl-primary) !important;
}

/* ---- Buttons ---- */
.wl-portal .btn-default,
.wl-portal .small-btn,
.wl-portal .modal-content .btn-default,
.wl-portal .forum-page .single-post .dropdown-menu .btn-default,
.wl-portal .get_quote_btn,
.wl-portal .get_quote_common_btn,
.wl-portal .calculate,
.wl-portal .loan_detail,
.wl-portal .calc-btn,
.wl-portal .thank-page .btn-default,
.wl-portal .gj-modal .btn-default {
  background: var(--wl-primary) !important;
  color: var(--wl-button-text) !important;
  border-color: var(--wl-primary) !important;
}

.wl-portal .btn-default:hover,
.wl-portal .small-btn:hover,
.wl-portal .modal-content .btn-default:hover,
.wl-portal .forum-page .single-post .dropdown-menu .btn-default:hover,
.wl-portal .get_quote_btn:hover,
.wl-portal .get_quote_common_btn:hover,
.wl-portal .calculate:hover,
.wl-portal .loan_detail:hover,
.wl-portal .calc-btn:hover,
.wl-portal .thank-page .btn-default:hover,
.wl-portal .gj-modal .btn-default:hover {
  background: var(--wl-primary) !important;
  color: var(--wl-button-text) !important;
  filter: brightness(0.92);
}

.wl-portal .btn-default i,
.wl-portal .btn-default:hover i,
.wl-portal .small-btn i,
.wl-portal .calc-btn i {
  color: var(--wl-button-text) !important;
}

.wl-portal .btn-default:after,
.wl-portal .btn-default:hover:after {
  background: var(--wl-secondary) !important;
}

.wl-portal .btn-success {
  background: var(--wl-secondary) !important;
  color: var(--wl-button-text) !important;
  border-color: var(--wl-secondary) !important;
}

.wl-portal .btn-success:hover {
  background: var(--wl-primary) !important;
  color: var(--wl-button-text) !important;
  filter: brightness(0.92);
}

.wl-portal .black-btn,
.wl-portal .black-btn:hover {
  color: var(--wl-button-text) !important;
}

.wl-portal .stepwizard .stepwizard-step .fill,
.wl-portal .stepwizard .stepwizard-step .fill:hover {
  background-color: var(--wl-primary) !important;
  color: var(--wl-button-text) !important;
  border-color: var(--wl-primary) !important;
}

.wl-portal .stepwizard .stepwizard-step p {
  color: var(--wl-secondary) !important;
}

.wl-portal .ruler .vHorizon::-webkit-slider-thumb,
.wl-portal .ruler .vHorizon::-moz-range-thumb {
  background: var(--wl-primary) !important;
}

/* Loan amount slider circle (hero) */
.wl-portal .slider::-webkit-slider-thumb,
.wl-portal input[type="range"].slider::-webkit-slider-thumb,
.wl-portal .wl-amount-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 25px !important;
  height: 25px !important;
  background: var(--wl-slider-thumb) !important;
  border: 2px solid #fff !important;
  cursor: pointer !important;
  border-radius: 50px !important;
}

.wl-portal .slider::-moz-range-thumb,
.wl-portal input[type="range"].slider::-moz-range-thumb,
.wl-portal .wl-amount-wrap input[type="range"]::-moz-range-thumb {
  width: 25px !important;
  height: 25px !important;
  background: var(--wl-slider-thumb) !important;
  border: 2px solid #fff !important;
  cursor: pointer !important;
  border-radius: 50px !important;
}

.wl-portal .rangeslider__handle {
  background: var(--wl-slider-thumb) !important;
  border-color: #fff !important;
}

.wl-portal .rangeslider__fill {
  background: var(--wl-slider-thumb) !important;
}

.wl-portal .wl-amount-wrap input[type="range"] {
  accent-color: var(--wl-slider-thumb) !important;
}

/* ---- Links & hovers ---- */
.wl-portal .login-link:hover,
.wl-portal .know-more-txt,
.wl-portal .know-more-txt span,
.wl-portal .news-content .know-more-txt {
  color: var(--wl-primary) !important;
}

.wl-portal .know-more-txt:hover,
.wl-portal .news-content .know-more-txt:hover {
  color: var(--wl-primary) !important;
  filter: brightness(0.88);
}

.wl-portal a.wl-btn-primary:hover,
.wl-portal button.wl-btn-primary:hover,
.wl-portal .wl-loan-btn:hover,
.wl-portal .wl-loan-btn.selected {
  background: var(--wl-primary) !important;
  color: var(--wl-button-text) !important;
}

.wl-portal .wl-loan-btn i,
.wl-portal .wl-loan-btn:hover i,
.wl-portal .wl-loan-btn.selected i {
  color: var(--wl-button-text) !important;
}

/* ---- Inner page banners ---- */
.wl-portal .inner-banner-wrapper:before {
  background: rgba(var(--wl-primary-rgb), 0.88) !important;
}

.wl-portal .wl-hero-overlay {
  background: linear-gradient(
    to right,
    rgba(var(--wl-secondary-rgb), 0.95),
    rgba(var(--wl-secondary-rgb), 0.7),
    rgba(var(--wl-secondary-rgb), 0.1)
  ) !important;
}

/* ---- Section backgrounds & accents ---- */
.wl-portal .call-action-wrapper {
  background: var(--wl-accent) !important;
}

.wl-portal .service-wrapper {
  background: var(--wl-secondary) !important;
}

.wl-portal .single-feature.yellow-theme:hover .icon-circle,
.wl-portal .single-feature.purple-theme:hover .icon-circle,
.wl-portal .wl-feature-icon {
  background: var(--wl-primary) !important;
  color: var(--wl-button-text) !important;
}

.wl-portal .wl-btn-secondary,
.wl-portal .wl-contact .wl-btn-secondary {
  background: var(--wl-secondary) !important;
  color: var(--wl-button-text) !important;
}

.wl-portal .wl-btn-secondary:hover,
.wl-portal .wl-contact .wl-btn-secondary:hover {
  filter: brightness(0.92);
}

.wl-portal .wl-contact {
  background: var(--wl-bg-contact) !important;
  color: var(--wl-secondary) !important;
}

.wl-portal .wl-contact-info {
  background: var(--wl-bg-contact-info) !important;
}

.wl-portal .wl-contact-form input:focus,
.wl-portal .wl-contact-form textarea:focus {
  border-bottom-color: var(--wl-primary) !important;
}

.wl-portal .wl-ci-icon {
  background: var(--wl-primary) !important;
  color: var(--wl-button-text) !important;
}

.wl-portal .wl-contact-list a:hover {
  color: var(--wl-primary) !important;
}

/* ---- Borders & decorative accents (legacy green/yellow) ---- */
.wl-portal [style*="border"][style*="#A4D44C"],
.wl-portal .loan-types .loan-type.selected,
.wl-portal .loan-types .loan-type:hover {
  border-color: var(--wl-primary) !important;
  background: var(--wl-primary) !important;
  color: var(--wl-button-text) !important;
}

/* ---- Forms & inputs ---- */
.wl-portal input[type="range"] {
  accent-color: var(--wl-primary) !important;
}

.wl-portal .form-control:focus,
.wl-portal select:focus,
.wl-portal textarea:focus {
  border-color: var(--wl-primary) !important;
  box-shadow: 0 0 0 0.15rem rgba(var(--wl-primary-rgb), 0.25) !important;
}

.wl-portal .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--wl-primary) !important;
  color: var(--wl-button-text) !important;
}

/* ---- Pagination, tabs, misc ---- */
.wl-portal .pagination .page-item.active .page-link {
  background: var(--wl-primary) !important;
  border-color: var(--wl-primary) !important;
  color: var(--wl-button-text) !important;
}

.wl-portal .pagination .page-link:hover {
  color: var(--wl-primary) !important;
}

/* ---- Developer overrides (devloper.css) ---- */
.wl-portal .custom-btn,
.wl-portal .add-new-btn {
  background: var(--wl-primary) !important;
  color: var(--wl-button-text) !important;
}

.wl-portal .custom-btn:hover,
.wl-portal .add-new-btn:hover {
  background: var(--wl-primary) !important;
  filter: brightness(0.92);
}

/* ---- WL nav menu hovers ---- */
.wl-portal .wl-menu a.nav-link,
.wl-portal .wl-top-bar > .wl-top-inner > li > a,
.wl-portal .wl-top-bar .wl-top-item,
.wl-portal .wl-top-bar .notification-icon,
.wl-portal .wl-top-bar .top-nav > .nav-link,
.wl-portal .wl-logo,
.wl-portal .wl-logo-title,
.wl-portal .wl-mobile-menu a {
  color: var(--wl-header-text) !important;
}

.wl-portal header,
.wl-portal #top-nav-fixed,
.wl-portal .wl-site-header,
.wl-portal .wl-top-bar,
.wl-portal .wl-header-nav,
.wl-portal .wl-mobile-menu {
  background: var(--wl-header-bg) !important;
}

.wl-portal .wl-menu a.nav-link:hover,
.wl-portal .wl-menu a.nav-link:focus,
.wl-portal .wl-top-bar > .wl-top-inner > li > a:hover,
.wl-portal .wl-top-bar .top-nav > .nav-link:hover,
.wl-portal .wl-mobile-menu a:hover {
  color: var(--wl-primary) !important;
}

/* Logged-in profile / notification dropdowns — dark text on white */
.wl-portal .wl-top-bar .dropdown-menu {
  background: #fff !important;
}

.wl-portal .wl-top-bar .dropdown-menu .dropdown-item,
.wl-portal .wl-top-bar .dropdown-menu a {
  color: #1a1d29 !important;
  background: transparent !important;
}

.wl-portal .wl-top-bar .dropdown-menu .dropdown-item:hover,
.wl-portal .wl-top-bar .dropdown-menu a:hover {
  background: var(--wl-accent) !important;
  color: var(--wl-secondary) !important;
}

.wl-portal .wl-menu .dropdown-item:hover {
  background: var(--wl-accent) !important;
  color: var(--wl-secondary) !important;
}

/* ---- Footer (same layout as main site) ---- */
.wl-portal footer {
  background: var(--wl-bg-footer) !important;
  background-image: none !important;
}

.wl-portal .wl-lender-panel,
.wl-portal .lender-panel-wrapper.wl-lender-panel {
  background: var(--wl-bg-lender) !important;
}

.wl-portal .wl-welcome {
  background: var(--wl-bg-welcome) !important;
}

.wl-portal .wl-services {
  background: var(--wl-bg-services) !important;
}

.wl-portal .wl-why {
  background: var(--wl-bg-why) !important;
}

.wl-portal footer .social-links li a {
  background: var(--wl-secondary) !important;
  color: #fff !important;
}

.wl-portal footer .social-links li a:hover {
  background: var(--wl-primary) !important;
  color: var(--wl-button-text) !important;
}

.wl-portal footer .f-links li a:hover,
.wl-portal footer .footer-links li a:hover {
  color: var(--wl-primary) !important;
}

.wl-portal footer .f-menu h5 {
  color: var(--wl-secondary) !important;
}
