.ur-pepper-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9990;
    width: min(380px, calc(100vw - 28px));
    font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
    color: #f9fafb;
    pointer-events: none;
}

.ur-pepper-widget * {
    box-sizing: border-box;
}

.ur-pepper-panel,
.ur-pepper-launcher {
    pointer-events: auto;
}

.ur-pepper-panel {
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 8px;
    overflow: hidden;
    transform: translateY(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.ur-pepper-widget.is-open .ur-pepper-panel {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.ur-pepper-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 14px 10px;
}

.ur-pepper-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: #111827;
    box-shadow: 0 8px 22px rgba(165, 27, 52, 0.34);
}

.ur-pepper-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ur-pepper-title strong,
.ur-pepper-launcher strong {
    display: block;
    font-family: var(--font-display, 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 1.02rem;
    line-height: 1.1;
    letter-spacing: 0;
}

.ur-pepper-title span,
.ur-pepper-launcher span {
    display: block;
    color: #cbd5e1;
    font-size: 0.78rem;
    line-height: 1.35;
}

.ur-pepper-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
    font: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.ur-pepper-copy {
    margin: 0;
    padding: 0 16px 14px;
    color: #f8fafc;
    font-size: 0.98rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.ur-pepper-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0 14px 14px;
}

.ur-pepper-open {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #a51b34, #c42040);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(165, 27, 52, 0.34);
}

.ur-pepper-open:hover,
.ur-pepper-open:focus-visible {
    background: linear-gradient(135deg, #bb1f3b, #d4284a);
}

.ur-pepper-launcher {
    display: none;
    width: 100%;
    min-height: 68px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.96);
    color: #f9fafb;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.42);
    cursor: pointer;
    padding: 10px 12px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    text-align: left;
}

.ur-pepper-widget:not(.is-open) .ur-pepper-launcher {
    display: grid;
}

.ur-pepper-widget.is-loading .ur-pepper-copy {
    color: #cbd5e1;
}

@media (max-width: 720px) {
    .ur-pepper-widget {
        right: 10px;
        bottom: 10px;
        width: min(216px, calc(100vw - 20px));
    }

    .ur-pepper-widget.is-open {
        width: min(292px, calc(100vw - 20px));
    }

    .ur-pepper-head {
        gap: 9px;
        padding: 10px 10px 7px;
    }

    .ur-pepper-avatar {
        width: 34px;
        height: 34px;
    }

    .ur-pepper-title strong,
    .ur-pepper-launcher strong {
        font-size: 0.9rem;
    }

    .ur-pepper-title span,
    .ur-pepper-launcher span {
        font-size: 0.68rem;
        line-height: 1.25;
    }

    .ur-pepper-close {
        width: 30px;
        height: 30px;
        font-size: 1.05rem;
    }

    .ur-pepper-copy {
        max-height: 92px;
        overflow-y: auto;
        padding: 0 11px 10px;
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .ur-pepper-actions {
        padding: 0 10px 10px;
    }

    .ur-pepper-open {
        min-height: 38px;
        font-size: 0.86rem;
    }

    .ur-pepper-launcher {
        min-height: 50px;
        padding: 8px 9px;
        gap: 8px;
    }
}
