/**
 * SST Google Review Button
 * Description: Front-end behavior (scroll reveal + dismiss + GR/CTA link target selection).
 * Version: 2.0
 * Version Status: Production
 * Author: Unisance Marketing, LLC
 * Copyright: (c) 2026 Unisance Marketing, LLC. All rights reserved.
 * Primary Domain: https://ShipStoreTech.com
 *
 * File: assets/public/public.css
 */

/* -----------------------------------------
   Core floating badge layout (PUBLIC)
----------------------------------------- */

.sstgrb-floating {
	position: fixed;          /* MUST be fixed */
	z-index: 999999;
	display: block;
	line-height: 0;
	pointer-events: none;     /* allow children to control clicks */
	/* Inline style from PHP controls top/left/right/bottom offsets */
}

/* Clickable content */
.sstgrb-link,
.sstgrb-close {
	pointer-events: auto;
}

/* Badge link */
.sstgrb-link {
	position: relative;
	z-index: 1;
	display: inline-block;
	line-height: 0;
	text-decoration: none;
	outline: none;
}

.sstgrb-img {
	display: block;
	max-width: 100%;
	height: auto;
	border: 0;
}

/* Close button */
.sstgrb-close {
	position: absolute;
	top: -10px;
	right: -10px;
	z-index: 2147483647; /* above link, above almost everything */
	width: 26px;
	height: 26px;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	background: #fff;
	color: #111;
	font-size: 18px;
	line-height: 22px;
	padding: 0;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: auto;
}

.sstgrb-close:hover {
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);
}

.sstgrb-close:focus {
	outline: 2px solid rgba(0, 0, 0, 0.35);
	outline-offset: 2px;
}

/* -----------------------------------------
   PROM floating constraints (PUBLIC)
   - PROM ONLY (does not touch GR/CA)
   - Hard-match admin preview target
----------------------------------------- */

/* PROM container max width (text + image) */
.sstrbt-prom-floating {
	max-width: 320px;
	box-sizing: border-box;
}

/* Text PROM wrapping safety */
.sstrbt-prom-floating .sstrbt-prom-title {
	display: block;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
	line-height: 1.25;
}

/* Image PROM scaling inside the PROM box (when image markup exists) */
.sstrbt-prom-floating img {
	display: block;
	max-width: 100%;
	height: auto;
	max-height: 260px;
	object-fit: contain;
}

/* -----------------------------------------
   Soft Reveal (PUBLIC)
   NOTE: never touches container transform
----------------------------------------- */

.sstgrb-floating {
	--sstgrb-reveal-duration: 220ms;
	--sstgrb-reveal-lift: 6px;
	--sstgrb-reveal-distance: 18px;
}

.ssrtbt-is-ready {
	opacity: 0;
	transition: opacity var(--sstgrb-reveal-duration, 220ms) ease;
	will-change: opacity;
}

.ssrtbt-is-ready .sstgrb-link {
	transition: transform var(--sstgrb-reveal-duration, 220ms) ease;
	will-change: transform;
}

/* Fade */
.ssrtbt-is-ready[data-sstgrb-reveal="fade"] .sstgrb-link {
	transform: translateY(var(--sstgrb-reveal-lift, 6px));
}

/* Slide */
.ssrtbt-is-ready[data-sstgrb-reveal="slide"] .sstgrb-link {
	transform: translateX(var(--sstgrb-reveal-distance, 18px));
}

/* None */
.ssrtbt-is-ready[data-sstgrb-reveal="none"] {
	opacity: 1;
	transition: none;
}
.ssrtbt-is-ready[data-sstgrb-reveal="none"] .sstgrb-link {
	transform: none;
	transition: none;
}

/* Visible */
.ssrtbt-is-ready.ssrtbt-is-visible {
	opacity: 1;
}
.ssrtbt-is-ready.ssrtbt-is-visible .sstgrb-link {
	transform: none;
}

/* Reduced motion */
.ssrtbt-no-motion.ssrtbt-is-ready,
@media (prefers-reduced-motion: reduce) {
	.ssrtbt-is-ready {
		transition: none !important;
	}
	.ssrtbt-is-ready .sstgrb-link {
		transition: none !important;
		transform: none !important;
	}
}

/* EOF: assets/public/public.css */
