/*
 * BCS Modal — FancyBox drop-in replacement CSS
 * Uses same #fancybox-* IDs for full backward compatibility
 */

#fancybox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 8000;
    display: none;
    justify-content: center;
    padding: 40px;
}

#fancybox-wrap {
    position: relative;
    margin: auto;
    z-index: 8010;
    outline: none;
    display: none;
    /*min-width: 672px;*/
    max-width: calc(100vw - 80px);
}

#fancybox-outer {
    position: relative;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 40px rgba(0,0,0,.35);
}

#fancybox-content {
    position: relative;
    padding: 0;
    outline: none;
    z-index: 8012;
}

#fancybox-close {
    display: none;
}

#fancybox-title {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 12px;
    z-index: 8012;
    display: none;
}

#fancybox-error {
    color: #444;
    font: normal 12px/20px Arial, sans-serif;
    padding: 14px;
    margin: 0;
}

#fancybox-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

#fancybox-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Loading indicator (simple CSS spinner, no images) */
#fancybox-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    z-index: 8030;
    display: none;
}
#fancybox-loading::after {
    content: "";
    display: block;
    width: 32px;
    height: 32px;
    margin: 4px;
    border-radius: 50%;
    border: 3px solid #999;
    border-color: #999 transparent #999 transparent;
    animation: fb-spin .8s linear infinite;
}
@keyframes fb-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
