/* Shared visual samples: catalogue and the WooCommerce colour editor. */
.dv-color-dot {
    display: block;
    position: relative;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0, 0, 0, .16);
    border-radius: 50%;
    background: var(--swatch-color, #b9b0a2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.dv-color-dot--metal { background: linear-gradient(125deg, var(--swatch-color) 10%, var(--swatch-secondary) 43%, var(--swatch-color) 80%); }
.dv-color-dot--wood { background: repeating-linear-gradient(94deg, var(--swatch-color) 0 3px, var(--swatch-secondary) 3px 4px, var(--swatch-color) 4px 8px); }
.dv-color-dot--split { background: linear-gradient(135deg, var(--swatch-color) 0 50%, var(--swatch-secondary) 50% 100%); }
body:is(.dv-catalog-server, .dv-catalog-preview).archive.post-type-archive-product .dv-color-filter > legend {
    display: block;
    float: none;
    width: 100%;
    margin: 0 0 9px;
    padding: 0;
    color: #222;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}
body:is(.dv-catalog-server, .dv-catalog-preview).archive.post-type-archive-product .dv-color-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 4px;
}
body:is(.dv-catalog-server, .dv-catalog-preview).archive.post-type-archive-product .dv-color-choice {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    cursor: pointer;
    text-decoration: none;
}
body:is(.dv-catalog-server, .dv-catalog-preview).archive.post-type-archive-product .dv-color-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    opacity: 0;
    clip-path: inset(50%);
}
.dv-color-choice .dv-color-dot { outline: 1px solid transparent; outline-offset: 3px; }
.dv-color-choice:hover .dv-color-dot { outline-color: #aaa; }
.dv-color-choice input:checked + .dv-color-dot,
.dv-color-choice[aria-pressed="true"] .dv-color-dot { outline: 2px solid #222; }
.dv-color-choice input:checked + .dv-color-dot::after,
.dv-color-choice[aria-pressed="true"] .dv-color-dot::after {
    content: '';
    position: absolute;
    right: -4px;
    bottom: -3px;
    width: 13px;
    height: 13px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #222 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8 3 3 5-6' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.dv-color-choice input:focus-visible + .dv-color-dot,
.dv-color-choice:focus-visible .dv-color-dot { outline: 2px solid #c95813; outline-offset: 4px; }
body:is(.dv-catalog-server, .dv-catalog-preview).archive.post-type-archive-product .dv-color-more summary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    width: fit-content;
    min-height: 36px;
    margin: 5px 0;
    padding: 0;
    border: 0;
    color: #777;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    list-style: none;
}
.dv-color-more summary::-webkit-details-marker { display: none; }
.dv-color-more summary::marker { content: ''; }
.dv-color-more summary .ph { margin-left: 5px; font-size: 14px; }
.dv-color-more[open] summary .ph { transform: rotate(45deg); }
.dv-color-more summary:focus-visible { outline: 2px solid #c95813; outline-offset: 3px; }
body:is(.dv-catalog-server, .dv-catalog-preview).archive.post-type-archive-product .dv-color-selection { margin: 9px 0 0; color: #777; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.dv-color-selection[hidden] { display: none; }
.dv-color-admin .widefat { clear: both; }
.dv-color-admin .widefat th { font-weight: 600; }
.dv-color-admin .widefat td { padding: 16px 12px; vertical-align: top; }
.dv-color-admin .dv-color-dot { width: 36px; height: 36px; }
.dv-color-admin .wp-picker-container { min-width: 160px; }
.dv-color-admin .search-box { margin-bottom: 16px; }
.dv-color-admin .tablenav-pages .page-numbers { display: inline-block; margin-left: 6px; padding: 4px 8px; background: #fff; border: 1px solid #c3c4c7; }
.dv-color-admin .tablenav-pages .current { background: #2271b1; color: #fff; }
@media (max-width: 1023px) {
    .dv-color-filter .dv-color-dot { width: 32px; height: 32px; }
}
