/* Banner pulsante — pagamento ObraPay pendente */
.obrapay-pending-nudge {
    position: relative;
    margin: 0 0 1.25rem;
    border-radius: 14px;
    padding: 1rem 1.15rem 1rem 1rem;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 45%, #fef3c7 100%);
    border: 2px solid #f59e0b;
    animation: obrapay-nudge-pulse 2.2s ease-in-out infinite;
    overflow: hidden;
}

.obrapay-pending-nudge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    animation: obrapay-nudge-shine 3s ease-in-out infinite;
}

@keyframes obrapay-nudge-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45);
        border-color: #f59e0b;
    }
    50% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
        border-color: #d97706;
    }
}

@keyframes obrapay-nudge-shine {
    0% { left: -100%; }
    60%, 100% { left: 150%; }
}

.obrapay-pending-nudge__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.obrapay-pending-nudge__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    animation: obrapay-nudge-icon-bounce 1.8s ease infinite;
}

@keyframes obrapay-nudge-icon-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.obrapay-pending-nudge__body {
    flex: 1;
    min-width: 200px;
}

.obrapay-pending-nudge__title {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #92400e;
    line-height: 1.3;
}

.obrapay-pending-nudge__text {
    margin: 0;
    font-size: 0.9rem;
    color: #78350f;
    line-height: 1.45;
}

.obrapay-pending-nudge__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.obrapay-pending-nudge__btn-pay {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.1rem;
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.obrapay-pending-nudge__btn-pay:hover {
    filter: brightness(1.06);
}

.obrapay-pending-nudge__btn-dismiss {
    background: transparent;
    border: none;
    color: #92400e;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0.35rem;
}

.obrapay-pending-nudge--fixed {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9990;
    width: calc(100% - 2rem);
    max-width: 520px;
    margin: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

@media (max-width: 600px) {
    .obrapay-pending-nudge__inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .obrapay-pending-nudge__icon {
        margin: 0 auto;
    }
    .obrapay-pending-nudge__actions {
        justify-content: center;
    }
}
