:root {
    --header-height: calc(135px + 32px);
}

* {
    outline: none;
}

select.form-select {
    min-height: 48px;
}

.pointer-events-none {
    pointer-events: none;
}

.hide-pseudo-elements::before,
.hide-pseudo-elements::after {
    content: none;
}

.input-group > .form-control:focus,
.input-group > .form-floating:focus-within,
.input-group > .form-select:focus {
    z-index: 1;
}

.line-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp.line-clamp-1 {
    -webkit-line-clamp: 1;
    height: 1lh;
}

.line-clamp.line-clamp-2 {
    -webkit-line-clamp: 2;
    height: 2lh;
}

.line-clamp.line-clamp-3 {
    -webkit-line-clamp: 3;
    height: 3lh;
}

.line-clamp.line-clamp-4 {
    -webkit-line-clamp: 4;
    height: 4lh;
}

#CookiebotWidget {
    z-index: 2 !important;
}

body.modal-open #CookiebotWidget {
    z-index: -1 !important;
}

#section-page-404 .section-min-height {
    min-height: calc(100dvh - var(--header-height));
    color: #fff;
}

#section-page-breadcrumbs {
    min-height: 50dvh;
    color: #fff;
}

@media (min-width: 1024px) {
    #section-page-breadcrumbs {
        min-height: 10dvh;
    }

    .section-title-icon {
        width: 40px;
        height: 40px;
        /* border: 1px solid rgba(98, 0, 234, 0.2) */
    }
}

#section-page-404:before,
#section-page-breadcrumbs:before {
    content: '\A0';
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: linear-gradient(-90deg, rgba(255, 255, 255, 0) 0%, #f06022 100%);
    z-index: 1;
    pointer-events: none;
}

.section-title-icon {
    width: 30px;
    height: 30px;
    /* border: 1px solid rgba(98, 0, 234, 0.2) */
}

.listing-image-height {
    min-height: 210px;
    max-height: 210px;
}

#section-promo-seller .promo-seller {
    border: 1px solid transparent;
    transition: 0.25s ease-in-out;
}

#section-promo-seller .promo-seller:hover {
    border: 1px solid #D3D3D3;
    transition: 0.25s ease-in-out;
}

#offcanvas-categories .category-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

#offcanvas-categories img.header-icon {
    filter: invert(1);
    width: 32px;
    height: 32px;
}

.autoplay-progress {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--bs-primary);
}

.autoplay-progress svg {
    --progress: 0;
    position: absolute;
    left: 0;
    top: 0px;
    z-index: 10;
    width: 100%;
    height: 100%;
    stroke-width: 4px;
    stroke: var(--bs-primary);
    fill: none;
    stroke-dashoffset: calc(125.6px * (1 - var(--progress)));
    stroke-dasharray: 125.6;
    transform: rotate(-90deg);
}

.reel-overlay .icon-avatar {
    width: 16px;
    height: 16px;
}


@media (max-width: 767px) {
    .mobile-carousels-remove-padding-end {
        padding-right: 0px !important;
    }

    .mobile-carousels-add-margin-end {
        margin-right: var(--bs-gutter-x);
    }
}


.iti {
    width: 100%;
}


.sakaraka-floating-labels {
    position: relative;
}

.sakaraka-floating-labels .form-label {
    position: absolute;
    top: 8px;
    left: 22px;
    font-size: 12px;
    z-index: 10;
}

#section-auth #authTabs {
    border-bottom: 1px solid #D3D3D3;
}

#section-auth #authTabs .nav-link {
    padding: 16px 22px;
    border-bottom: 2px solid transparent;
}

#section-auth #authTabs .nav-link.active {
    color: #F06022;
    border-bottom: 2px solid #F06022;
    filter: drop-shadow(0px 4px 20px rgba(236, 81, 14, 0.40));
}

#section-auth #authTabs .hidden-unless-active:not(.active) {
    display: none;
}

.text-line-or {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-line-or span {
    position: relative;
    z-index: 1;
    background-color: #fff;
    padding: 0 10px;
}

.text-line-or::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 100%;
    height: 1px;
    border-bottom: 1px solid #D3D3D3;
}

#seller-profile-content .seller-logo,
#listing-category .seller-logo {
    min-height: 50px;
    height: 50px;
    max-height: 50px;
    min-width: 75px;
    width: 75px;
    max-width: 75px;
}

input[type="checkbox"] {
    accent-color: var(--bs-primary);
}

input[type*="password"].is-invalid + .absolute-button,
input[type*="text"].is-invalid + .absolute-button {
    margin-right: 25px !important;
}

input[type*="time"].is-invalid {
    background-position: right calc(2.375em + .1875rem) center;
}

/* Notification Badge - Red Dot Indicator */
.notification-badge {
    position: relative;
    display: inline-block;
}

.notification-badge::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: var(--bs-primary);
    border-radius: 50%;
    border: 1px solid white;
}

.notification-badge-icon {
    position: relative;
    display: inline-block;
}

.notification-badge-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -10px;
    width: 8px;
    height: 8px;
    background-color: var(--bs-primary);
    border-radius: 50%;
    border: 1px solid white;
}

