/* Дополнения к готовому дизайну калькуляторов MaxLoot (calculator-controls.css и шаблон карточки).
   Здесь только то, чего не было в прокачке: перенос кнопок в несколько рядов, количество, позиции,
   поля ввода. Цвета и размеры — из того же дизайна. */
#ml-product-root #ml-service-form:not(.mlc-form) { visibility: hidden; }
#ml-product-root .mlc-form { font-family: Manrope, Arial, sans-serif; color: var(--ml-control-text, #dce5eb); }
#ml-product-root .mlc-form > fieldset, #ml-product-root .mlc-form > .mlp-field-group { margin: 0; min-width: 0; border: 0; border-bottom: 1px solid #2a3a45; padding: 17px 0; }
#ml-product-root .mlc-form > .mlp-package-bonus { margin: 14px 0 2px; }
#ml-product-root .mlc-form legend { float: none; width: auto; padding: 0; margin: 0 0 12px; color: var(--ml-control-gold, #d5b879); font: 700 14px/1.5 Manrope, Arial, sans-serif !important; }
#ml-product-root .mlc-form .mlp-field-title h3 { color: var(--ml-control-gold, #d5b879); }
#ml-product-root .mlc-form .mlp-field-title .mlc-value { font: 600 14px/1.4 Manrope, Arial, sans-serif; color: var(--ml-control-gold, #d5b879); }

