header.sticky {
    z-index: 40 ;
}

/* More aggressive approach */
body > div.fixed.inset-0,
[modal-backdrop],
[data-modal-backdrop],
div.fixed[aria-hidden="true"] {
    z-index: 90 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4.25px) !important;
}

/* Ensure all modals are on top */
[role="dialog"] {
    z-index: 100 !important;
}

/* Modal sizing */
#pp-original > div,
#pp-service > div {
    width: 50rem;
}
#ppgo-service > div {
    width: 41rem;
}

/* Modal close button */
.close-modal {
    top: -40px;
    width: 44px;
    height: 44px;
}

/* Popup image styling */
.popup-image,
.product-image,
.product-image-ppgo {
    width: 30rem; /* -17rem for mobile */
    margin-top: -11.5rem; /* -5rem for mobile */
}
.compare-table-image {
    width: 160px; /* -17rem for mobile */
}

@media (max-width: 767px) {
    .close-modal {
        top: -16px;
        width: 28px;
        height: 28px;
        padding: 8px !important;
    }
    .close-modal svg {
        width: 12px;
        height: 12px;
    }
    
    .popup-image,
    .product-image,
    .product-image-ppgo {
        width: 17rem;
        margin-top: -5rem;
    }

    .compare-table-title {
        font-size: 12px !important;
    }

    .service-product-title {
        font-size: 18px !important;
        line-height: 28px !important;
    }
    .service-benefits {
        font-size: 14px !important;
        line-height: 20px !important;
    }

    .modal-product-graphic {
        width: 85% !important;
    }
  }

  @media (min-width: 768px) {
    #pp-original > div .md\:flex-col {
        flex-direction: column;
    }
}
