.wst-stock-toggle {
--wst-accent: #87674f;
margin: 0 0 24px;
color: #00263a;
font: inherit;
}
.wst-stock-toggle .wst-stock-toggle__title {
margin: 0 0 14px;
color: #00263a;
font-family: inherit;
font-size: 17px;
font-weight: 700;
line-height: 1.25;
letter-spacing: .05em;
text-transform: uppercase;
}
.wst-stock-toggle .wst-stock-toggle__switch {
display: flex;
align-items: center;
gap: 12px;
min-width: 0;
min-height: 44px;
padding: 8px 12px;
border: 1px solid #dcd7d2;
border-radius: 6px;
background: #fff;
color: #5d6870;
text-decoration: none;
font-family: inherit;
font-size: 16px;
font-weight: 600;
line-height: 1.35;
letter-spacing: .025em;
text-transform: uppercase;
cursor: pointer;
box-sizing: border-box;
}
.wst-stock-toggle .wst-stock-toggle__switch:hover {
border-color: var(--wst-accent);
text-decoration: none;
}
.wst-stock-toggle .wst-stock-toggle__switch:focus-visible {
outline: 2px solid #00263a;
outline-offset: 3px;
}
.wst-stock-toggle .wst-stock-toggle__switch[aria-checked="true"] {
color: #00263a;
}
.wst-stock-toggle__track {
display: inline-flex;
align-items: center;
width: 38px;
height: 22px;
padding: 3px;
flex: 0 0 38px;
box-sizing: border-box;
border-radius: 20px;
background: #767676;
transition: background .15s;
}
.wst-stock-toggle__thumb {
width: 16px;
height: 16px;
flex: 0 0 16px;
border-radius: 50%;
background: #fff;
transform: translateX(0);
transition: transform .15s;
}
.wst-stock-toggle__switch[aria-checked="true"] .wst-stock-toggle__track {
background: var(--wst-accent);
}
.wst-stock-toggle__switch[aria-checked="true"] .wst-stock-toggle__thumb {
transform: translateX(16px);
}
.wst-stock-toggle__label {
flex: 1;
min-width: 0;
overflow-wrap: anywhere;
}
.wst-stock-toggle .wst-stock-toggle__description {
margin: .65em 0 0;
font-size: .85em;
line-height: 1.5;
opacity: .8;
}
#shop-sidebar .widget_woo_stock_toggle {
margin-bottom: 24px;
padding-bottom: 24px;
border-bottom: 1px solid #e7e3df;
}
#shop-sidebar .widget_woo_stock_toggle .wst-stock-toggle {
margin: 0;
}
@media (prefers-reduced-motion: reduce) {
.wst-stock-toggle__track,
.wst-stock-toggle__thumb {
transition: none;
}
}
@media (forced-colors: active) {
.wst-stock-toggle__track {
border: 1px solid ButtonText;
}
.wst-stock-toggle__thumb {
background: ButtonText;
}
.wst-stock-toggle__switch[aria-checked="true"] {
outline: 2px solid Highlight;
}
}