.footer-content {
    padding-inline: 20px;
}

.compare-toggle-link--disabled {
    cursor: default;
    opacity: 0.55;
}

.footer-grid-wrap {
    row-gap: 20px !important;
}

.footer-logo-wrap {
    margin-top: 20px;
}

.footer-newsletter-social-wrap input::placeholder {
    color: #fff;
}

.footer-grid-wrap .footer-newsletter-social-wrap {
    grid-column: span 6 / span 6;
}

.footer-grid-wrap accordion-custom {
    grid-column: span 6 / span 6;
}

@media (min-width: 768px) {
    .footer-grid-wrap accordion-custom {
        grid-column: span 3 / span 3;
    }
}

@media (min-width: 1024px) {
    .footer-grid-wrap accordion-custom {
        grid-column: span 2 / span 2;
    }

    .footer-grid-wrap .footer-newsletter-social-wrap {
        grid-column: span 2 / span 2;
        grid-column-start: 5;
        grid-row-start: 1;
    }

    .footer-content {
        padding-inline: 60px;
    }

    .footer-logo-wrap {
        margin-top: 60px;
    }
}

@media (min-width: 1366px) {
    .footer-grid-wrap accordion-custom {
        grid-column: span 1 / span 1;
    }
}

.mb-new-layout-footer {
    display: block;
}

.footer-content {
    contain: content;
    content-visibility: auto;
    display: block;
    grid-template-columns: 1fr;
    gap: var(--footer-gap);
}

.footer-content .group-block:first-child .group-block-content {
    display: grid;
}

.footer-content .group-block:nth-child(2) {
    margin-top: 60px;
}

.footer-logo-wrap .image-block__image {
    max-width: 235px;
}

.icon-seprators::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 32px;
    background-color: #fff;
    margin: 0 8px;
    transform: rotate(19deg);
    position: relative;
    top: 6px;
    left: -4px;
}

.compare-widget-arrow::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 20px;
    background-repeat: no-repeat;
    position: relative;
    top: 4px;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='white' d='M169.4 137.4c12.5-12.5 32.8-12.5 45.3 0l160 160c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L192 205.3 54.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l160-160z'/%3E%3C/svg%3E");
}

footer .compare-drawer__content {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    max-height: 100vh;
}

.collapsed-widget__products-compare-text {
    font-size: 18px;
    line-height: 1.33;
    letter-spacing: -0.5px;
    padding-left: 20px;
    padding-right: 15px;
}

