div[data-elementor-type='product'].outofstock .skeleton-area {
    display: flex;
}
.skeleton-area {
    display: none;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    flex-wrap: wrap;
    gap: 24px;
}


.omnisend-wrapper {
    opacity: 0;
    transition: opacity 0.5s ease-in;
    margin: 0 -12px;
}



.skeleton-area.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}


.omnisend-wrapper.loaded {
    opacity: 1;
}

/* skeleton styles */
.skeleton {
    position: relative;
    overflow: hidden;
    background: #e9edf2;
    border-radius: 8px;
}

.skeleton-title {
    height: 27px;
    width: 60%;
    border-radius: 6px;
    width: 100%;
}

.skeleton-input {
    height: 50px;
    width: 67%;
    border-radius: 0px;
}

.skeleton-btn {
    height: 50px;
    width: calc(33% - 24px);
    border-radius: 8px;
}

/* shimmer */
.skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    height: 100%;
    width: 150%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transform: skewX(-20deg);
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    to { left: 150%; }
}

/* Container styling */
.certificate-wrap {
    position: relative;
    transition: opacity 0.3s ease;
}
.certificate-wrap.is-loading {
    min-height: 200px;
    opacity: 0.6;
    pointer-events: none;
}

.certificate-wrap:empty {
    border: none;
}

/* Custom Gradient Spinner */
.custom-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 3px;
    /* Using your gradients */
    background: linear-gradient(90deg, #3D99B2 1.92%, #413F66 43.75%, #2F1A21 100%);
    -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: spin 1s infinite linear;
    z-index: 10;
}

/* Animation */
@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

