.smmg-media-loader {
    position: fixed;
    z-index: 8;
    display: grid;
    place-items: center;
    pointer-events: none;
    overflow: hidden;
    background: rgb(245 246 248 / 35%);
    contain: layout paint;
}
.smmg-media-loader[hidden] { display: none; }
.smmg-media-loader__indicator {
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    max-width: 80%;
    max-height: 80%;
    border: 3px solid #e1e4e8;
    border-top-color: #e5161d;
    border-radius: 50%;
    background: rgb(255 255 255 / 85%);
    box-shadow: 0 0 0 7px rgb(255 255 255 / 80%);
    animation: smmg-media-spin .85s linear infinite;
}
.smmg-media-loader.is-error { background: rgb(245 246 248 / 85%); }
.smmg-media-loader.is-error .smmg-media-loader__indicator {
    width: auto;
    height: auto;
    padding: 8px;
    border: 0;
    border-radius: 6px;
    color: #475467;
    font: 600 12px/1.4 sans-serif;
    text-align: center;
    box-shadow: none;
    animation: none;
}
@keyframes smmg-media-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .smmg-media-loader__indicator { animation: none; }
}
@media print { .smmg-media-loader { display: none !important; } }