@media screen and (min-width: 750px) and (max-width: 989px) {
    .footer-content {
        grid-template-columns: repeat(min(var(--grid-columns), 3), 1fr);
        grid-auto-flow: row;
    }

    .footer-content[style*='--grid-columns: 4'] {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content--isolated-grid-item-tablet> :last-child {
        grid-column: 1 / -1;
    }
}

@media screen and (min-width: 990px) {
    .footer-content {
        grid-template-columns: repeat(var(--grid-columns), 1fr);
    }

    /* Single item centered */
    .footer-content[style*='--grid-columns: 1'] {
        justify-items: center;
    }

    .footer-content .group-block:first-child .group-block-content .email-signup-block {
        grid-column: span 2 / span 2;
    }
}

@media screen and (max-width: 1170px) {
    .footer-content {
        gap: 20px;
    }
}

@media screen and (max-width: 1024px) {
    .footer-logo-wrap .image-block__image {
        max-width: 160px;
    }

    .footer-content {
        padding-bottom: 20px;
    }

    .footer-logo-wrap {
        padding-top: 20px;
        border-top: solid 1px #ffffff1a;
    }
}

@media (min-width: 1520px) and (max-width: 3000px) {
    .footer-content .group-block:first-child .group-block-content {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* Compare Widget */
.compare-widget {
    position: fixed;
    bottom: 20px;
    left: 50px;
    align-items: center;
    justify-content: space-between;
    border-radius: 5px;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
    background-color: #000;
    font-stretch: normal;
    font-style: normal;
    color: #fff;
    padding: 10px 20px;
    z-index: 99;
    cursor: pointer;
    pointer-events: auto;

    display: flex;
    gap: 12px;
    /* add consistent spacing between items */
}

.compare-widget .count {
    font-size: 32px;
    line-height: 1.25;
    letter-spacing: -0.55px;
}

.compare-widget .count-with-text {
    font-size: 32px;
    line-height: 1.25;
    letter-spacing: -0.55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-widget .arrow {
    margin-left: 8px;
    font-size: 18px;
}

.compare-widget-close {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.compare-widget-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.compare-widget-close svg {
    width: 14px;
    height: 14px;
    display: block;
}

/* Adjust spacing on smaller screens if needed */
@media (max-width: 480px) {
    .compare-widget {
        gap: 8px;
        padding: 8px 12px;
    }

    .compare-widget-close {
        width: 28px;
        height: 28px;
    }

    .collapsed-widget__products-compare-text {
        font-size: 14px;
    }

    .compare-widget .count-with-text,
    .compare-widget .count {
        font-size: 18px;
    }

    .icon-seprators:after {
        width: 1px;
        height: 17px;
        background-color: #fff;
        margin: 0 8px;
        transform: rotate(19deg);
        position: relative;
        top: 1px;
        left: -3px;
    }

    .compare-widget-close svg {
        width: 12px;
        height: 12px;
    }
}

/* Compare Drawer */
.compare-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.compare-drawer__products-container,
.compare-drawer__content-inners {
    background: #212121;
    color: #fff;
    padding: 20px 0 0 0;
}

.compare-products__container {
    max-width: 1380px;
    margin: 0 auto;
    position: relative;
}

.sticky-close-mobile {
    display: none;
}

.compare-drawer[aria-hidden='false'] {
    visibility: visible;
    opacity: 1;
}

.compare-drawer__specs-table {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.compare-drawer__specs-table.active {
    max-height: min-content;
    overflow: visible;
}

.compare-widget-arrow {
    transform: rotate(180deg);
}

.compare-widget-arrow.active {
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

.compare-drawer__specs-header {
    cursor: pointer;
}

.compare-widget-arrow.active::before {
    top: 3px;
}

.compare-widget-arrow::before {
    top: 2px;
}

.compare-drawer__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.compare-drawer__highlight-toggle {
    height: 30px !important;
    background-color: #494949;
    border-radius: 34px;
    width: 60px !important;
}

.compare-drawer__highlight-toggle .slider:before {
    height: 28px;
    width: 28px;
    left: -7px;
    bottom: -7px;
}

.compare-drawer__sticky-row .compare-drawer__close.compare-widget-arrow {
    position: absolute;
    top: 50%;
    right: -56px;
    transform: translateY(-50%) rotate(180deg);
}

.compare-drawer__highlight-toggle input:checked+.slider:before {
    transform: translate(38px);
}

.compare-drawer__sticky-inners {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
}

.compare-drawer__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    max-height: 100vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.compare-drawer[aria-hidden='false'] .compare-drawer__content {
    transform: translateY(0);
}

.compare-drawer__header {
    display: flex;
    align-items: center;
    position: absolute;
    top: 40px;
    right: 0;
    z-index: 10;

    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    /* adjust as needed */
}

.compare-drawer__close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.compare-drawer__close-x {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    color: currentColor;
    /* Inherits text color from parent */
}

.compare-drawer__close-x:hover {
    background-color: rgba(0, 0, 0, 0.1);
    /* Light overlay for light backgrounds */
}

/* For dark-themed drawers, adjust hover effect */
.compare-drawer__content[style*='background: #333'] .compare-drawer__close-x:hover,
.compare-drawer__content.dark .compare-drawer__close-x:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.compare-drawer__close-x svg {
    width: 16px;
    height: 16px;
    display: block;
}

.compare-drawer__sticky-label {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.55px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 25px;
}

.compare-drawer__sticky-label .compare-drawer__highlight-toggle .slider:before {
    left: 0;
    bottom: 0;
}

.compare-drawer__sticky-label .compare-drawer__highlight-toggle .slider {
    background-color: #494949;
}

.compare-drawer__main {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
}

.compare-drawer__sidebar {
    padding-top: 62px;
}

.compare-drawer__count {
    font-size: 32px;
    letter-spacing: -1.5px;
    line-height: 40px;
    display: block;
    margin-bottom: 20px;
    color: white;
}

.compare-drawer__continue,
.compare-drawer__print {
    background: transparent;
    border: none;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.55px;
    color: #e6e6e6;
    text-decoration: underline;
    padding: 0;
}

.compare-drawer__highlight {
    padding-bottom: 30px;
    margin-top: 120px;
    margin-bottom: 30px;
    border-bottom: 1px solid #757575;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.compare-drawer__highlight span {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    width: 57%;
    color: #e6e6e6;
}

.compare-drawer__print_container {
    display: flex;
    margin-top: 70px;
}

.compare-drawer__print_container svg {
    margin-top: 14px;
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px;
}

.compare-drawer__print {
    margin-top: 8px;
}

.compare-drawer__products-wrap {
    min-width: 0;
}

.compare-drawer__products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.compare-drawer__product-card {
    min-width: 0;
    padding: 15px;
    position: relative;
    padding-top: 70px;
    padding-bottom: 50px;
}

.compare-drawer__product-card.empty {
    display: flex;
    color: #999;
    font-size: 1.2rem;
}

.place-holder__num {
    font-size: 160px;
    font-weight: 600;
    line-height: 0.8;
    background: #212121;
    text-align: center;
    color: #494949;
    position: absolute;
    bottom: -5px;
    padding: 0;
    margin: 0;
    left: -30px;
}

.compare-drawer__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    color: #484848;
    display: flex;
    align-items: center;
    background: none;
    justify-content: center;
}

.compare-drawer__remove:hover {
    background: none;
}

.compare-drawer__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 10px;
    object-position: 50%;
}

.compare-drawer__sku {
    font-size: 0.8rem;
    color: #666;
}

.compare-drawer__name {
    font-size: 16px;
    color: #e6e6e6;
    line-height: 22px;
    letter-spacing: -0.32px;
    margin: 20px 0 10px;
}

.compare-drawer__description {
    font-size: 16px;
    color: #e6e6e6;
    line-height: 22px;
    margin-bottom: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    letter-spacing: -0.55px;
}

.compare-drawer__price {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
    min-height: 20px;
}

.compare-drawer__add-to-cart {
    width: 100%;
    padding: 10px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.compare-drawer__add-to-cart:hover {
    background: #555;
}

/* Toggle Switch (from Kohler) */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: '';
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #333;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* Specifications Table */
.compare-drawer__specs {
    padding: 40px 0;
    border-top: 1px solid #eee;
    background: #f5f5f5;
}

.compare-drawer__specs-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #757575;
    margin-bottom: 30px;
}

.compare-drawer__specs-header .compare-widget-arrow {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.compare-drawer__specs-header .compare-widget-arrow::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath  fill='%23212121' d='M169.4 137.4c12.5-12.5 32.8-12.5 45.3 0l160 160c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L192 205.3 54.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l160-160z'/%3E%3C/svg%3E");
    transform: rotate(180deg);
}

.compare-drawer__specs-title {
    font-size: 32px;
    line-height: 1.25;
    letter-spacing: -1.5px;
    color: #494949;
    z-index: 99;
    cursor: pointer;
    margin: 0;
}

.compare-drawer__specs-table {
    display: flex;
    flex-direction: column;
    padding-top: 18px;
}

.spec-row {
    display: grid;
    grid-template-columns: 220px repeat(4, minmax(0, 1fr));
    min-height: 64px;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    padding-top: 20px;
}

.spec-row.highlight {
    background-color: rgba(24, 104, 165, 0.05);
}

.spec-label {
    font-weight: 400;
    color: #757575;
    display: flex;
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: -0.65px;
}

.spec-value {
    color: #000;
    display: flex;
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: -0.65px;
    margin-top: -60px;
    padding-top: 60px;
    padding-left: 15px;
    padding-right: 15px;
}

.spec-value.highlight {
    background-color: #fff3cd;
}

.compare-drawer__close.compare-widget-arrow {
    transform: rotate(180deg);
}

.compare-drawer__specs-table .spec-row:first-child .spec-value {
    margin-top: -182px;
    padding-top: 182px;
}

.spec-value.spec-value--empty {
    color: transparent;
}

.compare-drawer__sticky-row {
    position: sticky;
    top: 0;
    z-index: 100;
    display: none;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 0;
    padding: 25px 0;
    background: #212121;
    color: #fff;
    align-items: center;
}

.compare-drawer__sticky-row.is-visible {
    display: flex;
}

.compare-drawer__sticky-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
    min-width: 0;
}

.compare-drawer__sticky-product {
    min-width: 0;
    padding: 12px 0;
}

.compare-drawer__sticky-product-sku {
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-drawer__sticky-product-title {
    font-size: 1.05rem;
    line-height: 1.2;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-drawer__sticky-product--empty .compare-drawer__sticky-product-sku,
.compare-drawer__sticky-product--empty .compare-drawer__sticky-product-title {
    visibility: hidden;
}

.variant-select {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: white;
}

/* Compare drawer mein product-form-component ko properly display karne ke liye */
.compare-drawer__product-card product-form-component {
    width: 100%;
    margin-top: 10px;
}

.compare-drawer__product-card .product-form-buttons {
    display: flex;
    justify-content: center;
}

.compare-drawer__product-card .compare-drawer__add-to-cart {
    width: 100%;
    height: 40px;
    background: none;
    color: var(--color-button-primary-text, #fff);
    border: none;
    border-radius: 4px;
    border: 1px solid #fff;
    font-size: 14px;
    letter-spacing: -0.25px;
    cursor: pointer;
    margin-top: 50px;
}

.compare-drawer__product-card .compare-drawer__add-to-cart:hover {
    opacity: 0.9;
}

.place-holder__box--compared {
    width: 91%;
    border: 1px solid #494949;
    border-radius: 4px;
    height: 324px;
    margin-left: auto;
    position: relative;
    font-size: 16px;
}

.compare-card-item__image-container--compared {
    height: 250px;
    width: 100%;
    position: relative;
}

.compare-drawer__specs-menu {
    display: none;
}

.compare-drawer__sticky-row.is-visible .compare-drawer__close-x {
    position: absolute;
    top: -22px;
    right: 0;
}

/* Variant select styling */
.compare-drawer__product-card .variant-select {
    width: 100%;
    margin: 0 0 17px;
    padding: 8px;
    border: 1px solid #fff;
    background-color: #212121;
    border-radius: 4px;
}

@media screen and (max-width: 1440px) {
    .compare-drawer__sticky-row .compare-drawer__close.compare-widget-arrow {
        right: 0px;
    }

    .compare-products__container {
        padding-left: 55px;
        padding-right: 55px;
    }
}

@media screen and (max-width: 1023px) {
    .compare-drawer__header {
        top: 0px;
    }

    .compare-drawer__count {
        font-size: 22px;
        line-height: 30px;
    }

    .compare-products__container {
        padding-left: 0px;
        padding-right: 0px;
        width: 98%;
    }

    .compare-drawer__main {
        gap: 2px;
    }

    .compare-drawer__products {
        gap: 0px;
    }
}

@media screen and (max-width: 820px) {
    .compare-drawer__main {
        display: flex;
        flex-direction: column;
    }

    .compare-drawer__sidebar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 99;
        background-color: #212121;
    }

    .compare-drawer__count {
        margin-bottom: 0;
    }

    .compare-drawer__highlight {
        padding-bottom: 0;
        margin-top: 0;
        border: none;
        margin-bottom: 0;
    }

    .compare-drawer__sidebar {
        padding: 10px 70px 10px 10px;
    }

    .compare-drawer__count {
        font-size: 20px;
        line-height: 30px;
    }

    .compare-drawer__products-container,
    .compare-drawer__content-inners {
        padding: 0;
    }

    .compare-drawer__product-card {
        padding: 30px 15px 50px;
    }

    .compare-drawer__header {
        top: 13px;
        z-index: 100;
        position: sticky;
    }

    .compare-drawer__specs-header {
        margin-bottom: 10px;
    }

    .spec-value,
    .spec-label {
        font-size: 16px;
    }

    .compare-drawer__sticky-row .compare-products__container {
        padding-left: 10px;
        padding-right: 20px;
    }
}

@media screen and (max-width: 767px) {
    .compare-drawer__products-wrap {
        overflow-x: auto;
        width: 100%;
    }

    .compare-drawer__specs-menu {
        position: absolute;
        top: 15px;
    }

    .compare-drawer__specs-header {
        padding-left: 34px;
    }

    .compare-drawer__products {
        grid-template-columns: repeat(4, 274px);
    }

    .spec-row {
        grid-template-columns: repeat(4, 274px);
        min-width: 1130px;
    }

    .compare-drawer__sticky-inners .compare-drawer__sticky-label {
        display: none;
    }

    .compare-drawer__specs-menu {
        display: block;
    }

    .spec-label {
        position: sticky;
        left: -1px;
        display: none;
        background-color: #f5f5f5;
        box-shadow: 6px 0 7px -5px rgba(0, 0, 0, 0.2);
        margin-top: -67px;
        padding-top: 65px;
    }

    .compare-drawer__sticky-row .compare-products__container {
        padding-left: 10px;
        padding-right: 40px;
    }

    .compare-drawer__sticky-product-title {
        white-space: normal;
    }

    .compare-drawer__sticky-row.is-visible .compare-drawer__close-x svg {
        width: 11px;
        height: 12px;
    }

    .compare-drawer__specs-header {
        margin-bottom: 0;
    }

    .compare-drawer__sticky-products {
        min-width: 1130px;
    }

    .compare-drawer__specs-table.active,
    .compare-drawer__sticky-inners {
        overflow-x: auto;
    }

    .compare-drawer__count {
        font-size: 12px;
        line-height: 24px;
    }

    .compare-drawer__continue {
        font-size: 12px;
        line-height: 24px;
    }

    .compare-drawer__highlight span:first-child {
        display: none;
    }

    .compare-drawer__header {
        top: 5px;
        display: none;
    }

    .compare-drawer__sticky-label span:first-child {
        display: none;
    }

    .compare-drawer__specs-title {
        font-size: 23px;
    }

    .compare-drawer__sidebar {
        padding: 10px 2px 10px 10px;
    }

    .sticky-close-mobile {
        display: flex;
    }

    .sticky-close-mobile .compare-drawer__close-x svg {
        width: 11px;
        height: 13px;
    }
}

@media print {
    body * {
        visibility: hidden !important;
    }

    #compare-drawer,
    #compare-drawer * {
        visibility: visible !important;
    }

    #compare-drawer {
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: #fff !important;
    }

    #compare-drawer .compare-drawer__overlay {
        display: none !important;
    }

    #compare-drawer .compare-drawer__content {
        position: static !important;
        transform: none !important;
        max-height: none !important;
        overflow: visible !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
}

.compare-swatch-group {
    display: flex;
    gap: 6px;
    align-items: center;
}
.color-swatch {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #ddd;
}
.screen-reader-text {
    /* standard WC screen-reader-text class – already in your theme? */
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.compare-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    position: relative;
    color: #727373;
    text-transform: uppercase;
    font-weight: 600;
  }

.compare-label--disabled,
.compare-label--selected {
    cursor: default;
    opacity: 0.55;
}

.compare-label--disabled *,
.compare-label--selected * {
    cursor: default;
}

.product .compare-label:before, .product .compare-label:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 23px;
    width: 26px;
    display: block;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: top .3s;
    cursor: pointer;
}

.product .compare-label--disabled:before,
.product .compare-label--disabled:after,
.product .compare-label--selected:before,
.product .compare-label--selected:after {
    cursor: default;
}

.product .compare-label:hover:before {
    top: 6px;
}

.product .compare-label:hover:after {
    top: -6px;
}

.product .compare-label--disabled:hover:before,
.product .compare-label--selected:hover:before,
.product .compare-label--disabled:hover:after,
.product .compare-label--selected:hover:after {
    top: 0;
}

.compare-checkbox {
    cursor: pointer;
    width: 20px;
    height: 20px;
    accent-color: #000000;
    visibility: hidden;
  }

.product .compare-label:before {
    background-image: url("https://new.knowmyfit.com.au/wp-content/uploads/2026/05/product-compare-down.svg");
}

.product .compare-label:after {
    background-image: url("https://new.knowmyfit.com.au/wp-content/uploads/2026/05/product-compare-up.svg");
}

/* Limit Popup */
.compare-limit-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compare-limit-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.compare-limit-popup__content {
  position: relative;
  background: #fff;
  padding: 30px 40px;
  border-radius: 8px;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: compare-popup-in 0.2s ease-out;
}
.compare-limit-popup__close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}
.compare-limit-popup__message {
  font-size: 18px;
  margin-bottom: 10px;
}
.compare-limit-popup__product {
  color: #c00;
}

@keyframes compare-popup-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}