/**
 * RPS diagnostic capture/reproduce styling.
 * Loaded on the product page (staff only) and the Anatomy tool.
 */

/* ── Live config code under the SKU (product page) ───────────────────── */
/* .rps-diag-code-wrapper reuses the theme's .sku_wrapper so it inherits the
   SKU's font/size/color; these rules only add the code-specific bits. */
.rps-diag-code-wrapper { display: block; }
.rps-diag-code-wrapper .rps-diag-code {
    font-family: monospace;
    letter-spacing: 0.3px;
    word-break: break-all;
}
.rps-diag-code-wrapper[data-empty] .rps-diag-code { opacity: 0.6; font-style: italic; }
.rps-diag-code-copy {
    cursor: pointer;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    border-radius: 4px;
    padding: 0 6px;
    margin-left: 6px;
    font: inherit;
    font-size: 0.85em;
    opacity: 0.7;
}
.rps-diag-code-copy:hover { opacity: 1; }
.rps-diag-code-toggle {
    display: inline-block;
    font-size: 0.85em;
    text-decoration: underline dotted;
    cursor: pointer;
    opacity: 0.75;
}
.rps-diag-code-toggle:hover { opacity: 1; }

/* ── Reproduce section (Anatomy tool) ────────────────────────────────── */
.rps-anatomy__section--diag .rps-anatomy__field--inline {
    display: flex;
    gap: 8px;
    align-items: center;
}
.rps-anatomy__section--diag #rps-anatomy-diag-id {
    flex: 1;
    text-transform: uppercase;
    font-family: monospace;
}
#rps-anatomy-diag-status { margin: 6px 0 0; }
.rps-anatomy-diag-status--error { color: #b32d2e; }

/* ── Chosen-card highlight (shipping breakdown) ──────────────────────── */
.rps-anatomy-svc--chosen {
    box-shadow: inset 0 0 0 2px #2271b1;
    border-radius: 8px;
}
.rps-anatomy-svc__chip--chosen {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 10px;
    background: #2271b1;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
