/* Skin Payment — checkout product step */
:root {
	--elo-pay-ink: #0f1432;
	--elo-pay-brand: #0f1432;
	--elo-pay-accent: #ff8800;
	--elo-pay-muted: #0f1432;
	--elo-pay-line: #e6e9f0;
	--elo-pay-soft: #ffffff;
	--elo-pay-card: #ffffff;
	--elo-pay-radius: 8px;
	--elo-pay-shadow: 0 20px 50px rgba(18, 24, 38, 0.08);
}

body#elo-skin-payment {
	margin: 0;
	background:
		radial-gradient(900px 420px at 0% 0%, rgba(16, 25, 150, 0.08), transparent 55%),
		radial-gradient(700px 360px at 100% 0%, rgba(255, 136, 0, 0.08), transparent 50%),
		#f3f5fa !important;
	color: var(--elo-pay-ink);
	font-family: var(--font-primary, "Segoe UI", system-ui, -apple-system, sans-serif);
	-webkit-font-smoothing: antialiased;
}

body#elo-skin-payment header {
	background: var(--elo-pay-brand);
	text-align: center;
	padding: 15px 0;
}

body#elo-skin-payment header img {
	max-width: 120px;
	height: auto;
	margin-left: -25px;
}

body#elo-skin-payment header .elo_brand {
	display: inline-block;
	color: var(--elo-pay-brand);
	font-weight: 700;
	text-decoration: none;
	font-size: 1.1rem;
	letter-spacing: 0.02em;
}

/* ---------- layout ---------- */
.elo-checkout-step {
	padding: 12px 0;
}

.elo-checkout-step__wrap {
	max-width: 740px;
	margin: 0 auto;
}

/* ---------- steps (modern progress) ---------- */
.elo-checkout-steps {
	margin: 30px 0;
}

.elo-checkout-steps__list {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: elo-step;
}

.elo-checkout-steps__item {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: row;
	align-items: flex-start;
	justify-content: center;
	gap: 0;
	color: #8b93a7;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: center;
	counter-increment: elo-step;
	transition: color 0.2s ease;
}

.elo-checkout-steps__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
}

.elo-checkout-steps__item:not(:last-child)::before {
	content: "";
	position: absolute;
	top: 15px;
	left: calc(50% + 20px);
	width: calc(100% - 40px);
	height: 2px;
	border-radius: 2px;
	background: #e2e6ef;
	z-index: 0;
}

.elo-checkout-steps__item.is-done:not(:last-child)::before {
	background: linear-gradient(90deg, var(--elo-pay-brand), var(--elo-pay-accent));
}

