.pchbug-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999999;
    width: unset;
    max-width: unset;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (max-width: 767px) {
    .pchbug-widget {
        bottom: 43px;
    }
}

.pchbug-fab {
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    height: 52px;
    min-width: 52px;
    padding: 0 16px 0 15px;
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.42), 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font: 600 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, gap 0.25s ease, padding 0.25s ease;
    animation: pchbug-pulse 2.4s ease-in-out infinite;
}
.pchbug-fab::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 55%);
    pointer-events: none;
}
.pchbug-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(211, 47, 47, 0.55), 0 3px 8px rgba(0, 0, 0, 0.2);
    gap: 8px;
    padding-right: 20px;
    animation-play-state: paused;
}
.pchbug-fab:active { transform: translateY(0); }

.pchbug-fab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.pchbug-fab-label {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.28s ease, opacity 0.2s ease;
}
.pchbug-fab:hover .pchbug-fab-label {
    max-width: 200px;
    opacity: 1;
}

@keyframes pchbug-pulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(211, 47, 47, 0.42), 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(255, 82, 82, 0.55); }
    70%      { box-shadow: 0 6px 20px rgba(211, 47, 47, 0.42), 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 0 14px rgba(255, 82, 82, 0); }
}

.pchbug-popup {
    position: absolute;
    bottom: 68px;
    left: 0;
    width: 340px;
    max-width: calc(100vw - 48px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    border: 1px solid #ececec;
    color: #333;
    animation: pchbug-in 0.18s ease;
}
.pchbug-popup[hidden] { display: none; }

@keyframes pchbug-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pchbug-popup-header {
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
    color: #fff;
    padding: 13px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
}
.pchbug-close {
    background: rgba(255, 255, 255, 0.18);
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.pchbug-close:hover { background: rgba(255, 255, 255, 0.32); }

.pchbug-form { padding: 12px 16px 14px; }

.pchbug-radios {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 6px;
}
.pchbug-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    line-height: 1.3;
    margin: 0;
    font-weight: normal;
}
.pchbug-radio input[type="radio"] {
    accent-color: #e53935;
    margin: 0;
    cursor: pointer;
}

.pchbug-field { margin-bottom: 10px; }
.pchbug-field label {
    display: block;
    font-size: 12px;
    color: #555;
    margin-bottom: 3px;
    font-weight: 500;
}
.pchbug-field input[type="text"],
.pchbug-field input[type="url"],
.pchbug-field select,
.pchbug-field textarea {
    width: 100%;
    padding: 7px 9px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    box-sizing: border-box;
    font-family: inherit;
    background: #fff;
    color: #222;
}
.pchbug-field input[type="file"] {
    font-size: 12px;
    width: 100%;
}
.pchbug-field input:focus,
.pchbug-field select:focus,
.pchbug-field textarea:focus {
    outline: none;
    border-color: #e53935;
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.15);
}
.pchbug-field textarea { resize: vertical; min-height: 60px; }

.pchbug-actions { text-align: right; margin-top: 12px; }
.pchbug-submit {
    background: #e53935;
    color: #fff;
    border: none;
    padding: 8px 22px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.15s ease;
}
.pchbug-submit:hover:not(:disabled) { background: #c62828; }
.pchbug-submit:disabled { opacity: 0.6; cursor: wait; }

.pchbug-status {
    margin-top: 10px;
    font-size: 12px;
    text-align: center;
    min-height: 16px;
}
.pchbug-status.success { color: #2e7d32; }
.pchbug-status.error   { color: #c62828; }
.pchbug-status.pending { color: #666; }
