:root {
    --red: #c03a2e;
    --btn-primary-mono: #7a7a7a;
    --btn-secondary-mono: #969696;
    --red-mono: #808080;
    --yellow-mono: #b0b0b0;
    --green-mono: #888888;
    --blue-mono: #6a6a6a;
}

/* user profile styling */
.initials-avatar {
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #25b003;
}

/* end user profile styling */

/* messaging styling */
.chat-thread-tab .initials-avatar {
    background-color: #bd3927;
}

.chat-thread-tab .active-thread .initials-avatar {
    background-color: #25b003;
}

.chat-message .avatar span {
    font-size: 12px;
}

.chat
    .chat-message
    .received-message-content:not(
        .chat .chat-message .received-message-content.gallery
    ):before {
    border-color: rgb(203 208 221) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)
        rgba(0, 0, 0, 0);
}

div.chat-message[data-message-type="sent"] .initials-avatar {
    background-color: #b9b9b9;
}

.chat-message-content p {
    word-break: break-all;
}

/* end messaging styling */

/* main content area styling */
body {
    overflow-y: scroll;
}

@media (min-width: 992px) {
    [data-navigation-type="horizontal"]
        .navbar-top.navbar-expand-lg
        ~ #infynit-digital,
    [data-navigation-type="dual"]
        .navbar-top.navbar-expand-lg
        ~ #infynit-digital,
    [data-navigation-type="combo"]
        .navbar-top.navbar-expand-lg
        ~ #infynit-digital {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.container,
.product-filter-container,
.container-fluid,
.container-small-xl,
.container-small-lg,
.container-small-md,
.container-small-sm,
.container-xxl,
.container-xl,
.container-lg,
.container-md,
.container-sm ~ #infynit-digital {
    padding-left: 0px;
    padding-right: 0px;
}
/* end main content area styling */

/* images styling */
.img-cover {
    width: 100%; /* Ensures the image is as wide as its container */
    height: 100%; /* Adjust based on your design needs */
    object-fit: cover; /*This makes the image cover the available space, cutting off excess parts without distortion*/
}
/* end images styling */

/* select2 input styling */
.select2-container--bootstrap-5 .select2-selection,
.select2-container--bootstrap-5
    .select2-dropdown
    .select2-search
    .select2-search__field,
.select2-container--bootstrap-5
    .select2-dropdown
    .select2-results__options
    .select2-results__option,
.select2-container--bootstrap-5
    .select2-selection--multiple
    .select2-selection__rendered
    .select2-selection__choice {
    font-size: 0.8rem;
}
/* end select2 input styling */

/* flatpickr monthSelectorPlugin styling */
.flatpickr-monthSelect-month {
    margin: 0 !important;
}

.flatpickr-monthSelect-month:hover:not(.selected) {
    background-color: var(--phoenix-flatpickr-calendar-day-hover-bg);
}
/* end flatpickr monthSelectorPlugin styling */

/* form styling */
.form-select:disabled {
    color: var(--phoenix-quaternary-color) !important;
    background-color: rgba(var(--phoenix-gray-100-rgb), 0.7) !important;
    opacity: 1 !important;
}

/* Custom Pagination Styles */
.pagination-lg .page-link {
    padding: 0.5rem 1rem; /* Larger padding */
    margin: 0.2rem 0.2rem;
    font-size: 1rem; /* Larger text */
}

.pagination-lg .page-item {
    /* Additional styling if needed */
}
/* End Custom Pagination Styles */

/* Vouchers styles */
.spacing-for-new-voucher {
    /* Add 15px to padding-top for more spacing */
    padding: calc(var(--phoenix-navbar-top-height) + 2rem + 15px) 1.5rem
        6.375rem 1.5rem;
}

.voucher-nav-bar-notification {
    top: 55px;
    background-color: var(--phoenix-navbar-top-bg-color);
    border-bottom: 1px solid var(--phoenix-navbar-vertical-border-color);
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}
/* End Vouchers styles */

/* Back to marketplace sticky button */

#back-to-marketplace {
    z-index: 1030;
    padding-bottom: env(safe-area-inset-bottom);
}

#back-to-marketplace .btn {
    background-color: #c03a2e;
}

.button-container {
    padding: calc(var(--phoenix-navbar-top-height) + 2rem + 15px) 1.5rem
        6.375rem 1.5rem;
}

.footer {
    position: relative; /* or leave as static—relative is only needed if you plan to offset it */
}

@media (min-width: 992px) {
    .footer {
        position: absolute;
    }
}

@media screen and (max-width: 991px) {
    .footer {
        padding-bottom: 1rem;
    }
    .spacing-for-new-voucher {
        padding: calc(var(--phoenix-navbar-top-height) + 2rem + 15px) 1.5rem
            1.375rem 1.5rem;
    }
}
/* End back to marketplace sticky button */

/* Start: Vehicle images */
.vehicle-photos__item.sortable-chosen .vehicle-photos__actions {
    display: none !important;
}
.vehicle-photos__image {
    width: 100%;
    height: 100%;
}
.vehicle-photos__instructions {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    background-color: #000;
    opacity: 0.6;
}
.vehicle-photos__item.sortable-chosen .vehicle-photos__instructions {
    display: flex;
}
.vehicle-photos__move {
    color: #fff;
}
/* End: Vehicle images */

