/* Opt-in page context utility. Loaded only by prototype pages. */
.gnpc-context-bar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 90;
    color: var(--gn-color-green-800);
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(6, 59, 34, .16);
    box-shadow: 0 3px 12px rgba(6, 59, 34, .08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    transition: opacity 120ms ease, transform 150ms ease;
}

.gnpc-context-bar.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.gnpc-context-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 40px, var(--gn-content-width));
    min-height: 46px;
    margin: 0 auto;
    gap: 24px;
}

.gnpc-context-bar__title {
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .015em;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gnpc-context-bar__call {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    gap: 8px;
    padding: 0 4px 0 14px;
    color: var(--gn-color-green-800);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.gnpc-context-bar__call-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--gn-color-surface);
    background: var(--gn-color-green-800);
    border-radius: 50%;
}

.gnpc-context-bar__call-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.gnpc-context-bar__call:hover {
    color: var(--gn-color-orange-500);
}

.gnpc-context-bar__call:hover .gnpc-context-bar__call-icon {
    background: var(--gn-color-orange-500);
}

@media (max-width: 900px) {
    .gnpc-context-bar__inner {
        width: calc(100% - 32px);
        min-height: 44px;
        gap: 16px;
    }

    .gnpc-context-bar__call {
        padding-left: 10px;
    }

    .gnpc-context-bar__number {
        display: none;
    }
}

@media (max-width: 520px) {
    .gnpc-context-bar__inner {
        width: calc(100% - 24px);
        min-height: 42px;
        gap: 10px;
    }

    .gnpc-context-bar__title {
        font-size: 13px;
    }

    .gnpc-context-bar__call {
        min-height: 42px;
        padding: 0 0 0 10px;
        font-size: 12px;
    }

    .gnpc-context-bar__call-icon {
        width: 26px;
        height: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gnpc-context-bar {
        transition: none;
    }
}
