/* DR Related Products — sezione nella scheda prodotto. Font e colori ereditati dal tema. */
.wc-qrp-complementary-wrap {
    --wc-qrp-accent: currentColor;
    --wc-qrp-line: rgba(0, 0, 0, .12);
    flex: 1 1 100%;
    width: 100%;
    margin: 1.25em 0;
    padding: 0;
    clear: both;
}
.wc-qrp-title { margin: 0 0 .6em; font-size: 1.05em; }
.wc-qrp-products { display: flex; flex-direction: column; gap: .5em; }

.wc-qrp-item {
    display: grid;
    grid-template-columns: auto 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: .75em;
    padding: .6em .75em;
    border: 1px solid var(--wc-qrp-line);
    border-radius: 8px;
    background: transparent;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.wc-qrp-item.is-selected { border-color: currentColor; box-shadow: 0 0 0 1px currentColor; }

.wc-qrp-checkbox { margin: 0; display: flex; }
.wc-qrp-checkbox input { width: 20px; height: 20px; margin: 0; cursor: pointer; }

.wc-qrp-thumb img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }

.wc-qrp-info { display: grid; gap: .25em; min-width: 0; }
.wc-qrp-name { font-weight: 600; line-height: 1.3; }
.wc-qrp-name a { color: inherit; text-decoration: none; }
.wc-qrp-name a:hover { text-decoration: underline; }
.wc-qrp-badge { display: inline-block; margin-left: .4em; padding: .1em .45em; border-radius: 99px; font-size: .75em; font-weight: 700; background: #c62828; color: #fff; vertical-align: middle; }
.wc-qrp-attrs { display: flex; flex-wrap: wrap; gap: .4em .6em; }
.wc-qrp-attr { display: flex; flex-direction: column; gap: .1em; margin: 0; font-size: .8em; }
.wc-qrp-attr span { opacity: .7; }
.wc-qrp-attr-select { min-width: 110px; max-width: 100%; font: inherit; font-size: 1.1em; padding: .3em .4em; }
.wc-qrp-price { font-size: .9em; }
.wc-qrp-price del { opacity: .6; margin-right: .3em; }
.wc-qrp-price ins { text-decoration: none; font-weight: 700; }
.wc-qrp-note { opacity: .7; font-size: .9em; }

.wc-qrp-qty { display: inline-flex; align-items: center; border: 1px solid var(--wc-qrp-line); border-radius: 6px; overflow: hidden; }
.wc-qrp-qty button { width: 32px; height: 32px; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.wc-qrp-qty button:hover { background: rgba(0, 0, 0, .06); }
.wc-qrp-qty-num { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }

.wc-qrp-summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5em; margin-top: .6em; font-size: .9em; }
.wc-qrp-complementary-wrap:not(.has-selection) .wc-qrp-summary { opacity: .65; }
.wc-qrp-clear { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.wc-qrp-error { margin: .5em 0 0; color: #b32d2e; font-weight: 600; }
.wc-qrp-error[hidden] { display: none; }

@media (max-width: 600px) {
    .wc-qrp-item { grid-template-columns: auto 52px minmax(0, 1fr); }
    .wc-qrp-thumb img { width: 52px; height: 52px; }
    .wc-qrp-qty { grid-column: 3; justify-self: start; }
}