/* Unread notification item indicator */
.unread {
    position: relative;
    padding-left: 24px !important;
}

.unread::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--bs-primary);
    border-radius: 50%;
}

#saved-filters-searches .listing-item-image {
    min-height: 170px;
    max-height: 170px;
}

.listing-item-image-first {
    background: #fff;
    transition: opacity 0.3s ease;
}

.listing-item-image-second {
    opacity: 0;
    z-index: 1;
    background: #fff;
    transition: opacity 0.3s ease;
}

.transition-images-hover.listing-card-link:hover .listing-item-image-first {
    opacity: 0;
}

.transition-images-hover.listing-card-link:hover .listing-item-image-second {
    opacity: 1;
}

.listing-attributes .list-horizontal-item {
    position: relative !important;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.listing-attributes .list-horizontal-item::before {
    content: '';
    background-image: url('/assets/icons/listing-attributes/icon-dot.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 4px;
    height: 4px;
    margin-right: 4px;
    display: inline-block;
}

.listing-price-rating {
    min-height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.listing-item-gallery-item {
    width: 100%;
    min-height: 210px;
    max-height: 210px;
    background-color: #f5f5f5;
    object-fit: contain;
    object-position: center;
}

@media(max-width: 768px) {
    .modal:not(#reelModal) {
        width: calc(100% - 2rem);
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

#profile-listing-details .nav-tabs .nav-link.active {
    border-color: var(--bs-primary) !important;
}

@media (max-width: 992px) {

    body.app-listing-view #CookiebotWidget {
        bottom: 100px !important;
    }

    body.app-listing-view.app-listing-view-promoted #CookiebotWidget {
        bottom: 125px !important;
    }

    body.app-listing-view #floating-compare-button {
        bottom: 100px !important;
    }

    body.app-listing-view.app-listing-view-promoted #floating-compare-button {
        bottom: 125px !important;
    }

    body.app-listing-view #app-footer {
        padding-bottom: 200px !important;
    }

}

#seller-profile .cover-image-wrapper {
        background: #f5f5f5
    }

    #seller-profile .avatar {
        width: 50px;
        height: 50px;
        background: #f5f5f5;
        object-fit: cover;
    }

    #seller-profile-subscribed .cover-image-wrapper {
        background: #f5f5f5
    }

    #seller-profile-subscribed .cover-image-wrapper .cover-image {
        aspect-ratio: 1320 / 240;
        min-height: 240px;
        max-height: 240px;
        object-fit: cover;
    }

    #seller-profile-subscribed .avatar {
        width: 120px;
        height: 120px;
        object-fit: cover;
        background: #f5f5f5
    }

    #seller-reels-tab .reel-height {
        min-height: 200px;
        max-height: 200px;
    }

    @media (min-width: 768px) {
        #seller-reels-tab .reel-height {
            min-height: 300px;
            max-height: 300px;
        }
    }

    #seller-profile-content .nav-tabs {
        --bs-nav-tabs-link-active-color: #000000;
        border-bottom: 1px solid #D9D9D9;
    }

    #seller-profile-content .nav-link {
        --bs-nav-link-padding-y: 18px;
        border-bottom: 1px solid transparent;
    }

    #seller-profile-content .nav-link.active {
        border-bottom: 2px solid var(--bs-primary);
    }

    #seller-profile-content .review-image {
        width: 75px;
        height: 75px;
        object-fit: cover;
    }

/* Applied by image-fallback.js when an <img> 404s and is swapped for the placeholder.
   The placeholder is 16:9, so cover keeps it filling whatever frame it landed in
   instead of letterboxing or stretching. */
img.is-image-fallback {
    object-fit: cover;
    background-color: #F2F2F2;
}

/* Rich-text coming out of the CMS editor (page section descriptions). The markup is
   whatever the editor produced — h2/h3/p/ul/ol/a — so it needs its own typography
   instead of Bootstrap's raw reboot sizes, which dwarf the page title. */
.cms-content {
    line-height: 1.7;
}

.cms-content > *:last-child {
    margin-bottom: 0;
}

.cms-content h1,
.cms-content h2,
.cms-content h3,
.cms-content h4 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 600;
}

.cms-content h1:first-child,
.cms-content h2:first-child,
.cms-content h3:first-child,
.cms-content h4:first-child {
    margin-top: 0;
}

.cms-content h1 { font-size: 28px; }
.cms-content h2 { font-size: 24px; }
.cms-content h3 { font-size: 20px; }
.cms-content h4 { font-size: 18px; }

.cms-content p {
    margin-bottom: 16px;
}

.cms-content ul,
.cms-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.cms-content li {
    margin-bottom: 8px;
}

.cms-content a {
    color: var(--bs-primary);
    text-decoration: underline;
}

.cms-content img {
    max-width: 100%;
    height: auto;
}

.cms-content table {
    width: 100%;
    margin-bottom: 16px;
}

.cms-content blockquote {
    margin: 0 0 16px;
    padding-left: 16px;
    border-left: 3px solid #D9D9D9;
    color: #6C757D;
}