.pcm-bug-report-trigger {
    position: fixed;
    /* Anchored top-right (below the theme's 72px sticky header) instead of
       bottom-right so it doesn't collide with the Zendesk chat widget,
       which docks bottom-right. */
    top: 92px;
    right: 20px;
    z-index: 999998;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #d9534f;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.pcm-bug-report-trigger:hover,
.pcm-bug-report-trigger:focus {
    background: #c9302c;
}

/* On mobile the top-right anchor collides with the sticky header's login icon
   and the promo bar, so dock to the bottom-left instead. Bottom-LEFT (not right)
   still keeps clear of the Zendesk chat widget, which docks bottom-right. */
@media (max-width: 767.98px) {
    .pcm-bug-report-trigger {
        top: auto;
        right: auto;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        left: 16px;
    }
}

.pcm-bug-report-trigger__icon {
    font-size: 16px;
    line-height: 1;
}

.pcm-bug-report-panel {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.pcm-bug-report-panel.active {
    display: flex;
}

.pcm-bug-report-panel__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.pcm-bug-report-panel__content {
    position: relative;
    background: #fff;
    color: #222;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pcm-bug-report-panel__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.pcm-bug-report-panel__content h2 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.pcm-bug-report-field {
    margin-bottom: 1rem;
}

.pcm-bug-report-field label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.pcm-bug-report-field input,
.pcm-bug-report-field select,
.pcm-bug-report-field textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.pcm-bug-report-field input[readonly] {
    background: #f5f5f5;
    color: #666;
}

.pcm-bug-report-submit {
    background: #d9534f;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.pcm-bug-report-submit:hover,
.pcm-bug-report-submit:focus {
    background: #c9302c;
}

.pcm-bug-report-submit:disabled {
    opacity: 0.6;
    cursor: default;
}

.pcm-bug-report-message {
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.pcm-bug-report-message.is-error {
    color: #c9302c;
}

.pcm-bug-report-message.is-success {
    color: #3c763d;
}
