  /* Sticky comparison bar */
.compare-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 1.25rem;
    background: var(--global-palette12);
    color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.compare-sticky-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1564px;
    margin: 0 auto;
    width: 100%;
}

.compare-sticky-bar-items {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.compare-sticky-bar-item {
    display: flex;
    height: stretch;
    flex-direction: column;
    position: relative;
    flex: 1;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 10px 48px 10px 16px;
    border-radius: 8px;
    font-size: 1rem;
    max-width: 440px;
    border: 2px solid var(--global-palette1);
}

.compare-sticky-bar-item-title {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.3;
}

.compare-sticky-bar-item-meta {
    font-size: 1rem;
    line-height: 1.3;
}

.compare-sticky-bar-item-remove {
    background: transparent;
    border: none;
    padding: 0.25rem;
    position: absolute;
    top: 8px;
    right: 8px;
    border-radius: 0px;
}

.compare-sticky-bar-item-remove:hover,
.compare-sticky-bar-item-remove:focus {
    background: rgba(0, 0, 0, 0.15);
}

.compare-sticky-bar-item-remove-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15' fill='none'%3E%3Cpath d='M14.8145 1.06445C15.0566 0.822266 15.0566 0.423828 14.8145 0.181641C14.5723 -0.0605469 14.1738 -0.0605469 13.9316 0.181641L7.49805 6.61523L1.06445 0.181641C0.822266 -0.0605469 0.423828 -0.0605469 0.181641 0.181641C-0.0605469 0.423828 -0.0605469 0.822266 0.181641 1.06445L6.61523 7.49805L0.181641 13.9316C-0.0605469 14.1738 -0.0605469 14.5723 0.181641 14.8145C0.423828 15.0566 0.822266 15.0566 1.06445 14.8145L7.49805 8.38086L13.9316 14.8145C14.1738 15.0566 14.5723 15.0566 14.8145 14.8145C15.0566 14.5723 15.0566 14.1738 14.8145 13.9316L8.38086 7.49805L14.8145 1.06445Z' fill='%2393d400'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.compare-sticky-bar-actions {
    flex-shrink: 0;
    margin-left: 1rem;
}

.compare-sticky-bar-open-modal {
    padding: 1rem;
    font-size: 1.125rem;
    letter-spacing: -0.18px;
    font-weight: 700;
    color: #121212;
    background: var(--global-palette1);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.compare-sticky-bar-open-modal:hover {
    background: #ffffff;
}

.compare-sticky-bar-open-modal-icon {
    margin-left: .5rem;
}

.compare-sticky-bar-open-modal-icon:before {
    content: '';
    display: inline-block;
    content: '';
    width: 15px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='15' viewBox='0 0 20 15' fill='none'%3E%3Cpath d='M19.8164 7.93945C20.0586 7.69727 20.0586 7.29883 19.8164 7.05664L12.9414 0.18164C12.6992 -0.0605474 12.3008 -0.0605474 12.0586 0.18164C11.8164 0.423828 11.8164 0.822264 12.0586 1.06445L17.8672 6.87305L0.625 6.87305C0.28125 6.87305 -3.42776e-07 7.1543 -3.2775e-07 7.49805C-3.12724e-07 7.8418 0.28125 8.12305 0.625 8.12305L17.8672 8.12305L12.0586 13.9316C11.8164 14.1738 11.8164 14.5723 12.0586 14.8145C12.3008 15.0566 12.6992 15.0566 12.9414 14.8145L19.8164 7.93945Z' fill='%23121212'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: sub;
}

@media (min-width: 768px) and (max-width: 850px) {
    .compare-sticky-bar-items {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .compare-sticky-bar-items {
        flex-wrap: wrap;
    }

    .compare-sticky-bar-inner {
        flex-direction: column;
        row-gap: 1rem;
    }

    .compare-sticky-bar-item {
        max-width: 100%;
        min-width: 100%;
        width: 100%;
    }
}

/* Modal overlay */
.compare-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.84);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.compare-modal-overlay.compare-modal-visible {
    opacity: 1;
    visibility: visible;
}

.compare-modal {
    position: relative;
    width: 90%;
    max-width: 1400px;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.compare-modal-inner {
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.compare-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 1rem 0;
    flex-shrink: 0;
}

.compare-modal-header-controls {
    display: flex;
    align-items: center;
    position: relative;
}

.compare-modal-title {
    margin: 0;
    font-size: 1.25rem;
}

.compare-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 2rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
}

.compare-modal-close-text {
    display: inline-block;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    column-gap: 1rem;
    padding: .5rem;
}

.compare-modal-close-text::after {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M0.75 0.75L14.8921 14.8921' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M0.757812 14.8926L14.8999 0.750442' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: sub;
}

.compare-modal-close:hover,
.compare-modal-close:focus {
    border-color: #ffffff;
    background-color: transparent;
    border-radius: 4px;
}

.compare-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
}

