/* SBJ Designer – Produktseite. IDs erhöhen die Priorität gegenüber dem Theme. */
.sbjp-on .single_add_to_cart_button,
.sbjp-on .woocommerce-variation-add-to-cart > .quantity,
.sbjp-on .quantity:not(.sbjq-step),
.sbjp-on .rey-qtyField,
.sbjp-on .woocommerce-variation-add-to-cart > :not(#sbjp):not(input):not([class*="wishlist"]):not([class*="woosw"]),
.sbjp-on .woocommerce-variation-availability,
.sbjp-on .woocommerce-variation-price,
.sbjp-on .sbj-finish,
.sbjp-hidden { display: none !important; }

#sbjp { margin: 8px 0 16px; width: 100%; }
#sbjp [hidden] { display: none !important; }
#sbjp .sbjp-label { margin: 18px 0 8px; font-size: 14px; font-weight: 600; }
#sbjp .sbjp-label span { font-weight: 400; opacity: .65; font-size: 13px; }

#sbjp .sbjp-tech { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid #111; border-radius: 6px; overflow: hidden; }
#sbjp .sbjp-tech button { margin: 0; min-height: 46px; padding: 0 8px; border: 0; border-left: 1px solid #111; border-radius: 0; background: #fff; color: #111; font: inherit; font-weight: 600; box-shadow: none; cursor: pointer; }
#sbjp .sbjp-tech button:first-child { border-left: 0; }
#sbjp .sbjp-tech button[aria-checked="true"] { background: #111; color: #fff; }

#sbjp .sbjp-pos-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
#sbjp .sbjp-pos-list button { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 54px; padding: 8px 12px; border: 1px solid #d0d0d0; border-radius: 6px; background: #fff; color: #111; font: inherit; text-align: left; box-shadow: none; cursor: pointer; }
#sbjp .sbjp-pos-list button small { opacity: .7; font-weight: 400; }
#sbjp .sbjp-pos-list button[aria-pressed="true"] { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
#sbjp .sbjp-note { margin: 10px 0 0; font-size: 13px; opacity: .8; }
#sbjp .sbjp-sum { margin: 14px 0 0; font-weight: 600; }
#sbjp .sbjp-msg { margin: 6px 0 0; font-size: 14px; }
#sbjp .sbjp-msg:empty { display: none; }
#sbjp .sbjp-msg.is-error { color: #b3261e; }
#sbjp .sbjp-msg.is-ok { color: #1b5e20; }
#sbjp .sbjp-go { width: 100%; min-height: 52px; margin-top: 12px; }
#sbjp .sbjp-go[disabled] { opacity: .5; cursor: not-allowed; }
#sbjp :focus-visible { outline: 2px solid #111; outline-offset: 2px; }

/* Größen-Raster (Produktseite und Designer) – bleibt auch auf dem Handy nebeneinander */
:is(#sbjp, #sbjd) .sbjq { display: grid; gap: 0; width: 100%; font-size: 14px; }
:is(#sbjp, #sbjd) .sbjq-head, :is(#sbjp, #sbjd) .sbjq-row {
	display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 128px; align-items: center; gap: 8px; width: 100%;
}
:is(#sbjp, #sbjd) .sbjq-head { padding: 0 0 6px; font-size: 12px; opacity: .7; }
:is(#sbjp, #sbjd) .sbjq-head span:last-child { text-align: left; }
:is(#sbjp, #sbjd) .sbjq-row { padding: 6px 0; border-top: 1px solid #e6e6e6; }
:is(#sbjp, #sbjd) .sbjq-size { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
:is(#sbjp, #sbjd) .sbjq-size b { font-weight: 600; }
:is(#sbjp, #sbjd) .sbjq-size small { font-size: 11px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(#sbjp, #sbjd) .sbjq-price { white-space: nowrap; }
:is(#sbjp, #sbjd) .sbjq-row.is-out { color: #9a9a9a; }
:is(#sbjp, #sbjd) .sbjq-row.is-out .sbjq-step { opacity: .45; pointer-events: none; background: #f2f2f2; }
:is(#sbjp, #sbjd) .sbjq-step { display: flex !important; align-items: stretch; width: 128px; height: 40px; margin: 0; border: 1px solid #cfcfcf; border-radius: 6px; overflow: hidden; background: #fff; }
:is(#sbjp, #sbjd) .sbjq-step button { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 100%; color: #111; font-size: 18px; line-height: 1; cursor: pointer; }
:is(#sbjp, #sbjd) .sbjq-step button:disabled { cursor: not-allowed; }
:is(#sbjp, #sbjd) .sbjq-step button:focus-visible { outline: 2px solid #111; outline-offset: -2px; }
:is(#sbjp, #sbjd) .sbjq-step input { flex: 1 1 auto; width: 100% !important; min-width: 0 !important; max-width: none !important; height: 100% !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-left: 1px solid #e6e6e6 !important; border-right: 1px solid #e6e6e6 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; color: #111 !important; text-align: center; font: inherit; font-size: 16px; -moz-appearance: textfield; appearance: textfield; }
:is(#sbjp, #sbjd) .sbjq-step input::-webkit-outer-spin-button,
:is(#sbjp, #sbjd) .sbjq-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 380px) {
	:is(#sbjp, #sbjd) .sbjq-head, :is(#sbjp, #sbjd) .sbjq-row { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) 116px; gap: 6px; }
	:is(#sbjp, #sbjd) .sbjq-step { width: 116px; }
	:is(#sbjp, #sbjd) .sbjq-step button { flex-basis: 34px; width: 34px; }
}

/* Ablauf & Lieferzeit – schlicht, aufklappbar */
:is(#sbjp, #sbjd) .sbjt { margin-top: 12px; font-size: 13px; }
:is(#sbjp, #sbjd) .sbjt details { border: 1px solid #e3e3e3; border-radius: 8px; }
:is(#sbjp, #sbjd) .sbjt summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; cursor: pointer; list-style: none; }
:is(#sbjp, #sbjd) .sbjt summary::-webkit-details-marker { display: none; }
:is(#sbjp, #sbjd) .sbjt summary::after { content: "+"; margin-left: auto; font-size: 16px; opacity: .6; }
:is(#sbjp, #sbjd) .sbjt details[open] summary::after { content: "–"; }
:is(#sbjp, #sbjd) .sbjt summary svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:is(#sbjp, #sbjd) .sbjt summary small { opacity: .65; }
:is(#sbjp, #sbjd) .sbjt-steps { list-style: none; margin: 0; padding: 4px 12px 10px 22px; }
:is(#sbjp, #sbjd) .sbjt-steps li { position: relative; display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 6px 0 6px 16px; border-left: 1px solid #cfcfcf; }
:is(#sbjp, #sbjd) .sbjt-steps li::before { content: ""; position: absolute; left: -5px; top: 11px; width: 9px; height: 9px; border-radius: 50%; background: #111; }
:is(#sbjp, #sbjd) .sbjt-steps li:last-child { border-left-color: transparent; }
:is(#sbjp, #sbjd) .sbjt-steps small { opacity: .65; white-space: nowrap; }
:is(#sbjp, #sbjd) .sbjt-note { padding: 0 12px 10px; opacity: .75; }
