/* Temporary injection test v1. Remove these rules after testing. */
:root {
    --gwptest-css-loaded: 1;
}

/* This badge appears even when the JavaScript fails to load. */
html::after {
    content: "Greenwood CSS loaded - test v1.1" !important;
    position: fixed !important;
    left: 16px !important;
    bottom: 16px !important;
    z-index: 2147483647 !important;
    max-width: calc(100vw - 32px) !important;
    box-sizing: border-box !important;
    padding: 10px 14px !important;
    border: 2px solid #86efac !important;
    border-radius: 8px !important;
    background: #166534 !important;
    color: #fff !important;
    font: 700 13px/1.4 Arial, sans-serif !important;
    text-align: left !important;
    pointer-events: none !important;
}

html.gwptest-dismissed::after {
    display: none !important;
}

#gwptest-panel {
    border-color: #166534 !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

#gwptest-panel .gwptest-title {
    display: block;
    margin-bottom: 6px;
    color: #166534;
    font-size: 16px;
}

#gwptest-panel .gwptest-status {
    margin: 6px 0;
    font: inherit;
}

#gwptest-panel button {
    display: inline-block;
    margin: 8px 6px 0 0;
    padding: 8px 12px;
    border: 1px solid #166534;
    border-radius: 5px;
    background: #166534;
    color: #fff;
    font: 700 13px/1.4 Arial, sans-serif;
    text-transform: none;
    cursor: pointer;
}

#gwptest-panel button:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

#gwptest-panel .gwptest-dismiss {
    background: #fff;
    color: #166534;
}

#gwptest-panel.gwptest-clicked {
    background: #dcfce7 !important;
}

@media (max-width: 600px) {
    html::after {
        bottom: auto !important;
        top: 12px !important;
        left: 12px !important;
    }
}

@media print {
    html::after,
    #gwptest-panel {
        display: none !important;
    }
}
