/* PBBusy — Atelier-style busy overlay (FT-37)
   Variant 2 "Pulsende stippen" uit docs/design_handoff_pb_banking_ui/Spinner Popup.html */

.pb-busy-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(11, 31, 58, .5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    animation: pb-busy-fadein .2s ease;
}

.pb-busy-overlay.is-open {
    display: flex;
}

@keyframes pb-busy-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.pb-busy-popup {
    background: var(--pb-card-bg, #FFFFFF);
    border: 1px solid var(--pb-border, #DDE4EE);
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(11, 31, 58, .18),
                0 4px 14px rgba(11, 31, 58, .08);
    padding: 30px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    min-width: 320px;
    max-width: 440px;
    text-align: center;
    font-family: var(--pb-font-body, "Lato", system-ui, sans-serif);
}

.pb-busy-dots {
    display: flex;
    gap: 10px;
    align-items: center;
    height: 32px;
}

.pb-busy-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0B1F3A;
    animation: pb-busy-dot 1.2s ease-in-out infinite;
}

.pb-busy-dots span:nth-child(2) {
    background: var(--pb-accent, #C9A84C);
    animation-delay: .18s;
}

.pb-busy-dots span:nth-child(3) {
    background: var(--pb-text-3, #7A8FA6);
    animation-delay: .36s;
}

@keyframes pb-busy-dot {
    0%, 80%, 100% { transform: scale(.4); opacity: .4; }
    40%           { transform: scale(1);  opacity: 1;  }
}

.pb-busy-title {
    font-family: var(--pb-font-heading, "Playfair Display", Georgia, serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--pb-text-1, #0B1F3A);
    letter-spacing: .01em;
}

.pb-busy-subtitle {
    font-size: 13.5px;
    color: var(--pb-text-3, #7A8FA6);
    font-weight: 400;
    line-height: 1.5;
    margin-top: -8px;
    max-width: 340px;
}

@media (max-width: 480px) {
    .pb-busy-popup {
        min-width: 0;
        width: calc(100vw - 40px);
        padding: 24px 24px;
    }
}
