/* Scoped to the optional composition picker; legacy cards are untouched. */
.wcsc-combinations[hidden] { display: none !important; }
.wcsc-btn-next[hidden] { display: none !important; }
.wcsc-combinations:not([hidden]) ~ .wcsc-variation-section { display: none; }
.wcsc-combinations { margin: 22px 0; color: #1a1a1a; }
.wcsc-combinations h3 { margin: 0 0 8px; font-size: 21px; }
.wcsc-combination-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 12px 0; padding: 4px; border-radius: 10px; background: #f3f3f5; }
.wcsc-combinations .wcsc-combination-modes button,
.wcsc-combinations .wcsc-combination-modes button:hover,
.wcsc-combinations .wcsc-combination-modes button:focus { min-width: 0; padding: 10px 6px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #555; font-size: 14px; line-height: 1.4; box-shadow: none; }
.wcsc-combinations .wcsc-combination-modes button[aria-pressed="true"] { border-color: var(--wcsc-primary); background: #fff; color: var(--wcsc-primary-text); font-weight: 600; }
.wcsc-combinations button, .wcsc-combinations input { font: inherit; }
.wcsc-combinations button { cursor: pointer; min-height: 44px; border-radius: 8px; border: 1px solid #c5c6cc; background: #fff; color: #333; padding: 8px 12px; }
.wcsc-combinations button:disabled { opacity: .45; cursor: default; }
.wcsc-combinations :focus-visible { outline: 2px solid var(--wcsc-primary); outline-offset: 3px; }
.wcsc-combination-status { margin: 0 0 12px; font-size: 15px; color: var(--wcsc-primary-text); }
.wcsc-combinations .wcsc-combination-status:focus { outline: none; box-shadow: none; }
.wcsc-combinations .wcsc-combination-list-title { margin: 18px 0 8px; font-size: 16px; font-weight: 600; color: #1a1a1a; }
.wcsc-combination-list { margin: 0; padding: 0; list-style: none; }
.wcsc-combination-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; margin: 0 0 8px; border: 1px solid #e4cfb8; border-radius: 10px; background: #fff3e4; }
.wcsc-combination-saved-detail { display: flex; flex-direction: column; min-width: 0; gap: 5px; color: #1a1a1a; }
.wcsc-combination-saved-detail > span { min-width: 0; overflow-wrap: anywhere; font-size: 16px; line-height: 1.5; }
.wcsc-combination-saved-qty { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 1.4; font-weight: 600; color: #754d29; }
.wcsc-combination-saved-check { position: relative; flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%; background: #896039; }
.wcsc-combination-saved-check::after { content: ''; position: absolute; left: 5px; top: 3px; width: 5px; height: 8px; box-sizing: border-box; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.wcsc-combination-actions { display: flex; flex-shrink: 0; gap: 4px; }
.wcsc-combinations .wcsc-combination-actions button,
.wcsc-combinations .wcsc-combination-actions button:hover,
.wcsc-combinations .wcsc-combination-actions button:focus,
.wcsc-combinations .wcsc-combination-actions button:active { padding: 6px 9px; min-width: 44px; min-height: 44px; border: 1px solid #c5c6cc; background: #fff; box-shadow: none; color: #333; font-size: 14px; font-weight: 400; }
.wcsc-combination-editor { margin-top: 12px; padding: 16px; border: 1.5px solid #c5c6cc; border-radius: 12px; background: #fff; }
.wcsc-combination-prompt { margin: 0 0 16px; font-weight: 600; }
.wcsc-combinations fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.wcsc-combinations legend { margin-bottom: 8px; font-weight: 600; padding: 0; font-size: 16px; }
.wcsc-combination-choices { display: grid; grid-template-columns: repeat(var(--wcsc-combination-columns, 1), minmax(0, 1fr)); gap: 8px; }
.wcsc-combination-choice { position: relative; margin: 0; cursor: pointer; min-width: 0; }
.wcsc-combination-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wcsc-combination-choice-body { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; height: 100%; padding: 10px; border: 1.5px solid #c5c6cc; border-radius: 8px; text-align: center; overflow-wrap: anywhere; gap: 5px; }
.wcsc-combination-choice input:checked + span { border-color: var(--wcsc-primary); background: var(--wcsc-primary-bg); box-shadow: inset 0 0 0 1px var(--wcsc-primary); }
.wcsc-combination-choice input:focus-visible + span { outline: 2px solid var(--wcsc-primary); outline-offset: 2px; }
.wcsc-combination-choice img { width: 64px; max-width: 100%; height: 64px; object-fit: contain; }
.wcsc-combination-choice-body > span, .wcsc-combination-choice-body > small { max-width: 100%; min-width: 0; }
.wcsc-combination-choice-horizontal { flex-direction: row; gap: 10px; text-align: left; }
.wcsc-combination-choice-horizontal > img { flex: 0 1 auto; width: auto; max-width: 40%; height: 64px; max-height: 64px; min-width: 0; }
.wcsc-combination-choice-horizontal > .wcsc-combination-swatch { flex: 0 1 24px; max-width: 40%; min-width: 0; height: auto; aspect-ratio: 1; }
.wcsc-combination-choice-horizontal > span:not(.wcsc-combination-swatch) { flex: 0 1 auto; }
.wcsc-combination-choice-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.wcsc-combination-choice-text > span:first-child,
.wcsc-combination-choice-horizontal > span:not(.wcsc-combination-choice-text):not(.wcsc-combination-swatch) { font-weight: 600; }
.wcsc-combination-choice small { font-size: 13px; white-space: pre-line; }
.wcsc-combination-swatch { width: 24px; height: 24px; border: 1px solid #ccc; border-radius: 50%; }
.wcsc-combination-quantity { display: flex; width: max-content; align-items: center; gap: 0; margin-top: 8px; border: 1px solid #c5c6cc; border-radius: 8px; overflow: hidden; background: #fff; }
.wcsc-combinations .wcsc-combination-quantity input,
.wcsc-combinations .wcsc-combination-quantity input:hover,
.wcsc-combinations .wcsc-combination-quantity input:focus {
    width: 56px; min-width: 0; height: 44px; box-sizing: border-box;
    border: 0; border-left: 1px solid #e5e5e5; border-right: 1px solid #e5e5e5;
    border-radius: 0; text-align: center; padding: 0; margin: 0;
    font-size: 16px; line-height: 44px; color: #333; background: #fff;
    appearance: textfield; -moz-appearance: textfield; outline: none; box-shadow: none;
}
.wcsc-combinations .wcsc-combination-quantity input::-webkit-inner-spin-button,
.wcsc-combinations .wcsc-combination-quantity input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.wcsc-combinations .wcsc-combination-quantity button,
.wcsc-combinations .wcsc-combination-quantity button:hover,
.wcsc-combinations .wcsc-combination-quantity button:focus,
.wcsc-combinations .wcsc-combination-quantity button:active {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 44px; width: 44px; height: 44px; box-sizing: border-box;
    padding: 0; font-size: 0; line-height: 1; appearance: none;
    background: #fff; color: #333; border: 0; border-radius: 0; margin: 0;
    box-shadow: none; outline: none; transform: none; -webkit-tap-highlight-color: transparent;
}
.wcsc-combinations .wcsc-combination-quantity button::before,
.wcsc-combinations .wcsc-combination-quantity .wcsc-quantity-plus::after {
    content: ''; position: absolute; left: 50%; top: 50%;
    width: 10px; height: 1px; background: currentColor; transform: translate(-50%, -50%);
}
.wcsc-combinations .wcsc-combination-quantity .wcsc-quantity-plus::after { width: 1px; height: 10px; }
.wcsc-combinations .wcsc-combination-quantity button:focus-visible,
.wcsc-combinations .wcsc-combination-quantity input:focus-visible {
    background: #f2f2f2;
}
.wcsc-combination-error { color: #b42318; font-size: 14px; margin: 8px 0; }
.wcsc-combinations .wcsc-combination-add { width: 100%; background: var(--wcsc-primary); border-color: var(--wcsc-primary); color: #fff; font-weight: 600; margin-top: 4px; }
.wcsc-combination-cancel { width: 100%; margin-top: 8px; }
