/* MODNOTAK: cart modal — окно «Товар добавлен в корзину» (js/mdn-cart-modal.js, settings/mdn-cart-modal.html). Тёмная тема — html[data-up-theme=dark]. */
html.mdn-am-lock, html.mdn-am-lock body { overflow: hidden; }
.mdn-am-ov { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(28, 27, 26, .45); opacity: 0; transition: opacity .2s; }
.mdn-am-ov.is-open { opacity: 1; }
.mdn-am { position: relative; width: 100%; max-width: 35rem; max-height: calc(100vh - 2rem); overflow-y: auto; padding: 1.5rem; border-radius: 1rem; background: #fff; color: #1c1b1a; font-size: .9375rem; line-height: 1.4; box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .18); transform: translateY(.75rem) scale(.98); transition: transform .2s; }
.mdn-am-ov.is-open .mdn-am { transform: none; }
.mdn-am:focus { outline: none; }
.mdn-am__head { display: flex; align-items: center; gap: .625rem; margin-bottom: 1.25rem; }
.mdn-am__ok { flex: none; display: flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: #e8f5e9; color: #2e7d32; }
.mdn-am__title { flex: 1; font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.mdn-am__x { flex: none; display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; margin: -.25rem -.25rem -.25rem 0; padding: 0; border: 0; border-radius: .5rem; background: none; color: #8a8680; cursor: pointer; }
.mdn-am__x:hover { color: #1c1b1a; background: #f3f1ec; }
.mdn-am__item { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid #ece9e4; }
.mdn-am__img { flex: none; display: block; width: 5rem; height: 5rem; padding: .25rem; border: 1px solid #ece9e4; border-radius: .625rem; background: #fff; }
.mdn-am__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mdn-am__info { flex: 1; min-width: 0; }
.mdn-am__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: inherit; font-weight: 500; text-decoration: none; }
.mdn-am__name:hover { color: var(--up-accent-color, #ef6c00); }
.mdn-am__sku { margin-top: .25rem; color: #8a8680; font-size: .8125rem; }
.mdn-am__opt { margin-top: .25rem; color: #55524d; font-size: .8125rem; }
html[data-up-theme=dark] .mdn-am__opt { color: #bdbab5; }
.mdn-am__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .625rem; }
.mdn-am__qty { display: flex; align-items: center; height: 2.25rem; border: 1px solid #e1ded8; border-radius: .5rem; }
.mdn-am__qty button { width: 2.125rem; height: 100%; padding: 0; border: 0; background: none; color: #55524d; font-size: 1.125rem; line-height: 1; cursor: pointer; }
.mdn-am__qty button:disabled { opacity: .35; cursor: default; }
.mdn-am__qty span { min-width: 1.875rem; text-align: center; font-weight: 600; }
.mdn-am__del { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: .5rem; background: none; color: #a5a19b; cursor: pointer; transition: color .15s, background-color .15s; }
.mdn-am__del:hover { color: #c62828; background: #fbeeee; }
.mdn-am__del:focus-visible { outline: 2px solid #ef6c00; outline-offset: 1px; }
.mdn-am__price { margin-left: auto; text-align: right; white-space: nowrap; }
.mdn-am__price s { margin-right: .375rem; color: #a5a19b; font-size: .8125rem; }
.mdn-am__price strong { font-size: 1.1875rem; font-weight: 700; }
.mdn-am__unit { color: #8a8680; font-size: .75rem; }
.mdn-am__free { margin-top: 1rem; color: #55524d; font-size: .8125rem; }
.mdn-am__free b { color: #1c1b1a; }
.mdn-am__bar { height: .375rem; margin-top: .5rem; overflow: hidden; border-radius: .1875rem; background: #f1eee9; }
.mdn-am__bar i { display: block; height: 100%; border-radius: .1875rem; background: var(--up-accent-color, #ef6c00); transition: width .3s; }
.mdn-am__free.is-ok b { color: #2e7d32; }
.mdn-am__free.is-ok .mdn-am__bar i { background: #43a047; }
.mdn-am__total { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; color: #55524d; font-size: .875rem; }
.mdn-am__total b { color: #1c1b1a; font-size: .9375rem; }
.mdn-am__disc { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; color: #2e7d32; font-size: .875rem; }
.mdn-am__disc b { font-weight: 600; }
.mdn-am__total--disc { margin-top: .375rem; }
.mdn-am__btns { display: flex; gap: .75rem; margin-top: 1.25rem; }
.mdn-am__btns > * { flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem; height: 3rem; padding: 0 1rem; border-radius: .625rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.mdn-am__cont { border: 1px solid #1c1b1a; background: none; color: #1c1b1a; }
.mdn-am__cont:hover { background: #1c1b1a; color: #fff; }
.mdn-am__go, .mdn-am__go:visited { border: 1px solid var(--up-accent-color, #ef6c00); background: var(--up-accent-color, #ef6c00); color: #fff; }
.mdn-am__go:hover { border-color: var(--up-accent-dark-10, #d65f00); background: var(--up-accent-dark-10, #d65f00); color: #fff; }
.mdn-am.is-busy .mdn-am__row, .mdn-am.is-busy .mdn-am__total, .mdn-am.is-busy .mdn-am__disc, .mdn-am.is-busy .mdn-am__free { opacity: .5; }

html[data-up-theme=dark] .mdn-am-ov { background: rgba(0, 0, 0, .6); }
html[data-up-theme=dark] .mdn-am { border: 1px solid rgba(255, 255, 255, .08); background: #242322; color: #eceae6; box-shadow: none; }
html[data-up-theme=dark] .mdn-am__ok { background: rgba(76, 175, 80, .15); color: #66bb6a; }
html[data-up-theme=dark] .mdn-am__x:hover { color: #fff; background: rgba(255, 255, 255, .08); }
html[data-up-theme=dark] .mdn-am__item, html[data-up-theme=dark] .mdn-am__img { border-color: rgba(255, 255, 255, .1); }
html[data-up-theme=dark] .mdn-am__qty { border-color: rgba(255, 255, 255, .15); }
html[data-up-theme=dark] .mdn-am__qty button, html[data-up-theme=dark] .mdn-am__free, html[data-up-theme=dark] .mdn-am__total { color: #bdbab5; }
html[data-up-theme=dark] .mdn-am__free b, html[data-up-theme=dark] .mdn-am__total b { color: #fff; }
html[data-up-theme=dark] .mdn-am__disc { color: #81c784; }
html[data-up-theme=dark] .mdn-am__del { color: #8a867f; }
html[data-up-theme=dark] .mdn-am__del:hover { color: #ef9a9a; background: rgba(239,154,154,.1); }
html[data-up-theme=dark] .mdn-am__free.is-ok b { color: #66bb6a; }
html[data-up-theme=dark] .mdn-am__bar { background: rgba(255, 255, 255, .1); }
html[data-up-theme=dark] .mdn-am__cont { border-color: rgba(255, 255, 255, .35); color: #fff; }
html[data-up-theme=dark] .mdn-am__cont:hover { border-color: #fff; background: #fff; color: #1c1b1a; }

@media (max-width: 767.98px) {
	.mdn-am-ov { align-items: flex-end; padding: 0; }
	.mdn-am { max-width: none; max-height: 90vh; padding: 1.25rem 1rem calc(1rem + env(safe-area-inset-bottom)); border-radius: 1rem 1rem 0 0; transform: translateY(100%); transition: transform .25s; }
	html[data-up-theme=dark] .mdn-am { border-width: 1px 0 0; }
	.mdn-am__title { font-size: 1.0625rem; }
	.mdn-am__img { width: 4rem; height: 4rem; }
	.mdn-am__btns { flex-direction: column-reverse; gap: .5rem; }
	.mdn-am__btns > * { flex: none; }
}
