/* Akumulatoru meklētājs: modal + phone bottom sheet (catalog and product pages). */

.ac-fm { position: fixed; inset: var(--ac-adminbar) 0 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ac-fm[hidden] { display: none; }
.ac-fm__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity 200ms ease; }
.ac-fm__dialog { position: relative; display: flex; flex-direction: column; width: 720px; max-width: 100%; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); background: var(--ac-white); border-radius: 16px; box-shadow: var(--ac-shadow-lg); outline: 0; opacity: 0; transform: translateY(12px) scale(.98); transition: opacity 200ms ease, transform 240ms var(--ac-ease-out); }
.ac-fm.is-open .ac-fm__overlay { opacity: 1; }
.ac-fm.is-open .ac-fm__dialog { opacity: 1; transform: none; }
.ac-fm__grabber { display: none; }
.ac-fm__head { flex: none; display: flex; align-items: center; gap: 14px; padding: 24px 24px 24px 28px; border-bottom: 1px solid var(--ac-grey-200); }
.ac-fm__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--ac-green); color: var(--ac-black); }
.ac-fm__titles { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ac-fm__title { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.ac-fm__sub { font-size: 13px; line-height: 1.45; color: var(--ac-text-2); }
.ac-fm__close { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; background: var(--ac-light); transition: background-color var(--ac-fast) ease; }
.ac-fm__close:hover { background: var(--ac-grey-200); }
.ac-fm__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 28px; padding: 24px 28px 28px; }
.ac-fm__tip { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 12px; background: var(--ac-light); }
.ac-fm__label { flex: none; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 8px; background: var(--ac-graphite); }
.ac-fm__label small { font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: var(--ac-on-dark-2); }
.ac-fm__label strong { font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--ac-green); white-space: nowrap; }
.ac-fm__tip-text { font-size: 13px; line-height: 1.45; color: var(--ac-text-2); }
.ac-fm__step { display: flex; flex-direction: column; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ac-fm__step-head { display: flex; align-items: center; gap: 10px; padding: 0; float: left; width: 100%; font-size: 15px; font-weight: 500; line-height: 1.5; }
.ac-fm__step-head + * { clear: both; }
.ac-fm__step-head small { font-size: 13px; font-weight: 400; line-height: 1.45; color: var(--ac-mid); }
.ac-fm__num { flex: none; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 999px; background: var(--ac-black); color: var(--ac-white); font-size: 13px; font-weight: 500; line-height: 1.4; }
.ac-fm__row { display: grid; gap: 12px; }
.ac-fm__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ac-fm__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ac-fm__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ac-fm__flabel { font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--ac-text-2); }
.ac-fm__input { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border: 1px solid var(--ac-grey-300); border-radius: 8px; background: var(--ac-white); transition: border-color var(--ac-fast) ease, box-shadow var(--ac-fast) ease; }
.ac-fm__input:has(input:not(:placeholder-shown)) { border-color: var(--ac-black); }
.ac-fm__input:focus-within { border-color: var(--ac-black); box-shadow: 0 0 0 3px rgba(128, 251, 0, .35); }
.ac-fm__input input { flex: 1 1 auto; width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; line-height: 1.5; color: var(--ac-black); }
.ac-fm__input input::placeholder { color: var(--ac-grey-300); }
.ac-fm__input > span { flex: none; font-size: 13px; line-height: 1.45; color: var(--ac-mid); }
.ac-fm__hint { font-size: 13px; line-height: 1.45; color: var(--ac-mid); }
.ac-fm__summary-hint { display: none; }
.ac-fm__pol-hint { display: none; }
.ac-fm .is-pol-unknown .ac-fm__pol-hint { display: block; }
.ac-fm__pols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ac-fm__pol { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 12px 14px; border: 1px solid var(--ac-grey-300); border-radius: 12px; background: var(--ac-white); cursor: pointer; transition: border-color var(--ac-fast) ease, background-color var(--ac-fast) ease, box-shadow var(--ac-fast) ease; }
.ac-fm__pol:hover { border-color: var(--ac-black); }
.ac-fm__pol input { position: absolute; opacity: 0; pointer-events: none; }
.ac-fm__pol:has(input:checked) { border-color: var(--ac-black); background: var(--ac-green-tint); box-shadow: 0 0 0 1px var(--ac-black); }
.ac-fm__pol:has(input:focus-visible) { outline: 2px solid var(--ac-green-text); outline-offset: 2px; }
.ac-fm__pol-check { position: absolute; left: 8px; top: 8px; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 999px; background: var(--ac-black); color: var(--ac-white); opacity: 0; transform: scale(.6); transition: opacity var(--ac-fast) ease, transform var(--ac-fast) ease; }
.ac-fm__pol:has(input:checked) .ac-fm__pol-check { opacity: 1; transform: none; }
.ac-fm__art { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 112px; height: 64px; }
.ac-fm__case { position: relative; display: flex; align-items: center; justify-content: space-between; width: 112px; height: 48px; padding: 0 17px; border-radius: 6px; background: var(--ac-grey-700); font-size: 20px; font-weight: 600; line-height: 1; }
.ac-fm__pol--right .ac-fm__case { background: var(--ac-black); }
.ac-fm__t { position: relative; width: 20px; text-align: center; color: var(--ac-white); }
.ac-fm__t::before { content: ""; position: absolute; left: 0; top: -22px; width: 20px; height: 10px; background: var(--ac-grey-300); }
.ac-fm__pol--right .ac-fm__t--r, .ac-fm__pol--left .ac-fm__t--l { color: var(--ac-green); }
.ac-fm__pol--right .ac-fm__t--r::before, .ac-fm__pol--left .ac-fm__t--l::before { background: var(--ac-green); }
.ac-fm__art .ac-fm__q { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 999px; background: var(--ac-light); color: var(--ac-mid); font-size: 20px; font-weight: 600; }
.ac-fm__pol-label { font-size: 13px; font-weight: 500; line-height: 1.4; }
.ac-fm__foot { flex: none; display: flex; align-items: center; gap: 16px; padding: 20px 28px; border-top: 1px solid var(--ac-grey-200); }
.ac-fm__clear { margin-right: auto; font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--ac-text-2); }
.ac-fm__clear:hover { color: var(--ac-black); }
.ac-fm__count { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.45; color: var(--ac-text-2); }
.ac-fm__count:empty, .ac-fm__count:has([data-ac-fm-count]:empty) { visibility: hidden; }
.ac-fm__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ac-green); }
.ac-fm.is-empty .ac-fm__dot { background: var(--ac-error); }
.ac-fm.is-counting .ac-fm__count { opacity: .6; }
.ac-fm__submit { gap: 10px; padding-inline: 24px; }
.ac-fm.is-empty .ac-fm__submit { background: var(--ac-light); color: var(--ac-mid); }

