/* Facebook recommendations under the order buttons. The card is laid out the way Facebook lays out a recommendation: photo, name
   with the pink star badge and "recommends <page>", date and globe, three-dot menu, the words, then the like / comment / share
   icons with their counts on the left and the round reaction badges on the right; a reply from the page sits below. Sizes do not
   change between desktop, tablet and phone: it looks the same everywhere, as the real thing does. */
.insaf-fbr { font-family: system-ui, -apple-system, "Segoe UI", "Segoe UI Historic", Roboto, Helvetica, Arial, "Nirmala UI", "Noto Sans Bengali", sans-serif; -webkit-font-smoothing: antialiased; }
.insaf-fbr__stage { position: relative; }

/* One card per "page", sliding with snap; the mouse can drag it, a finger swipes it. A little room under the strip keeps the
   card's own shadow, and none at the sides so no neighbouring card ever shows. */
/* The frame is fixed: border, corners and shadow never move, so they are there at every moment of a slide. Only the reviews inside it
   move, and they are all as tall as the tallest, so the frame never changes height while sliding. */
.insaf-fbr__frame { overflow: hidden; border: 1px solid #dde1d8; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.insaf-fbr__track { display: flex; align-items: stretch; margin: 0; padding: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; -webkit-overflow-scrolling: touch; }
.insaf-fbr__track::-webkit-scrollbar { display: none; }
.insaf-fbr__track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.insaf-fbr__track:focus-visible, .insaf-fbr__arrow:focus-visible, .insaf-fbr__dot:focus-visible { outline: 2px solid var(--insaf-btn-buy-bg, #0f3d2e); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .insaf-fbr__track:not(.is-dragging) { scroll-behavior: smooth; } }

.insaf-fbr__card { display: flex; flex: 0 0 100%; flex-direction: column; gap: 12px; min-width: 0; padding: 12px 22px 12px; color: #050505; scroll-snap-align: center; scroll-snap-stop: always; box-sizing: border-box; }

/* Header */
.insaf-fbr__who { display: flex; align-items: flex-start; gap: 8px; }
.insaf-fbr__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.insaf-fbr__avatar--letter { display: grid; place-items: center; color: #fff; font-size: 17px; font-weight: 600; line-height: 1; }
.insaf-fbr__meta { min-width: 0; flex: 1; padding-top: 1px; }
.insaf-fbr__line { margin: 0; color: #65676b; font-size: 15px; line-height: 1.3333; }
.insaf-fbr__name { color: #050505; font-weight: 600; }
.insaf-fbr__badge { display: inline-grid; width: 16px; height: 16px; margin: 0 2px 0 3px; place-items: center; border-radius: 4px; vertical-align: -2px; background: linear-gradient(135deg, #ff6a8a, #e5336f); }
.insaf-fbr__says strong { color: #050505; font-weight: 600; }
.insaf-fbr__when { display: flex; align-items: center; gap: 4px; margin: 0; color: #65676b; font-size: 13px; line-height: 1.2308; }
.insaf-fbr__menu { flex: none; display: grid; width: 32px; height: 32px; margin: -4px -8px 0 0; place-items: center; border-radius: 50%; color: #65676b; }

/* The words */
.insaf-fbr__text { font-size: 15px; line-height: 1.3333; overflow-wrap: anywhere; }
/* Short reviews leave room under their words; the like / comment / share row stays at the same place on every review. */
.insaf-fbr__foot { margin-top: auto; }
/* Folded to five lines once the script is running; "See more" opens it. Without the script the whole text simply shows. */
.insaf-fbr.is-js .insaf-fbr__text:not(.is-open) { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.insaf-fbr__more { align-self: flex-start; margin: -6px 0 0; padding: 0; border: 0; color: #65676b; background: none; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.3333; cursor: pointer; }
.insaf-fbr__more:hover { text-decoration: underline; }
.insaf-fbr__more:focus-visible { outline: 2px solid var(--insaf-btn-buy-bg, #0f3d2e); outline-offset: 2px; border-radius: 2px; }

/* Like / comment / share with their counts, reaction badges at the far right */
.insaf-fbr__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; color: #65676b; font-size: 15px; }
.insaf-fbr__acts { display: flex; align-items: center; gap: 20px; }
.insaf-fbr__act { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.insaf-fbr__icon { flex: none; display: block; }
.insaf-fbr__reacts { display: inline-flex; align-items: center; padding-left: 2px; }
.insaf-fbr__react { display: grid; width: 18px; height: 18px; place-items: center; border: 2px solid #fff; border-radius: 50%; box-sizing: content-box; }
.insaf-fbr__react + .insaf-fbr__react { margin-left: -4px; }
.insaf-fbr__react--like { background: #1877f2; }
.insaf-fbr__react--love { background: #f33e58; }
.insaf-fbr__reacts--small .insaf-fbr__react { width: 14px; height: 14px; border-width: 1px; }
.insaf-fbr__reacts--small svg { width: 9px; height: 9px; }

/* The page's reply */
.insaf-fbr__reply { display: flex; align-items: flex-start; gap: 8px; }
.insaf-fbr__reply .insaf-fbr__avatar { width: 32px; height: 32px; font-size: 14px; }
.insaf-fbr__replybody { min-width: 0; flex: 1; }
.insaf-fbr__replyhead { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 0; color: #65676b; font-size: 13px; line-height: 1.2308; }
.insaf-fbr__replyhead strong { color: #050505; font-size: 13px; font-weight: 600; }
.insaf-fbr__author { display: inline-flex; align-items: center; gap: 3px; color: #1877f2; font-weight: 600; }
.insaf-fbr__replytext { margin: 2px 0 0; color: #050505; font-size: 15px; line-height: 1.3333; overflow-wrap: anywhere; }
.insaf-fbr__replyacts { display: flex; align-items: center; gap: 14px; margin: 6px 0 0; color: #65676b; font-size: 13px; font-weight: 600; }
.insaf-fbr__replyacts .insaf-fbr__icon { width: 18px; height: 18px; }
.insaf-fbr__replycount { margin-left: -8px; font-weight: 400; }

/* Arrows on both sides, centred on the card's edge. */
.insaf-fbr__arrow { position: absolute; top: 50%; z-index: 2; display: grid; width: 32px; height: 32px; padding: 0; place-items: center; border: 0; border-radius: 50%; color: #1c1e21; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); cursor: pointer; transform: translateY(-50%); transition: background .2s ease, color .2s ease, transform .15s ease, opacity .2s ease; }
.insaf-fbr__arrow--prev { left: -16px; }
.insaf-fbr__arrow--next { right: -16px; }
.insaf-fbr__arrow:hover:not(:disabled) { color: #fff; background: var(--insaf-btn-buy-bg, #0f3d2e); transform: translateY(-50%) scale(1.06); }
.insaf-fbr__arrow:disabled { opacity: .35; cursor: default; }

/* Dots below, centred. */
.insaf-fbr__dots { display: flex; justify-content: center; gap: 16px; margin-top: 14px; }
.insaf-fbr__dot { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #cdd3c8; cursor: pointer; transition: background .2s ease, width .25s ease; }
.insaf-fbr__dot::after { content: ""; position: absolute; inset: -9px -8px; }
.insaf-fbr__dot.is-active { width: 22px; border-radius: 999px; background: var(--insaf-btn-buy-bg, #0f3d2e); }

/* Air around the slider: clear of the order buttons above, a little before the list below. */
body.single-product div.product div.summary > .insaf-fbr { margin-top: 28px; }
body.single-product div.product div.summary > .insaf-fbr + .insaf-trust { margin-top: 22px; }

@media (prefers-reduced-motion: reduce) { .insaf-fbr__arrow, .insaf-fbr__dot { transition: none; } }

/* A little more readable: the words a real customer wrote are the most persuasive thing on the page; the dots must be seen. */
.insaf-fbr__text, .insaf-fbr__replytext { font-size: 16px; line-height: 1.4; }
.insaf-fbr__dot { width: 9px; height: 9px; background: #aeb8a9; }
.insaf-fbr__dot.is-active { width: 24px; }
