/* Piece choice: a photo with its name, in the colours of the colour buttons. */
.variations .avada-select-wrapper:has(select[name="attribute_pa_style"]){display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:12px 8px;width:100%}
.variations .avada-select-wrapper:has(select[name="attribute_pa_style"]) .avada-select-parent{display:none}
.variations .avada-select-wrapper:has(select[name="attribute_pa_style"]) .avada-image-select{display:flex!important;flex-direction:column;gap:4px;width:auto!important;height:auto!important;margin:0!important;padding:0;border:0;text-decoration:none;color:#633c00}
.variations .avada-select-wrapper:has(select[name="attribute_pa_style"]) .avada-image-select img{display:block!important;width:100%!important;height:auto!important;aspect-ratio:1;object-fit:cover;box-sizing:border-box;border:2px solid transparent;border-radius:0}
.variations .avada-select-wrapper:has(select[name="attribute_pa_style"]) .avada-image-select[data-checked] img,.variations .avada-select-wrapper:has(select[name="attribute_pa_style"]) .avada-image-select:hover:not(.cocou-sold-out) img{border-color:#754600}
.variations .avada-select-wrapper:has(select[name="attribute_pa_style"]) .avada-image-select::after{font-size:12px;line-height:1.3;text-align:center}
.cocou-piece-form .variations th{display:none}
.cocou-piece-form .variations td.value{display:block;width:100%;padding:0}
.variations .avada-select-wrapper:has(select[name="attribute_pa_style"]) .avada-image-select,.variations .avada-select-wrapper:has(select[name="attribute_pa_style"]) .avada-image-select[data-checked],.variations .avada-select-wrapper:has(select[name="attribute_pa_style"]) .avada-image-select:hover{background:none!important;color:#633c00!important;text-decoration:none!important}
.cocou-piece-form .woocommerce-variation-description p{margin:8px 0 0;font-size:13px;line-height:1.4}
.variations .avada-select-wrapper .cocou-piece-group{grid-column:1/-1;margin:8px 0 0;font-size:14px;color:#633c00}
/* Colour dots in place of the photo buttons; the name stays underneath. */
.variations .avada-select-wrapper:has(select[name="attribute_pa_style"]):has(.cocou-has-dot){grid-template-columns:repeat(auto-fill,minmax(68px,1fr))}
.variations .avada-select-wrapper:has(select[name="attribute_pa_style"]) .avada-image-select.cocou-has-dot img{display:none!important}
.cocou-piece-dot{display:block;box-sizing:border-box;width:40px;height:40px;margin:3px auto;border:1px solid #633c00;border-radius:50%}
/* Long names like Turquoise/Pink Vintage wrap after the slash instead of running into the next piece. */
.variations .avada-image-select.cocou-own-label[data-value]::after{max-width:100%;overflow-wrap:break-word;hyphens:auto}
/* Avada stretches every span in a swatch button to full size, which flattened the dots. */
.variations .avada-image-select>.cocou-piece-dot{flex:none;width:40px!important;height:40px!important;margin:3px auto!important;border-radius:50%!important}
.avada-image-select[data-checked] .cocou-piece-dot,.avada-image-select:hover:not(.cocou-sold-out) .cocou-piece-dot{outline:2px solid #633c00;outline-offset:2px}
.avada-image-select.cocou-sold-out .cocou-piece-dot{position:relative;opacity:.4;filter:grayscale(.75)}
.avada-image-select.cocou-sold-out .cocou-piece-dot::after{content:"";position:absolute;inset:0;border-radius:50%;background:linear-gradient(to top right,transparent calc(50% - 1px),#633c00 calc(50% - 1px),#633c00 calc(50% + 1px),transparent calc(50% + 1px))}