/* Bottom sheet on phones (Figma 61:2982) */
@media (max-width: 767px) {
	.ac-fm { align-items: flex-end; padding: 0; }
	.ac-fm__dialog { width: 100%; max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px); height: calc(100dvh - 60px); border-radius: 20px 20px 0 0; transform: translateY(100%); transition: opacity 120ms ease, transform 280ms var(--ac-ease-out); opacity: 1; }
	.ac-fm__grabber { flex: none; display: block; height: 12px; padding-top: 8px; }
	.ac-fm__grabber::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto; border-radius: 2px; background: var(--ac-grey-300); }
	.ac-fm__head { gap: 12px; padding: 12px 16px; border-bottom: 0; }
	.ac-fm__icon { display: none; }
	.ac-fm__title { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
	.ac-fm__close { border-radius: 999px; }
	.ac-fm__body { gap: 24px; padding: 8px 16px 24px; }
	.ac-fm__tip { padding: 0; background: none; }
	.ac-fm__label { flex: 1 1 auto; flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; }
	.ac-fm__tip-text { display: none; }
	.ac-fm__step { gap: 10px; }
	.ac-fm__step-head { gap: 8px; }
	.ac-fm__step-head small, .ac-fm__step .ac-fm__hint:not(.ac-fm__pol-hint) { display: none; }
	.ac-fm__num { width: 22px; height: 22px; font-size: 12px; font-weight: 600; line-height: 1.3; }
	.ac-fm__row { gap: 8px; }
	.ac-fm__flabel { font-weight: 400; line-height: 1.45; }
	.ac-fm__input { padding: 0 10px 0 12px; }
	.ac-fm__input input { font-size: 16px; }
	.ac-fm__pols { gap: 8px; }
	.ac-fm__pol { gap: 8px; padding: 12px 8px; border-radius: 10px; }
	.ac-fm__pol-check { left: 6px; top: 6px; width: 18px; height: 18px; }
	.ac-fm__pol-check .ac-icon { width: 12px; height: 12px; }
	.ac-fm__art { width: 72px; height: 44px; }
	.ac-fm__case { width: 72px; height: 32px; padding: 0 9px; border-radius: 4px; font-size: 13px; font-weight: 500; }
	.ac-fm__t { width: 14px; }
	.ac-fm__t::before { top: -14px; width: 14px; height: 8px; }
	.ac-fm__art .ac-fm__q { width: 36px; height: 36px; margin-bottom: 4px; font-size: 15px; font-weight: 500; }
	.ac-fm__pol-label { font-weight: 400; line-height: 1.45; }
	.ac-fm__summary-hint { display: block; }
	.ac-fm__foot { gap: 12px; padding: 12px 16px 28px; }
	.ac-fm__count { display: none; }
	.ac-fm__clear { margin-right: 0; }
	.ac-fm__submit { flex: 1 1 auto; }

}

