/* Variant tiles (templates/storefront/_variant_tiles.html.twig). Plain colours with
   custom-property hooks, so a theme restyles it without touching this file. */
.dc-vt { margin: 20px 0 0; }
.dc-vt__tiles { display: none; }
.dc-vt.is-ready .dc-vt__tiles { display: grid; gap: 16px; }
.dc-vt.is-ready .dc-vt__fallback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dc-vt__legend { padding: 0; margin: 0 0 8px; font-weight: 800; font-size: 14px; }
.dc-vt__chosen { font-weight: 600; opacity: .8; }
.dc-vt__select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--vt-border, var(--dc-border, #d6d9de)); border-radius: 10px; background: #fff; }
.dc-vt__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.dc-vt__values { display: flex; flex-wrap: wrap; gap: 10px; }
.dc-vt__tile {
    position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    min-width: 44px; min-height: 44px; padding: 8px 14px; cursor: pointer; font: inherit; color: inherit;
    border: 1px solid var(--vt-border, var(--dc-border, #d6d9de)); border-radius: 10px; background: transparent;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.dc-vt__tile--photo { width: 88px; padding: 6px 6px 8px; }
.dc-vt__thumb { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 7px; background: #f3f5f7; }
.dc-vt__label { font-size: 12px; font-weight: 700; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.dc-vt__tile--text .dc-vt__label { font-size: 14px; }
.dc-vt__tile:hover:not(:disabled) { border-color: var(--vt-selected-border, currentColor); }
.dc-vt__tile.is-selected { border: 2px solid var(--vt-selected-border, currentColor); padding: 7px 13px; background: var(--vt-surface, var(--dc-surface, #f6f7f9)); }
.dc-vt__tile--photo.is-selected { padding: 5px 5px 7px; }
.dc-vt__tile:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* Greyed and struck through: no such combination, or none left. */
.dc-vt__tile.is-unavailable, .dc-vt__tile:disabled { opacity: .5; }
.dc-vt__tile.is-unavailable .dc-vt__label, .dc-vt__tile:disabled .dc-vt__label { text-decoration: line-through; }
.dc-vt__tile.is-unavailable::after, .dc-vt__tile:disabled::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(to top right, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px));
    opacity: .35;
}
.dc-vt__tile:disabled { cursor: not-allowed; }
.dc-vt__note { margin: 0; min-height: 1em; font-size: 12px; font-weight: 700; color: #b91c1c; }
