/*
 * Smart Upsell - storefront features ("Na loja"): cart goals, buy together, social
 * proof, capture pop-up and personalization. Scoped by .su-* classes; colors come from
 * custom properties set per feature.
 */

.su-icon {
	display: inline-block;
	flex: none;
	vertical-align: middle;
}

/* Toast ------------------------------------------------------------------------------ */

.su-store-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 100000;
	max-width: calc(100% - 32px);
	padding: 10px 16px;
	border-radius: 8px;
	background: #1e1e1e;
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .2);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 12px);
	transition: opacity .2s, transform .2s;
}

.su-store-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.su-store-toast.is-error {
	background: #b32d2e;
}

/* Cart goals ------------------------------------------------------------------------- */

.su-goals {
	--su-goal: #1a7f37;
	margin: 0 0 1.25em;
	padding: 14px 16px 16px;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 10px;
	background: #fff;
	color: inherit;
	font-size: 14px;
	line-height: 1.45;
}

.su-goals--minicart,
.su-goals--mini-block {
	margin: 0 0 12px;
	padding: 10px 12px 12px;
	font-size: 13px;
}

.su-goals__text {
	margin: 0 0 30px;
}

.su-goals__text strong {
	color: var(--su-goal);
}

.su-goals__track {
	position: relative;
	height: 8px;
	margin: 0 12px 26px;
	border-radius: 99px;
	background: color-mix(in srgb, var(--su-goal) 15%, #fff);
}

.su-goals__fill {
	position: absolute;
	inset: 0 auto 0 0;
	border-radius: inherit;
	background: var(--su-goal);
	transition: width .4s ease;
}

.su-goals__mark {
	position: absolute;
	top: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	transform: translate(-50%, -14px);
}

.su-goals__dot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 2px solid color-mix(in srgb, var(--su-goal) 35%, #fff);
	border-radius: 50%;
	background: #fff;
	color: var(--su-goal);
}

.su-goals__dot .su-icon {
	width: 15px;
	height: 15px;
}

.su-goals__mark.is-done .su-goals__dot {
	border-color: var(--su-goal);
	background: var(--su-goal);
	color: #fff;
}

.su-goals__min {
	margin-top: 2px;
	font-size: 11px;
	white-space: nowrap;
	opacity: .75;
}

.su-goals.is-complete .su-goals__text {
	font-weight: 600;
}

.su-goals__suggest {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 12px;
	border-top: 1px dashed rgba(0, 0, 0, .12);
}

.su-goals__suggest img {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	object-fit: cover;
}

.su-goals__suggest-info {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.su-goals__suggest-title {
	font-size: 12px;
	opacity: .7;
}

.su-goals__suggest-info a {
	overflow: hidden;
	color: inherit;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.su-goals__suggest .button {
	flex: none;
	margin: 0;
}

.su-ship-label {
	--su-goal: #1a7f37;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 4px;
	padding: 1px 8px;
	border-radius: 99px;
	background: color-mix(in srgb, var(--su-goal) 12%, #fff);
	color: var(--su-goal);
	font-size: .75em;
	font-weight: 600;
	vertical-align: middle;
	white-space: nowrap;
}

.su-ship-label .su-icon {
	width: 14px;
	height: 14px;
}

.su-store-add.is-added {
	opacity: .8;
}

/* Social proof ----------------------------------------------------------------------- */

.su-proof {
	--su-proof: #e67e22;
	margin: 0 0 1em;
}

.su-proof__badge {
	--su-proof: #e67e22;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 8px;
	padding: 3px 10px;
	border-radius: 99px;
	background: color-mix(in srgb, var(--su-proof) 14%, #fff);
	color: color-mix(in srgb, var(--su-proof) 80%, #000);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.su-proof__badge .su-icon {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

.su-proof__badge--loop {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	margin: 0;
	font-size: 11px;
}

.su-proof__lines {
	display: grid;
	gap: 6px;
}

.su-proof__line {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
}

.su-proof__line .su-icon {
	color: var(--su-proof);
}

.su-proof__line strong {
	color: var(--su-proof);
}

.su-proof__line--viewers .su-icon {
	animation: su-proof-pulse 2s ease-in-out infinite;
}

@keyframes su-proof-pulse {
	50% {
		opacity: .45;
	}
}

.su-recent {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 99990;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 320px;
	max-width: calc(100% - 32px);
	padding: 10px 34px 10px 10px;
	border-radius: 10px;
	background: #fff;
	color: #1e1e1e;
	font-size: 13px;
	line-height: 1.4;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
	opacity: 0;
	pointer-events: none;
	transform: translateY(16px);
	transition: opacity .3s, transform .3s;
}

.su-recent.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: none;
}

.su-recent__img img {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 6px;
	object-fit: cover;
}

.su-recent__body a {
	color: inherit;
	font-weight: 600;
}

.su-recent__ago {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	opacity: .65;
}

.su-recent__close {
	position: absolute;
	top: 4px;
	right: 6px;
	padding: 2px 6px;
	border: 0;
	background: none;
	color: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	opacity: .5;
}

@media (prefers-reduced-motion: reduce) {
	.su-recent,
	.su-goals__fill,
	.su-store-toast {
		transition: none;
	}

	.su-proof__line--viewers .su-icon {
		animation: none;
	}
}

/* Buy together ----------------------------------------------------------------------- */

.su-bundle {
	--su-bundle: #2271b1;
	clear: both;
	margin: 1.5em 0;
	padding: 16px;
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: 10px;
}

.su-bundle__title {
	margin: 0 0 12px;
	font-size: 1.15em;
}

.su-bundle__items {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.su-bundle__item {
	position: relative;
	flex: 1 1 140px;
	max-width: 200px;
	margin: 0;
	font-size: 13px;
	line-height: 1.35;
}

.su-bundle__item + .su-bundle__item::before {
	content: "+";
	position: absolute;
	top: 36px;
	left: -11px;
	font-size: 18px;
	font-weight: 700;
	opacity: .5;
}

.su-bundle__item label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	cursor: pointer;
}

.su-bundle__item input {
	position: absolute;
	top: 6px;
	left: 6px;
	z-index: 1;
	width: 18px;
	height: 18px;
	accent-color: var(--su-bundle);
}

.su-bundle__item img {
	width: 96px;
	height: 96px;
	border-radius: 8px;
	object-fit: cover;
}

.su-bundle__item:not(.is-main) input:not(:checked) ~ img,
.su-bundle__item:not(.is-main) input:not(:checked) ~ span {
	opacity: .45;
}

.su-bundle__name em {
	display: block;
	font-style: normal;
	opacity: .6;
}

.su-bundle__price {
	font-weight: 600;
}

.su-bundle__link {
	font-size: 12px;
}

.su-bundle__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 12px;
	border-top: 1px solid rgba(0, 0, 0, .08);
}

.su-bundle__total del {
	opacity: .55;
}

.su-bundle__total strong {
	font-size: 1.2em;
}

.su-bundle__save {
	display: block;
	color: var(--su-bundle);
	font-size: 13px;
	font-weight: 600;
}

.su-bundle__add[disabled] {
	opacity: .5;
	cursor: not-allowed;
}

@media (max-width: 480px) {
	.su-bundle__item {
		flex-basis: calc(50% - 6px);
	}

	.su-bundle__add {
		width: 100%;
	}
}

/* Capture pop-up --------------------------------------------------------------------- */

.su-popup {
	--su-popup: #111;
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-size: 15px;
	line-height: 1.45;
}

.su-popup--corner {
	inset: auto 16px 16px auto;
	display: block;
	width: 360px;
	max-width: calc(100% - 32px);
	padding: 0;
}

.su-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .55);
	animation: su-popup-fade .2s ease-out;
}

.su-popup__box {
	position: relative;
	display: flex;
	overflow: hidden;
	width: 680px;
	max-width: 100%;
	max-height: calc(100vh - 32px);
	border-radius: 14px;
	background: #fff;
	color: #1e1e1e;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	animation: su-popup-in .25s ease-out;
}

.su-popup--corner .su-popup__box {
	width: 100%;
	flex-direction: column;
}

.su-popup__image {
	flex: 0 0 42%;
}

.su-popup__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.su-popup--corner .su-popup__image {
	flex-basis: auto;
	max-height: 140px;
}

.su-popup__content {
	flex: 1;
	overflow-y: auto;
	padding: 28px 24px 22px;
}

.su-popup__title {
	margin: 0 0 8px;
	color: inherit;
	font-size: 1.5em;
	line-height: 1.2;
}

.su-popup__text {
	margin: 0 0 16px;
	opacity: .85;
}

.su-popup__form {
	display: grid;
	gap: 10px;
	margin: 0;
}

.su-popup__field input {
	box-sizing: border-box;
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	background: #fff;
	color: #1e1e1e;
	font-size: 15px;
}

.su-popup__field input:focus {
	border-color: var(--su-popup);
	outline: 2px solid color-mix(in srgb, var(--su-popup) 25%, transparent);
}

.su-popup__consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
}

.su-popup__consent input {
	margin-top: 3px;
	accent-color: var(--su-popup);
}

.su-popup__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.su-popup__submit {
	padding: 12px 16px;
	border: 0;
	border-radius: 8px;
	background: var(--su-popup);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.su-popup__submit[disabled] {
	opacity: .6;
	cursor: wait;
}

.su-popup__error {
	margin: 0;
	color: #b32d2e;
	font-size: 13px;
}

.su-popup__privacy {
	margin: 2px 0 0;
	font-size: 11px;
	opacity: .65;
}

.su-popup__close {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 2;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .85);
	color: #1e1e1e;
	font-size: 22px;
	line-height: 32px;
	cursor: pointer;
}

.su-popup__coupon {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 14px;
	padding: 12px 14px;
	border: 2px dashed var(--su-popup);
	border-radius: 10px;
	font-size: 1.25em;
	letter-spacing: .04em;
}

.su-popup__copy {
	padding: 6px 12px;
	border: 1px solid var(--su-popup);
	border-radius: 6px;
	background: #fff;
	color: var(--su-popup);
	font-size: 13px;
	letter-spacing: 0;
	cursor: pointer;
}

.su-popup__continue {
	width: 100%;
}

@keyframes su-popup-fade {
	from {
		opacity: 0;
	}
}

@keyframes su-popup-in {
	from {
		opacity: 0;
		transform: translateY(16px) scale(.98);
	}
}

@media (max-width: 600px) {
	.su-popup--modal {
		align-items: flex-end;
		padding: 0;
	}

	.su-popup--modal .su-popup__box {
		flex-direction: column;
		width: 100%;
		max-height: 92vh;
		border-radius: 14px 14px 0 0;
	}

	.su-popup--modal .su-popup__image {
		flex-basis: auto;
		max-height: 120px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.su-popup__backdrop,
	.su-popup__box {
		animation: none;
	}
}

/* Personalization -------------------------------------------------------------------- */

.su-personal {
	--su-personal-bg: #1e1e1e;
	--su-personal-fg: #fff;
	position: relative;
	z-index: 9999;
	background: var(--su-personal-bg);
	color: var(--su-personal-fg);
	font-size: 14px;
	line-height: 1.4;
}

.su-personal--bottom {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	box-shadow: 0 -4px 16px rgba(0, 0, 0, .15);
}

body.has-su-personal {
	padding-bottom: 56px;
}

.su-personal--inline {
	margin: 0 0 1.25em;
	border-radius: 10px;
}

.su-personal__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 14px;
	padding: 10px 44px;
	text-align: center;
}

.su-personal--inline .su-personal__inner {
	padding: 14px 16px;
}

.su-personal__button {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid currentColor;
	border-radius: 99px;
	background: transparent;
	color: inherit;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.su-personal__button:hover,
.su-personal__button:focus {
	background: var(--su-personal-fg);
	color: var(--su-personal-bg);
}

.su-personal__close {
	position: absolute;
	top: 50%;
	right: 10px;
	padding: 4px 8px;
	border: 0;
	background: none;
	color: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	opacity: .75;
	transform: translateY(-50%);
}
