/* WC Dynamic Options - Frontend V4 */
/*
 * Vuestic UI–inspired theme (pure CSS): options + preset qty + selection summary.
 * Tokens only; no Vue. Adjust --wcdo-va-* to match your brand.
 */
.wcdo-options-wrapper {
	margin: 24px 0;
	--wcdo-va-primary: #2550e6;
	--wcdo-va-primary-soft: rgba(37, 80, 230, 0.12);
	--wcdo-va-primary-focus: rgba(37, 80, 230, 0.28);
	--wcdo-va-text: #1b1d1f;
	--wcdo-va-text-secondary: #6b7280;
	--wcdo-va-border: #e1e4e8;
	--wcdo-va-border-strong: #cdd2da;
	--wcdo-va-surface: #ffffff;
	--wcdo-va-surface-muted: #f5f6f8;
	--wcdo-va-surface-elevated: #fafbfc;
	--wcdo-va-radius: 10px;
	--wcdo-va-radius-sm: 8px;
	--wcdo-va-radius-xs: 6px;
	--wcdo-va-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
	--wcdo-va-shadow-hover: 0 4px 12px rgba(16, 24, 40, 0.08);
	--wcdo-va-accent-price: #dc2626;
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color: var(--wcdo-va-text);
	-webkit-font-smoothing: antialiased;
}
/* Preset qty: block add-to-cart until quantity chosen */
form.cart .single_add_to_cart.wcdo-atc-disabled,
form.cart input.single_add_to_cart.wcdo-atc-disabled {
    opacity:0.45 !important;
    cursor:not-allowed !important;
    box-shadow:none !important;
}
.wcdo-atc-tip.woocommerce-info {
    display:none;
    margin-top:10px;
    margin-bottom:0;
    padding:10px 14px 10px 40px;
    border-top:3px solid #ffb900;
    background:#fff8e5;
    color:#6b4f00;
    font-size:13px;
    line-height:1.45;
    border-radius:3px;
}
.wcdo-atc-tip.woocommerce-info::before {
    color:#ffb900;
}
.wcdo-dim-range-hint {
    display:block;
    margin-top:6px;
    font-size:12px;
    line-height:1.4;
    color:#555;
}
.wcdo-option .wcdo-input-dim-mm:invalid,
.wcdo-option .wcdo-comp-field-dim-mm:invalid {
    border-color:#c00;
    box-shadow:0 0 0 1px rgba(192,0,0,0.25);
}
.wcdo-options-wrapper * { box-sizing:border-box; }
.wcdo-group {
	margin-bottom: 20px;
	padding: 18px 20px;
	border: 1px solid var(--wcdo-va-border);
	border-radius: var(--wcdo-va-radius);
	background: var(--wcdo-va-surface-elevated);
	box-shadow: var(--wcdo-va-shadow);
}
.wcdo-group-title {
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--wcdo-va-border);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--wcdo-va-text);
}
.wcdo-group-title:first-child { margin-top:0; }
.wcdo-group-desc { margin:0 0 14px; font-size:13px; color:var(--wcdo-va-text-secondary); line-height:1.55; }
.wcdo-group-desc p { margin:0 0 8px; }
.wcdo-group-desc p:last-child { margin-bottom:0; }
.wcdo-group-title + .wcdo-group-desc { margin-top:-8px; }
.wcdo-option { margin-bottom:15px; transition:opacity .3s; }
.wcdo-option.wcdo-hidden { opacity:0; max-height:0; overflow:hidden; margin:0; }
.wcdo-option-inline-row {
    display:flex;
    align-items:flex-start;
    gap:10px;
    flex-wrap:nowrap;
    margin-bottom:12px;
}
.wcdo-option-inline-row > .wcdo-option {
    flex:1 1 0;
    min-width:0;
    margin-bottom:0;
}
.wcdo-option.wcdo-size-inline {
    position:relative;
    display:inline-block;
    width:calc((100% - 20px) / 3);
    margin-right:10px;
    vertical-align:top;
}
.wcdo-option.wcdo-size-inline.wcdo-size-next::after {
    content:"×";
    position:absolute;
    right:-5px;
    top:calc(100% - 15px);
    transform:translateY(-50%);
    color:#444;
    font-size:16px;
    font-weight:400;
    line-height:1;
    width:10px;
    text-align:center;
}
.wcdo-option.wcdo-size-inline .wcdo-label {
    margin:0 0 4px;
    min-width:0;
    white-space:nowrap;
    text-align:left;
}
.wcdo-option.wcdo-size-inline .wcdo-input {
    max-width:none;
}
.wcdo-group .wcdo-option.wcdo-size-inline:nth-of-type(3n) { margin-right:0; }
.wcdo-size-unit-switch {
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin:0 0 8px;
    padding:8px 12px;
    border:1px solid var(--wcdo-va-border);
    border-radius:var(--wcdo-va-radius-sm);
    background:var(--wcdo-va-surface);
    font-size:13px;
    box-shadow: var(--wcdo-va-shadow);
}
.wcdo-size-unit-switch label { color:var(--wcdo-va-text-secondary); font-weight:600; margin:0; }
.wcdo-size-unit-switch .wcdo-size-unit { min-width:90px; }
.wcdo-size-auto {
    margin-top:6px;
    margin-bottom:12px;
    padding:8px 10px;
    border:1px solid #e6e6e6;
    border-radius:6px;
    background:#f8f9fb;
}
.wcdo-size-auto-row { display:flex; align-items:center; gap:8px; margin:3px 0; font-size:13px; }
.wcdo-size-auto-row .k { min-width:90px; color:#555; }
.wcdo-size-auto-row .v { color:#222; font-weight:600; }
.wcdo-size-auto-row .v input[readonly] {
    width:88px;
    height:28px;
    border:1px solid #d9dde3;
    border-radius:4px;
    background:#eef1f5;
    color:#222;
    text-align:center;
    padding:0 6px;
}
.wcdo-size-auto-area .v { color:#e74c3c; font-weight:700; }
.wcdo-component-fields-front {
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:14px 14px;
    margin-top:8px;
}
.wcdo-option[data-component="1"] {
    width:100% !important;
    max-width:none !important;
    margin-right:0 !important;
}
.wcdo-option[data-component="1"] .wcdo-label {
    white-space:normal;
}
.wcdo-option[data-component="1"] > .wcdo-label {
    margin-bottom:10px;
}
.wcdo-component-field-row {
    display:flex;
    flex-direction:column;
    gap:6px;
    min-width:0;
}
.wcdo-component-field-label { font-size:14px; color:#555; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wcdo-component-field { width:100%; }
.wcdo-component-unit-row { justify-content:flex-end; }
.wcdo-component-unit { width:100%; height:36px; }
.wcdo-component-calc-view { grid-column:1 / -1; width:100%; max-width:100%; margin-top:10px; padding:8px 10px; border:1px dashed #d9dee6; border-radius:6px; background:#fafcff; box-sizing:border-box; }
.wcdo-component-calc-inline { display:flex; flex-wrap:wrap; align-items:center; gap:6px; font-size:13px; line-height:1.6; color:#1f2937; }
.wcdo-component-calc-inline .item { white-space:nowrap; }
.wcdo-component-calc-inline .sep { color:#9aa4b2; }

/* 仅当当前用户具备管理站点权限时由 PHP 输出容器；内容与上方 calc-view 一致，并附 mm 上下文 */
.wcdo-component-calc-test-admin {
    grid-column:1 / -1;
    width:100%;
    max-width:100%;
    margin-top:10px;
    padding:10px 12px;
    border:1px solid #e8d4a8;
    border-radius:6px;
    background:#fffbeb;
    box-sizing:border-box;
}
.wcdo-component-calc-test-hd {
    font-size:12px;
    font-weight:600;
    color:#92400e;
    margin:0 0 8px;
    letter-spacing:0.02em;
}
.wcdo-calc-test-mm { margin-top:10px; font-size:12px; color:#444; }
.wcdo-calc-test-mm summary { cursor:pointer; color:#b45309; }
.wcdo-calc-test-pre {
    margin:8px 0 0;
    padding:8px 10px;
    max-height:180px;
    overflow:auto;
    font-size:11px;
    line-height:1.45;
    background:#fff;
    border:1px solid #fde68a;
    border-radius:4px;
    white-space:pre-wrap;
    word-break:break-all;
}

/* 商品编辑「调试公式」：仅管理员可见 DOM */
.wcdo-product-debug-formula-panel {
    margin-top:16px;
    padding:12px 14px;
    border:1px solid #c4b5fd;
    border-radius:8px;
    background:linear-gradient(180deg, #f5f3ff 0%, #faf5ff 100%);
    max-width:100%;
    box-sizing:border-box;
}
.wcdo-product-debug-formula-head {
    font-size:13px;
    font-weight:600;
    color:#5b21b6;
    margin-bottom:8px;
}
.wcdo-product-debug-badge {
    display:inline-block;
    margin-left:6px;
    padding:1px 8px;
    font-size:11px;
    font-weight:600;
    color:#fff;
    background:#7c3aed;
    border-radius:4px;
    vertical-align:middle;
}
.wcdo-product-debug-formula-body {
    font-size:15px;
    font-weight:600;
    color:#1e1b4b;
    word-break:break-all;
}
.wcdo-product-debug-formula-meta {
    margin-top:8px;
    font-size:12px;
}
.wcdo-product-debug-muted { color:#6b7280; font-weight:400; }
.wcdo-product-debug-value { font-variant-numeric:tabular-nums; }
.wcdo-product-debug-line {
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-all;
}
.wcdo-product-debug-line .wcdo-product-debug-f {
    font-size: 12px;
    background: #f3e8ff;
    padding: 2px 6px;
    border-radius: 4px;
    color: #5b21b6;
}
.wcdo-product-debug-eq { margin: 0 4px; color: #6b7280; }

/* Relax component field input density */
.wcdo-component-field-row .wcdo-component-field,
.wcdo-component-field-row .wcdo-component-unit {
    min-height:36px;
    padding:0 10px;
    border-radius:6px;
}
.wcdo-label { display:block; margin-bottom:8px; font-weight:600; font-size:13px; color:var(--wcdo-va-text); letter-spacing:-0.01em; }
.wcdo-required { color:var(--wcdo-va-accent-price); }
.wcdo-options-wrapper input[type="text"],
.wcdo-options-wrapper input[type="number"],
.wcdo-input,.wcdo-select {
    width:100%;
    max-width:400px;
    min-height:40px;
    height:auto;
    padding:8px 12px;
    border:1px solid var(--wcdo-va-border);
    border-radius:var(--wcdo-va-radius-sm);
    font-size:14px;
    line-height:1.4;
    box-sizing:border-box;
    background:var(--wcdo-va-surface);
    color:var(--wcdo-va-text);
    transition:border-color .15s ease, box-shadow .15s ease;
}
.wcdo-options-wrapper input[type="text"]:hover,
.wcdo-options-wrapper input[type="number"]:hover,
.wcdo-input:hover,.wcdo-select:hover { border-color:var(--wcdo-va-border-strong); }
.wcdo-options-wrapper input[type="text"]:focus,
.wcdo-options-wrapper input[type="number"]:focus,
.wcdo-input:focus,.wcdo-select:focus {
    border-color:var(--wcdo-va-primary);
    outline:none;
    box-shadow:0 0 0 3px var(--wcdo-va-primary-focus);
}

/* Dropdown — Vuestic-like chevron + border */
.wcdo-select {
    display:flex;
    align-items:center;
    min-width:100px;
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    padding-right:36px;
    border:1px solid var(--wcdo-va-border);
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 10px center;
    background-size:16px 16px;
}

/* 遗留自定义下拉（若仍在 .wcdo-options-wrapper 内使用，可继承主题变量） */
.wcdo-options-wrapper .relative { position:relative; display:inline-block; }
.wcdo-options-wrapper .dropdown-btn {
    display:flex;
    align-items:center;
    min-height:40px;
    padding:8px 12px;
    border:1px solid var(--wcdo-va-border);
    border-radius:var(--wcdo-va-radius-sm);
    outline:none;
    background:var(--wcdo-va-surface);
    cursor:pointer;
    min-width:100px;
    font-size:14px;
    font-weight:500;
    color:var(--wcdo-va-text);
    transition:border-color .15s ease, box-shadow .15s ease;
}
.wcdo-options-wrapper .dropdown-btn:focus { border-color:var(--wcdo-va-primary); box-shadow:0 0 0 3px var(--wcdo-va-primary-focus); }
.wcdo-options-wrapper .dropdown-arrow {
    width:14px;
    height:14px;
    margin-top:1px;
    margin-left:4px;
    fill:currentColor;
}
.wcdo-options-wrapper .dropdown-menu {
    position:absolute;
    display:none;
    flex-direction:column;
    width:140px;
    margin-top:4px;
    border:1px solid var(--wcdo-va-border);
    border-radius:var(--wcdo-va-radius-sm);
    box-shadow:var(--wcdo-va-shadow-hover);
    background:var(--wcdo-va-surface);
    z-index:100;
    overflow:hidden;
}
.wcdo-options-wrapper .dropdown-item {
    display:flex;
    align-items:center;
    height:36px;
    padding:0 12px;
    font-size:13px;
    text-decoration:none;
    color:var(--wcdo-va-text);
    font-weight:normal;
}
.wcdo-options-wrapper .dropdown-item:hover { background-color:var(--wcdo-va-primary-soft); color:var(--wcdo-va-primary); }
.wcdo-options-wrapper .relative:hover .dropdown-menu,
.wcdo-options-wrapper .relative:focus-within .dropdown-menu { display:flex; }
.wcdo-radio-group,
.wcdo-checkbox-group {
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:flex-start;
    justify-content:flex-start;
    gap:6px;
}
.wcdo-choice-wrapper {
    margin-bottom:2px;
    flex:0 0 auto;
    width:auto !important;
    max-width:100%;
    display:inline-flex;
    flex-direction:column;
    align-items:flex-start;
}
.wcdo-radio-item,.wcdo-checkbox-item {
    display:inline-flex;
    align-items:center;
    gap:10px;
    margin-right:8px;
    padding:10px 16px;
    border:1px solid var(--wcdo-va-border);
    border-radius:var(--wcdo-va-radius-sm);
    cursor:pointer;
    font-size:14px;
    font-weight:500;
    background:var(--wcdo-va-surface);
    transition:border-color .15s ease, background .15s ease, box-shadow .15s ease;
    width:auto;
    max-width:100%;
    white-space:nowrap;
    min-height:44px;
    box-sizing:border-box;
    -webkit-tap-highlight-color:transparent;
}
.wcdo-radio-item { position:relative; }
.wcdo-radio-item:hover,.wcdo-checkbox-item:hover {
    border-color:var(--wcdo-va-border-strong);
    background:var(--wcdo-va-surface-muted);
    box-shadow:var(--wcdo-va-shadow);
}
.wcdo-choice-text { user-select:none; }
.wcdo-choice-image { width:40px; height:40px; object-fit:cover; border-radius:4px; }
.wcdo-choice-text { display:inline-block; max-width:100%; white-space:nowrap; }
.wcdo-radio-item input[type="radio"],
.wcdo-checkbox-item input[type="checkbox"] {
    width:18px;
    height:18px;
    margin:0;
    flex-shrink:0;
    accent-color:var(--wcdo-va-primary);
    cursor:pointer;
}
/* Selected card feel */
.wcdo-radio-item:has(input:checked),
.wcdo-checkbox-item:has(input:checked) {
    border-color:var(--wcdo-va-primary);
    background:var(--wcdo-va-primary-soft);
    box-shadow:0 0 0 1px var(--wcdo-va-primary);
}

/* Inline Children - align with frontend-inline-children-preview.html */
.wcdo-inline-children {
    margin:6px 0 0 0;
    padding:12px 14px;
    border-left:3px solid var(--wcdo-va-primary);
    background: var(--wcdo-va-primary-soft);
    border-radius:0 var(--wcdo-va-radius-sm) var(--wcdo-va-radius-sm) 0;
    display:none;
    overflow-x:hidden;
    min-width:0;
}
.wcdo-inline-children.is-visible { display:block; }
.wcdo-inline-children .wcdo-ch-title {
    font-size:12px;
    font-weight:600;
    color:var(--wcdo-va-primary);
    margin-bottom:6px;
}
.wcdo-inline-rows { min-width:0; }
.wcdo-inline-row {
    display:flex;
    align-items:center;
    gap:6px;
    margin-bottom:4px;
    flex-wrap:nowrap;
    width:100%;
    min-width:0;
    box-sizing:border-box;
}
.wcdo-inline-field {
    flex:1 1 0;
    min-width:0;
    width:auto;
    max-width:100%;
    min-height: 36px;
    padding: 6px 8px;
    border:1px solid var(--wcdo-va-border);
    border-radius: var(--wcdo-va-radius-xs);
    font-size:13px;
    box-sizing:border-box;
    background: var(--wcdo-va-surface);
    text-align:center;
    transition: border-color .15s ease, box-shadow .15s ease;
}
select.wcdo-inline-field { text-overflow:ellipsis; }
.wcdo-inline-field:focus { border-color: var(--wcdo-va-primary); outline:none; box-shadow: 0 0 0 2px var(--wcdo-va-primary-focus); }
.wcdo-inline-row-delete {
    flex-shrink:0;
    width:26px;
    height:26px;
    border:none;
    border-radius:4px;
    background:#e74c3c;
    color:#fff;
    font-size:13px;
    line-height:26px;
    text-align:center;
    cursor:pointer;
    padding:0;
}
.wcdo-inline-row-delete:hover { background:#c0392b; }
.wcdo-inline-add-row {
    display:inline-block;
    margin-top:8px;
    padding:8px 16px;
    border:1px dashed var(--wcdo-va-primary);
    border-radius: var(--wcdo-va-radius-sm);
    background: transparent;
    color: var(--wcdo-va-primary);
    font-size:13px;
    font-weight: 600;
    cursor:pointer;
    transition: background .15s ease, color .15s ease, border-style .15s ease;
}
.wcdo-inline-add-row:hover { background: var(--wcdo-va-primary); color:#fff; border-style:solid; }
.wcdo-inline-add-row.wcdo-max-reached { display:none; }

/* ═══ Preset Qty Buttons (Vuestic-style segmented / outline) ═══ */
.wcdo-preset-qty {
    margin: 22px 0;
    border: 1px solid var(--wcdo-va-border);
    border-radius: var(--wcdo-va-radius);
    background: var(--wcdo-va-surface);
    box-shadow: var(--wcdo-va-shadow);
    overflow: hidden;
}

.wcdo-pq-header {
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    padding:14px 18px;
    background: var(--wcdo-va-surface-muted);
    border-bottom: 1px solid var(--wcdo-va-border);
}
.wcdo-pq-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--wcdo-va-text-secondary);
    white-space: nowrap;
    padding: 6px 12px;
    background: var(--wcdo-va-surface);
    border: 1px solid var(--wcdo-va-border);
    border-radius: var(--wcdo-va-radius-xs);
    letter-spacing: -0.01em;
}
.wcdo-pq-buttons { display:flex; gap:8px; flex-wrap:wrap; flex: 1 1 auto; justify-content: flex-end; }

.wcdo-pq-btn {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid var(--wcdo-va-border);
    border-radius: var(--wcdo-va-radius-sm);
    background: var(--wcdo-va-surface);
    font-size: 14px;
    font-weight: 500;
    cursor:pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
    color: var(--wcdo-va-text);
}
.wcdo-pq-btn:hover {
    border-color: var(--wcdo-va-primary);
    color: var(--wcdo-va-primary);
    background: var(--wcdo-va-primary-soft);
}
.wcdo-pq-btn.wcdo-pq-btn-active {
    background: var(--wcdo-va-primary);
    color: #fff;
    border-color: var(--wcdo-va-primary);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(37, 80, 230, 0.25);
}
.wcdo-pq-btn.wcdo-pq-btn-active:hover {
    color: #fff;
    background: #1a45c4;
    border-color: #1a45c4;
}

.wcdo-pq-custom { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--wcdo-va-text-secondary); }
.wcdo-pq-custom-input {
    width: 96px;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--wcdo-va-border);
    border-radius: var(--wcdo-va-radius-sm);
    font-size: 14px;
    text-align: center;
    background: var(--wcdo-va-surface);
    color: var(--wcdo-va-text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.wcdo-pq-custom-input:focus {
    border-color: var(--wcdo-va-primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--wcdo-va-primary-focus);
}

.wcdo-pq-unit-price {
    margin: 10px 18px;
    color: var(--wcdo-va-accent-price);
    font-size: 14px;
    font-weight: 600;
}
.wcdo-preset-qty .wcdo-pq-unit-price,
.wcdo-preset-qty .wcdo-price-display {
    display:none !important;
}

.wcdo-options-wrapper .wcdo-pq-quote-list {
    margin: 0;
    padding: 12px 18px 18px;
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
    background: var(--wcdo-va-surface);
}
.wcdo-pq-quote-row {
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-width:0;
    width:100%;
    padding:16px 18px;
    border:1px solid var(--wcdo-va-border);
    border-left: 4px solid var(--wcdo-va-border-strong);
    border-radius: var(--wcdo-va-radius-sm);
    background: var(--wcdo-va-surface-muted);
}
.wcdo-pq-quote-row.is-active {
    border-color: var(--wcdo-va-primary);
    border-left-color: var(--wcdo-va-primary);
    background: var(--wcdo-va-surface);
    box-shadow: var(--wcdo-va-shadow-hover);
}
.wcdo-pq-quote-row.is-active .wcdo-pq-quote-qty,
.wcdo-pq-quote-row.is-active .wcdo-pq-quote-total,
.wcdo-pq-quote-row.is-active .wcdo-pq-quote-unit {
    color:inherit;
}
.wcdo-pq-quote-qty {
    font-size:16px;
    font-weight:700;
    color:var(--wcdo-va-text);
}
.wcdo-pq-quote-total {
    font-size:20px;
    font-weight:700;
    color:var(--wcdo-va-accent-price);
}
.wcdo-pq-quote-unit {
    font-size:15px;
    font-weight:600;
    color: var(--wcdo-va-primary);
}

/* Price Display（非预设数量时可见；预设模式里节点仍输出但被上方规则隐藏） */
.wcdo-options-wrapper > .wcdo-price-display {
    margin: 16px 0;
    padding: 14px 18px;
    background: var(--wcdo-va-primary-soft);
    border: 1px solid var(--wcdo-va-border);
    border-radius: var(--wcdo-va-radius);
    font-size: 15px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap: 12px;
    box-shadow: var(--wcdo-va-shadow);
}
.wcdo-price-label { font-weight:600; color:var(--wcdo-va-text-secondary); font-size: 14px; }
.wcdo-price-value { font-weight:700; font-size:20px; color:var(--wcdo-va-accent-price); transition:opacity .2s; }
.wcdo-calculating .wcdo-price-value { opacity:.4; }

/* Upload + remark */
.wcdo-upload-remark {
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px solid var(--wcdo-va-border);
    background: var(--wcdo-va-surface);
    border-radius: var(--wcdo-va-radius);
    box-shadow: var(--wcdo-va-shadow);
}
.wcdo-file-input {
    width:100%;
    max-width:480px;
}
.wcdo-upload-desc {
    margin:5px 0 0;
    color:#666;
    font-size:12px;
}
.wcdo-remark-input {
    width:100%;
    max-width:520px;
    min-height: 96px;
    padding: 12px 14px;
    border: 1px solid var(--wcdo-va-border);
    border-radius: var(--wcdo-va-radius-sm);
    resize: vertical;
    font-size: 14px;
    line-height: 1.5;
    color: var(--wcdo-va-text);
    background: var(--wcdo-va-surface-muted);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.wcdo-remark-input:hover { border-color: var(--wcdo-va-border-strong); }
.wcdo-remark-input:focus {
    outline: none;
    border-color: var(--wcdo-va-primary);
    background: var(--wcdo-va-surface);
    box-shadow: 0 0 0 3px var(--wcdo-va-primary-focus);
}

/* Selection summary — Vuestic-like card */
.wcdo-summary-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    margin:0;
    padding: 14px 18px;
    background: var(--wcdo-va-surface-muted);
    border-bottom: 1px solid var(--wcdo-va-border);
}
.wcdo-summary-head .wcdo-summary-title { margin:0; padding:0; background:transparent; border:none; }
.wcdo-summary-copy {
    flex-shrink:0;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid var(--wcdo-va-border);
    border-radius: var(--wcdo-va-radius-sm);
    background: var(--wcdo-va-surface);
    font-size: 13px;
    font-weight: 600;
    cursor:pointer;
    color: var(--wcdo-va-primary);
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.wcdo-summary-copy:hover {
    border-color: var(--wcdo-va-primary);
    background: var(--wcdo-va-primary-soft);
    box-shadow: var(--wcdo-va-shadow);
}

.wcdo-selection-summary {
    margin-top: 16px;
    border: 1px solid var(--wcdo-va-border);
    border-radius: var(--wcdo-va-radius);
    background: var(--wcdo-va-surface);
    overflow: hidden;
    box-shadow: var(--wcdo-va-shadow);
}
.wcdo-summary-title {
    margin:0;
    padding:0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--wcdo-va-text);
}
.wcdo-summary-list {
    padding: 14px 18px;
    background: var(--wcdo-va-surface);
}
.wcdo-summary-empty {
    margin:0;
    color: var(--wcdo-va-text-secondary);
    font-size: 13px;
}
.wcdo-summary-row,
.wcdo-summary-subrow {
    display:flex;
    gap:10px;
    margin-bottom:6px;
    font-size:13px;
    line-height:1.5;
}
.wcdo-summary-subrow {
    padding-left:12px;
    color:#555;
}
.wcdo-summary-row .k,
.wcdo-summary-subrow .k {
    flex:0 0 96px;
    color: var(--wcdo-va-text-secondary);
    font-weight: 500;
}
.wcdo-summary-row .v,
.wcdo-summary-subrow .v {
    flex:1;
    color: var(--wcdo-va-text);
    word-break:break-word;
}
.wcdo-summary-footer {
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid var(--wcdo-va-border);
    background: var(--wcdo-va-surface-muted);
}
.wcdo-summary-total-label {
    color: var(--wcdo-va-text-secondary);
    font-size: 14px;
    font-weight: 500;
}
.wcdo-summary-total-value {
    color: var(--wcdo-va-accent-price);
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

@media (max-width:600px) {
    .wcdo-option-inline-row { gap:6px; }
    .wcdo-option.wcdo-size-inline { width:calc((100% - 20px) / 3); margin-right:10px; }
    .wcdo-option.wcdo-size-inline.wcdo-size-next::after { top:calc(100% - 15px); font-size:15px; }
    .wcdo-pq-header { flex-direction:column; align-items:flex-start; }
    .wcdo-pq-buttons { width:100%; }
    .wcdo-pq-btn { flex:1; text-align:center; padding:8px 6px; font-size:13px; }
    .wcdo-options-wrapper .wcdo-pq-quote-list { grid-template-columns:1fr; }
    .wcdo-inline-row { flex-wrap:nowrap; }
    .wcdo-inline-children { margin-left:0; }
    .wcdo-input,.wcdo-select { max-width:100%; }
    .wcdo-radio-group,
    .wcdo-checkbox-group { gap:4px; }
    .wcdo-radio-item,
    .wcdo-checkbox-item { margin-right:0; padding:6px 8px; font-size:12px; }
    .wcdo-pq-quote-qty { font-size:15px; }
    .wcdo-pq-quote-total { font-size:18px; }
    .wcdo-pq-quote-unit { font-size:15px; }
}