/* Start: Loading spinner */
.loading-spinner {
    display: none;
    position: fixed;
    inset: 0;
    backdrop-filter: blur(2px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}
.loading-spinner--visible {
    display: flex;
}
@media screen and (min-width: 992px) {
    .loading-spinner-anchor {
        position: relative;
    }
    .loading-spinner-anchor .loading-spinner {
        position: absolute;
    }
    .loading-spinner-anchor .loading-spinner__icon {
        position: absolute;
        top: 110px;
    }
}
/* End: Loading spinner */

/* Start: Utilities */
.pt-xl {
    padding-top: 4rem;
}
.pb-xl {
    padding-bottom: 4rem;
}
.mt-xl {
    margin-top: 4rem;
}
.mb-xl {
    margin-bottom: 4rem;
}
.pt-xxl {
    padding-top: 5rem;
}
.pb-xxl {
    padding-bottom: 5rem;
}
.mt-xxl {
    margin-top: 5rem;
}
.mb-xxl {
    margin-bottom: 5rem;
}
/* End: Utilities */

/* Start: Captcha Wrapper */
.captcha-wrapper__button {
    position: relative;
}
.captcha-wrapper__spinner {
    position: absolute;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    color: inherit;
    background-color: inherit;
    border-radius: inherit;
}
.captcha-wrapper--loading .captcha-wrapper__spinner {
    display: flex;
}
.captcha-wrapper__error,
.captcha-wrapper__expired {
    display: none;
}
.captcha-wrapper--error .captcha-wrapper__error {
    display: block;
}
.captcha-wrapper--expired .captcha-wrapper__expired {
    display: block;
}
/* End: Captcha Wrapper */

/* Start: Sticky Footer */
.sticky-footer {
    position: sticky;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    box-shadow: 0px 0px 10px -5px rgba(0, 0, 0, 0.3);
}

.sticky-draft-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
}
.sticky-draft-navigation__left {
    text-align: left;
}
.sticky-draft-navigation__center {
    text-align: center;
}
.sticky-draft-navigation__right {
    text-align: right;
}
@media screen and (max-width: 460px) {
    .sticky-draft-navigation .btn__text {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        border: 0 !important;
    }
}
/* End: Sticky Footer */

/* Start: Spinner Wrapper Widget */
.spinner-wrapper-widget {
    display: inline-block;
    position: relative;
}
.spinner-wrapper-widget__spinner {
    position: absolute;
    right: calc(-1em - 10px);
    top: 50%;
    transform: translateY(-50%);
    display: none;
}
.spinner-wrapper-widget--active .spinner-wrapper-widget__spinner {
    display: block;
}
/* End: Spinner Wrapper Widget */

#accessibilityBtn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1057;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: grab;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: block;
    padding: 0;
    transition: all 0.3s ease;
    user-select: none;
    touch-action: none;
}

#accessibilityBtn svg {
    width: 50px;
    height: 50px;
    fill: var(--red);
    transition: all 0.3s ease;
    pointer-events: none;
}

#accessibilityBtn:active {
    cursor: grabbing;
}

#accessibilityBtn:hover svg {
    transform: scale(1.05);
}

.acc-shortcut {
    flex-shrink: 0;
}

.accessibility-modal-content {
    padding-bottom: 22px;
    height: 100%;
    overflow-y: auto;
    line-height: 1.2;
}

.accessibility-modal {
    position: fixed;
    overflow: hidden;
    top: 120px;
    left: unset;
    right: 20px;
    bottom: 50px;
    width: 500px;
    height: auto;
    box-shadow: 0 2px 9px -2px #000;
    border-radius: 12px;
    user-select: none;
    display: none;
    z-index: 1058;
    padding-top: 74px;

    a {
        text-decoration: none;
        color: #050b20;
    }
}

.accessibility-modal.show {
    display: block;
}

.accessibility-modal-title {
    height: 74px;
    padding: 24px 0 24px 22px;
    margin: 0;
    z-index: 1;
    font-size: 25px;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    background-color: var(--red);
    font-weight: 400;
    color: #fff;
}

.accessibility-modal-close {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0 22px;

    svg {
        fill: #fff;
        width: 16px;
        height: 16px;
    }
}

.accessibility-modal-close:hover {
    opacity: 0.8;
}

.px-6 {
    padding-right: 22px !important;
    padding-left: 22px !important;
}

.mx-6 {
    margin-right: 22px !important;
    margin-left: 22px !important;
}

