.quantity_terms { margin:16px 0; padding:16px; border:1px solid #e3e4e7; border-radius:12px; background:#f8f9fa; color:#30343b; }
.quantity_terms [hidden] { display:none!important; }
.quantity_terms .currency_sale_v2 { margin:0; padding:0; }
.sale_quantity_field[hidden] { display:none!important; }
.quantity_terms_partial_v2 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:16px; }
.currency_input_presets { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.currency_input_presets button { padding:7px 10px; border:1px solid #d9dce0; border-radius:7px; color:inherit; background:#fff; font-size:12px; }
.currency_sale_status { font-size:12px; color:#b64716; line-height:1.6; margin-top:8px; overflow-wrap:anywhere; }
.currency_buy_status { color:#b64716; font-size:12px; line-height:1.6; margin-top:8px; overflow-wrap:anywhere; }
.currency_buy_all { color:#4a515c; background:#f5f6f8; border:1px solid #d9dce0; border-radius:7px; padding:7px 10px; margin:8px 0; font-size:12px; }
html.dark .currency_buy_status,body.dark .currency_buy_status { color:#ffb883; }
html.dark .currency_buy_all,body.dark .currency_buy_all { color:#ebedf0; background:#24272b; border-color:#525760; }
html.dark .currency_input_presets button,body.dark .currency_input_presets button { color:#ebedf0; background:#191c20; border-color:#525760; }
html.dark .currency_sale_status,body.dark .currency_sale_status { color:#ffb883; }
@media(max-width:680px) { .quantity_terms_partial_v2 { grid-template-columns:1fr; } }
.quantity_terms_partial { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.quantity_terms label { display:flex; flex-direction:column; gap:8px; font-size:13px; }
.quantity_terms_currency { margin-bottom:12px; }
.quantity_terms_input { display:flex; align-items:center; min-width:0; gap:8px; }
.quantity_terms input,.quantity_terms select { width:100%; min-width:0; height:40px; padding:8px 10px; border:1px solid #d9dce0; border-radius:8px; background:#fff; color:inherit; font:inherit; }
.quantity_count_unit { flex-shrink:0; font-size:12px; }
.recent_trend .currency_trend_basis { display:flex; align-items:center; align-self:flex-start; gap:8px; max-width:100%; min-height:28px; color:var(--gray-700,#1f1f1f); font-size:12px; line-height:20px; white-space:nowrap; }
.currency_trend_basis_caption { flex:none; color:var(--gray-500,#666); font-size:11px; font-weight:500; }
.currency_trend_basis_value { min-width:0; overflow:hidden; text-overflow:ellipsis; font-weight:600; }
.currency_trend_picker { --s-width:auto; min-width:124px; max-width:100%; }
.currency_trend_picker .select_main { min-height:36px; padding:6px 12px; }
.currency_trend_picker .select_text p { font-size:var(--ft14); }
.currency_trend_picker .select_btn input { display:block; position:absolute; width:1px; height:1px; margin:0; opacity:0; clip-path:inset(50%); }
.currency_trend_picker .select_btn input:checked + label { background:var(--primary-bg); }
.currency_trend_picker .select_btn input:checked + label p { color:var(--primary); }
.currency_trend_picker .select_btn input:focus-visible + label { outline:2px solid var(--primary); outline-offset:-2px; }
.currency_trend_basis .currency_trend_unit[hidden] { display:none!important; }
.recent_trend .currency_trend_basis.is-fixed { padding:3px 9px; border:1px solid var(--trend-thumb-border); border-radius:8px; background:var(--white); }
.item_price .currency_comparison_price { display:block; font-size:12px; font-weight:400; line-height:1.6; opacity:.8; overflow-wrap:anywhere; }
.recent_trend_head:has(.currency_trend_basis) { flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:12px; min-width:0; }
.recent_trend_head:has(.currency_trend_basis) > .recent_trend_item { order:1; width:100%; min-width:0; }
.recent_trend_head > .currency_trend_basis { order:2; flex:0 1 auto; }
@media(max-width:680px) { .currency_trend_picker .select_main { min-height:40px; } .currency_trend_picker .select_list label { min-height:40px; } }
.item_buy_popup .item_price_box .quantity_box { display:flex; width:min(100%,240px); max-width:100%; height:48px; padding:2px; gap:6px; }
.item_buy_popup .quantity_box .qty_btn { flex:0 0 44px; width:44px; height:44px; }
.item_buy_popup .input_box.quantity_box input { flex:1 1 auto; width:0; min-width:0; text-align:center; font-variant-numeric:tabular-nums; }
.item_buy_popup .purchase_quantity_hint { margin-top:6px; color:#69717d; font-size:12px; line-height:1.5; }
html.dark .item_buy_popup .purchase_quantity_hint,body.dark .item_buy_popup .purchase_quantity_hint { color:#b1b7c1; }
html.dark .recent_trend .currency_trend_basis.is-fixed,body.dark .recent_trend .currency_trend_basis.is-fixed { background:var(--gray-100); }
.quantity_terms_summary { margin-top:10px; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.quantity_terms_notice { margin-top:6px; color:#69717d; font-size:12px; line-height:1.5; }
html.dark .quantity_terms,body.dark .quantity_terms { background:#24272b; border-color:#44484e; color:#ebedf0; }
html.dark .quantity_terms input,html.dark .quantity_terms select,body.dark .quantity_terms input,body.dark .quantity_terms select { background:#191c20; border-color:#525760; color:#ebedf0; }
html.dark .quantity_terms_notice,body.dark .quantity_terms_notice { color:#b1b7c1; }
@media(max-width:480px) { .quantity_terms { padding:12px; } .quantity_terms_partial { grid-template-columns:1fr; } }
.item_buy_popup .item_price_box > :is(.item_qty_price,.purchase_quantity_hint,.total_price_text,.currency_buy_status) { flex-basis:100%; min-width:0; text-align:center; }
.item_buy_popup .item_price_box > .purchase_quantity_hint { margin-top:0; }
.item_buy_popup .item_price_box > .total_price_text { justify-content:center; }
.item_buy_popup .item_body:has(.qty_input[aria-invalid="true"]) .total_price_text::before { display:none; }
.item_buy_popup .currency_buy_all { min-height:40px; margin:0; }
.quantity_terms_partial:has(> label:last-child[hidden]) { grid-template-columns:1fr; }
@media(max-width:480px) { .item_buy_popup .currency_buy_all { min-height:44px; } }
.item_create_page .sale_quantity_field .form_item.row { grid-template-columns:minmax(0,1fr); }
.item_create_page .sale_quantity_field .input_box input { flex:1 1 auto; width:0; min-width:0; font-variant-numeric:tabular-nums; }
.quantity_terms_input > input { flex:1 1 auto; width:0; min-width:0; font-variant-numeric:tabular-nums; }
.quantity_terms_input > [data-currency-title] { flex:none; white-space:nowrap; }
.item_create_page .sale_field_pair:has(.sale_quantity_field[hidden]) { grid-template-columns:minmax(0,1fr); }
.currency_amount_field { display:flex; flex-direction:column; gap:8px; min-width:0; }
.currency_amount_field > label { cursor:default; }
.quantity_terms_input > [data-currency-unit-picker] { flex:0 1 118px; min-width:96px; }
.currency_sale_v2 .quantity_terms_input.is-long-amount { flex-wrap:wrap; }
.currency_sale_v2 .quantity_terms_input.is-long-amount > input { flex-basis:100%; width:100%; }
.currency_sale_v2 .quantity_terms_input.is-long-amount > [data-currency-unit-picker] { margin-left:auto; }
.currency_editor_picker { min-width:0; width:100%; }
.currency_editor_picker .select_main { min-height:40px; padding:8px 10px; background:var(--white); }
.currency_editor_picker .select_text p { font:inherit; color:inherit; }
.currency_editor_picker .select_btn input { display:block; position:absolute; width:1px; height:1px; margin:0; padding:0; opacity:0; clip-path:inset(50%); }
.currency_editor_picker .select_list label { flex-direction:row; min-height:40px; padding:8px 10px; }
.currency_editor_picker .select_btn input:checked + label { background:var(--primary-bg); }
.currency_editor_picker .select_btn input:checked + label p { color:var(--primary); }
.currency_editor_picker .select_btn input:focus-visible + label { outline:2px solid var(--primary); outline-offset:-2px; }
.currency_editor_picker .select_main:focus-visible { outline:2px solid var(--primary); outline-offset:2px; }
.currency_input_presets .currency_amount_reset { border-style:dashed; background:transparent; color:var(--gray-600); }
html.dark .currency_editor_picker .select_main,body.dark .currency_editor_picker .select_main { background:#191c20; border-color:#525760; color:#ebedf0; }
html.dark .currency_input_presets .currency_amount_reset,body.dark .currency_input_presets .currency_amount_reset { background:transparent; color:#b1b7c1; }
@media(max-width:768px) {
    .currency_editor_picker .select_main,.currency_editor_picker .select_list label,.currency_input_presets button { min-height:44px; }
    .currency_sale_v2 .quantity_terms_input > input { height:44px; transform:none; font-size:16px; }
}
.item_buy_popup .currency_purchase_editor { flex-basis:100%; width:100%; min-width:0; text-align:left; }
.currency_purchase_terms { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:2px 0 8px; }
.currency_purchase_terms > div { min-width:0; padding:10px 12px; border:1px solid var(--dark-line); border-radius:8px; background:var(--gray-100); }
.currency_purchase_terms dt { color:var(--gray-500); font-size:12px; line-height:1.5; }
.currency_purchase_terms dt small { display:block; font-size:11px; opacity:.85; }
.currency_purchase_terms dd { margin-top:4px; color:var(--gray-700); font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.currency_purchase_examples,.currency_purchase_unit_hint { color:var(--gray-500); font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.currency_purchase_examples { margin-bottom:12px; }
.currency_purchase_input_label { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:8px; color:var(--gray-700); font-size:13px; }
.currency_purchase_input_label > label { font-weight:600; }
.currency_purchase_input_label > span { color:var(--gray-500); font-size:12px; text-align:right; overflow-wrap:anywhere; }
.currency_purchase_amount_row { display:flex; align-items:center; gap:8px; min-width:0; }
.item_buy_popup .currency_purchase_amount_row > .qty_input { flex:1 1 auto; width:0; min-width:0; height:44px; padding:10px 12px; border:1px solid var(--dark-line); border-radius:8px; background:var(--white); color:var(--gray-700); font-size:16px; transform:none; font-variant-numeric:tabular-nums; }
.currency_purchase_amount_row > [data-currency-purchase-unit-picker] { flex:0 1 130px; min-width:100px; }
.currency_purchase_amount_row .select_main { min-height:44px; }
.currency_purchase_amount_row.is-long-amount { flex-wrap:wrap; }
.item_buy_popup .currency_purchase_amount_row.is-long-amount > .qty_input { flex-basis:100%; width:100%; }
.currency_purchase_amount_row.is-long-amount > [data-currency-purchase-unit-picker] { margin-left:auto; }
.currency_purchase_controls { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin:8px 0; }
.item_buy_popup .currency_purchase_controls > button { min-width:0; min-height:40px; margin:0; padding:8px 6px; border:1px solid var(--dark-line); border-radius:7px; background:var(--gray-100); color:var(--gray-600); font-size:12px; overflow-wrap:anywhere; }
.currency_purchase_controls > button:disabled { opacity:.45; cursor:default; }
.currency_purchase_controls > button:focus-visible { outline:2px solid var(--primary); outline-offset:1px; }
.currency_purchase_actual { margin:6px 0 2px; color:var(--gray-700); font-size:13px; font-weight:600; line-height:1.5; overflow-wrap:anywhere; }
.item_buy_popup .popup_item_main:has(.currency_purchase_editor) > .item_thumb { width:48px; height:48px; margin-bottom:8px; }
.item_buy_popup .item_body[data-currency-v2="true"] .total_price_text { width:100%; padding-top:8px; margin-top:4px; border-top:1px solid var(--dark-line); }
.item_buy_popup .currency_purchase_amount_row > .qty_input[aria-invalid="true"] { border-color:#c74e32; }
html.dark .currency_purchase_amount_row > .qty_input,body.dark .currency_purchase_amount_row > .qty_input { background:#191c20; border-color:#525760; color:#ebedf0; }
html.dark .currency_purchase_terms > div,body.dark .currency_purchase_terms > div { background:#24272b; border-color:#44484e; }
html.dark .currency_purchase_terms dd,html.dark .currency_purchase_actual,body.dark .currency_purchase_terms dd,body.dark .currency_purchase_actual { color:#ebedf0; }
html.dark .currency_purchase_controls > button,body.dark .currency_purchase_controls > button { background:#24272b; border-color:#525760; color:#ebedf0; }
html.dark .currency_purchase_amount_row > .qty_input[aria-invalid="true"],body.dark .currency_purchase_amount_row > .qty_input[aria-invalid="true"] { border-color:#ff9d7f; }
@media(max-width:480px) { .currency_purchase_terms > div { padding:8px; } .currency_purchase_controls { grid-template-columns:repeat(2,minmax(0,1fr)); } .item_buy_popup .currency_purchase_controls > button { min-height:44px; } }
.currency_conditions { margin-top:16px; border:1px solid #d9dce0; border-radius:8px; background:var(--white); }
.currency_conditions > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; cursor:pointer; list-style:none; }
.currency_conditions > summary::-webkit-details-marker { display:none; }
.currency_conditions > summary > span:first-child { display:flex; flex-direction:column; gap:4px; min-width:0; }
.currency_conditions strong { font-size:12px; color:var(--gray-500); font-weight:500; }
.currency_conditions [data-currency-conditions-summary] { font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.currency_conditions_action { display:flex; align-items:center; gap:8px; flex-shrink:0; color:var(--primary); font-size:12px; }
.currency_conditions_action::after { content:''; width:14px; height:14px; background:var(--gray-400); mask:url(/images/icon/down.svg) no-repeat center/contain; -webkit-mask:url(/images/icon/down.svg) no-repeat center/contain; }
.currency_conditions[open] .currency_conditions_action::after { transform:rotate(180deg); }
.currency_conditions .when_open,.currency_conditions[open] .when_closed { display:none; }
.currency_conditions[open] .when_open { display:inline; }
.currency_conditions > summary:focus-visible { outline:2px solid var(--primary); outline-offset:2px; border-radius:8px; }
.currency_conditions_editor { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:12px; border-top:1px solid #e3e4e7; }
.currency_conditions_editor > .quantity_terms_notice { grid-column:1/-1; margin:0; }
.currency_conditions_examples { margin-top:6px; color:var(--gray-500); font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.currency_conditions.is-invalid { border-color:#c74e32; }
.currency_price_basis_host[hidden],.currency_price_quote_hint[hidden] { display:none!important; }
.currency_price_row:has(> .currency_price_basis_host:not([hidden])) { display:grid; grid-template-columns:minmax(0,140px) minmax(0,1fr); gap:8px; max-width:460px; align-items:stretch; }
.currency_price_row:has(> .currency_price_basis_host:not([hidden])) > .input_box { min-width:0; max-width:none!important; height:44px; }
.currency_price_row:has(> .currency_price_basis_host:not([hidden])) > .input_box input { transform:none; font-size:16px; min-width:0; }
.currency_price_row .currency_price_basis_host .select_main { height:44px; min-height:44px; padding:8px 10px; box-sizing:border-box; }
.currency_price_quote_hint { margin-top:6px; color:var(--gray-500); font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.currency_price_quote_hint.is-invalid { color:#b64716; }
html.dark .currency_conditions,body.dark .currency_conditions { background:#191c20; border-color:#525760; }
html.dark .currency_conditions_editor,body.dark .currency_conditions_editor { border-color:#44484e; }
html.dark .currency_conditions.is-invalid,body.dark .currency_conditions.is-invalid { border-color:#ff9d7f; }
html.dark .currency_price_quote_hint.is-invalid,body.dark .currency_price_quote_hint.is-invalid { color:#ffb883; }
@media(max-width:680px) { .currency_conditions_editor { grid-template-columns:1fr; } .currency_price_row:has(> .currency_price_basis_host:not([hidden])) { grid-template-columns:minmax(0,128px) minmax(0,1fr); } }
.currency_condition_suggestion[hidden] { display:none!important; }
.currency_condition_suggestion:not([hidden]) { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px; padding:10px; border:1px solid var(--dark-line); border-radius:8px; background:var(--gray-100); }
.currency_condition_suggestion > p { min-width:0; color:var(--gray-700); font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.currency_condition_suggestion > button { flex-shrink:0; min-height:40px; padding:8px 10px; border:0; border-radius:7px; background:var(--primary); color:#202020; font-size:12px; font-weight:600; }
.currency_condition_suggestion > button:hover { filter:brightness(.96); }
.currency_condition_suggestion > button:focus-visible { outline:2px solid var(--primary); outline-offset:2px; }
html.dark .currency_condition_suggestion,body.dark .currency_condition_suggestion { background:#24272b; border-color:#525760; }
html.dark .currency_condition_suggestion > p,body.dark .currency_condition_suggestion > p { color:#ebedf0; }
@media(max-width:680px) { .currency_condition_suggestion > button { min-height:44px; } }
@media(max-width:680px) { .currency_input_presets { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; } .currency_input_presets > button { min-width:0; padding:6px; } }
.sales_type_btn.currency_mode_disabled { opacity:.45; cursor:not-allowed; }
.sales_type_btn.currency_mode_disabled > label { cursor:not-allowed; }
.currency_availability { margin:0 0 12px; }
.currency_price_row.is-currency-price { max-width:460px; }
.currency_price_row.is-currency-price > .input_box,.item_create_page .input_box.currency_settlement { min-width:0; max-width:none!important; height:44px; gap:8px; padding:0 10px; box-sizing:border-box; }
.currency_price_row.is-currency-price > .input_box input,.item_create_page .input_box.currency_settlement input { flex:1 1 auto; width:0; min-width:0; padding:0; transform:none; font-size:16px; }
.currency_price_row.is-currency-price > .input_box .unit,.item_create_page .input_box.currency_settlement .unit { flex:0 0 auto; padding:0; }
.currency_price_row.is-long-price:has(> .currency_price_basis_host:not([hidden])) { grid-template-columns:minmax(0,1fr); }
.currency_price_row.is-long-price > .currency_price_basis_host { max-width:140px; }