/* Кнопки-варианты: подпись + цена/надбавка под ней, несколько рядов при большом числе вариантов. */
#ml-product-root#ml-product-root .mlc-segments > label > span { flex-direction: column; gap: 2px; white-space: normal; text-align: center; line-height: 1.3; }
#ml-product-root#ml-product-root .mlc-segments > label > span .mlc-opt-label { font-weight: 600; }
#ml-product-root#ml-product-root .mlc-segments > label > span small { font: 700 10px/1.2 Manrope, Arial, sans-serif; color: var(--ml-control-gold, #d5b879); }
#ml-product-root#ml-product-root .mlc-segments > label > span small:empty { display: none; }
#ml-product-root#ml-product-root .mlc-segments > label > span .mlc-opt-icon { font: normal 15px/1 system-ui, sans-serif; }
#ml-product-root .mlc-segments.mlc-wrap { flex-wrap: wrap; }
#ml-product-root .mlc-segments.mlc-wrap > label { flex: 1 1 calc(33.333% - 7px); }
#ml-product-root .mlc-segments:not(.mlc-wrap) > label > span { padding-inline: 6px; }
@media (max-width: 600px) { #ml-product-root .mlc-segments.mlc-wrap > label { flex-basis: calc(50% - 7px); } }
#ml-product-root .mlc-segments > label[hidden] { display: none !important; }

/* Цена у галочек — справа, золотом, как в прокачке. */
#ml-product-root#ml-product-root .mlc-form .mlp-addon-price { margin-left: auto; white-space: nowrap; color: var(--ml-control-gold, #d5b879); font: 600 11px/1.4 Manrope, Arial, sans-serif; }
#ml-product-root#ml-product-root .mlc-form .mlp-addon-price.mlc-free { color: #8fd19e; }
#ml-product-root .mlc-icon-img { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; }

/* Подсказки о скидках — тот же стиль, что у золота. */
#ml-product-root .mlc-form .mlc-note { font: 500 11px/1.6 Manrope, Arial, sans-serif; color: var(--ml-control-gold, #d5b879); margin: 10px 0 0; }
#ml-product-root .mlc-form .mlc-note:empty { display: none; }
#ml-product-root .mlc-form .mlc-unit-price { font: 500 11px/1.6 Manrope, Arial, sans-serif; color: #aabcc6; margin: 8px 0 0; }
#ml-product-root .mlc-form .mlc-unit-price:empty { display: none; }

/* Количество: − [поле] + в стиле полей уровня. */
#ml-product-root .mlc-form .mlc-qty { gap: 6px; margin: 8px 0 4px; }
#ml-product-root .mlc-form .mlc-qty label { flex: 1 1 auto; }
#ml-product-root .mlc-form .mlc-qty input { margin-top: 0 !important; }
#ml-product-root#ml-product-root .mlc-form .mlc-step { flex: 0 0 43px; width: 43px; height: 43px; padding: 0; border: 1px solid var(--ml-control-border, #344956); border-radius: 6px; background: var(--ml-control-bg, #152530); color: var(--ml-control-text, #dce5eb); font: 500 20px/1 Manrope, Arial, sans-serif; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
#ml-product-root#ml-product-root .mlc-form .mlc-step:hover { border-color: #61bfc5; background: var(--ml-control-active-bg, #15343f); }
#ml-product-root .mlc-form .mlc-presets { margin-top: 10px; }

/* Позиции (валюта, предметы): название, цена за штуку, количество справа. */
#ml-product-root#ml-product-root .mlc-form .mlc-item { flex-wrap: wrap; padding-block: 6px; }
#ml-product-root#ml-product-root .mlc-form .mlc-item .mlp-addon-label { cursor: default; font-size: 12px; }
#ml-product-root .mlc-form .mlc-item .mlp-addon-name { display: flex; flex-direction: column; gap: 2px; }
#ml-product-root .mlc-form .mlc-item-price { font: 500 10px/1.4 Manrope, Arial, sans-serif; color: #91a9b7; }
#ml-product-root .mlc-form .mlc-item-hint { font: 500 10px/1.4 Manrope, Arial, sans-serif; color: var(--ml-control-gold, #d5b879); }
#ml-product-root .mlc-form .mlc-item-hint:empty { display: none; }
#ml-product-root .mlc-form .mlc-qty-small { flex: 0 0 auto; margin: 0; }
#ml-product-root .mlc-form .mlc-qty-small label { flex: 0 0 64px; }
#ml-product-root#ml-product-root .mlc-form .mlc-qty-small .mlc-step { flex-basis: 36px; width: 36px; height: 36px; font-size: 17px; }
#ml-product-root#ml-product-root .mlc-form .mlc-qty-small input { height: 36px !important; font-size: 13px !important; }

/* Текстовые поля, дата: как поля уровня. */
#ml-product-root#ml-product-root .mlc-form .mlp-level-inputs :is(input[type=text], input[type=email], input[type=datetime-local], textarea) { width: 100%; height: 43px; margin: 0; padding: 5px 12px; border: 1px solid #314552; border-radius: 4px; background: #12232e; color: #e7f1f4; font: 500 14px/1.4 Manrope, Arial, sans-serif; text-align: left; color-scheme: dark; }
#ml-product-root#ml-product-root .mlc-form .mlp-level-inputs textarea { height: 86px; padding-top: 10px; }
#ml-product-root .mlc-form .mlc-field .mlp-level-inputs { margin: 10px 0 0; }

/* Список с выбором (много вариантов). */
#ml-product-root .mlc-form .mlc-select select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--ml-control-border, #344956); border-radius: 7px; background: var(--ml-control-bg, #152530); color: var(--ml-control-text, #dce5eb); font: 500 13px/1.45 Manrope, Arial, sans-serif; }

/* Сообщения. */
#ml-product-root .mlc-form .mlc-messages:empty { display: none; }
#ml-product-root .mlc-form .mlc-messages { padding-top: 12px; }
#ml-product-root .mlc-form .mlc-error { margin: 0 0 6px; font: 500 12px/1.5 Manrope, Arial, sans-serif; color: #ff8f8f; }
#ml-product-root .mlc-form .mlc-missing { margin: 0; font: 500 12px/1.5 Manrope, Arial, sans-serif; color: #aabcc6; }
#ml-product-root .mlc-status { margin: 10px 0 0; font: 500 12px/1.5 Manrope, Arial, sans-serif; color: #e6d19c; text-align: center; }
#ml-product-root.mlc-busy #mlp-sticky-price { opacity: .55; transition: opacity .15s; }
#ml-product-root .mlc-form [hidden] { display: none !important; }

/* Заголовки блоков: общий отступ сверху и снизу, как в прокачке (у fieldset заголовок иначе прилипает к линии). */
#ml-product-root .mlc-form > fieldset > legend { float: left; width: 100%; box-sizing: border-box; }
#ml-product-root .mlc-form > fieldset > legend + * { clear: both; }
#ml-product-root .mlc-form > fieldset > legend.mlp-sr-only { float: none; width: 1px; }
#ml-product-root .mlc-form .mlp-field-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 12px; }
#ml-product-root .mlc-form .mlp-field-title h3 { margin: 0; font: 700 14px/1.5 Manrope, Arial, sans-serif; }

/* Регион: заголовок слева, кнопки с флагами справа в одну строку, как в прокачке. */
#ml-product-root#ml-product-root .mlc-form > fieldset.mlp-region { position: relative; display: block; min-height: 64px; padding: 0 0 18px; margin: 0 0 4px; }
#ml-product-root#ml-product-root .mlc-form > fieldset.mlp-region > legend { position: absolute; left: 0; top: 12px; float: none; width: auto; margin: 0; }
#ml-product-root#ml-product-root .mlc-form > fieldset.mlp-region .mlp-segments { width: max-content; max-width: calc(100% - 70px); margin: 17px 0 0 auto; clear: none; }
#ml-product-root#ml-product-root .mlc-form > fieldset.mlp-region .mlp-segments > label { flex: 0 0 auto; }
#ml-product-root#ml-product-root .mlc-form > fieldset.mlp-region .mlp-segments > label > span { flex-direction: row; gap: 8px; padding: 8px 12px; min-height: 40px; }
#ml-product-root .mlc-form .mlp-region-flag { display: inline-block; width: 22px; height: 15px; object-fit: cover; border-radius: 2px; flex: 0 0 22px; border: 1px solid rgba(255,255,255,.12); }

/* Правая колонка: цена и кнопка всегда видны внизу экрана (как в прокачке), форма листается страницей. */
@media (min-width: 701px) {
  #ml-product-root#ml-product-root .mlp-order-column { position: sticky !important; top: min(var(--mlp-sticky-top, calc(var(--ml-header-height, 88px) + var(--ml-admin-offset, 0px) + 18px)), calc(100dvh - var(--mlp-card-height, 1650px))) !important; align-self: start !important; height: max-content !important; max-height: none !important; overflow: visible !important; }
  #ml-product-root#ml-product-root .mlp-price-sticky { position: sticky !important; bottom: 0 !important; top: calc(100dvh - var(--mlp-price-height, 200px)) !important; }
}

/* Блок количества со ступенями скидки. */
#ml-product-root .mlc-form .mlc-count .mlp-field-title .mlc-value { font: 700 14px/1.4 Manrope, Arial, sans-serif; color: var(--ml-control-gold, #d5b879); }
#ml-product-root#ml-product-root .mlc-form .mlc-qty-big { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
#ml-product-root#ml-product-root .mlc-form .mlc-qty-big label { flex: 1 1 0; min-width: 0; margin: 0; padding: 0; }
#ml-product-root#ml-product-root .mlc-form .mlc-qty-big input { display: block; width: 100%; height: 46px !important; margin: 0 !important; font-size: 16px !important; font-weight: 700 !important; text-align: center !important; box-sizing: border-box; }
#ml-product-root#ml-product-root .mlc-form .mlc-qty-big .mlc-step { flex: 0 0 46px; width: 46px; height: 46px; margin: 0; }
/* Бегунок: дорожка и метки скидок строго под ползунком (дорожка сужена на полширины ползунка). */
#ml-product-root .mlc-form .mlc-count-range { position: relative; height: 32px; margin: 4px 0 14px; padding: 0; }
#ml-product-root#ml-product-root .mlc-form .mlc-count .mlp-range-rail { position: absolute; left: 8px; right: 8px; top: 14px; height: 4px; }
#ml-product-root .mlc-form .mlc-count-dot { position: absolute; top: 50%; width: 10px; height: 10px; margin: -7px 0 0 -7px; border-radius: 50%; background: #6b8594; border: 2px solid #101e28; pointer-events: none; z-index: 2; box-sizing: content-box; }
#ml-product-root .mlc-form .mlc-count-dot.is-on { background: var(--ml-control-gold, #d5b879); }
#ml-product-root .mlc-form .mlc-pills { display: flex; flex-wrap: wrap; gap: 7px; }
#ml-product-root#ml-product-root .mlc-form .mlc-pill { padding: 6px 12px; border: 1px solid #2f4452; border-radius: 999px; background: #101e28; color: #9fb4c0; font: 700 12px/1.2 Manrope, Arial, sans-serif; cursor: pointer; transition: border-color .18s ease, color .18s ease; }
#ml-product-root#ml-product-root .mlc-form .mlc-pill:hover { border-color: #61bfc5; color: #e7f1f4; }
#ml-product-root#ml-product-root .mlc-form .mlc-pill.is-active { border-color: var(--ml-control-gold, #d5b879); color: var(--ml-control-gold, #d5b879); background: #1b2a2c; }

/* Блок без заголовка (например, одиночная галочка «Экспресс»): меньше отступ сверху. */
#ml-product-root .mlc-form > .mlc-no-label { padding-top: 8px; }
#ml-product-root .mlc-form .mlp-sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#ml-product-root .mlc-form .mlp-addon .mlc-badge { margin-left: 6px; font: normal 13px/1 system-ui, sans-serif; }

/* Подсказка для продаж (без цены) — выделенная плашка, как у конкурентов. */
#ml-product-root .mlc-form > .mlc-tip { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 2px; padding: 10px 12px; border: 1px solid #69568d; border-radius: 9px; background: #151927; font: 500 12px/1.5 Manrope, Arial, sans-serif; color: #e7e6f0; }
#ml-product-root .mlc-form > .mlc-tip-success { border-color: #4f7a5d; background: #151927; color: #e7e6f0; }
#ml-product-root .mlc-form > .mlc-tip-warning { border-color: #8a7440; background: #151927; color: #e7e6f0; }
#ml-product-root .mlc-form > .mlc-tip .mlc-tip-ic { font: normal 16px/1.3 system-ui, sans-serif; }
#ml-product-root .mlc-form > .mlc-tip strong { display: block; color: var(--ml-control-gold, #d5b879); font-weight: 700; }
#ml-product-root .mlc-form > .mlc-tip[hidden] { display: none !important; }

/* Скидка на карточку и кешбэк у итоговой цены. */
#ml-product-root .mlc-old-price { margin-left: 10px; color: #8197a3; font: 500 16px/1.2 Manrope, Arial, sans-serif; text-decoration: line-through; }
#ml-product-root .mlp-mobile-orderbar .mlc-old-price { margin: 0; font-size: 13px; }
#ml-product-root .mlp-mobile-orderbar > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 2px; }
#ml-product-root .mlp-mobile-orderbar #mlp-mobile-eta { flex-basis: 100%; }
#ml-product-root .mlc-old-price[hidden], #ml-product-root .mlc-sale-label[hidden], #ml-product-root .mlc-cashback[hidden] { display: none !important; }
#ml-product-root .mlc-sale-label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 6px; font: 700 11px/1.4 Manrope, Arial, sans-serif; color: #ffb38a; text-transform: uppercase; letter-spacing: .03em; }
#ml-product-root .mlc-sale-label .mlc-sale-pct { padding: 1px 6px; border-radius: 4px; background: #c8463a; color: #fff; }
#ml-product-root .mlc-sale-label .mlc-sale-until { color: #aabcc6; font-weight: 500; text-transform: none; letter-spacing: 0; }
#ml-product-root .mlc-cashback { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font: 600 12px/1.4 Manrope, Arial, sans-serif; color: #8fd19e; }
#ml-product-root .mlc-cashback small { color: #7d939f; font-weight: 500; }

/* Старт заказа. */
#ml-product-root .mlc-start { margin: 8px 0 0; font: 500 12px/1.4 Manrope, Arial, sans-serif; color: #aabcc6; }
#ml-product-root .mlc-start[hidden] { display: none !important; }
#ml-product-root .mlp-price-sticky #mlp-quick-order { margin-top: 14px; }
/* строка цены: слева акция (в столбик), справа старая и новая цена в одну линию */
#ml-product-root .mlp-price-sticky .mlc-old-price { margin: 0; }
/* «?» у допов — в 2 раза меньше, чтобы не раздвигать строки */
#ml-product-root#ml-product-root .mlc-form .mlp-help { width: 18px; height: 18px; flex: 0 0 18px; font-size: 10px; line-height: 1; }
/* выделения в подсказках способов выполнения */
#ml-product-root .mlc-form .mlp-method-tooltip em { font-style: normal; }
#ml-product-root .mlc-form .mlp-method-tooltip em.gold { color: var(--ml-control-gold, #d5b879); }
#ml-product-root .mlc-form .mlp-method-tooltip em.teal { color: #70cbd0; }

/* Вкладки-группы (ключи +6…+10 / +11…+16 / …) и компактные плитки выбранной группы. */
#ml-product-root .mlc-form .mlc-tabs { display: flex; gap: 7px; margin: 0 0 10px; }
/* Цвета и анимация вкладок — как у карточек «Почему выбирают MaxLoot»: фиолетовый, зелёный, золотой. */
#ml-product-root#ml-product-root .mlc-form .mlc-tab { --tone: #a599c5; --wash: rgba(165,153,197,.10); flex: 1 1 0; min-width: 0; min-height: 42px; padding: 6px 8px; border: 1px solid #21333f; border-radius: 10px; background: linear-gradient(140deg, var(--wash), transparent 75%), #0d1b25; color: var(--tone); font: 700 13px/1.2 Manrope, Arial, sans-serif; cursor: pointer; transition: box-shadow .25s, border-color .25s, background .25s, transform .25s; }
#ml-product-root#ml-product-root .mlc-form .mlc-tab:nth-child(2) { --tone: #91b49a; --wash: rgba(145,180,154,.10); }
#ml-product-root#ml-product-root .mlc-form .mlc-tab:nth-child(3) { --tone: #c6b779; --wash: rgba(198,183,121,.10); }
#ml-product-root#ml-product-root .mlc-form .mlc-tab:nth-child(4) { --tone: #64cbd1; --wash: rgba(100,203,209,.10); }
#ml-product-root#ml-product-root .mlc-form .mlc-tab:hover { border-color: color-mix(in srgb, var(--tone) 42%, #21333f); box-shadow: 0 0 28px color-mix(in srgb, var(--tone) 14%, transparent), inset 0 0 30px color-mix(in srgb, var(--tone) 3%, transparent); background: linear-gradient(140deg, color-mix(in srgb, var(--tone) 16%, transparent), transparent 75%), #10212b; transform: translateY(-1px); }
#ml-product-root#ml-product-root .mlc-form .mlc-tab.is-active { border-color: color-mix(in srgb, var(--tone) 65%, #21333f); box-shadow: 0 0 22px color-mix(in srgb, var(--tone) 18%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--tone) 35%, transparent); background: linear-gradient(140deg, color-mix(in srgb, var(--tone) 20%, transparent), transparent 80%), #10212b; }
#ml-product-root .mlc-form .mlc-tab:focus-visible { outline: 2px solid var(--tone); outline-offset: 2px; }
/* Нижние кнопки уровней — мягкий бирюзовый, с той же анимацией при наведении. */
#ml-product-root .mlc-form .mlc-tile-grid { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 6px; }
#ml-product-root#ml-product-root .mlc-form .mlc-tile { --tone: #64cbd1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 6px 2px; margin: 0; border: 1px solid #21333f; border-radius: 10px; background: linear-gradient(140deg, rgba(100,203,209,.07), transparent 75%), #0d1b25; color: var(--ml-control-text, #dce5eb); cursor: pointer; text-align: center; transition: box-shadow .25s, border-color .25s, background .25s, transform .25s; }
#ml-product-root#ml-product-root .mlc-form .mlc-tile:hover { border-color: color-mix(in srgb, var(--tone) 45%, #21333f); box-shadow: 0 0 22px color-mix(in srgb, var(--tone) 16%, transparent), inset 0 0 22px color-mix(in srgb, var(--tone) 4%, transparent); background: linear-gradient(140deg, rgba(100,203,209,.16), transparent 75%), #10212b; transform: translateY(-2px); }
#ml-product-root .mlc-form .mlc-tile input { position: absolute; opacity: 0; pointer-events: none; }
#ml-product-root .mlc-form .mlc-tile:focus-within { outline: 2px solid var(--tone); outline-offset: 1px; }
#ml-product-root#ml-product-root .mlc-form .mlc-tile.is-active { border-color: color-mix(in srgb, var(--tone) 70%, #21333f); background: linear-gradient(140deg, rgba(100,203,209,.22), transparent 80%), #12303a; box-shadow: 0 0 18px color-mix(in srgb, var(--tone) 18%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--tone) 40%, transparent); }
#ml-product-root .mlc-form .mlc-tile .mlc-tile-label { font: 700 14px/1.2 Manrope, Arial, sans-serif; }
#ml-product-root .mlc-form .mlc-tile small { font: 600 10px/1.2 Manrope, Arial, sans-serif; color: var(--ml-control-gold, #d5b879); }
#ml-product-root .mlc-form .mlc-tile small:empty { display: none; }
#ml-product-root .mlc-form .mlc-tile[hidden], #ml-product-root .mlc-form .mlc-tile-grid[hidden] { display: none !important; }

/* Показатели выбранного ключа — маленькие значки с подсказкой при наведении. */
#ml-product-root .mlc-form .mlc-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
#ml-product-root .mlc-form .mlc-facts:empty { display: none; }
/* Состав пакета списком (5+ показателей). */
#ml-product-root .mlc-form .mlc-facts.mlc-facts-list { display: grid; gap: 8px; margin: 12px 0 14px; padding: 12px 14px; border: 1px solid #2f4452; border-radius: 10px; background: #101e28; }
#ml-product-root .mlc-form .mlc-fact-row { position: relative; padding-left: 18px; font: 600 13px/1.4 Manrope, Arial, sans-serif; color: #dce5eb; }
#ml-product-root .mlc-form .mlc-fact-row::before { content: ''; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: #6f8794; }
#ml-product-root .mlc-form .mlc-fact-row.mlc-fact-gold { color: var(--ml-control-gold, #d5b879); font-weight: 700; }
#ml-product-root .mlc-form .mlc-fact-row.mlc-fact-gold::before { background: var(--ml-control-gold, #d5b879); }
#ml-product-root .mlc-form .mlc-fact-row.mlc-fact-green { color: #8fd19e; font-weight: 700; }
#ml-product-root .mlc-form .mlc-fact-row.mlc-fact-green::before { background: #8fd19e; }
#ml-product-root .mlc-form .mlc-fact-row a.mlc-fact-link { color: inherit; text-decoration: underline dotted; }
#ml-product-root#ml-product-root .mlc-form .mlc-chip { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 7px; border: 1px solid #2f4452; border-radius: 999px; background: #101e28; color: #e7f1f4; font: 700 12px/1.3 Manrope, Arial, sans-serif; text-decoration: none; cursor: default; }
#ml-product-root .mlc-form a.mlc-chip { cursor: pointer; }
#ml-product-root .mlc-form .mlc-chip svg { width: 14px; height: 14px; flex: 0 0 14px; fill: currentColor; }
#ml-product-root .mlc-form .mlc-chip b { font-weight: 700; color: #e7f1f4; }
#ml-product-root .mlc-form .mlc-chip-gold svg { color: var(--ml-control-gold, #d5b879); }
#ml-product-root .mlc-form .mlc-chip-teal svg { color: #70cbd0; }
#ml-product-root .mlc-form .mlc-chip-violet svg { color: #b9a2ff; }
#ml-product-root .mlc-form .mlc-chip-green svg { color: #8fd19e; }
#ml-product-root .mlc-form .mlc-chip-orange svg { color: #ffb067; }
#ml-product-root .mlc-form .mlc-chip:hover, #ml-product-root .mlc-form .mlc-chip:focus-visible { border-color: #61bfc5; outline: 0; }
#ml-product-root .mlc-form .mlc-chip-tip { position: absolute; z-index: 30; left: 0; bottom: calc(100% + 8px); display: block; width: max-content; max-width: 220px; padding: 8px 10px; border: 1px solid #3a5566; border-radius: 8px; background: #0b1822; box-shadow: 0 10px 24px rgba(0,0,0,.45); color: #e7f1f4; font: 600 12px/1.4 Manrope, Arial, sans-serif; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease; pointer-events: none; }
#ml-product-root .mlc-form .mlc-chip-tip i { display: block; margin-bottom: 2px; font: 600 10px/1.3 Manrope, Arial, sans-serif; letter-spacing: .03em; text-transform: uppercase; color: #8fa6b4; }
#ml-product-root .mlc-form .mlc-chip:is(:hover, :focus-within) .mlc-chip-tip { opacity: 1; visibility: visible; transform: none; }

/* Выбор нескольких вариантов карточками с картинками. */
#ml-product-root .mlc-form .mlc-images { display: grid; grid-template-columns: repeat(var(--mlc-cols, 4), minmax(0, 1fr)); gap: 8px; }
#ml-product-root#ml-product-root .mlc-form .mlc-image-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border: 1px solid var(--ml-control-border, #344956); border-radius: 8px; background: var(--ml-control-bg, #152530); color: var(--ml-control-text, #dce5eb); cursor: pointer; text-align: center; transition: border-color .18s ease, background .18s ease; }
#ml-product-root .mlc-form .mlc-image-card:hover { border-color: #61bfc5; }
#ml-product-root .mlc-form .mlc-image-card input { position: absolute; opacity: 0; pointer-events: none; }
#ml-product-root .mlc-form .mlc-image-card:focus-within { outline: 2px solid #61bfc5; outline-offset: 1px; }
#ml-product-root .mlc-form .mlc-image-card.is-active { border-color: #61bfc5; background: var(--ml-control-active-bg, #15343f); box-shadow: inset 0 0 0 1px #61bfc5; }
#ml-product-root .mlc-form .mlc-image-pic { display: block; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: #0c1822; font-size: 28px; line-height: 56px; }
#ml-product-root .mlc-form .mlc-image-pic img { display: block; width: 56px; height: 56px; object-fit: cover; }
#ml-product-root .mlc-form .mlc-image-name { font: 600 11px/1.3 Manrope, Arial, sans-serif; }
#ml-product-root .mlc-form .mlc-image-price { font: 600 10px/1.2 Manrope, Arial, sans-serif; color: var(--ml-control-gold, #d5b879); }
#ml-product-root .mlc-form .mlc-image-price:empty { display: none; }
#ml-product-root .mlc-form .mlc-image-card[hidden] { display: none !important; }
@media (max-width: 700px) { #ml-product-root .mlc-form .mlc-images { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Таблицы в описании карточки (например, награды по ключам). */
#ml-product-root #mlp-details-text .mlp-table-wrap, #ml-product-shell #mlp-details-text .mlp-table-wrap { overflow-x: auto; margin: 14px 0 22px; }
#ml-product-root #mlp-details-text table { width: 100%; border-collapse: collapse; font: 500 14px/1.5 Manrope, Arial, sans-serif; color: #d1d1d1; }
#ml-product-root #mlp-details-text table th { text-align: left; padding: 9px 12px; border-bottom: 1px solid #344956; color: var(--ml-control-gold, #d5b879); font-weight: 700; white-space: nowrap; }
#ml-product-root #mlp-details-text table td { padding: 8px 12px; border-bottom: 1px solid #22323d; }
#ml-product-root #mlp-details-text table tr:hover td { background: #101e28; }

/* Нижняя часть блока цены: «Старт» слева и кешбэк справа в одной строке, значки оплаты на всю ширину. */
#ml-product-root .mlp-price-sticky { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
#ml-product-root .mlp-price-sticky > * { grid-column: 1 / -1; }
#ml-product-root .mlp-price-sticky > .mlc-start { grid-column: 1; margin: 12px 0 0; align-self: center; }
#ml-product-root .mlp-price-sticky > .mlc-cashback { grid-column: 2; margin: 12px 0 0; justify-self: end; white-space: nowrap; }
#ml-product-root .mlp-price-sticky .mlp-payment-methods { display: grid !important; grid-template-columns: repeat(7, 1fr); gap: 0 6px; justify-items: center; align-items: center; width: 100%; margin: 14px 0 0; }
#ml-product-root .mlp-price-sticky .mlp-payment-methods img { max-width: 100%; height: auto; }

/* Цена всегда слева; акция отдельной строкой над ней; одинаковые боковые отступы. */
#ml-product-root .mlp-price-sticky .mlp-sticky-price-row { display: flex !important; flex-direction: column; align-items: flex-start; gap: 0; }
#ml-product-root .mlp-price-sticky .mlp-sticky-price-row > div { display: flex; flex-direction: row; align-items: baseline; gap: 10px; margin: 0; white-space: nowrap; }
#ml-product-root .mlp-price-sticky .mlp-payment-methods { display: flex !important; justify-content: space-between; align-items: center; padding: 0 !important; gap: 0; }
#ml-product-root .mlp-price-sticky .mlp-payment-methods img { width: 36px; max-width: none; height: auto; flex: 0 0 auto; }
#ml-product-root .mlc-sale-pct-m { margin-left: 8px; padding: 1px 6px; border-radius: 4px; background: #c8463a; color: #fff; font: 700 11px/1.4 Manrope, Arial, sans-serif; }
#ml-product-root .mlc-sale-pct-m[hidden] { display: none !important; }
@media (max-width: 700px) {
  #ml-product-root#ml-product-root#ml-product-root .mlp-price-sticky > .mlp-sticky-price-row { display: flex !important; }
  #ml-product-root .mlp-price-sticky .mlp-sticky-price-row > div { display: none; }
  #ml-product-root .mlp-price-sticky .mlc-sale-label { margin: 0 0 4px; }
  #ml-product-root .mlp-price-sticky .mlc-sale-label[hidden] { display: none !important; }
}

/* Нижняя панель на телефоне: цена, старая цена и значок скидки в одну строку. */
#ml-product-root .mlp-mobile-orderbar > div { column-gap: 6px; }
#ml-product-root .mlp-mobile-orderbar #mlp-mobile-price { font-size: 21px; }
#ml-product-root .mlp-mobile-orderbar .mlc-old-price { font-size: 12px; }
#ml-product-root .mlc-sale-pct-m { margin-left: 0; padding: 1px 4px; font-size: 10px; }

/* Плитки способов: название сверху, пометка под ним (старое правило ставило в одну строку и слова слипались). */
#ml-product-root#ml-product-root .mlc-form .mlp-method.mlc-segments > label > span { flex-direction: column !important; gap: 2px !important; justify-content: center; text-align: center; }

/* «Вам может понравиться»: карточки как в готовом блоке WoW — текст внизу, без лишних отступов. */
#mlp-recommendations { padding: 0 !important; gap: 16px; }
#mlp-recommendations > .mlc-reco-card { display: flex !important; flex-direction: column; justify-content: flex-end; padding: 0 !important; height: 330px !important; min-height: 330px !important; }
#mlp-recommendations > .mlc-reco-card > .e-con { position: relative; z-index: 2; gap: 9px !important; padding: 12px 14px 14px !important; flex: 0 0 auto; height: auto !important; min-height: 0 !important; }

/* Плитки в одном ряду — одинаковой высоты, текст по центру (в т.ч. «Без гарантии» рядом с «Гарантия таймера +10%») */
#ml-product-root#ml-product-root .mlc-form .mlp-method.mlc-segments { align-items: stretch !important; }
#ml-product-root#ml-product-root .mlc-form .mlp-method.mlc-segments > label:not([hidden]) { display: flex !important; }
#ml-product-root#ml-product-root .mlc-form .mlp-method.mlc-segments > label > span { flex: 1 1 auto; width: 100%; box-sizing: border-box; align-items: center; justify-content: center !important; }

/* Компактный блок цены: акция и срок — внизу тела калькулятора, кешбэк — иконкой справа от цены. */
#ml-product-root .mlc-bottom-info { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 0; padding: 14px 17px 0; border-top: 1px solid #1a2f3b; }
#ml-product-root .mlc-bottom-info .mlc-sale-label { margin: 0; }
#ml-product-root .mlc-bottom-info .mlp-sticky-meta { margin: 0; }
#ml-product-root#ml-product-root .mlp-price-sticky .mlp-sticky-price-row { flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; }
#ml-product-root#ml-product-root .mlp-price-sticky #mlp-sticky-price { font-size: 26px; }
#ml-product-root .mlp-price-sticky .mlc-sale-pct-m { margin-left: 0; }
#ml-product-root .mlp-price-sticky #mlp-quick-order { margin-top: 10px; }
#ml-product-root .mlp-price-sticky .mlp-payment-methods { margin: 10px 0 0; }
#ml-product-root .mlp-price-sticky .mlp-money-back { margin: 8px 0 0; }
#ml-product-root .mlp-price-sticky .mlp-price-match { margin-top: 2px; padding-top: 2px; padding-bottom: 2px; }
#ml-product-root#ml-product-root .mlp-price-sticky { padding-bottom: 6px; }
#ml-product-root .mlc-cashback.mlc-cb-icon { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin: 0; border-radius: 50%; border: 1px solid rgba(143, 209, 158, .45); background: rgba(143, 209, 158, .10); color: #8fd19e; font: 800 17px/1 Manrope, Arial, sans-serif; cursor: help; }
#ml-product-root .mlc-cb-tip { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 5; white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: #10212b; border: 1px solid #2b4553; color: #cfe8d5; font: 600 12px/1.3 Manrope, Arial, sans-serif; opacity: 0; pointer-events: none; transition: opacity .15s; }
#ml-product-root .mlc-cb-icon:hover .mlc-cb-tip, #ml-product-root .mlc-cb-icon:focus .mlc-cb-tip { opacity: 1; }
@media (max-width: 700px) { #ml-product-root .mlp-price-sticky .mlc-cb-icon { display: none !important; } }

/* Диапазон двумя списками (репутация) */
.mlc-sel-row{display:flex;align-items:flex-end;gap:12px}
.mlc-sel{flex:1;display:flex;flex-direction:column;gap:6px;min-width:0}
.mlc-sel-cap{font-size:12px;color:#8fa6b2}
.mlc-sel select{width:100%;height:46px;padding:0 12px;border-radius:10px;background:#0f2430;border:1px solid #1d3441;color:#e8f1f4;font-size:15px}
.mlc-sel select:focus-visible{outline:2px solid #63cfd6;outline-offset:2px}
.mlc-range-selects .mlp-level-arrow{padding-bottom:12px}

/* Заголовок блока с «?» и подсказки сбоку (лут, размер рейда). */
#ml-product-root .mlc-form .mlc-leg { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; }
#ml-product-root .mlc-form .mlc-leg .mlc-leg-text { flex: 0 1 auto; }
#ml-product-root#ml-product-root .mlc-form .mlc-leg-help { width: 18px; height: 18px; flex: 0 0 18px; margin-left: auto; font-size: 10px; line-height: 1; }
#ml-product-root .mlc-form .mlc-leg .mlc-stops-value { margin-left: auto; font: 700 14px/1.2 Manrope, Arial, sans-serif; color: var(--ml-control-gold, #d5b879); text-align: right; }
#ml-product-root .mlc-form .mlc-leg-text + .mlc-leg-help { margin-left: 0; }
#ml-product-root .mlc-form .mlc-side-tip { position: fixed; z-index: 99999; left: 0; top: 0; box-sizing: border-box; padding: 11px 13px; border-radius: 10px; background: #151927; border: 1px solid #69568d; box-shadow: 0 12px 30px #020814b8; font: 500 12.5px/1.55 Manrope, Arial, sans-serif; color: #e7e6f0; text-align: left; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s; }
#ml-product-root .mlc-form .mlc-side-tip.is-on { opacity: 1; visibility: visible; }
#ml-product-root .mlc-form .mlc-side-tip em { font-style: normal; font-weight: 700; }
#ml-product-root .mlc-form .mlc-side-tip em.gold { color: var(--ml-control-gold, #d5b879); }
#ml-product-root .mlc-form .mlc-side-tip em.teal { color: #70cbd0; }

/* Бегунок с отсечками: кнопки под шкалой, при 5 штуках 3 + 2. */
#ml-product-root .mlc-form .mlc-stops-pills { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
#ml-product-root .mlc-form .mlc-stops-pills[data-n="5"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
#ml-product-root .mlc-form .mlc-stops-pills[data-n="5"] .mlc-stop:nth-child(-n+3) { grid-column: span 2; }
#ml-product-root .mlc-form .mlc-stops-pills[data-n="5"] .mlc-stop:nth-child(n+4) { grid-column: span 3; }
#ml-product-root .mlc-form .mlc-stops-pills[data-n="7"] { grid-template-columns: repeat(12, minmax(0, 1fr)); }
#ml-product-root .mlc-form .mlc-stops-pills[data-n="7"] .mlc-stop:nth-child(-n+4) { grid-column: span 3; }
#ml-product-root .mlc-form .mlc-stops-pills[data-n="7"] .mlc-stop:nth-child(n+5) { grid-column: span 4; }

/* Бегунок с отсечками: свой «ползунок» — подсвеченная отсечка, родной скрываем, чтобы не двоился. */
#ml-product-root .mlc-form .mlc-stops-group .mlg-single-range input[type="range"]::-webkit-slider-thumb { opacity: 0; }
#ml-product-root .mlc-form .mlc-stops-group .mlg-single-range input[type="range"]::-moz-range-thumb { opacity: 0; }
#ml-product-root .mlc-form .mlc-stops-group .mlc-count-dot { transition: background .15s, box-shadow .15s, transform .15s; }
#ml-product-root .mlc-form .mlc-stops-group .mlc-count-dot.is-cur { background: var(--ml-control-gold, #d5b879); box-shadow: 0 0 0 3px rgba(213,184,121,.28); transform: scale(1.35); }

/* Золото и другие количества со ступенями: быстрые кнопки и заметная скидка за объём */
#ml-product-root .mlc-form .mlc-pills-presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; }
#ml-product-root#ml-product-root .mlc-form .mlc-pills-presets .mlc-pill { padding: 10px 0; text-align: center; border-radius: 10px; font-size: 13px; }
#ml-product-root .mlc-form .mlc-discount-card { margin-top: 14px; padding: 12px; border: 1px solid rgba(95,201,134,.38); border-radius: 14px; background: linear-gradient(180deg, rgba(95,201,134,.12), rgba(95,201,134,.04)); }
#ml-product-root .mlc-form .mlc-discount-card .mlc-pills-title { display: block; margin: 0 0 10px; color: #8be0ad; font: 800 11px/1.2 Manrope, Arial, sans-serif; letter-spacing: .07em; text-transform: uppercase; }
#ml-product-root .mlc-form .mlc-tier-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
#ml-product-root#ml-product-root .mlc-form .mlc-tier { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 6px; border: 1px solid rgba(95,201,134,.5); border-radius: 10px; background: rgba(95,201,134,.1); cursor: pointer; }
#ml-product-root#ml-product-root .mlc-form .mlc-tier b { font: 800 16px/1.1 Manrope, Arial, sans-serif; color: #9cf0bd; }
#ml-product-root#ml-product-root .mlc-form .mlc-tier span { font: 600 11px/1.2 Manrope, Arial, sans-serif; color: #9fb4c0; }
#ml-product-root#ml-product-root .mlc-form .mlc-tier.is-active { background: #8be0ad; border-color: #8be0ad; }
#ml-product-root#ml-product-root .mlc-form .mlc-tier.is-active b, #ml-product-root#ml-product-root .mlc-form .mlc-tier.is-active span { color: #0b1a12; }
#ml-product-root .mlc-form .mlc-discount-card .mlg-discount { margin: 10px 0 0; text-align: center; color: #c9e9d6; font: 600 12px/1.3 Manrope, Arial, sans-serif; }

/* Список вариантов (display: "list") — как «Способ передачи» в золоте */
#ml-product-root .mlc-list { display: flex; flex-direction: column; gap: 6px; }
#ml-product-root .mlc-li { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid #344956; border-left-width: 3px; border-radius: 8px; background: #152530; cursor: pointer; transition: background .15s, border-color .15s; }
#ml-product-root .mlc-li[hidden] { display: none; }
#ml-product-root .mlc-li:hover { border-color: #46636f; }
#ml-product-root .mlc-li > input { position: absolute; opacity: 0; pointer-events: none; }
#ml-product-root .mlc-li-dot { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 2px solid #5d7884; box-sizing: border-box; }
#ml-product-root .mlc-li.is-active { background: #15343f; border-color: #5297a0; border-left-color: #d5b879; }
#ml-product-root .mlc-li.is-active .mlc-li-dot { border-color: #d5b879; box-shadow: inset 0 0 0 3px #152530; background: #d5b879; }
#ml-product-root .mlc-li > input:focus-visible ~ .mlc-li-dot { outline: 2px solid #5297a0; outline-offset: 2px; }
#ml-product-root .mlc-li-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#ml-product-root .mlc-li-head { display: flex; align-items: center; gap: 8px; }
#ml-product-root .mlc-li-icon { font: normal 16px/1 system-ui, sans-serif; display: inline-flex; width: 18px; justify-content: center; }
#ml-product-root .mlc-li-icon img { width: 18px; height: 18px; object-fit: contain; }
#ml-product-root .mlc-li-label { font: 700 13px/1.35 Manrope, Arial, sans-serif; color: #e7f0f4; }
#ml-product-root .mlc-li.is-active .mlc-li-label { color: #fff; }
#ml-product-root .mlc-li-desc { display: none; font: 400 12px/1.5 Manrope, Arial, sans-serif; color: #9fb6c0; }
#ml-product-root .mlc-li.is-active .mlc-li-desc { display: block; }
#ml-product-root .mlc-li-side { display: flex; align-items: center; gap: 8px; flex: none; margin-top: 1px; }
#ml-product-root .mlc-li-tag { font: 600 12px/1.3 Manrope, Arial, sans-serif; color: #b9eff1; white-space: nowrap; }
#ml-product-root .mlc-li-tag:empty { display: none; }
#ml-product-root .mlc-li-help { display: inline-flex; align-items: center; justify-content: center; cursor: help; }
/* Один вариант — строкой, без выбора */
#ml-product-root .mlc-li.mlc-li-single { cursor: default; border-left-color: #d5b879; }
#ml-product-root .mlc-li.mlc-li-single:hover { border-color: #344956; border-left-color: #d5b879; }
#ml-product-root .mlc-li.mlc-li-single .mlc-li-desc { display: block; }

/* Выпадающий список галочек (профессии и т.п.) */
.mlc-drop .mlc-drop-head{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;box-sizing:border-box;min-height:44px;padding:10px 14px;border:1px solid rgba(213,184,121,.28);border-radius:10px;background:rgba(255,255,255,.04);color:inherit;font:inherit;font-size:14px;text-align:left;cursor:pointer}
.mlc-drop .mlc-drop-head:hover,.mlc-drop.is-open .mlc-drop-head{border-color:rgba(213,184,121,.6)}
.mlc-drop .mlc-drop-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.75}
.mlc-drop.has-value .mlc-drop-text{opacity:1;color:#d5b879}
.mlc-drop .mlc-drop-arrow{flex:none;transition:transform .15s}
.mlc-drop.is-open .mlc-drop-arrow{transform:rotate(180deg)}
.mlc-drop .mlc-drop-panel{margin-top:6px}
.mlc-drop .mlc-drop-panel[hidden]{display:none}

/* стрелка «Вам может понравиться»: позиционируется по панели рекомендаций, а не по обёртке виджета */
#mlp-recommendation-panel .elementor-widget-html:has(.mlp-rec-next) { position: static !important; }

/* выбор игрового мира: флаг слева от названия, кнопки на всю ширину; скрытый блок остаётся скрытым */
#ml-product-root fieldset[hidden] { display: none !important; }
#ml-product-root .mlc-realm .mlc-segments > label > span { flex-direction: row; align-items: center; justify-content: center; gap: 8px; }

/* мелкие отсечки бегунка количества: ui.tick_step */
#ml-product-root .mlc-form .mlc-count-tick { position: absolute; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #4a6575; pointer-events: none; z-index: 1; }
/* бирка у варианта списка (например, «Рекомендуем» у выкупа в торговой лавке) */
#ml-product-root .mlc-li-head:has(.mlc-li-badge) { flex-wrap: wrap; row-gap: 4px; }
#ml-product-root .mlc-li-badge { display: inline-flex; align-items: center; margin-left: 0; padding: 2px 7px; border: 1px solid rgba(112, 203, 208, .45); border-radius: 999px; color: #8fe0e4; font: 600 11px/1.4 Manrope, Arial, sans-serif; }
