/* Modern linked product selector. Override these tokens in your theme if needed. */
.wpclv-attributes {
    --wpclv-accent: #18181b;
    --wpclv-text: #27272a;
    --wpclv-muted: #71717a;
    --wpclv-border: #e4e4e7;
    --wpclv-surface: #fff;
    --wpclv-radius: 12px;
    color: var(--wpclv-text);
}
.wpclv-attributes *, .wpclv-attributes *::before, .wpclv-attributes *::after { box-sizing: border-box; }
.wpclv-attributes .wpclv-attribute { margin: 0 0 24px; }
.wpclv-attributes .wpclv-attribute-label {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-align: start;
}
.wpclv-attributes .wpclv-selected-value { color: var(--wpclv-muted); font-weight: 400; }
.wpclv-attributes .wpclv-terms {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}
.wpclv-attributes .wpclv-terms .wpclv-term {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    float: none;
    min-width: 48px;
    max-width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 3px;
    border: 1px solid var(--wpclv-border);
    border-radius: var(--wpclv-radius);
    background: var(--wpclv-surface);
    line-height: 1.4;
    text-align: center;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.wpclv-attributes .wpclv-terms .wpclv-term > a,
.wpclv-attributes .wpclv-terms .wpclv-term > span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    width: 100%;
    padding: 7px 17px;
    border-radius: calc(var(--wpclv-radius) - 4px);
    background: transparent;
    color: var(--wpclv-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    overflow-wrap: anywhere;
    box-shadow: none;
}
.wpclv-attributes .wpclv-terms .wpclv-term.active {
    border-color: var(--wpclv-accent);
    box-shadow: 0 0 0 1px var(--wpclv-accent);
}
.wpclv-attributes .wpclv-term.active > span { background: #f4f4f5; font-weight: 650; }
.wpclv-attributes .wpclv-terms .wpclv-term:focus-within {
    outline: 2px solid var(--wpclv-accent);
    outline-offset: 4px;
}
.wpclv-attributes .wpclv-term > a:focus-visible { outline: 2px solid var(--wpclv-accent); outline-offset: 2px; }
.wpclv-attributes .wpclv-terms .wpclv-term.wpclv-term-disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }
.wpclv-attributes .wpclv-term-disabled:not(.wpclv-term-image):not(.wpclv-term-color) > span { text-decoration: line-through; }
.wpclv-attributes .wpclv-terms .wpclv-term.wpclv-term-color {
    width: 46px;
    height: 46px;
    padding: 5px;
    border-radius: 50%;
}
.wpclv-attributes .wpclv-terms .wpclv-term-color > a,
.wpclv-attributes .wpclv-terms .wpclv-term-color > span {
    min-height: 0;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.wpclv-attributes .wpclv-terms .wpclv-term.wpclv-term-image { width: 88px; padding: 4px; }
.wpclv-attributes .wpclv-terms .wpclv-term-image > a,
.wpclv-attributes .wpclv-terms .wpclv-term-image > span { display: flex; flex-direction: column; gap: 6px; padding: 0; background: transparent; }
.wpclv-attributes .wpclv-terms .wpclv-term-image img {
    display: block;
    width: 100%;
    height: 76px;
    object-fit: contain;
    border-radius: 8px;
    background: #fafafa;
    margin: 0 !important;
}
.wpclv-attributes .wpclv-term-image .wpclv-image-label { display: block; padding: 0 3px 4px; font-size: 11px; line-height: 1.4; }
.wpclv-attributes .wpclv-term-image.active::after {
    content: '\2713';
    position: absolute;
    inset-block-start: 7px;
    inset-inline-end: 7px;
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--wpclv-accent);
    color: #fff;
    font: 600 12px/1 sans-serif;
    pointer-events: none;
}
.wpclv-attributes .wpclv-terms .wpclv-terms-select {
    float: none;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    max-width: 420px;
    min-width: 0;
    min-height: 50px;
    margin: 0;
    padding: 12px 44px 12px 16px;
    border: 1px solid var(--wpclv-border);
    border-radius: var(--wpclv-radius);
    background: var(--wpclv-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2371717a' stroke-width='1.6'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 16px center;
    color: var(--wpclv-text);
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
    transition: border-color .18s ease, box-shadow .18s ease;
}
[dir='rtl'] .wpclv-attributes .wpclv-terms-select { padding: 12px 16px 12px 44px; background-position: left 16px center; }
.wpclv-attributes .wpclv-terms-select:focus-visible { outline: 2px solid var(--wpclv-accent); outline-offset: 3px; }
.wpclv-attributes .wpclv-terms-select:disabled { opacity: .5; cursor: wait; }
.wpclv-attributes .wpclv-terms .wpclv-more { display: inline-flex; align-items: center; min-height: 46px; margin: 0; padding: 0 5px; float: none; font-size: 12px; }
.wpclv-attributes .wpclv-more a { color: var(--wpclv-muted); text-underline-offset: 3px; }
.wpclv-attributes .wpclv-term.wpclv-is-loading { opacity: .6; }
@media (hover: hover) {
    .wpclv-attributes .wpclv-term:not(.active):not(.wpclv-term-disabled):hover { border-color: #a1a1aa; box-shadow: 0 3px 10px rgba(0, 0, 0, .06); transform: translateY(-1px); }
    .wpclv-attributes .wpclv-terms-select:hover { border-color: #a1a1aa; }
}
@media (max-width: 480px) {
    .wpclv-attributes .wpclv-terms { gap: 8px; }
    .wpclv-attributes .wpclv-terms .wpclv-term.wpclv-term-image { width: 76px; }
    .wpclv-attributes .wpclv-terms .wpclv-term-image img { height: 64px; }
    .wpclv-attributes .wpclv-term > a, .wpclv-attributes .wpclv-term > span { padding-inline: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .wpclv-attributes .wpclv-terms .wpclv-term, .wpclv-attributes .wpclv-terms-select { transition: none; transform: none !important; }
}
/* Product tooltips */
.wpclv-tippy-inner { padding: 8px 4px; display: flex; flex-direction: column; text-align: center; align-items: center; gap: 7px; }
.wpclv-tippy-inner .wpclv-tippy-title { font-weight: 600; }
.wpclv-tippy-inner .wpclv-tippy-image { display: block; width: 100%; min-width: 150px; max-width: 600px; }
.wpclv-tippy-inner .wpclv-tippy-image img { width: 100%; height: auto; border-radius: 8px; margin: 0 !important; padding: 0 !important; }
