/* Ferrli augimas – dovanos langas, garantinė forma, pasiūlymai krepšelyje. */
:root {
	--flg-ink: #161513;
	--flg-body: #5f5b55;
	--flg-faint: #9b968e;
	--flg-paper: #f5f3f0;
	--flg-blush: #f7d6de;
	--flg-rose: #b78394;
	--flg-gold: #9c7715;
	--flg-line: rgba(22, 21, 19, .12);
	--flg-ease: cubic-bezier(.2, .8, .2, 1);
}
html.flg-lock { overflow: hidden; }

/* ---------- Dovanos langas ---------- */
.flg[hidden] { display: none !important; }
.flg { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; font-family: "Poppins", "Montserrat", Arial, sans-serif; }
.flg__veil { position: absolute; inset: 0; background: rgba(22, 21, 19, .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .32s var(--flg-ease); }
.flg__box { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 38px 32px 28px; border-radius: 28px; background: #fff; color: var(--flg-ink); text-align: center; box-shadow: 0 40px 90px -30px rgba(22, 21, 19, .45); opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .32s var(--flg-ease), transform .42s var(--flg-ease); isolation: isolate; }
.flg.is-in .flg__veil { opacity: 1; }
.flg.is-in .flg__box { opacity: 1; transform: none; }
.flg__art { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.flg__orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .75; }
.flg__orb--a { width: 260px; height: 260px; top: -120px; left: -80px; background: var(--flg-blush); animation: flg-float 9s ease-in-out infinite; }
.flg__orb--b { width: 220px; height: 220px; right: -90px; bottom: -110px; background: #f1e4c8; animation: flg-float 11s ease-in-out infinite reverse; }
@keyframes flg-float { 50% { transform: translate(24px, 16px) scale(1.08); } }
.flg__x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .7); color: var(--flg-ink); font-size: 24px; line-height: 1; cursor: pointer; transition: background-color .2s; }
.flg__x:hover { background: var(--flg-paper); }
.flg__kicker { margin: 0 0 8px; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--flg-rose); }
.flg__title { margin: 0 0 22px; font-family: "Montserrat", "Poppins", Arial, sans-serif; font-size: clamp(22px, 5vw, 28px); font-weight: 300; line-height: 1.18; letter-spacing: -.01em; text-wrap: balance; }

.flg__card { position: relative; height: 132px; margin: 0 auto 22px; border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, #fff 0%, #fbf3f5 55%, #f7ead0 100%); box-shadow: inset 0 0 0 1px rgba(156, 119, 21, .22), 0 14px 30px -18px rgba(156, 119, 21, .55); }
.flg__prize { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.flg__pct { font-family: "Montserrat", Arial, sans-serif; font-size: 54px; font-weight: 600; line-height: 1; letter-spacing: -.03em; background: linear-gradient(120deg, #8a6a14, #c9a24a 45%, #8a6a14); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flg__prize-t { font-size: 13px; color: var(--flg-body); }
.flg__card.is-open .flg__pct { animation: flg-pop .6s var(--flg-ease) both; }
@keyframes flg-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: none; } }
.flg__foil { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; transition: opacity .35s; border-radius: inherit; }
.flg__foil:focus-visible { outline: 2px solid var(--flg-ink); outline-offset: -4px; }
.flg__foil.is-gone, .flg__card.is-open .flg__foil { opacity: 0; pointer-events: none; }
.flg__hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .78); color: var(--flg-ink); font-size: 12px; font-weight: 500; letter-spacing: .04em; pointer-events: none; transition: opacity .25s; }
.flg__hint::before { content: ""; display: inline-block; width: 14px; height: 14px; margin: -2px 8px 0 0; vertical-align: middle; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; }
.flg__hint.is-nudge { animation: flg-nudge 1.4s ease-in-out 2; }
@keyframes flg-nudge { 25% { transform: translate(-58%, -50%); } 75% { transform: translate(-42%, -50%); } }
.flg__hint.is-gone, .flg__card.is-open .flg__hint { opacity: 0; }