.py-6 {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

.accessibility-action-button {
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.accessibility-action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.accessibility-action-button.active {
    background-color: #e3f2fd !important;
    border-color: #2196f3 !important;
}

.accessibility-action-button-font {
    width: 26px;
    height: 26px;
    font-size: 19px;
}

.acc-icon-sm {
    width: 20px;
    height: 20px;
}

.acc-icon-lg {
    width: 26px;
    height: 26px;
}

.bg-neutral-darkest {
    background-color: var(--red);
}

.half-bg-darkest::before {
    content: " ";
    display: block;
    position: absolute;
    z-index: -1;
    top: 0;
    left: -22px;
    right: -22px;
    height: 60px;
    background-color: var(--red);
}

.bg-neutral-light {
    background-color: #f4f4f4;
}

.bg-x-light {
    background-color: #fff;
}

.bg-neutral-lighter {
    background-color: #e9ecef;
}

.fs-14 {
    font-size: 14px;
}

.fs-15 {
    font-size: 15px;
}

.accessibility-modal-container {
    transition: all 0.3s ease;
}

body[data-acc-highlight-links="highlight-links"] main a,
body[data-acc-highlight-links="highlight-links"] .container a,
body[data-acc-highlight-links="highlight-links"] .container-general a,
body[data-acc-highlight-links="highlight-links"] header a,
body[data-acc-highlight-links="highlight-links"] footer a,
body[data-acc-highlight-links="highlight-links"] nav a,
body[data-acc-highlight-links="highlight-links"] article a,
body[data-acc-highlight-links="highlight-links"] section a {
    text-decoration: underline !important;
}

body[data-acc-highlight-titles="highlight-titles"] main h1,
body[data-acc-highlight-titles="highlight-titles"] main h2,
body[data-acc-highlight-titles="highlight-titles"] main h3,
body[data-acc-highlight-titles="highlight-titles"] main h4,
body[data-acc-highlight-titles="highlight-titles"] main h5,
body[data-acc-highlight-titles="highlight-titles"] main h6,
body[data-acc-highlight-titles="highlight-titles"] header h1,
body[data-acc-highlight-titles="highlight-titles"] header h2,
body[data-acc-highlight-titles="highlight-titles"] header h3,
body[data-acc-highlight-titles="highlight-titles"] header h4,
body[data-acc-highlight-titles="highlight-titles"] header h5,
body[data-acc-highlight-titles="highlight-titles"] header h6,
body[data-acc-highlight-titles="highlight-titles"] footer h1,
body[data-acc-highlight-titles="highlight-titles"] footer h2,
body[data-acc-highlight-titles="highlight-titles"] footer h3,
body[data-acc-highlight-titles="highlight-titles"] footer h4,
body[data-acc-highlight-titles="highlight-titles"] footer h5,
body[data-acc-highlight-titles="highlight-titles"] footer h6 {
    text-decoration: underline !important;
}

body[data-acc-disable-animations="true"] main *,
body[data-acc-disable-animations="true"] main *::before,
body[data-acc-disable-animations="true"] main *::after,
body[data-acc-disable-animations="true"] .container *,
body[data-acc-disable-animations="true"] .container *::before,
body[data-acc-disable-animations="true"] .container *::after,
body[data-acc-disable-animations="true"] .container-general *,
body[data-acc-disable-animations="true"] .container-general *::before,
body[data-acc-disable-animations="true"] .container-general *::after,
body[data-acc-disable-animations="true"] header *,
body[data-acc-disable-animations="true"] header *::before,
body[data-acc-disable-animations="true"] header *::after,
body[data-acc-disable-animations="true"] footer *,
body[data-acc-disable-animations="true"] footer *::before,
body[data-acc-disable-animations="true"] footer *::after,
body[data-acc-disable-animations="true"] nav *,
body[data-acc-disable-animations="true"] nav *::before,
body[data-acc-disable-animations="true"] nav *::after {
    transition: none !important;
    animation: none !important;
}

body[data-acc-disable-animations="true"] {
    .search-bar-active > * {
        opacity: 1;
    }
}

body[data-acc-monochrome="true"] {
    header,
    footer,
    .scroll-to-top {
        filter: grayscale(100%) !important;
    }

    .btn-primary,
    .bg-primary {
        background-color: var(--btn-primary-mono) !important;

        &:hover,
        &:focus,
        &:active {
            background-color: #6b6b6b !important;
        }
    }

    .btn-primary {
        color: #fff !important;
    }

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active {
        color: #fff !important;
    }

    .btn-secondary,
    .bg-secondary {
        background-color: var(--btn-secondary-mono) !important;

        &:hover,
        &:focus,
        &:active {
            background-color: #878787 !important;
        }
    }

    .bg-success {
        background-color: var(--green-mono) !important;
    }

    .btn-outline-primary {
        border-color: var(--btn-primary-mono) !important;
        color: var(--btn-primary-mono) !important;
    }

    .btn-outline-primary:hover,
    .btn-outline-primary:focus,
    .btn-outline-primary:active {
        background-color: var(--btn-primary-mono) !important;
        border-color: var(--btn-primary-mono) !important;
        color: #fff !important;
    }

    .text-danger {
        color: var(--red-mono) !important;
    }

    .text-success {
        color: var(--green-mono) !important;
    }

    .text-warning {
        color: var(--yellow-mono) !important;
    }

    img:not(.accessibility-excluded):not([class*="sticky-"]) {
        filter: saturate(0) brightness(1.05) contrast(1.1) !important;
    }

    .text-primary {
        color: var(--blue-mono) !important;
    }

    .bg-light {
        background-color: #f5f5f5 !important;
    }

    .bg-dark {
        background-color: #404040 !important;
    }

    .dropdown-menu,
    .modal,
    .tooltip,
    .popover {
        filter: none !important;
    }

    /* Additional monochrome fixes for specific Bootstrap classes */
    .alert-subtle-info {
        background-color: #e9ecef !important;
        color: #666666 !important;
        border-color: #ccc !important;
    }

    .btn-success {
        background-color: var(--green-mono) !important;
        border-color: var(--green-mono) !important;
        color: #fff !important;
    }

    .btn-success:hover,
    .btn-success:focus,
    .btn-success:active {
        background-color: #7a7a7a !important;
        border-color: #7a7a7a !important;
        color: #fff !important;
    }

    .nav-underline .nav-link.active,
    .nav-underline .show > .nav-link {
        color: var(--blue-mono) !important;
        border-bottom-color: var(--blue-mono) !important;
    }

    .text-danger-dark {
        color: var(--red-mono) !important;
    }

    .text-info {
        color: var(--blue-mono) !important;
    }

    .bg-info {
        background-color: var(--blue-mono) !important;
    }

    .border-info {
        border-color: var(--blue-mono) !important;
    }

    .alert-info {
        background-color: #f5f5f5 !important;
        border-color: var(--blue-mono) !important;
        color: var(--blue-mono) !important;
    }

    .text-success-emphasis {
        color: var(--green-mono) !important;
    }

    .text-warning-emphasis {
        color: var(--yellow-mono) !important;
    }

    .text-danger-emphasis {
        color: var(--red-mono) !important;
    }

    .text-info-emphasis {
        color: var(--blue-mono) !important;
    }

    .bg-success-subtle {
        background-color: #f5f5f5 !important;
    }

    .bg-warning-subtle {
        background-color: #f5f5f5 !important;
    }

    .bg-danger-subtle {
        background-color: #f5f5f5 !important;
    }

    .bg-info-subtle {
        background-color: #f5f5f5 !important;
    }

    .border-success {
        border-color: var(--green-mono) !important;
    }

    .border-warning {
        border-color: var(--yellow-mono) !important;
    }

    .border-danger {
        border-color: var(--red-mono) !important;
    }

    /* Fix nav-underline hover states */
    .nav-underline .nav-link:hover,
    .nav-underline .nav-link:focus {
        color: var(--blue-mono) !important;
        border-bottom-color: var(--blue-mono) !important;
    }

    /* Fix initials-avatar */
    .initials-avatar {
        background-color: var(--green-mono) !important;
        color: #fff !important;
    }

    /* Fix alert-subtle-primary */
    .alert-subtle-primary {
        background-color: #e9ecef !important;
        color: var(--btn-primary-mono) !important;
        border-color: var(--btn-primary-mono) !important;
    }

    /* Fix general anchor text color */
    a {
        color: var(--blue-mono) !important;
    }

    a:hover,
    a:focus {
        color: #5a5a5a !important;
    }

    a.accessibility-modal-hide-settings {
        color: #fff !important;
    }

    /* Fix btn-danger */
    .btn-danger {
        background-color: var(--red-mono) !important;
        border-color: var(--red-mono) !important;
        color: #fff !important;
    }

    .btn-danger:hover,
    .btn-danger:focus,
    .btn-danger:active {
        background-color: #6b6b6b !important;
        border-color: #6b6b6b !important;
    }

    /* Fix btn-info */
    .btn-info {
        background-color: var(--blue-mono) !important;
        border-color: var(--blue-mono) !important;
        color: #fff !important;
    }

    .btn-info:hover,
    .btn-info:focus,
    .btn-info:active {
        background-color: #5a5a5a !important;
        border-color: #5a5a5a !important;
    }

    /* Fix pagination active state */
    .page-link.active,
    .active > .page-link {
        background-color: var(--blue-mono) !important;
        border-color: var(--blue-mono) !important;
        color: #fff !important;
    }

    /* Fix pagination hover state */
    .page-link:hover {
        color: var(--blue-mono) !important;
        background-color: #e9ecef !important;
        border-color: #dee2e6 !important;
    }

    /* Fix chat message bubble */
    .chat
        .chat-message
        .sent-message-content:not(
            .chat .chat-message .sent-message-content.gallery
        ):after {
        border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) #7a7a7a rgba(0, 0, 0, 0) !important;
    }

    /* Fix btn-phoenix-primary */
    .btn-phoenix-primary {
        background-color: var(--btn-primary-mono) !important;
        border-color: var(--btn-primary-mono) !important;
        color: #fff !important;
    }

    .btn-phoenix-primary:hover,
    .btn-phoenix-primary:focus,
    .btn-phoenix-primary:active {
        background-color: #6b6b6b !important;
        border-color: #6b6b6b !important;
    }

    /* Fix form-switch checked state */
    .form-switch .form-check-input:checked {
        background-color: var(--blue-mono) !important;
        border-color: var(--blue-mono) !important;
    }
}

body[data-acc-high-contrast="true"] {
    background-color: #f8f8f8 !important;
    color: #000000 !important;

    .nav-link {
        background-color: transparent !important;
    }

    .btn-primary {
        background-color: #a01e1e !important;
        border-color: #a01e1e !important;
        color: #ffffff !important;

        &:hover,
        &:focus,
        &:active {
            background-color: #801515 !important;
            border-color: #801515 !important;
        }
    }

    .btn-secondary {
        background-color: #d4891a !important;
        border-color: #d4891a !important;
        color: #000000 !important;

        &:hover,
        &:focus,
        &:active {
            background-color: #b8750f !important;
            border-color: #b8750f !important;
        }
    }

    .btn-outline-primary {
        background-color: #ffffff !important;
        border-color: #a01e1e !important;
        color: #a01e1e !important;
    }

    .btn-outline-primary:hover,
    .btn-outline-primary:focus,
    .btn-outline-primary:active {
        background-color: #a01e1e !important;
        color: #ffffff !important;
    }

    .btn-outline-light {
        background-color: #ffffff !important;
        border-color: #333333 !important;
        color: #333333 !important;

        &:hover,
        &:focus,
        &:active {
            background-color: #333333 !important;
            color: #ffffff !important;
        }
    }

    header {
        background-color: #e0e0e0 !important;
        color: #000000 !important;
    }

    footer {
        background-color: #cccccc !important;
        color: #1a1a1a !important;
    }

    .text-muted {
        color: #333333 !important;
    }

    .text-danger {
        color: #a01e1e !important;
    }

    .text-success {
        color: #003d26 !important;
    }

    .text-warning {
        color: #b8750f !important;
    }

    .bg-light {
        background-color: #e8e8e8 !important;
        color: #000000 !important;
    }

    .bg-primary {
        background-color: #a01e1e !important;
        color: #ffffff !important;
    }

    .bg-secondary {
        background-color: #d4891a !important;
        color: #000000 !important;
    }

    .bg-success {
        background-color: #003d26 !important;
        color: #ffffff !important;
    }

    .bg-danger {
        background-color: #a01e1e !important;
        color: #ffffff !important;
    }

    .bg-warning {
        background-color: #b8750f !important;
        color: #ffffff !important;
    }

    .modal-content,
    .dropdown-menu {
        background-color: #ffffff !important;
        border-color: #333333 !important;
        color: #000000 !important;
    }

    .alert {
        color: #000000 !important;

        &.alert-primary {
            background-color: #f0e6e6 !important;
            border-color: #a01e1e !important;
        }

        &.alert-success {
            background-color: #e6f0e9 !important;
            border-color: #003d26 !important;
        }

        &.alert-warning {
            background-color: #f5f0e6 !important;
            border-color: #b8750f !important;
        }

        &.alert-danger {
            background-color: #f0e6e6 !important;
            border-color: #a01e1e !important;
        }
    }

    .badge {
        color: #ffffff !important;

        &.bg-primary {
            background-color: #a01e1e !important;
        }

        &.bg-secondary {
            background-color: #b8750f !important;
            color: #000000 !important;
        }

        &.bg-success {
            background-color: #003d26 !important;
        }

        &.bg-danger {
            background-color: #a01e1e !important;
        }
    }

    /* Additional high contrast fixes */
    .btn-success {
        background-color: #003d26 !important;
        border-color: #003d26 !important;
        color: #ffffff !important;
    }

    .btn-success:hover,
    .btn-success:focus,
    .btn-success:active {
        background-color: #155b41 !important;
        border-color: #155b41 !important;
        color: #ffffff !important;
    }

    /* Fix initials-avatar for high contrast */
    .initials-avatar {
        background-color: #003d26 !important;
        color: #ffffff !important;
    }

    /* Fix nav-underline for high contrast */
    .nav-underline .nav-link.active,
    .nav-underline .show > .nav-link {
        color: #1a5a7a !important;
        border-bottom-color: #1a5a7a !important;
    }

    .nav-underline .nav-link:hover,
    .nav-underline .nav-link:focus {
        color: #1a5a7a !important;
        border-bottom-color: #1a5a7a !important;
    }

    /* Fix text-danger-dark and similar */
    .text-danger-dark {
        color: #a01e1e !important;
    }

    .text-success-dark {
        color: #003d26 !important;
    }

    .text-warning-dark {
        color: #b8750f !important;
    }

    .text-info-dark {
        color: #1a5a7a !important;
    }

    /* Fix alert backgrounds for high contrast */
    .alert-subtle-info {
        background-color: #e6f2ff !important;
        color: #1a5a7a !important;
        border-color: #1a5a7a !important;
    }

    .alert-subtle-primary {
        background-color: #f0e6e6 !important;
        color: #a01e1e !important;
        border-color: #a01e1e !important;
    }

    .alert-subtle-success {
        background-color: #e6f0e9 !important;
        color: #003d26 !important;
        border-color: #003d26 !important;
    }

    .alert-subtle-warning {
        background-color: #f5f0e6 !important;
        color: #b8750f !important;
        border-color: #b8750f !important;
    }

    .alert-subtle-danger {
        background-color: #f0e6e6 !important;
        color: #a01e1e !important;
        border-color: #a01e1e !important;
    }

    /* General anchor text - keeping blue for better visibility in high contrast */
    a {
        color: #0066cc !important;
    }

    a:hover,
    a:focus {
        color: #0052a3 !important;
    }

    /* Fix btn-danger */
    .btn-danger {
        background-color: #a01e1e !important;
        border-color: #a01e1e !important;
        color: #ffffff !important;
    }

    .btn-danger:hover,
    .btn-danger:focus,
    .btn-danger:active {
        background-color: #8a1a1a !important;
        border-color: #8a1a1a !important;
    }

    /* Fix btn-info */
    .btn-info {
        background-color: #005a9e !important;
        border-color: #005a9e !important;
        color: #ffffff !important;
    }

    .btn-info:hover,
    .btn-info:focus,
    .btn-info:active {
        background-color: #004a82 !important;
        border-color: #004a82 !important;
    }

    /* Fix pagination active state */
    .page-link.active,
    .active > .page-link {
        background-color: #005a9e !important;
        border-color: #005a9e !important;
        color: #ffffff !important;
    }

    /* Fix chat message bubble */
    .chat
        .chat-message
        .sent-message-content:not(
            .chat .chat-message .sent-message-content.gallery
        ):after {
        border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) #a01e1e rgba(0, 0, 0, 0) !important;
    }
}

