/* Scoped to the optional composition picker; legacy cards are untouched. */
.wcsc-combinations[hidden] { display: none !important; }
.wcsc-combinations [hidden] { display: none !important; }
.wcsc-preset-size > .wcsc-combination-status { display: none; }
.wcsc-btn-next[hidden] { display: none !important; }
.wcsc-btn-naver[hidden], .wcsc-external-btns[hidden], .wcsc-external-divider[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: 8px; margin: 12px 0; }
.wcsc-combinations .wcsc-combination-modes button,
.wcsc-combinations .wcsc-combination-modes button:hover,
.wcsc-combinations .wcsc-combination-modes button:focus { min-width: 0; min-height: 48px; padding: 10px 6px; border: 1.5px solid #888; border-radius: 8px; background: #fff; color: #222; font-size: 16px; line-height: 1.4; box-shadow: none; }
.wcsc-combinations .wcsc-combination-modes button[aria-pressed="true"] { border-color: var(--wcsc-primary, #8b4513); background: var(--wcsc-primary, #8b4513); color: #fff; font-weight: 700; }
.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-status:has(+ .wcsc-combination-prompt) { margin-bottom: 4px; }
.wcsc-combination-prompt { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: #1a1a1a; }
.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: 18px; line-height: 28px; }
.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: var(--wcsc-image-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: var(--wcsc-image-height, 64px); max-height: var(--wcsc-image-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: 0; min-width: 0; overflow-wrap: anywhere; }
.wcsc-combination-choice-text > * { margin: 0; line-height: 1.1; }
.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-options-size .wcsc-combination-choice-body:not(.wcsc-combination-choice-horizontal) { gap: 8px; }
.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; }
.wcsc-direct-choice { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 14px 10px; border: 1.5px solid #c5c6cc; border-radius: 10px; background: #fff; overflow: hidden; cursor: default; }
.wcsc-direct-choice .wcsc-combination-choice-body { border: 0; border-radius: 0; padding: 0 2px; height: auto; min-height: 0; flex: 0 0 auto; }
.wcsc-direct-choice.is-selected { border-color: var(--wcsc-primary, #8b4513); background: var(--wcsc-primary-bg, #fff8f0); }
.wcsc-direct-quantity { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; width: 96px; max-width: 100%; margin: 0 auto; box-sizing: border-box; border: 1px solid #d7d7dc; border-radius: 5px; background: #fff; }
.wcsc-direct-quantity > span { text-align: center; font-size: 16px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: #1a1a1a; }
.wcsc-direct-quantity > span { align-self: stretch; display: grid; place-items: center; border-left: 1px solid #d7d7dc; border-right: 1px solid #d7d7dc; }
.wcsc-combinations .wcsc-direct-quantity button,
.wcsc-combinations .wcsc-direct-quantity button:hover,
.wcsc-combinations .wcsc-direct-quantity button:focus,
.wcsc-combinations .wcsc-direct-quantity button:active { display: grid; place-items: center; padding: 0; min-width: 0; min-height: 34px; border: 0; border-radius: 4px; background: transparent; color: #333; box-shadow: none; font-size: 18px; line-height: 1; outline: none; }
.wcsc-combinations .wcsc-direct-quantity button:focus-visible { background: #e8e8e8; box-shadow: inset 0 0 0 2px #666; }
.wcsc-combinations .wcsc-direct-quantity button:disabled { opacity: 1; color: #333; }
.wcsc-combinations .wcsc-inline-size-guide,
.wcsc-combinations .wcsc-inline-size-guide:hover,
.wcsc-combinations .wcsc-inline-size-guide:focus { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 28px; margin: 0; padding: 0 2px; border: 0; border-radius: 3px; background: transparent; color: var(--wcsc-primary-text, #754d29); font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; box-shadow: none; }
.wcsc-option-heading { display: inline-flex; align-items: center; gap: 6px; }
.wcsc-option-heading > span { line-height: 1; }
.wcsc-guide-info-icon { position: relative; display: inline-block; flex: 0 0 15px; width: 15px; height: 15px; box-sizing: border-box; border: 1px solid currentColor; border-radius: 50%; }
.wcsc-inline-size-guide > span:not(.wcsc-guide-info-icon) { display: block; line-height: 15px; }
.wcsc-guide-info-icon::before, .wcsc-guide-info-icon::after { content: ''; position: absolute; left: 50%; width: 1px; background: currentColor; transform: translateX(-50%); }
.wcsc-guide-info-icon::before { top: 3px; height: 1px; }
.wcsc-guide-info-icon::after { top: 5px; height: 5px; }