.elo-checkout-steps__dot {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #d5dae6;
	box-shadow: 0 4px 12px rgba(15, 20, 50, 0.06);
	flex-shrink: 0;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.elo-checkout-steps__dot::after {
	content: counter(elo-step);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1;
	color: #8b93a7;
	transition: color 0.2s ease;
}

.elo-checkout-steps__item.is-active {
	color: var(--elo-pay-brand);
}

.elo-checkout-steps__item.is-active .elo-checkout-steps__dot {
	background: var(--elo-pay-brand);
	border-color: var(--elo-pay-brand);
	box-shadow:
		0 0 0 4px rgba(15, 20, 50, 0.1),
		0 8px 18px rgba(15, 20, 50, 0.18);
	transform: translateY(-1px);
}

.elo-checkout-steps__item.is-active .elo-checkout-steps__dot::after {
	color: #fff;
}

.elo-checkout-steps__item.is-done {
	color: var(--elo-pay-brand);
}

.elo-checkout-steps__item.is-done .elo-checkout-steps__dot {
	background: var(--elo-pay-brand);
	border-color: var(--elo-pay-brand);
	box-shadow: 0 4px 12px rgba(15, 20, 50, 0.12);
}

.elo-checkout-steps__item.is-done .elo-checkout-steps__dot::after {
	content: "";
	width: 8px;
	height: 4px;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(-45deg) translateY(-1px);
}

/* ---------- card ---------- */
.elo-checkout-card {
	background: var(--elo-pay-card);
	border: 1px solid rgba(18, 24, 38, 0.06);
	border-radius: var(--elo-pay-radius);
	box-shadow: var(--elo-pay-shadow);
	overflow: hidden;
}

.elo-checkout-block {
	padding: 22px 24px;
}

.elo-checkout-block+.elo-checkout-block {
	border-top: 1px solid var(--elo-pay-line);
}

/* ---------- product summary (quieter title) ---------- */
.elo-checkout-product {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: stretch;
}

.elo-checkout-product__head {
	display: flex;
	gap: 16px;
	align-items: center;
}

.elo-checkout-product__media {
	margin: 0;
	width: 72px;
	height: 72px;
	border-radius: var(--elo-pay-radius);
	overflow: hidden;
	flex-shrink: 0;
	background: var(--elo-pay-soft);
	border: 1px solid var(--elo-pay-line);
	display: grid;
	place-items: center;
}

.elo-checkout-product__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.elo-checkout-product__media--placeholder span {
	color: var(--elo-pay-brand);
	font-size: 22px;
	font-weight: 700;
	opacity: 0.7;
}

.elo-checkout-product__meta {
	min-width: 0;
	flex: 1;
}

.elo-checkout-product__brand {
	margin: 0 0 4px;
	color: var(--elo-pay-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.elo-checkout-product__title {
	margin: 0 0 4px;
	color: var(--elo-pay-ink);
	font-size: 1.05rem;
	font-weight: 650;
	line-height: 1.35;
}

.elo-checkout-product__sku {
	margin: 0;
	color: #9aa1b2;
	font-size: 12px;
}

.elo-checkout-product__excerpt {
	color: var(--elo-pay-muted);
	font-size: 14px;
	line-height: 1.5;
}

.elo-checkout-product__excerpt p {
	margin: 0;
}

/* ---------- price strip ---------- */
.elo-checkout-price {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	background: #0f143205;
}

.elo-checkout-price__label {
	color: var(--elo-pay-muted);
	font-size: 16px;
	font-weight: 500;
}

.elo-checkout-price__value {
	color: var(--elo-pay-brand);
	font-size: 20px;
	font-weight: 750;
	letter-spacing: -0.02em;
	min-height: 1.2em;
}

/* ---------- options ---------- */
.elo-checkout-options__label {
	display: block;
	color: var(--elo-pay-ink);
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 7px;
	line-height: 19px;
}

.elo-checkout-options__label em {
	color: var(--elo-pay-accent);
	font-style: normal;
	margin-left: 2px;
}

.elo-checkout-options__hint {
	margin: 0 0 16px;
	color: var(--elo-pay-muted);
	font-size: 12px;
}

.elo-checkout-options__subhint {
	margin: 0 0 12px;
	color: var(--elo-pay-muted);
	font-size: 12px;
	line-height: 1.4;
}

.elo-payment-variation__options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.elo-payment-option {
	display: block;
	margin: 0;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
}

.elo-payment-option__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.elo-payment-option__body {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1px solid var(--elo-pay-line);
	border-radius: var(--elo-pay-radius);
	background: #fff;
	transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.elo-payment-option__check {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border-radius: var(--elo-pay-radius);
	border: 1.5px solid #c5cad6;
	box-sizing: border-box;
	position: relative;
}

.elo-payment-option__check::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: var(--elo-pay-radius);
	background: transparent;
}

.elo-payment-option__text {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex: 1;
	min-width: 0;
}

.elo-payment-option__name {
	color: var(--elo-pay-ink);
	font-size: 14px;
	line-height: 18px;
}

.elo-payment-option__price {
	color: var(--elo-pay-muted);
	font-size: 14px;
	white-space: nowrap;
	font-weight: 600;
}

.elo-payment-option:hover .elo-payment-option__body {
	border-color: #c8cede;
}

.elo-payment-option.is-selected .elo-payment-option__body {
	border-color: var(--elo-pay-brand);
	background: rgba(16, 25, 150, 0.03);
	box-shadow: 0 0 0 3px rgba(16, 25, 150, 0.08);
}

.elo-payment-option.is-selected .elo-payment-option__check {
	border-color: var(--elo-pay-brand);
	background: var(--elo-pay-brand);
}

.elo-payment-option.is-selected .elo-payment-option__check::after {
	background: #fff;
}

/* Checkbox real (multi-select) */
#elo-skin-payment .elo-payment-option__check--box,
.elo-payment-option__check--box {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	border-radius: 5px;
	border: 2px solid #c5cad6;
	background: #fff !important;
	box-sizing: border-box;
	position: relative;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	align-self: center;
	line-height: 0;
	overflow: hidden;
}

#elo-skin-payment .elo-payment-option__check--box::after,
.elo-payment-option__check--box::after {
	content: none !important;
	display: none !important;
}

#elo-skin-payment .elo-payment-option__check--box .elo-payment-option__tick,
.elo-payment-option__check--box .elo-payment-option__tick {
	display: block;
	width: 20px;
	height: 20px;
	color: #fff;
	opacity: 0;
	transform: scale(0.7);
	transition: opacity 0.16s ease, transform 0.16s ease;
}

#elo-skin-payment .elo-payment-option.is-selected .elo-payment-option__check--box,
.elo-payment-option.is-selected .elo-payment-option__check--box {
	border-color: var(--elo-pay-brand, #101996);
	background: var(--elo-pay-brand, #101996) !important;
}

#elo-skin-payment .elo-payment-option.is-selected .elo-payment-option__check--box .elo-payment-option__tick,
.elo-payment-option.is-selected .elo-payment-option__check--box .elo-payment-option__tick {
	opacity: 1;
	transform: scale(1);
}

.elo-payment-option.is-selected .elo-payment-option__price {
	color: var(--elo-pay-brand);
}

.elo-payment-option.is-unavailable {
	cursor: not-allowed;
	opacity: 0.5;
}

.elo-payment-option.is-unavailable .elo-payment-option__body {
	background: var(--elo-pay-soft);
}

/* ---------- details ---------- */
.elo-checkout-details summary {
	cursor: pointer;
	list-style: none;
	color: var(--elo-pay-muted);
	font-size: 14px;
	font-weight: 600;
	user-select: none;
}

.elo-checkout-details summary::-webkit-details-marker {
	display: none;
}

.elo-checkout-details summary::after {
	content: "+";
	float: right;
	color: #9c9c9c;
	font-weight: 400;
	font-size: 18px;
	margin-top: -4px;
}

.elo-checkout-details[open] summary::after {
	content: "–";
}

.elo-checkout-details__body {
	margin-top: 20px;
	padding-top: 12px;
	border-top: 1px solid var(--elo-pay-line);
	color: var(--elo-pay-muted);
	font-size: 14px;
	line-height: 1.6;
}

p.elo-checkout-coupon__msg.is-ok {
	color: #00a300;
}

p.elo-checkout-coupon__msg.is-ok,
.elo-checkout-coupon__msg.is-error {
	padding: 8px 5px;
	margin-top: 0;
	font-weight: 600;
	font-size: 14px;
}

/* ---------- footer / CTA ---------- */
.elo-checkout-footer {
	background: #fafbfd;
}

.elo-checkout-footer__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 15px;
	border-bottom: solid 1px #e8e8e8;
	padding-bottom: 15px;
}

.elo-checkout-footer__label {
	color: var(--elo-pay-muted);
	font-size: 16px;
	font-weight: 500;
}

.elo-checkout-footer__value {
	color: var(--elo-pay-ink);
	font-size: 1.05rem;
	font-weight: 750;
}

.elo-checkout-steps__list span,
span.elo-checkout-price__label,
label.elo-checkout-coupon__label,
span.elo-checkout-options__label {
	-webkit-user-select: none;
	user-select: none;
}

.elo-payment-advance {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 52px;
	padding: 12px 20px;
	border: 0;
	border-radius: var(--elo-pay-radius);
	background: linear-gradient(90deg, #232d68, #151c48);
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 500;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background-color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.elo-payment-advance:before {
	content: none !important;
	display: none !important;
}

.elo-payment-advance:hover:not(:disabled) {
	transform: translateY(-1px);
	background: linear-gradient(90deg, #232d68, #151c48) !important;
}

.elo-payment-advance:disabled,
.elo-payment-advance.is-disabled,
.elo-payment-advance[aria-disabled="true"] {
	opacity: 0.4;
	cursor: not-allowed;
	transform: none;
	background: #9aa3b8;
}

.elo-payment-buy-form.is-ready .elo-payment-advance {
	background: linear-gradient(90deg, #293270, #1e2657);
}

.elo-checkout-coupon__label {
	display: block;
	margin: 0 0 10px;
	color: var(--elo-pay-ink);
	font-size: 14px;
	font-weight: 650;
}

.elo-checkout-coupon__row {
	display: flex;
	gap: 8px;
}

.elo-payment-coupon-input {
	flex: 1;
	min-width: 0;
	min-height: 52px;
	padding: 0 12px;
	border: 1px solid var(--elo-pay-line);
	border-radius: var(--elo-pay-radius);
	background: #fff;
	color: var(--elo-pay-ink);
	font-size: 14px;
	text-indent: 5px;
}

.elo-payment-coupon-input:focus {
	outline: none;
	border-color: var(--elo-pay-brand);
	box-shadow: 0 0 0 3px rgba(16, 25, 150, 0.1);
}

.elo-payment-coupon-apply {
	flex: 0 0 auto;
	min-height: 52px;
	padding: 0 16px;
	border: 1px solid var(--elo-pay-brand);
	border-radius: var(--elo-pay-radius);
	background: #fff;
	color: var(--elo-pay-brand);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.elo-payment-coupon-apply:hover:not(:disabled) {
	background: rgba(16, 25, 150, 0.04);
}

.elo-payment-coupon-apply:disabled {
	opacity: 0.55;
	cursor: wait;
}

.elo-checkout-coupon__msg {
	margin: 10px 0 0;
	font-size: 12px;
	color: var(--elo-pay-muted);
}

.elo-checkout-coupon__msg.is-ok {
	color: #1f7a3f;
}

.elo-checkout-coupon__msg.is-error {
	color: #ff1200;
}

.elo-payment-advance-hint {
	margin: 12px 0 0;
	text-align: center;
	color: #9aa1b2;
	font-size: 12px;
}

/* ---------- site footer (widget) ---------- */
body#elo-skin-payment .elo-skin-footer {
	background: var(--elo-pay-brand);
	text-align: center;
	padding: 22px 0;
	font-size: 14px;
	line-height: 1.5;
	-webkit-user-select: none;
	user-select: none;
}

.elo-skin-footer p,
body#elo-skin-payment .elo-skin-footer {
	color: #b9b9b9;
}

.elo-skin-footer p {
	width: 80%;
	margin: 0 auto;
}

body#elo-skin-payment .elo-skin-footer a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

body#elo-skin-payment .elo-skin-footer a:hover {
	opacity: 0.85;
}

body#elo-skin-payment .elo-skin-footer__title {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}

body#elo-skin-payment .elo-skin-footer__widget+.elo-skin-footer__widget {
	margin-top: 12px;
}

footer.elo-skin-footer h4 {
	color: #fff;
	text-align: center;
	font-size: 14px !important;
	margin-bottom: 0;
	font-weight: 300;
}

@media (min-width: 992px) {
	.elo-checkout-step {
		margin-bottom: 25px;
	}
}

@media (max-width: 992px) {
	.elo-checkout-steps {
		margin: 10px 0 13px 0;
	}
}

@media (max-width: 768px) {
	body#elo-skin-payment .elo-skin-footer {
		margin-top: 0;
	}

	.elo-checkout-steps__list {
		position: relative;
		justify-content: space-between;
		width: 85%;
		margin: 0 auto;
	}

	/* Sem linha contínua no list — evita vazamento à direita */
	.elo-checkout-steps__list::before {
		content: none;
		display: none;
	}

	.elo-checkout-steps__item {
		flex: 1 1 0;
		min-width: 0;
		justify-content: center;
	}

	.elo-checkout-steps__item:first-child {
		justify-content: flex-start;
	}

	.elo-checkout-steps__item:last-child {
		justify-content: flex-end;
	}

	.elo-checkout-steps__inner {
		position: relative;
		gap: 8px;
		z-index: 1;
	}

	/* Linhas só entre os passos (1→2 e 2→3), nunca depois da bolinha 3 */
	.elo-checkout-steps__item:not(:last-child)::before {
		display: block;
		content: "";
		position: absolute;
		top: 15px;
		left: 0;
		width: 100%;
		height: 2px;
		border-radius: 2px;
		background: #e2e6ef;
		z-index: 0;
	}

	/* Última coluna: linha só até a bolinha; nada à direita dela */
	.elo-checkout-steps__item:last-child {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: start;
	}

	.elo-checkout-steps__item:last-child::before {
		display: block;
		content: "";
		position: static;
		grid-column: 1;
		width: 100%;
		height: 2px;
		margin-top: 15px;
		border-radius: 2px;
		background: #e2e6ef;
		align-self: start;
	}

	.elo-checkout-steps__item:last-child .elo-checkout-steps__inner {
		grid-column: 2;
	}

	.elo-checkout-steps__item:last-child .elo-checkout-steps__inner::before {
		content: "";
		position: absolute;
		top: 15px;
		left: 0;
		width: calc(50% - 16px);
		height: 2px;
		background: #e2e6ef;
		z-index: 0;
		pointer-events: none;
	}

	/* Remove o “tampão” antigo */
	.elo-checkout-steps__item:last-child .elo-checkout-steps__inner::after {
		content: none;
		display: none;
	}

	.elo-checkout-steps__dot {
		z-index: 2;
	}
}

@media (max-width: 575px) {
	.elo-checkout-block {
		padding: 18px 16px;
	}

	.elo-checkout-steps__item {
		font-size: 9px;
		letter-spacing: 0.04em;
	}

	.elo-checkout-steps__dot {
		width: 28px;
		height: 28px;
	}

	.elo-checkout-steps__dot::after {
		font-size: 11px;
	}

	.elo-checkout-steps__item:not(:last-child)::before,
	.elo-checkout-steps__item:last-child::before {
		margin-top: 0;
		top: 13px;
	}

	.elo-checkout-steps__item:last-child::before {
		margin-top: 13px;
	}

	.elo-checkout-steps__item:last-child .elo-checkout-steps__inner::before {
		top: 13px;
		width: calc(50% - 14px);
	}

	.elo-checkout-product__media {
		width: 60px;
		height: 60px;
	}

	.elo-checkout-product__title {
		font-size: 0.98rem;
	}

	.elo-payment-option__text {
		align-items: center;
	}
}