/* Banner e overlay — tema claro Pastel do Panda */
:root {
    --panda-inapp-offset: 0px;
}

body.panda-inapp-active .app-layout,
body.panda-inapp-active > .container {
    padding-top: calc(var(--panda-inapp-offset, 0px) + env(safe-area-inset-top, 0px));
}

.panda-inapp-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    background: linear-gradient(135deg, #fff4e8 0%, #fed7aa 55%, #ea580c 100%);
    color: #3d2314;
    box-shadow: 0 4px 20px rgba(61, 35, 20, 0.12);
    padding: max(10px, env(safe-area-inset-top)) 12px 10px;
    font-family: 'Inter', system-ui, sans-serif;
    border-bottom: 1px solid rgba(234, 88, 12, 0.2);
}

.panda-inapp-banner-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panda-inapp-banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
    line-height: 1.35;
    opacity: 0.95;
}

.panda-inapp-banner-text strong {
    font-size: 0.92rem;
    font-weight: 800;
    color: #c2410c;
}

.panda-inapp-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.panda-inapp-btn-primary,
.panda-inapp-btn-ghost,
.panda-inapp-btn-dismiss {
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 10px 14px;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.panda-inapp-btn-primary {
    background: linear-gradient(135deg, #f5a623 0%, #ea580c 100%);
    color: #ffffff;
    flex: 1;
    min-width: 140px;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
}

.panda-inapp-btn-ghost {
    background: rgba(255, 255, 255, 0.7);
    color: #3d2314;
    border: 1px solid rgba(61, 35, 20, 0.15);
}

.panda-inapp-btn-dismiss {
    background: transparent;
    color: rgba(61, 35, 20, 0.65);
    text-decoration: underline;
    padding: 8px 4px;
    font-weight: 600;
}

.panda-inapp-btn-primary:active,
.panda-inapp-btn-ghost:active {
    transform: scale(0.97);
}

.panda-inapp-overlay {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(61, 35, 20, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Inter', system-ui, sans-serif;
    backdrop-filter: blur(6px);
}

.panda-inapp-overlay-blocking {
    pointer-events: all;
}

.panda-inapp-overlay-card {
    width: 100%;
    max-width: 400px;
    background: linear-gradient(165deg, #ffffff 0%, #fff4e8 100%);
    border: 1px solid rgba(234, 88, 12, 0.2);
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    color: #3d2314;
    box-shadow: 0 20px 50px rgba(61, 35, 20, 0.15);
}

.panda-inapp-overlay-icon {
    font-size: 3rem;
    margin-bottom: 8px;
}

.panda-inapp-overlay-card h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 10px;
    background: linear-gradient(90deg, #f5a623, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.panda-inapp-overlay-card p {
    font-size: 0.88rem;
    color: #6b4c3b;
    line-height: 1.45;
    margin: 0 0 14px;
}

.panda-inapp-steps {
    text-align: left;
    font-size: 0.82rem;
    color: #6b4c3b;
    margin: 0 0 16px 1.1rem;
    padding: 0;
    line-height: 1.5;
}

.panda-inapp-steps li {
    margin-bottom: 8px;
}

.panda-inapp-copy-hint {
    font-size: 0.8rem;
    color: #c2410c;
    margin-bottom: 12px !important;
}

.panda-inapp-btn-lg {
    width: 100%;
    margin-bottom: 8px;
    padding: 14px 16px;
    font-size: 0.95rem;
}

.panda-inapp-overlay .panda-inapp-btn-primary {
    background: linear-gradient(135deg, #f5a623 0%, #ea580c 100%);
    color: #ffffff;
    font-weight: 800;
}

@media (min-width: 640px) {
    .panda-inapp-banner-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .panda-inapp-banner-actions {
        flex-shrink: 0;
    }
}