/* Clean up the variations table */
table.variations {
width: 100%;
border-collapse: separate;
border-spacing: 0 12px;
background: #fff;
box-shadow: 0 2px 12px rgba(0,0,0,0.03);
border-radius: 8px;
padding: 18px 0;
}
/* Label styling */
table.variations th.label {
width: 110px;
padding: 18px 18px 18px 28px;
vertical-align: middle;
background: #f7f8fa;
color: #1a1a1a;
font-size: 1.1em;
font-weight: 700;
border-top-left-radius: 8px;
border-bottom-left-radius: 8px;
}
/* Value cell styling */
table.variations td.value {
padding: 16px 18px;
vertical-align: middle;
}
/* Swatch container */
.thwvsf_fields {
display: flex;
align-items: center;
gap: 12px;
}
/* Swatch list */
.thwvsf-wrapper-ul {
display: flex !important;
gap: 18px;
margin: 0 !important;
padding: 0 !important;
list-style: none;
}
/* Swatch item */
.thwvsf-wrapper-item-li {
border: 2px solid #e0e0e0;
border-radius: 6px;
background: #fafbfc;
transition: border 0.2s, box-shadow 0.2s;
cursor: pointer;
padding: 4px;
display: flex;
align-items: center;
justify-content: center;
min-width: 52px;
min-height: 52px;
box-shadow: none;
position: relative;
}
.thwvsf-wrapper-item-li[aria-selected="true"],
.thwvsf-wrapper-item-li.thwvsf-selected {
border-color: #1976d2;
background: #e3f0fe;
box-shadow: 0 2px 8px rgba(25,118,210,0.07);
}
.thwvsf-wrapper-item-li:hover {
border-color: #1976d2;
}
/* Swatch images */
.swatch-preview.swatch-image {
width: 44px !important;
height: 44px !important;
object-fit: cover;
border-radius: 4px;
display: block;
}
/* Hide the select dropdown */
.thwvs-select {
display: none !important;
}
/* "Clear" link styling */
a.reset_variations {
margin-left: 22px;
color: #888;
font-size: 0.97em;
text-decoration: underline;
background: none !important;
border: none !important;
box-shadow: none !important;
padding: 0;
transition: color 0.2s;
display: inline-block;
vertical-align: middle;
}
a.reset_variations:hover {
color: #1976d2;
}
/* Responsive adjustments */
@media (max-width: 600px) {
table.variations th.label,
table.variations td.value {
padding: 10px 8px;
}
.thwvsf-wrapper-ul {
gap: 8px;
}
.thwvsf-wrapper-item-li {
min-width: 38px;
min-height: 38px;
padding: 2px;
}
.swatch-preview.swatch-image {
width: 32px !important;
height: 32px !important;
}
}
Skip to content
Reviews
There are no reviews yet.