body:Has(#est-holder) {
    overflow-y: hidden;
}


#est-holder {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
}

#est-holder.visible {
    opacity: 1;
    pointer-events: auto;
}

.est-holder-wrapper {
    transition: 0.2s opacity ease-in-out;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 0.5rem;
    box-sizing: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    width: 1200px;
    max-height: 750px;
    height: 750px;
    overflow: hidden;
}

.est-holder-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    width: 100%;
}

#est-holder.fade-out {
    animation: fadeOut 0.2s ease-in-out forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}


.est-holder-header {
    padding: 1rem;
    background-color: var(--background-color);
    position: relative;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;

    #est-holder-sub-title {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.est-holder-close {
    font-size: 1rem;
    line-height: 1rem;
    position: absolute;
    right: 1rem;
    top: 1rem;
    pointer-events: auto;
    cursor: pointer;
    color: white;
}

.est-holder-navbar {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding: 1rem;
    background-color: #FAFAFA;
    border-bottom: 1px solid #DDD;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.est-holder-frame {
    width: 1200px;
}

/* Default: no subtitle and has footer */
.est-holder-frame,
.est-holder-frame + div {
    height: 100%;
}

/* Has subtitle and footer visible */
.est-holder-frame.no-subtitle,
.est-holder-frame.no-subtitle + div.no-subtitle {
    height: 100%;
}

/* No footer but has subtitle */
.est-holder-frame.no-footer,
.est-holder-frame.no-footer + div.no-footer {
    height: 100%;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* No subtitle, no footer */
.est-holder-frame.no-footer.no-subtitle,
.est-holder-frame.no-footer.no-subtitle + div.no-footer.no-subtitle {
    height: 100%;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.est-holder-footer {
    padding: 1rem;
    min-height: 78px;
    border-top: 1px solid #DDD;
    background-color: #FAFAFA;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    flex-shrink: 0;
}

.est-holder-footer-wrapper {
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

[data-role="blur-header"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: all; /* Prevents clicks from passing through */
    z-index: 10;
    border-top-right-radius: 8px;
    border-top-left-radius: 8px;
}

[data-role="blur-footer"] {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: all; /* Prevents clicks from passing through */
    z-index: 10;
    height: 77px;
    border-bottom-right-radius: 7px;
    border-bottom-left-radius: 7px;
}
