| 1 |
.ka-woo-variations { |
| 2 |
display: block; |
| 3 |
width: 100%; |
| 4 |
} |
| 5 |
|
| 6 |
.ka-woo-variations__swatches { |
| 7 |
display: flex; |
| 8 |
flex-wrap: wrap; |
| 9 |
gap: 8px; |
| 10 |
margin: 8px 0; |
| 11 |
} |
| 12 |
|
| 13 |
.ka-woo-variations__swatch { |
| 14 |
width: 36px; |
| 15 |
height: 36px; |
| 16 |
border: 1px solid #ddd; |
| 17 |
border-radius: 4px; |
| 18 |
overflow: hidden; |
| 19 |
cursor: pointer; |
| 20 |
background: #f9f9f9; |
| 21 |
display: inline-flex; |
| 22 |
align-items: center; |
| 23 |
justify-content: center; |
| 24 |
position: relative; |
| 25 |
transition: border-color 0.2s ease, box-shadow 0.2s ease; |
| 26 |
} |
| 27 |
|
| 28 |
.ka-woo-variations__swatch.is-active { |
| 29 |
border-color: #111; |
| 30 |
box-shadow: 0 0 0 2px rgba(0,0,0,0.1); |
| 31 |
} |
| 32 |
|
| 33 |
.ka-woo-variations__swatch.is-disabled { |
| 34 |
opacity: 0.4; |
| 35 |
pointer-events: none; |
| 36 |
} |
| 37 |
|
| 38 |
.ka-woo-variations__swatch--round { |
| 39 |
border-radius: 50%; |
| 40 |
} |
| 41 |
|
| 42 |
.ka-woo-variations__swatch-color { |
| 43 |
width: 100%; |
| 44 |
height: 100%; |
| 45 |
} |
| 46 |
|
| 47 |
.ka-woo-variations__swatch-img { |
| 48 |
width: 100%; |
| 49 |
height: 100%; |
| 50 |
object-fit: cover; |
| 51 |
} |
| 52 |
|
| 53 |
.ka-woo-variations__swatch-text { |
| 54 |
padding: 0 6px; |
| 55 |
font-size: 12px; |
| 56 |
text-align: center; |
| 57 |
white-space: nowrap; |
| 58 |
} |
| 59 |
|
| 60 |
.ka-woo-variations__selected { |
| 61 |
font-size: 12px; |
| 62 |
margin-top: 4px; |
| 63 |
color: #555; |
| 64 |
} |
| 65 |
|
| 66 |
/* Add To Cart widget already prints qty + ATC-OK on the same template. */ |
| 67 |
.ka-woo-variations.ka-woo-variations--atc-external .variations_button { |
| 68 |
display: none; |
| 69 |
} |
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|