body[data-acc-invert-colors="true"] {
    background-color: #1a1a1a !important;
    color: #ffffff !important;

    .page-link {
        background-color: #404040 !important;
    }

    .active > .page-link {
        background-color: #000000 !important;
        border-color: #ffffff !important;
    }

    main,
    .container,
    .container-fluid {
        background-color: #1a1a1a !important;
        color: #ffffff !important;
    }

    .row {
        color: #ffffff !important;
    }
    p,
    span,
    div:not([class*="sticky-"]):not([class*="dropdown"]):not(
            [class*="select2"]
        ),
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    ul,
    ol,
    li,
    label,
    .text-muted,
    .card-car-content-title,
    .card-car-content-seller,
    .card-car-content-type,
    .breadcrumb,
    .nav-link {
        color: #ffffff !important;
    }

    .bg-white,
    .bg-light,
    .bg-secondary,
    .card,
    .card-body {
        background-color: #2a2a2a !important;
        color: #ffffff !important;
    }

    .nav-tabs {
        border-color: #404040 !important;
    }

    .accordion-item,
    .accordion-button {
        background-color: #1a1a1a !important;
        color: #ffffff !important;
    }

    .nav-tabs .nav-link.active {
        background-color: transparent !important;
    }

    .dropdown-item:focus,
    .dropdown-item:hover {
        background-color: #656363 !important;
    }

    .scroll-to-top {
        background-color: #404040 !important;
        color: #ffffff !important;

        svg {
            fill: #ffffff !important;
        }

        &:hover {
            background-color: #555555 !important;
        }
    }

    .btn-primary {
        background-color: #ff6b6b !important;
        color: #ffffff !important;
        border-color: #ff6b6b !important;

        svg {
            fill: #ffffff !important;
        }

        &:hover,
        &:focus,
        &:active {
            background-color: #ff5555 !important;
            border-color: #ff5555 !important;
        }
    }

    .btn-outline-primary {
        background-color: #1a1a1a !important;
        border-color: #ff6b6b !important;
        color: #ff6b6b !important;
    }

    .btn-outline-primary svg {
        fill: #ff6b6b !important;
    }

    .btn-outline-primary:hover,
    .btn-outline-primary:focus,
    .btn-outline-primary:active {
        background-color: #ff6b6b !important;
        border-color: #ff6b6b !important;
        color: #ffffff !important;
    }

    .btn-outline-primary:hover svg,
    .btn-outline-primary:focus svg,
    .btn-outline-primary:active svg {
        fill: #ffffff !important;
    }

    .btn-secondary {
        background-color: #66ccff !important;
        color: #1a1a1a !important;
        border-color: #66ccff !important;

        svg {
            fill: #1a1a1a !important;
        }

        &:hover,
        &:focus,
        &:active {
            background-color: #4db8f5 !important;
            border-color: #4db8f5 !important;
        }
    }

    .btn-outline-light {
        background-color: #1a1a1a !important;
        border-color: #ffffff !important;
        color: #ffffff !important;

        svg {
            fill: #ffffff !important;
        }

        span {
            color: #ffffff !important;
        }

        &:hover,
        &:focus,
        &:active {
            background-color: #ffffff !important;
            border-color: #ffffff !important;
            color: #1a1a1a !important;

            span {
                color: #1a1a1a !important;
            }

            svg {
                fill: #1a1a1a !important;
            }
        }
    }

    .btn-light {
        background-color: #ffffff !important;
        color: #1a1a1a !important;

        span {
            color: #1a1a1a !important;
        }

        svg {
            fill: #1a1a1a !important;
        }

        &:hover,
        &:focus,
        &:active {
            background-color: #e0e0e0 !important;
            color: #1a1a1a !important;

            span {
                color: #1a1a1a !important;
            }
        }
    }

    .form-control,
    .form-select,
    input,
    textarea,
    select {
        background-color: #2a2a2a !important;
        color: #ffffff !important;
        border-color: #404040 !important;
    }

    .select2-container--bootstrap-5 .select2-selection {
        background-color: #2a2a2a !important;
        color: #ffffff !important;
        border-color: #404040 !important;
    }

    .select2-container--bootstrap-5 .select2-selection--single {
        background-color: #2a2a2a !important;
        color: #ffffff !important;
    }

    .select2-container--bootstrap-5
        .select2-selection--single
        .select2-selection__rendered {
        color: #ffffff !important;
    }

    .nav svg,
    .navbar svg,
    .breadcrumb svg,
    .pagination svg,
    .dropdown svg,
    .accordion svg,
    .collapse svg {
        fill: #ffffff !important;
    }

    a svg {
        fill: #66ccff !important;
    }

    a:hover svg {
        fill: #99ddff !important;
    }
    .navbar,
    .nav,
    .breadcrumb-item a {
        color: #ffffff !important;
    }

    header,
    footer,
    .navbar-top {
        background-color: #0f0f0f !important;

        * {
            color: #ffffff !important;
        }

        .btn:not(.btn-phoenix-secondary) {
            filter: invert(1) hue-rotate(180deg) !important;
        }

        /* Fix btn-phoenix-secondary - no filter, explicit colors */
        .btn-phoenix-secondary {
            background-color: #6c757d !important;
            border-color: #6c757d !important;
            color: #ffffff !important;
            filter: none !important;
        }

        .btn-phoenix-secondary:hover,
        .btn-phoenix-secondary:focus,
        .btn-phoenix-secondary:active {
            background-color: #5a6268 !important;
            border-color: #5a6268 !important;
            color: #ffffff !important;
            filter: none !important;
        }
    }

    .navbar-top {
        background-color: #1a1a1a !important;
        color: #ffffff !important;
    }

    .navbar-top * {
        color: #ffffff !important;
    }

    .navbar-top .navbar-brand,
    .navbar-top .nav-link {
        color: #ffffff !important;
    }

    .navbar-top .dropdown-menu {
        background-color: #2a2a2a !important;
        color: #ffffff !important;
    }

    .navbar-top .dropdown-item {
        color: #ffffff !important;
    }

    .navbar-top .dropdown-item:hover,
    .navbar-top .dropdown-item:focus {
        background-color: #404040 !important;
        color: #ffffff !important;
    }

    .navbar-top .navbar-toggler {
        border-color: #ffffff !important;
    }

    .navbar-top .navbar-toggler-icon {
        filter: invert(1) !important;
    }

    /* Fix other navbar variations */
    .navbar-top-collapse {
        background-color: #1a1a1a !important;
    }

    .navbar-top-collapse * {
        color: #ffffff !important;
    }

    /* Fix navbar-nav-top hover visibility */
    .navbar-nav-top .nav-link:hover {
        background-color: #404040 !important;
        color: #ffffff !important;
    }

    /* Fix btn-success to be inverted */
    .btn-success {
        background-color: #60c961 !important;
        border-color: #60c961 !important;
        color: #ffffff !important;
    }

    .btn-success:hover,
    .btn-success:focus,
    .btn-success:active {
        background-color: #50a950 !important;
        border-color: #50a950 !important;
        color: #ffffff !important;
    }

    /* Fix initials-avatar to be inverted */
    .initials-avatar {
        background-color: #60c961 !important;
        color: #ffffff !important;
    }

    /* Fix badge.bg-success to be inverted */
    .badge.bg-success {
        background-color: #60c961 !important;
        color: #ffffff !important;
    }

    img:not(.accessibility-excluded):not([class*="sticky-"]) {
        filter: invert(1) hue-rotate(180deg) !important;
    }

    .table,
    .table td,
    .table th {
        background-color: #2a2a2a !important;
        color: #ffffff !important;
        border-color: #404040 !important;
    }

    .alert {
        background-color: #2a2a2a !important;
        color: #ffffff !important;
        border-color: #404040 !important;
    }

    .badge {
        filter: invert(1) hue-rotate(180deg) !important;
    }

    .list-group-item {
        background-color: #2a2a2a !important;
        color: #ffffff !important;
        border-color: #404040 !important;
    }

    .text-dark,
    .text-black {
        color: #ffffff !important;
    }

    .text-light,
    .text-white {
        color: #1a1a1a !important;
    }

    .text-primary,
    .text-danger,
    .text-success,
    .text-warning,
    .text-info {
        filter: hue-rotate(180deg) !important;
    }
    .modal,
    .tooltip,
    .popover {
        filter: none !important;
        transform: none !important;
        will-change: auto !important;
        background-color: unset !important;
        color: unset !important;
    }

    .dropdown-menu,
    .modal,
    .tooltip,
    .popover {
        filter: none !important;
    }

    .dropdown-menu {
        background-color: #404040 !important;
    }
    .accessibility-modal,
    .accessibility-modal *,
    #accessibilityPanel,
    #accessibilityPanel *,
    #accessibilityBtn,
    #accessibilityBtn *,
    .accessibility-modal-content,
    .accessibility-modal-content *,
    .accessibility-modal-title,
    .accessibility-modal-close,
    .accessibility-action-button,
    .accessibility-action-button *,
    [class*="accessibility-"],
    [class*="accessibility-"] *,
    [id*="accessibility"],
    [id*="accessibility"] * {
        filter: none !important;
    }
    #accessibilityBtn {
        background: #fff !important;
        border: none !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;

        svg {
            fill: #000 !important;
        }
    }

    .accessibility-modal {
        background: #fff !important;
        box-shadow: 0 2px 9px -2px #000 !important;
    }

    .accessibility-modal-title {
        background-color: #2c3e50 !important;
        color: #fff !important;
    }

    .accessibility-modal-close {
        background: none !important;
        border: none !important;

        svg {
            fill: #fff !important;
        }
    }

    .accessibility-modal-content {
        background: #fff !important;
        color: #000 !important;

        h3 {
            color: #000 !important;

            &.bg-neutral-darkest {
                color: #fff !important;
            }
        }
    }

    .acc-font-size {
        color: #000 !important;

        span {
            color: #000 !important;
        }
    }

    a:not(.btn):not(.accessibility-excluded).acc-reset-state {
        background-color: #fff !important;
        color: #000 !important;
    }

    a:not(.btn):not(.accessibility-excluded).acc-reset-state span {
        color: #000 !important;
    }

    a:not(.btn):not(.accessibility-excluded).accessibility-action-button {
        background: #fff !important;
        color: #000 !important;
        border: 1px solid transparent !important;
    }

    a:not(.btn):not(.accessibility-excluded).accessibility-action-button span {
        color: #000 !important;
    }

    a:not(.btn):not(
            .accessibility-excluded
        ).accessibility-action-button.active {
        background-color: #e3f2fd !important;
        border-color: #2196f3 !important;
    }

    a:not(.btn):not(.accessibility-excluded).accessibility-action-button:hover {
        background: #f5f5f5 !important;
    }

    .bg-neutral-darkest {
        background-color: #2c3e50 !important;

        .text-light {
            color: #fff !important;
        }
    }

    .half-bg-darkest::before {
        background-color: #2c3e50 !important;
    }

    .bg-neutral-light {
        background-color: #f4f4f4 !important;
    }

    .bg-x-light {
        background-color: #fff !important;
    }

    .bg-neutral-lighter {
        background-color: #e9ecef !important;
    }

    .acc-shortcut-key {
        background-color: #e9ecef !important;
        color: #2c3e50 !important;
    }

    a:not(.btn):not(.accessibility-excluded) {
        color: #66ccff !important;
    }

    a:not(.btn):not(.accessibility-excluded):hover,
    a:not(.btn):not(.accessibility-excluded):focus {
        color: #99ddff !important;
    }

    /* Fix btn-danger */
    .btn-danger {
        background-color: #dc3545 !important;
        border-color: #dc3545 !important;
        color: #fff !important;
        filter: none !important;
    }

    .btn-danger:hover,
    .btn-danger:focus,
    .btn-danger:active {
        background-color: #bb2d3b !important;
        border-color: #bb2d3b !important;
        filter: none !important;
    }

    /* Fix btn-info */
    .btn-info {
        background-color: #0dcaf0 !important;
        border-color: #0dcaf0 !important;
        color: #000 !important;
        filter: none !important;
    }

    .btn-info:hover,
    .btn-info:focus,
    .btn-info:active {
        background-color: #31d2f2 !important;
        border-color: #31d2f2 !important;
        filter: none !important;
    }

    /* Fix chat nav tabs */
    .chat .chat-thread-tab .nav-item .nav-link.active {
        background-color: #404040 !important;
        color: #ffffff !important;
    }

    .chat .chat-thread-tab .nav-item .nav-link:hover {
        background-color: #303030 !important;
        color: #ffffff !important;
    }

    /* Fix btn-phoenix-primary */
    .btn-phoenix-primary,
    .btn-icon.btn-phoenix-primary {
        background-color: #404040 !important;
        border-color: #404040 !important;
        color: #ffffff !important;
        filter: none !important;
    }

    .btn-phoenix-primary:hover,
    .btn-phoenix-primary:focus,
    .btn-phoenix-primary:active,
    .btn-icon.btn-phoenix-primary:hover,
    .btn-icon.btn-phoenix-primary:focus,
    .btn-icon.btn-phoenix-primary:active {
        background-color: #303030 !important;
        border-color: #303030 !important;
        color: #ffffff !important;
        filter: none !important;
    }

    /* Fix form-switch checked state */
    .form-switch .form-check-input:checked {
        background-color: #626060 !important;
        border-color: #626060 !important;
    }
}

body[data-acc-light-cursor="true"],
body[data-acc-light-cursor="true"] a,
body[data-acc-light-cursor="true"] button {
    cursor: url(../../images/light-cursor.png) 8 2, auto !important;
}

body[data-acc-dark-cursor="true"],
body[data-acc-dark-cursor="true"] a,
body[data-acc-dark-cursor="true"] button {
    cursor: url(../../images/dark-cursor.png) 8 2, auto !important;
}

a.accessibility-modal-hide-settings {
    color: #fff !important;
}

@media (max-width: 575px) {
    .accessibility-modal {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        box-shadow: none;
        border-radius: 0;
        user-select: none;
        z-index: 1058;
    }
}
