/* Fordiz: уведомление «Товар добавлен в корзину». Карточка плавает над страницей — тень только у неё.
   Значения — из DESIGN.md модуля; файл самодостаточен (подключается и там, где нет стилей шапки). */

.fdz-toast-say{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

#fdz-toast{
	position:fixed;z-index:9990;top:var(--fdz-toast-top,16px);right:var(--fdz-toast-right,25px);
	box-sizing:border-box;width:380px;max-width:calc(100vw - 24px);max-height:calc(100vh - var(--fdz-toast-top,16px) - 16px);
	margin:0;padding:14px 18px 18px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c8d2d9 transparent;
	background:#fff;border:0;border-radius:12px;
	box-shadow:0 22px 44px -18px rgba(10,34,46,.42),0 2px 8px rgba(10,34,46,.08);
	color:#0a222e;font:400 14px/1.45 Rubik,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;text-align:left;letter-spacing:normal;
	opacity:0;transform:translateY(-6px);
	transition:opacity .16s cubic-bezier(.2,.8,.2,1),transform .16s cubic-bezier(.2,.8,.2,1);
	-webkit-tap-highlight-color:transparent;
}
#fdz-toast[hidden]{display:none}
#fdz-toast.is-in{opacity:1;transform:none}
#fdz-toast *,#fdz-toast *::before,#fdz-toast *::after{box-sizing:border-box}
#fdz-toast ::selection{background:#cfe2fd;color:#0a222e}
#fdz-toast p{margin:0;padding:0}
#fdz-toast a{color:inherit;text-decoration:none;box-shadow:none}
#fdz-toast img{display:block;max-width:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none}
#fdz-toast button{margin:0;min-width:0;min-height:0;font:inherit;letter-spacing:normal;text-transform:none;text-shadow:none;box-shadow:none;cursor:pointer;-webkit-appearance:none;appearance:none;touch-action:manipulation}
#fdz-toast a:focus-visible,#fdz-toast button:focus-visible{outline:2px solid #0e7aff;outline-offset:2px}
#fdz-toast svg{display:block;flex:none}

/* шапка карточки */
#fdz-toast .fdz-toast__head{display:flex;align-items:center;gap:10px;margin:0 -8px 12px 0}
#fdz-toast .fdz-toast__mark{display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;border-radius:50%;background:#0a222e;color:#fff}
#fdz-toast .fdz-toast__title{flex:1 1 auto;min-width:0;font-weight:700;font-size:15px;line-height:1.3}
#fdz-toast .fdz-toast__x{display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;padding:0;border:0;border-radius:8px;background:transparent;color:#55666f;transition:background-color .15s,color .15s}
#fdz-toast .fdz-toast__x:hover{background:#f2f5f7;color:#0a222e}

/* добавленный товар */
#fdz-toast .fdz-toast__item{display:grid;grid-template-columns:64px minmax(0,1fr);gap:14px;align-items:start}
#fdz-toast .fdz-toast__item--noimg{grid-template-columns:minmax(0,1fr)}
#fdz-toast .fdz-toast__img{display:block;width:64px;height:64px;border-radius:8px;background:#f2f5f7;overflow:hidden}
#fdz-toast .fdz-toast__img img{width:64px;height:64px;object-fit:contain;mix-blend-mode:multiply}
#fdz-toast .fdz-toast__body{min-width:0}
#fdz-toast .fdz-toast__name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-weight:500;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
#fdz-toast .fdz-toast__name:hover,#fdz-toast .fdz-toast__rname:hover{color:#0a66d6}
#fdz-toast .fdz-toast__ids{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-top:6px}
#fdz-toast .fdz-toast__plate{display:inline-block;padding:0 6px;border:1px solid #c8d2d9;border-radius:4px;background:#fff;font:500 12px/18px ui-monospace,"SF Mono","Cascadia Mono","Roboto Mono",Menlo,Consolas,monospace;letter-spacing:.03em;white-space:nowrap}
#fdz-toast .fdz-toast__brand{font-size:13px;line-height:20px;color:#55666f}

#fdz-toast .fdz-toast__buy{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
#fdz-toast .fdz-toast__qty{display:inline-flex;align-items:stretch;height:40px;border:1px solid #c8d2d9;border-radius:8px;background:#fff}
#fdz-toast .fdz-toast__qty:focus-within{border-color:#0b6fe8;box-shadow:0 0 0 3px rgba(11,111,232,.16)}
#fdz-toast .fdz-toast__step{display:inline-flex;align-items:center;justify-content:center;width:40px;height:38px;padding:0;border:0;border-radius:7px;background:transparent;color:#0a222e;transition:background-color .15s}
#fdz-toast .fdz-toast__step:hover{background:#f2f5f7}
#fdz-toast .fdz-toast__step:disabled{color:#a9b4ba;background:transparent;cursor:default}
#fdz-toast .fdz-toast__step:focus-visible{outline-offset:-2px}
#fdz-toast .fdz-toast__n{display:inline-flex;align-items:center;justify-content:center;min-width:36px;padding:0 2px;font-weight:500;font-size:15px;font-variant-numeric:tabular-nums}
#fdz-toast .fdz-toast__line{font-weight:700;font-size:16px;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums;transition:opacity .15s}
#fdz-toast.is-busy .fdz-toast__line,#fdz-toast.is-busy .fdz-toast__total b:last-child{opacity:.45}
#fdz-toast .fdz-toast__note{margin-top:8px;font-size:13px;line-height:1.4;color:#55666f}
#fdz-toast .fdz-toast__note[hidden]{display:none}