.compare-modal-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 12px;
    background: #ffffff;
    height: 100%;
    padding-top: 3rem;
    padding-bottom: 88px;
    background-image: url("/wp-content/uploads/gel-angle-overlay-680.png");
    background-position: bottom center;
    background-size: 100% 88px;
    background-repeat: no-repeat;
}

.compare-modal-card-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 2px;
}

.compare-modal-card-remove-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15' fill='none'%3E%3Cpath d='M14.8145 1.06445C15.0566 0.822266 15.0566 0.423828 14.8145 0.181641C14.5723 -0.0605469 14.1738 -0.0605469 13.9316 0.181641L7.49805 6.61523L1.06445 0.181641C0.822266 -0.0605469 0.423828 -0.0605469 0.181641 0.181641C-0.0605469 0.423828 -0.0605469 0.822266 0.181641 1.06445L6.61523 7.49805L0.181641 13.9316C-0.0605469 14.1738 -0.0605469 14.5723 0.181641 14.8145C0.423828 15.0566 0.822266 15.0566 1.06445 14.8145L7.49805 8.38086L13.9316 14.8145C14.1738 15.0566 14.5723 15.0566 14.8145 14.8145C15.0566 14.5723 15.0566 14.1738 14.8145 13.9316L8.38086 7.49805L14.8145 1.06445Z' fill='%2300564F'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: sub;
}

.compare-modal-card-remove:hover {
    background: rgba(0, 0, 0, 0.15);
}

.compare-modal-card-title {
    margin: 0 0 0.5rem;
    padding-right: 1.5rem;
    line-height: 1.3;
    font-size: 1.75rem;
    color: var(--global-palette11);
    font-weight: 600;
}

.compare-modal-card-short-description {
    font-size: 1rem;
    color: #3e3e3e;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.compare-modal-card-meta {
    display: flex;
    flex-direction: column;
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.compare-modal-card-meta dt {
    font-weight: 600;
    color: #121212;
}

.compare-modal-card-meta dd {
    margin: 0;
    margin-bottom: 1rem;
    color: #3e3e3e;
}

.compare-modal-card-button {
    display: inline-block;
    padding: 12px 34px;
    font-size: 1.125rem;
    font-weight: 500;
    color: #fff;
    background: var(--global-palette11);
    text-decoration: none;
    border-radius: 8px;
}

.compare-modal-card-button-arrow:before {
    display: inline-block;
    content: '';
    width: 15px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='15' viewBox='0 0 20 15' fill='none'%3E%3Cpath d='M19.8164 7.93945C20.0586 7.69727 20.0586 7.29883 19.8164 7.05664L12.9414 0.18164C12.6992 -0.0605474 12.3008 -0.0605474 12.0586 0.18164C11.8164 0.423828 11.8164 0.822264 12.0586 1.06445L17.8672 6.87305L0.625 6.87305C0.28125 6.87305 -3.42776e-07 7.1543 -3.2775e-07 7.49805C-3.12724e-07 7.8418 0.28125 8.12305 0.625 8.12305L17.8672 8.12305L12.0586 13.9316C11.8164 14.1738 11.8164 14.5723 12.0586 14.8145C12.3008 15.0566 12.6992 15.0566 12.9414 14.8145L19.8164 7.93945Z' fill='white'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: sub;
}

.compare-modal-card-button:hover .compare-modal-card-button-arrow::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='15' viewBox='0 0 20 15' fill='none'%3E%3Cpath d='M19.8164 7.93945C20.0586 7.69727 20.0586 7.29883 19.8164 7.05664L12.9414 0.18164C12.6992 -0.0605474 12.3008 -0.0605474 12.0586 0.18164C11.8164 0.423828 11.8164 0.822264 12.0586 1.06445L17.8672 6.87305L0.625 6.87305C0.28125 6.87305 -3.42776e-07 7.1543 -3.2775e-07 7.49805C-3.12724e-07 7.8418 0.28125 8.12305 0.625 8.12305L17.8672 8.12305L12.0586 13.9316C11.8164 14.1738 11.8164 14.5723 12.0586 14.8145C12.3008 15.0566 12.6992 15.0566 12.9414 14.8145L19.8164 7.93945Z' fill='%23121212'/%3E%3C/svg%3E");
}