.flg__form { display: grid; gap: 12px; text-align: left; transition: opacity .35s var(--flg-ease), transform .35s var(--flg-ease), max-height .45s var(--flg-ease); }
.flg__form[aria-hidden="true"] { opacity: .32; transform: translateY(6px); pointer-events: none; filter: grayscale(.4); }
.flg__form[hidden] { display: none; }
.flg__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.flg__field input { width: 100%; height: 54px; padding: 0 18px; border: 1px solid var(--flg-line); border-radius: 999px; background: #fff; font: 400 16px/1 inherit; font-family: inherit; color: var(--flg-ink); outline: 0; transition: border-color .2s, box-shadow .2s; }
.flg__field input:focus { border-color: var(--flg-ink); box-shadow: 0 0 0 4px rgba(22, 21, 19, .06); }
.flg__form.is-bad .flg__field input { border-color: #a23b3b; }
.flg__ok { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 12px; line-height: 1.55; color: var(--flg-body); cursor: pointer; }
.flg__ok input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--flg-ink); }
.flg__ok.is-bad { color: #a23b3b; }
.flg__ok a { color: inherit; }
.flg__btn { width: 100%; min-height: 54px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--flg-ink); color: #fff; font: 500 15px/1 inherit; font-family: inherit; letter-spacing: .02em; cursor: pointer; transition: transform .2s var(--flg-ease), background-color .2s; }
.flg__btn:hover { transform: translateY(-1px); background: #2b2925; }
.flg__btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.flg__btn--ghost { background: transparent; color: var(--flg-ink); box-shadow: inset 0 0 0 1px var(--flg-line); }
.flg__btn--ghost:hover { background: var(--flg-paper); }
.flg__msg { margin: 0; font-size: 13px; text-align: center; }
.flg__msg:empty { display: none; }
.flg__msg.is-bad { color: #a23b3b; }
.flg__done[hidden] { display: none; }
.flg__done { display: grid; gap: 12px; animation: flg-pop .5s var(--flg-ease) both; }
.flg__done-t { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--flg-faint); }
.flg__code { position: relative; min-height: 60px; border: 1.5px dashed rgba(156, 119, 21, .55); border-radius: 16px; background: #fffaf0; color: var(--flg-ink); font: 600 24px/1 "Montserrat", monospace; letter-spacing: .14em; cursor: copy; }
.flg__code::after { content: "⧉"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--flg-gold); }
.flg__code.is-copied::after { content: "✓"; }
.flg__done-n { margin: 0; font-size: 13px; line-height: 1.6; color: var(--flg-body); }
@media (max-width: 520px) {
	.flg { align-items: end; padding: 0; }
	.flg__box { width: 100%; padding: 32px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; transform: translateY(40px); }
	.flg__card { height: 118px; }
	.flg__pct { font-size: 46px; }
}

/* ---------- Garantinė pretenzija ---------- */
.flw { scroll-margin-top: 90px; }
.flw__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.flw__aside { position: sticky; top: 110px; }
.flw__aside .fl-h2 { margin: 10px 0 14px; }
.flw__steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.flw__steps li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--flg-line); font-size: 14px; color: var(--flg-ink); }
.flw__steps b { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--flg-blush); font-size: 13px; font-weight: 600; }
.flw__form .fl-f select { width: 100%; height: 52px; padding: 0 40px 0 16px; border: 1px solid var(--flg-line); border-radius: 14px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23161513' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center; font: 400 16px/1.4 "Poppins", Arial, sans-serif; color: var(--flg-ink); -webkit-appearance: none; appearance: none; outline: 0; }
.flw__form .fl-f select:focus { border-color: var(--flg-ink); box-shadow: 0 0 0 4px rgba(22, 21, 19, .06); }
.flw__form .fl-f.is-bad select { border-color: #a23b3b; }
.flw__form .fl-f input[type="date"] { -webkit-appearance: none; appearance: none; }
.flw__drop { position: relative; display: grid; justify-items: center; gap: 6px; margin: 4px 0 16px; padding: 22px 16px; border: 1.5px dashed rgba(22, 21, 19, .2); border-radius: 18px; background: #fff; text-align: center; cursor: pointer; transition: border-color .2s, background-color .2s; }
.flw__drop:hover, .flw__drop.is-over { border-color: var(--flg-rose); background: #fdf7f8; }
.flw__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.flw__drop-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--flg-paper); color: var(--flg-ink); }
.flw__drop-t { font-size: 14px; font-weight: 500; color: var(--flg-ink); }
.flw__drop-s { font-size: 12px; color: var(--flg-faint); }
.flw__thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.flw__thumbs:empty { display: none; }
.flw__th { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--flg-paper); font-size: 12px; font-weight: 600; color: var(--flg-body); }
.flw__th img { width: 100%; height: 100%; object-fit: cover; }
.flw__th-x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(22, 21, 19, .72); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
.flw__ok { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin: 0 0 18px; font-size: 13px; line-height: 1.55; color: var(--flg-body); cursor: pointer; }
.flw__ok input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--flg-ink); }
.flw__ok.is-bad { color: #a23b3b; }
.flw__ok a { color: inherit; }
.flw__btn { width: 100%; }
.flw__done[hidden] { display: none; }
.flw__done { grid-column: 2; display: grid; justify-items: center; gap: 8px; padding: clamp(32px, 5vw, 56px) 24px; border-radius: 26px; background: var(--flg-paper); text-align: center; animation: flg-pop .5s var(--flg-ease) both; }
.flw__done h3 { margin: 8px 0 0; font-family: "Montserrat", Arial, sans-serif; font-size: 26px; font-weight: 300; }
.flw__done p { max-width: 380px; margin: 0; font-size: 14px; line-height: 1.6; color: var(--flg-body); }
.flw__seal { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--flg-ink); color: #fff; }
.flw__no { padding: 10px 20px; border-radius: 999px; background: #fff; font: 600 18px/1 "Montserrat", monospace !important; letter-spacing: .1em; color: var(--flg-ink) !important; }
@media (max-width: 900px) {
	.flw__grid { grid-template-columns: 1fr; }
	.flw__aside { position: static; }
	.flw__done { grid-column: 1; }
}

/* ---------- Pasiūlymai šoniniame krepšelyje ---------- */
.flu { margin: 14px 0 4px; padding: 14px 0 0; border-top: 1px solid var(--flg-line); }
.flu__h { margin: 0 0 10px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--flg-faint); }
.flu__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(132px, 1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.flu__row::-webkit-scrollbar { display: none; }
.flu__card { position: relative; display: grid; grid-template-rows: auto auto 1fr; gap: 4px; padding: 8px 8px 10px; border-radius: 16px; background: var(--flg-paper); scroll-snap-align: start; transition: transform .25s var(--flg-ease); }
.flu__card:hover { transform: translateY(-2px); }
.flu__img { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #fff; }
.flu__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flu__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; padding-right: 30px; font-size: 12px; line-height: 1.35; color: var(--flg-ink); text-decoration: none; }
.flu__price { font-size: 12px; font-weight: 500; color: var(--flg-ink); align-self: end; }
.flu__price del { color: var(--flg-faint); font-weight: 400; margin-right: 4px; }
.flu__price ins { text-decoration: none; }
.flu__add { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--flg-ink); color: #fff !important; text-decoration: none; transition: transform .2s var(--flg-ease), background-color .2s; }
.flu__add:hover { transform: scale(1.08); }
.flu__add.loading { opacity: .5; pointer-events: none; }
.flu__add.added { background: #2f7a4f; }
.flu .added_to_cart { display: none !important; }

@media (prefers-reduced-motion: reduce) {
	.flg__box, .flg__veil, .flg__form, .flu__card { transition: none; }
	.flg__orb, .flg__card.is-open .flg__pct, .flg__done, .flw__done, .flg__hint.is-nudge { animation: none; }
}