/* итог корзины и переход */
#fdz-toast .fdz-toast__sum{display:flex;align-items:center;justify-content:space-between;gap:10px 16px;margin-top:16px;padding-top:14px;border-top:1px solid #e1e7eb}
#fdz-toast .fdz-toast__total{font-size:13px;line-height:1.4;color:#55666f}
#fdz-toast .fdz-toast__total b{font-weight:500;color:#0a222e;white-space:nowrap;font-variant-numeric:tabular-nums}
#fdz-toast .fdz-toast__go{display:inline-flex;align-items:center;justify-content:center;flex:none;height:42px;padding:0 18px;border-radius:6px;background:#0b6fe8;color:#fff;font-weight:500;font-size:15px;line-height:1;white-space:nowrap;transition:background-color .15s}
#fdz-toast .fdz-toast__go:hover{background:#0a5cc4;color:#fff}

/* с этим товаром покупают */
#fdz-toast .fdz-toast__rel{margin-top:16px;padding-top:14px;border-top:1px solid #e1e7eb}
#fdz-toast .fdz-toast__h{margin-bottom:10px;font-weight:700;font-size:13px;line-height:1.3}
#fdz-toast .fdz-toast__list{display:grid;gap:10px;margin:0;padding:0;list-style:none}
#fdz-toast .fdz-toast__r{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;align-items:center;margin:0;padding:0;list-style:none}
#fdz-toast .fdz-toast__r::before,#fdz-toast .fdz-toast__r::marker{content:none}
#fdz-toast .fdz-toast__r--noimg{grid-template-columns:minmax(0,1fr) auto}
#fdz-toast .fdz-toast__rimg{display:block;width:40px;height:40px;border-radius:6px;background:#f2f5f7;overflow:hidden}
#fdz-toast .fdz-toast__rimg img{width:40px;height:40px;object-fit:contain;mix-blend-mode:multiply}
#fdz-toast .fdz-toast__rinfo{min-width:0}
#fdz-toast .fdz-toast__rname{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:13px;line-height:1.3;overflow-wrap:anywhere}
#fdz-toast .fdz-toast__rprice{display:block;margin-top:2px;font-weight:500;font-size:13px;line-height:1.3;white-space:nowrap;font-variant-numeric:tabular-nums}
#fdz-toast .fdz-toast__add{flex:none;height:36px;padding:0 12px;border:0;border-radius:6px;background:#f2f5f7;color:#0a222e;font-weight:500;font-size:13px;line-height:1;white-space:nowrap;transition:background-color .15s,opacity .15s}
#fdz-toast .fdz-toast__add:hover{background:#e4e9ed}
#fdz-toast .fdz-toast__add:disabled{opacity:.55;cursor:default}
#fdz-toast .fdz-toast__done{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:13px;line-height:1.35;color:#0a222e}
#fdz-toast .fdz-toast__done .fdz-toast__mark{width:18px;height:18px}
#fdz-toast .fdz-toast__done .fdz-toast__mark svg{width:12px;height:12px}

/* отказ */
#fdz-toast .fdz-toast__why{font-size:14px;line-height:1.5;color:#0a222e}
#fdz-toast .fdz-toast__why p+p{margin-top:6px}
#fdz-toast.fdz-toast--err{padding-bottom:16px}

/* в карточке товара WooCommerce дописывает после кнопки «Просмотр корзины» — переход уже есть в уведомлении */
.fdz-pdp__cart a.added_to_cart{display:none!important}

@media (max-width:768px){
	#fdz-toast{top:auto;right:10px;left:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));width:auto;max-width:none;max-height:calc(100vh - 150px);padding:12px 16px 16px;transform:translateY(8px);
		box-shadow:0 24px 56px -20px rgba(10,34,46,.55),0 2px 8px rgba(10,34,46,.1)}
	body.fdz-shell-on #fdz-toast{bottom:calc(70px + env(safe-area-inset-bottom,0px))}
	body.fdz-shell-on.fdz-bar-on #fdz-toast{bottom:calc(132px + env(safe-area-inset-bottom,0px))}
	#fdz-toast.fdz-toast--top{top:var(--fdz-toast-top,16px);bottom:auto;max-height:var(--fdz-toast-maxh,calc(100vh - 150px));transform:translateY(-8px)}
	#fdz-toast.is-in,#fdz-toast.fdz-toast--top.is-in{transform:none}
	#fdz-toast .fdz-toast__x{width:44px;height:44px}
	#fdz-toast .fdz-toast__qty{height:44px}
	#fdz-toast .fdz-toast__step{width:44px;height:42px}
	#fdz-toast .fdz-toast__go{height:44px}
	#fdz-toast .fdz-toast__add{height:40px}
}
@media (max-width:359px){
	#fdz-toast .fdz-toast__sum{flex-wrap:wrap}
	#fdz-toast .fdz-toast__go{flex:1 1 100%}
}
@media (prefers-reduced-motion:reduce){
	#fdz-toast,#fdz-toast *{transition:none!important}
	#fdz-toast{transform:none}
}