.compare-modal-card-button:hover {
    background: var(--global-palette1);
    color: var(--global-palette3);
}

/* Screen reader only - for live region and other a11y text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.compare-modal-slider-counter {
    visibility: hidden;
}

@media (min-width: 1025px) and (max-width: 1300px) {

    .compare-modal {
        width: 100%;
    }

    .compare-modal-body {
        gap: 1.25rem;
    }
}

/* Mobile: modal cards as horizontal slider */
@media (max-width: 1024px) {
    .compare-modal-slider-wrap {
        position: relative;
        display: flex;
        align-items: stretch;
        flex: 1;
        min-height: 0;
        overflow: auto;
    }

    .compare-modal-body {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding: 1rem 0.5rem 1rem 1rem;
        scrollbar-width: none;
        height: fit-content;
    }

    .compare-modal-body::-webkit-scrollbar {
        display: none;
    }

    .compare-modal-slide {
        flex: 0 0 calc(50% - 2rem);
        min-width: calc(50% - 2rem);
        scroll-snap-align: start;
        scroll-snap-stop: always;
        margin-right: 1rem;
    }

    .compare-modal-slide .compare-modal-card {
        height: 100%;
    }

    .compare-modal-prev {
        margin-right: .5rem;
    }

    .compare-modal-prev,
    .compare-modal-next {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        border: 2px solid var(--global-palette1);
        border-radius: 8px;
        background: transparent;
        cursor: pointer;
    }

    .compare-modal-prev:disabled,
    .compare-modal-next:disabled {
        opacity: 0.4;
        cursor: default;
        pointer-events: none;
    }


    .compare-modal-prev-icon:before,
    .compare-modal-next-icon:before {
        content: '';
        display: inline-block;
        width: 16px;
        height: 16px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='15' viewBox='0 0 20 15' fill='none'%3E%3Cpath d='M19.7266 8.16602C20.0938 7.79883 20.0938 7.20508 19.7266 6.8418L13.1641 0.275391C12.7969 -0.0917969 12.2031 -0.0917969 11.8398 0.275391C11.4766 0.642578 11.4727 1.23633 11.8398 1.59961L16.8008 6.56055H0.9375C0.417969 6.56055 0 6.97852 0 7.49805C0 8.01758 0.417969 8.43555 0.9375 8.43555H16.8008L11.8398 13.3965C11.4727 13.7637 11.4727 14.3574 11.8398 14.7207C12.207 15.084 12.8008 15.0879 13.1641 14.7207L19.7266 8.16602Z' fill='white'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        vertical-align: middle;
    }

    .compare-modal-prev-icon:before {
        transform: rotate(180deg);
    }


}

@media (max-width: 767px) {
    .compare-modal-slide {
        flex: 0 0 calc(100% - 2rem);
        min-width: calc(100% - 2rem);
    }

    .compare-modal-slider-counter {
        visibility: visible;
        display: block;
        color: #ffffff;
    }
}