/* Read-only card preview. Isolated from the product-page shade selector. */
.p2ag-card-shades {
    display: flex;
    align-items: center;
    justify-content: var(--p2ag-card-justify, flex-start);
    flex-wrap: wrap;
    gap: var(--p2ag-card-gap, 4px);
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-sizing: border-box;
    line-height: 1;
    text-indent: 0;
    text-decoration: none;
}
.p2ag-card-shades .p2ag-card-shades__sample {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 var(--p2ag-card-size, 20px);
    width: var(--p2ag-card-size, 20px);
    height: var(--p2ag-card-size, 20px);
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--p2ag-card-radius, 0px);
    background: var(--p2ag-card-swatch-color, transparent);
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: none;
    vertical-align: middle;
    text-decoration: none;
}
/* Inset border: colours/images keep the same fixed footprint at every width. */
.p2ag-card-shades .p2ag-card-shades__sample::after {
    content: '';
    position: absolute;
    inset: 0;
    border: var(--p2ag-card-border-width, 0px) solid var(--p2ag-card-border-color, #dedede);
    border-radius: inherit;
    box-sizing: border-box;
    pointer-events: none;
}
span.p2ag-card-shades[role="group"] span.p2ag-card-shades__sample > img.p2ag-card-shades__image {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
    box-shadow: none;
    opacity: 1;
    transform: none;
    transition: none;
}
.p2ag-card-shades .p2ag-card-shades__sample--missing {
    background: transparent;
    color: currentColor;
    box-shadow: inset 0 0 0 1px #dedede;
}
.p2ag-card-shades .p2ag-card-shades__placeholder {
    display: block;
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: calc(var(--p2ag-card-size, 20px) * 0.6);
    line-height: 1;
    font-weight: 400;
}
.p2ag-card-shades .p2ag-card-shades__more {
    display: inline-block;
    flex: 0 0 auto;
    margin: 0;
    margin-inline-start: var(--p2ag-card-count-gap, 0px);
    padding: 0;
    border: 0;
    background: none;
    color: var(--p2ag-card-count-color, inherit);
    font-family: inherit;
    font-size: var(--p2ag-card-count-size, 20px);
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: none;
}
.p2ag-card-shades-editor-hint {
    margin: 0;
    padding: 8px;
    border: 1px dashed #b8b8b8;
    font: inherit;
    font-size: 12px;
    line-height: 1.5;
}
