/* SnuggyBee "How it clips on" video (homepage strip, buddy-page box, gallery slide). */
.sb-vid { position: relative; aspect-ratio: 1; overflow: hidden; background: #F4EDE8; border-radius: 18px; }
.sb-vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-vid__play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border: 0; border-radius: 50%; background: rgba(31, 26, 36, .62); color: #fff; font-size: 20px; cursor: pointer; display: grid; place-items: center; padding: 0 0 0 4px; }
.sb-vid__play[hidden] { display: none; }

/* Homepage strip */
.sb-howto { margin: 12px 0 0; padding: 0; background: #FFF7EA; border-bottom: 1px solid rgba(110, 74, 88, .14); } /* full width, like the tabs bar; plain cream + a hairline above the bar */
.sb-howto__in { display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 12px; align-items: center; max-width: var(--sb-max, 1280px); margin: 0 auto; padding: 14px var(--sbh-pad, 16px); }
.sb-howto__vid { border-radius: 14px; }
.sb-howto__title { margin: 0 0 6px; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 19px; line-height: 1.08; letter-spacing: -.01em; color: #1F1A24; }
.sb-howto__steps { margin: 0 0 8px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sb-howto__steps li { display: flex; gap: 7px; align-items: flex-start; font-size: 12px; font-weight: 700; line-height: 1.32; color: #1F1A24; }
.sb-howto__steps b { flex: none; width: 19px; height: 19px; border-radius: 50%; background: #B4235A; color: #fff; display: grid; place-items: center; font-size: 10.5px; line-height: 1; }
.sb-howto__link { font-size: 12px; font-weight: 900; color: #B4235A; text-decoration: underline; }
@media (min-width: 768px) {
	.sb-howto { margin-top: 18px; }
	.sb-howto__in { grid-template-columns: 240px minmax(0, max-content); justify-content: center; gap: 40px; padding: 22px var(--sbh-pad, 24px); }
	.sb-howto__vid { border-radius: 18px; }
	.sb-howto__title { font-size: 30px; margin-bottom: 4px; }
	.sb-howto__steps { margin: 10px 0 12px; gap: 8px; }
	.sb-howto__steps li { font-size: 15px; gap: 10px; }
	.sb-howto__steps b { width: 24px; height: 24px; font-size: 12px; }
	.sb-howto__link { font-size: 13px; }
}

/* Buddy page: box under Add to bag */
.sb-howbox { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; margin: 14px 0 4px; padding: 12px; border-radius: 18px; background: #FFF6E4; }
.sb-howbox__open { display: block; cursor: zoom-in; border-radius: 14px; }
.sb-howbox__open:focus-visible { outline: 3px solid #B4235A; outline-offset: 2px; }
.sb-howbox__vid { border-radius: 14px; }
.sb-howbox__text b { display: block; margin-bottom: 3px; font-size: 16px; font-weight: 900; }
.sb-howbox__text p { margin: 0; font-size: 12.5px; line-height: 1.45; color: #5F5663; }
.sb-howbox__more { padding: 0; border: 0; background: none; font: inherit; font-weight: 800; color: #B4235A; text-decoration: underline; cursor: pointer; }
@media (min-width: 1024px) { .sb-howbox { grid-template-columns: 150px minmax(0, 1fr); } }

/* Buddy page: gallery slide + ▶ thumbnail */
.sb-vid--slide { width: 100%; height: 100%; border-radius: 0; }
.sb-vthumb { position: relative; display: block; width: 100%; height: 100%; background: #F4EDE8; }
.sb-vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-vthumb i { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 16px; background: rgba(31, 26, 36, .35); }

/* Bigger view */
.sb-vmodal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; background: rgba(20, 16, 24, .82); }
.sb-vmodal[hidden] { display: none; }
.sb-vmodal__box { position: relative; width: min(92vw, 82vh, 640px); aspect-ratio: 1; }
.sb-vmodal__box video { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; background: #000; display: block; }
.sb-vmodal__x { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #1F1A24; font-size: 16px; font-weight: 900; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
html.sb-vid-locked { overflow: hidden; }
