:root{ --jrd-qc-accent: currentColor;
--jrd-qc-border: currentColor;
--jrd-qc-radius: 12px;
--jrd-qc-gap: 8px;
--jrd-qc-padding-y: 8px;
--jrd-qc-padding-x: 12px;
--jrd-qc-badge-font: 12px;
--jrd-qc-badge-pad-y: 2px;
--jrd-qc-badge-pad-x: 7px;
--jrd-qc-badge-radius: 999px;
--jrd-qc-icon-size: 18px;
} .jrd-qc{
display:flex;
gap:var(--jrd-qc-gap);
align-items:center;
justify-content:center;
margin-top:10px;
}
.jrd-qc button{
border:1px solid color-mix(in srgb, var(--jrd-qc-border) 35%, transparent);
background:transparent;
padding:var(--jrd-qc-padding-y) var(--jrd-qc-padding-x);
cursor:pointer;
border-radius:var(--jrd-qc-radius);
line-height:1;
transition: transform .08s ease, box-shadow .15s ease, border-color .15s ease, opacity .15s ease;
}
.jrd-qc button:active{
transform: scale(0.98);
}
.jrd-qc__cart{
position:relative;
display:flex;
align-items:center;
gap:8px;
}
.jrd-qc__icon{
display:inline-flex;
width:var(--jrd-qc-icon-size);
height:var(--jrd-qc-icon-size);
}
.jrd-qc__icon svg{
width:var(--jrd-qc-icon-size);
height:var(--jrd-qc-icon-size);
display:block;
}
.jrd-qc__icon .jrd-qc-stroke{
stroke-width: var(--jrd-qc-stroke, 1.8);
} .jrd-qc__badge{
opacity: 0;
transform: scale(0.85);
min-width:18px;
text-align:center;
padding:var(--jrd-qc-badge-pad-y) var(--jrd-qc-badge-pad-x);
border-radius:var(--jrd-qc-badge-radius);
border:1px solid var(--jrd-qc-border);
font-size:var(--jrd-qc-badge-font);
transition: opacity .15s ease, transform .15s ease;
}
.jrd-qc.is-in-cart .jrd-qc__badge{
opacity: 1;
transform: scale(1);
} .jrd-qc.is-in-cart .jrd-qc__icon,
.jrd-qc.is-in-cart .jrd-qc__badge{
color: var(--jrd-qc-accent);
border-color: var(--jrd-qc-accent);
} .jrd-qc__minus{ display:none; }
.jrd-qc.has-qty .jrd-qc__minus{ display:inline-flex; } .jrd-qc.is-loading{
opacity:.75;
pointer-events:none;
} @keyframes jrd-qc-pop {
0%   { transform: scale(0.9); }
60%  { transform: scale(1.15); }
100% { transform: scale(1); }
}
.jrd-qc__badge.is-updated{
animation: jrd-qc-pop .25s ease-out;
} @media (pointer: coarse){
.jrd-qc button{
padding: 10px 14px;
}
} .jrd-qc[data-sold-individually="1"] .jrd-qc__minus,
.jrd-qc[data-sold-individually="1"] .jrd-qc__plus{
display:none !important;
} .jrd-qc[data-sold-individually="1"] .jrd-qc__cart{
position: relative;
overflow: visible;
}
.jrd-qc[data-sold-individually="1"] .jrd-qc__badge{
position: absolute;
top: -6px;
right: -6px;
min-width: 18px;
height: 18px;
padding: 0 6px;
display: inline-flex;
align-items: center;
justify-content: center;
background: color-mix(in srgb, currentColor 12%, transparent);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
font-weight: 500;
} @supports not (color: color-mix(in srgb, black 50%, white)){
.jrd-qc button{
border-color: rgba(0 attachments,0,0,.25);
}
}
@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))){
.jrd-qc[data-sold-individually="1"] .jrd-qc__badge{
background: rgba(0,0,0,0.08);
}
} .jrd-qc[data-sold-individually="1"].is-in-cart .jrd-qc__badge::before{
content: "";
position: absolute;
left: 50%;
top: 50%;
width: 7px;
height: 4px;
border-left: 2px solid var(--jrd-qc-accent);
border-bottom: 2px solid var(--jrd-qc-accent);
transform: translate(-50%, -55%) rotate(-45deg);
}
.jrd-qc[data-sold-individually="1"].is-in-cart
.jrd-qc__badge{
color: transparent;
} .jrd-qc[data-sold-individually="1"].is-in-cart .jrd-qc__badge{
width: 18px;
height: 18px;
min-width: 18px;
padding: 0;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
}
.jrd-qc__badge{
position: relative;
} .jrd-qc:not(.has-qty) .jrd-qc__badge,
.jrd-qc:not(.has-qty) .jrd-qc__qty{
display: none;
} .jrd-qc:not(.has-qty) .jrd-qc__cart{
padding-right: 12px; }
#jrd-qc-toast{
position: fixed;
left: 50%;
bottom: 18px;
transform: translateX(-50%);
padding: 10px 12px;
border-radius: 12px;
background: rgba(0,0,0,.80);
color: #fff;
font-size: 13px;
line-height: 1.2;
opacity: 0;
pointer-events: none;
transition: opacity .15s ease, transform .15s ease;
z-index: 999999;
}
#jrd-qc-toast.is-visible{
opacity: 1;
transform: translateX(-50%) translateY(-2px);
} .jrd-qc__qtyedit{
width: 42px;
height: 24px;
border-radius: 999px;
border: 1.5px solid var(--jrd-qc-accent);
background: rgba(255,255,255,.92);
text-align: center;
font: inherit;
font-size: 13px;
line-height: 1;
padding: 0;
outline: none;
box-shadow: none;
} .jrd-qc__qtyedit:focus{
outline: none;
}
.jrd-qc__qtyedit{
width: 42px;
height: 24px;
border-radius: 999px;
border: 1.5px solid var(--jrd-qc-accent);
background: rgba(255,255,255,.92);
text-align: center;
font: inherit;
font-size: 13px;
line-height: 1;
padding: 0;
outline: none;
box-shadow: none;
}
.jrd-qc__qtyedit::-webkit-outer-spin-button,
.jrd-qc__qtyedit::-webkit-inner-spin-button{
-webkit-appearance: none;
margin: 0;
} .jrd-qc{
flex-wrap: wrap; }
.jrd-qc__hint{
flex-basis: 100%;
text-align: center;
font-size: 12px;
line-height: 1.2;
margin-top: 6px;
opacity: 0;
transform: translateY(-2px);
transition: opacity .15s ease, transform .15s ease;
}
.jrd-qc__hint.is-visible{
opacity: 1;
transform: translateY(0);
}