/**
 * Side Checkout — CSS funcional (FASE 5.4.0).
 * Mobile First. Sin diseño premium. Preparado para theming posterior.
 */

/* -------------------------------------------------------------------------
   Mount / root
   ------------------------------------------------------------------------- */

.pgsc-checkout__mount,
.pgsc-checkout {
	box-sizing: border-box;
}

.pgsc-checkout__mount[hidden],
.pgsc-checkout[hidden] {
	display: none !important;
}

.pgsc-checkout__mount {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 16px 14px 20px;
	background: var(--pgsc-color-surface, #fff);
	border: 1px solid var(--pgsc-color-border-input, #d1d5db);
}

/* -------------------------------------------------------------------------
   Shell
   ------------------------------------------------------------------------- */

.pgsc-checkout__shell {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.pgsc-checkout__header {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
}

.pgsc-checkout__back-to-cart {
	align-self: flex-start;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--pgsc-color-button-primary-bg, var(--pgsc-wine, #6b2838));
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	text-decoration: none;
}

.pgsc-checkout__back-to-cart:hover,
.pgsc-checkout__back-to-cart:focus {
	color: var(--pgsc-color-button-primary-bg-hover, var(--pgsc-wine-dark, #4f1c2a));
	text-decoration: underline;
}

.pgsc-checkout__back-to-cart:focus {
	outline: 2px solid var(--pgsc-color-button-primary-bg, var(--pgsc-wine, #6b2838));
	outline-offset: 2px;
}

.pgsc-checkout__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--pgsc-color-text-heading, #111827);
}

/* -------------------------------------------------------------------------
   Progress
   ------------------------------------------------------------------------- */

.pgsc-checkout__progress {
	width: 100%;
	margin-bottom: 4px;
}

.pgsc-checkout__progress-list {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0;
	margin: 0;
	padding: 0 2px;
	list-style: none;
}

.pgsc-checkout__progress-list--premium {
	padding: 4px 0 8px;
}

.pgsc-checkout__progress-list--premium .pgsc-checkout__progress-item {
	position: relative;
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	text-align: center;
	opacity: 1;
}

.pgsc-checkout__progress-node {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.pgsc-checkout__progress-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 2px solid var(--pgsc-color-border-neutral, #d1d5db);
	border-radius: 999px;
	background: var(--pgsc-color-surface, #fff);
	color: var(--pgsc-color-text-muted, #5e5858);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1;
	transition:
		border-color var(--pgsc-duration-step-transition, 280ms) var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1)),
		background var(--pgsc-duration-step-transition, 280ms) var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1)),
		color var(--pgsc-duration-step-transition, 280ms) var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1)),
		transform var(--pgsc-duration-step-transition, 280ms) var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1)),
		box-shadow var(--pgsc-duration-step-transition, 280ms) var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1));
}

.pgsc-checkout__progress-connector {
	position: absolute;
	top: 18px;
	left: calc(50% + 20px);
	width: calc(100% - 40px);
	height: 3px;
	z-index: 1;
	overflow: hidden;
	border-radius: 999px;
	background: var(--pgsc-color-border-neutral, #ece7ea);
	pointer-events: none;
}

.pgsc-checkout__progress-connector-fill {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		var(--pgsc-color-primary, var(--pgsc-wine, #6b2838)) 0%,
		var(--pgsc-color-primary-hover, var(--pgsc-wine-dark, #4f1c2a)) 100%
	);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform var(--pgsc-duration-step-transition, 280ms) var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1));
}

.pgsc-checkout__progress-item--completed .pgsc-checkout__progress-connector-fill,
.pgsc-checkout__progress-item--line-animate .pgsc-checkout__progress-connector-fill {
	transform: scaleX(1);
}

.pgsc-checkout__progress-item--active .pgsc-checkout__progress-number {
	border-color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
	background: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
	color: var(--pgsc-color-on-primary, #fff);
	box-shadow: 0 0 0 4px rgba(107, 40, 56, 0.12);
	transform: scale(1.04);
}

.pgsc-checkout__progress-item--completed .pgsc-checkout__progress-number {
	border-color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
	background: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
	color: transparent;
	font-size: 0;
	box-shadow: none;
}

.pgsc-checkout__progress-item--completed .pgsc-checkout__progress-number::before {
	content: '✓';
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--pgsc-color-on-primary, #fff);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1;
}

.pgsc-checkout__progress-item--check-animate .pgsc-checkout__progress-number::before {
	animation: pgsc-progress-check-pop 340ms var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1));
}

@keyframes pgsc-progress-check-pop {
	0% {
		transform: scale(0.2);
		opacity: 0;
	}

	55% {
		transform: scale(1.18);
		opacity: 1;
	}

	100% {
		transform: scale(1);
		opacity: 1;
	}
}

.pgsc-checkout__progress-item--pending .pgsc-checkout__progress-number {
	border-color: var(--pgsc-color-border, var(--pgsc-rose-muted, #f3d9de));
	background: var(--pgsc-color-surface, #fff);
	color: var(--pgsc-color-text-muted, #5e5858);
}

.pgsc-checkout__progress-label {
	font-size: 0.6875rem;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: 0.01em;
	color: var(--pgsc-color-text-muted, #5e5858);
	transition:
		color var(--pgsc-duration-step-transition, 280ms) var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1)),
		font-weight var(--pgsc-duration-step-transition, 280ms) var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1));
	max-width: 5.5rem;
}

.pgsc-checkout__progress-item--active .pgsc-checkout__progress-label {
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
	font-weight: 700;
}

.pgsc-checkout__progress-item--completed .pgsc-checkout__progress-label {
	color: var(--pgsc-color-primary-hover, var(--pgsc-wine-dark, #4f1c2a));
	font-weight: 600;
}

.pgsc-checkout__progress-item--pending .pgsc-checkout__progress-label {
	color: var(--pgsc-color-text-muted, #5e5858);
}

.pgsc-checkout__progress-item--pulse .pgsc-checkout__progress-number {
	animation: pgsc-progress-pulse 320ms var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1));
}

@keyframes pgsc-progress-pulse {
	0% {
		transform: scale(1);
	}

	45% {
		transform: scale(1.1);
	}

	100% {
		transform: scale(1.04);
	}
}

.pgsc-checkout__step-intro {
	margin: 6px 0 0;
	font-size: 0.875rem;
	line-height: 1.5;
	font-weight: 500;
	color: var(--pgsc-color-text-muted, var(--pgsc-black-muted, #5e5858));
}

.pgsc-checkout__step-intro--summary {
	color: var(--pgsc-color-primary-light, var(--pgsc-wine-light, #8f3d52));
}

/* -------------------------------------------------------------------------
   Steps container
   ------------------------------------------------------------------------- */

.pgsc-checkout__steps {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	width: 100%;
}

.pgsc-checkout__step {
	grid-area: 1 / 1;
	display: block;
	width: 100%;
	padding: 16px;
	border: 1px solid var(--pgsc-color-border-neutral, #e5e7eb);
	border-radius: var(--pgsc-radius-button, 8px);
	background: var(--pgsc-color-surface, #fff);
	transition:
		opacity var(--pgsc-duration-step-transition, 220ms) var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1)),
		transform var(--pgsc-duration-step-transition, 220ms) var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1)),
		border-color var(--pgsc-duration-step-transition, 220ms) var(--pgsc-ease-emphasis, cubic-bezier(0.4, 0, 0.2, 1));
}

.pgsc-checkout__step--hidden {
	display: none;
}

.pgsc-checkout__steps--transitioning .pgsc-checkout__step--hidden {
	display: block;
}

.pgsc-checkout__step--entering-pending.pgsc-checkout__step--entering-forward {
	opacity: 0;
	transform: translateX(18px);
}

.pgsc-checkout__step--entering-pending.pgsc-checkout__step--entering-backward {
	opacity: 0;
	transform: translateX(-18px);
}

.pgsc-checkout__steps--transitioning .pgsc-checkout__step--leaving-forward {
	opacity: 0;
	transform: translateX(-18px);
	pointer-events: none;
}

.pgsc-checkout__steps--transitioning .pgsc-checkout__step--leaving-backward {
	opacity: 0;
	transform: translateX(18px);
	pointer-events: none;
}

.pgsc-checkout__steps--transitioning .pgsc-checkout__step--entering:not(.pgsc-checkout__step--entering-pending) {
	opacity: 1;
	transform: translateX(0);
}

.pgsc-checkout__steps--transitioning {
	pointer-events: none;
}

/* FASE 6.2-F — loader premium entre pasos */
.pgsc-checkout__step-transition-overlay {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	background: var(--pgsc-color-overlay-backdrop-checkout, rgba(42, 38, 38, 0.48));
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity var(--pgsc-duration-fast, 220ms) var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1));
	pointer-events: none;
}

.pgsc-checkout__step-transition-overlay--visible {
	opacity: 1;
}

.pgsc-checkout__step-transition-overlay[hidden] {
	display: none !important;
}

.pgsc-checkout__step-transition-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.625rem;
	width: min(100%, 18.5rem);
	padding: 1.25rem 1.375rem;
	border: 1px solid var(--pgsc-color-border-subtle, var(--pgsc-rose-soft, #f8e8ec));
	border-radius: var(--pgsc-radius-lg, 16px);
	background: var(--pgsc-color-surface, #fff);
	box-shadow:
		0 18px 40px rgba(42, 38, 38, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
	text-align: center;
}

.pgsc-checkout__step-transition-visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	margin-bottom: 0.125rem;
}

.pgsc-checkout__step-transition-spinner {
	position: absolute;
	inset: 0;
	border: 3px solid var(--pgsc-color-state-spinner-track-brand, #f3d9de);
	border-top-color: var(--pgsc-color-state-spinner-active-brand, #6b2838);
	border-radius: 50%;
	animation: pgsc-step-transition-spin 0.85s linear infinite;
}

.pgsc-checkout__step-transition-icon {
	position: relative;
	z-index: 1;
	font-size: 1.375rem;
	line-height: 1;
}

.pgsc-checkout__step-transition-message {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
}

.pgsc-checkout__step-transition-subtitle {
	margin: 0;
	max-width: 16rem;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.45;
	color: var(--pgsc-color-text-muted, #5e5858);
}

.pgsc-checkout__step-transition-message:empty,
.pgsc-checkout__step-transition-subtitle:empty {
	display: none;
}

@keyframes pgsc-step-transition-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pgsc-checkout__step,
	.pgsc-checkout__progress-item {
		transition: none;
	}

	.pgsc-checkout__steps--transitioning .pgsc-checkout__step--leaving-forward,
	.pgsc-checkout__steps--transitioning .pgsc-checkout__step--leaving-backward,
	.pgsc-checkout__step--entering-pending.pgsc-checkout__step--entering-forward,
	.pgsc-checkout__step--entering-pending.pgsc-checkout__step--entering-backward {
		opacity: 1;
		transform: none;
	}

	.pgsc-checkout__progress-item--pulse .pgsc-checkout__progress-number {
		animation: none;
	}

	.pgsc-checkout__step-transition-overlay {
		transition: none;
	}

	.pgsc-checkout__step-transition-spinner {
		animation: none;
	}
}

.pgsc-checkout__step--active {
	display: block;
	border-color: var(--pgsc-color-step-active-border, #6b2838);
}

.pgsc-checkout__step-header {
	margin-bottom: 16px;
}

.pgsc-checkout__step-title {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--pgsc-color-text-heading, #111827);
}

.pgsc-checkout__step-body {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.pgsc-checkout__step-block {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px;
	border: 1px solid var(--pgsc-color-border-subtle, #e5e7eb);
	border-radius: var(--pgsc-radius-card, 10px);
	background: var(--pgsc-color-surface-raised, #fafafa);
}

.pgsc-checkout__step-block-title {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--pgsc-color-text-heading, #111827);
}

.pgsc-checkout__contact-fields,
.pgsc-checkout__delivery-section {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.pgsc-checkout__contact-row {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}

.pgsc-checkout__contact-row--name {
	flex-direction: row;
	gap: 12px;
}

.pgsc-checkout__contact-row--name .pgsc-checkout__field {
	flex: 1 1 0;
	min-width: 0;
	width: auto;
}

@media (max-width: 359px) {
	.pgsc-checkout__contact-row--name {
		flex-direction: column;
		gap: 16px;
	}

	.pgsc-checkout__contact-row--name .pgsc-checkout__field {
		width: 100%;
	}
}

/* -------------------------------------------------------------------------
   Form fields
   ------------------------------------------------------------------------- */

.pgsc-checkout__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
}

.pgsc-checkout__label {
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--pgsc-color-text-label, #374151);
}

.pgsc-checkout__input,
.pgsc-checkout__textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--pgsc-color-border-input, #d1d5db);
	border-radius: var(--pgsc-radius-button, 6px);
	background: var(--pgsc-color-input-bg, #fff);
	color: var(--pgsc-color-text-heading, #111827);
	font-size: 1rem;
	line-height: 1.4;
}

.pgsc-checkout__textarea {
	min-height: 96px;
	resize: vertical;
}

.pgsc-checkout__input:focus,
.pgsc-checkout__textarea:focus {
	outline: 2px solid var(--pgsc-color-input-focus-border, #6b2838);
	outline-offset: 1px;
	border-color: var(--pgsc-color-input-focus-border, #6b2838);
}

/* -------------------------------------------------------------------------
   Checkbox
   ------------------------------------------------------------------------- */

.pgsc-checkout__checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.pgsc-checkout__checkbox {
	margin-top: 3px;
	flex-shrink: 0;
}

.pgsc-checkout__checkbox-text {
	font-size: 0.9375rem;
	line-height: 1.45;
	color: var(--pgsc-color-text-label, #374151);
}

/* -------------------------------------------------------------------------
   Location
   ------------------------------------------------------------------------- */

.pgsc-checkout__location-readonly {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--pgsc-color-border-neutral, #e5e7eb);
	border-radius: var(--pgsc-radius-button, 6px);
	background: var(--pgsc-color-surface-muted, #f9fafb);
}

.pgsc-checkout__location-title {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--pgsc-color-text-heading, #111827);
}

.pgsc-checkout__location-value,
.pgsc-checkout__location-empty {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: var(--pgsc-color-text-label, #374151);
}

.pgsc-checkout__location-change {
	align-self: flex-start;
	padding: 8px 12px;
	border: 1px solid var(--pgsc-color-button-secondary-border, #d1d5db);
	border-radius: 6px;
	background: var(--pgsc-color-button-secondary-bg, #fff);
	color: var(--pgsc-color-button-secondary-text, #111827);
	font-size: 0.875rem;
	cursor: pointer;
}

/* -------------------------------------------------------------------------
   Delivery modalities
   ------------------------------------------------------------------------- */

.pgsc-checkout__modality-selector {
	margin: 0;
	padding: 0;
	border: 0;
}

.pgsc-checkout__modality-fixed {
	margin: 0;
}

.pgsc-checkout__modality-fixed-title {
	margin: 0 0 10px;
	padding: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--pgsc-color-text-heading, #111827);
}

.pgsc-checkout__modality-legend {
	margin-bottom: 10px;
	padding: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--pgsc-color-text-heading, #111827);
}

.pgsc-checkout__modality-empty {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--pgsc-color-text-hint, #6b7280);
}

.pgsc-checkout__modality-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pgsc-checkout__modality-item {
	width: 100%;
}

.pgsc-checkout__modality-option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	padding: 12px;
	border: 1px solid var(--pgsc-color-border-neutral, #e5e7eb);
	border-radius: var(--pgsc-radius-button, 6px);
	background: var(--pgsc-color-surface, #fff);
	cursor: pointer;
}

.pgsc-checkout__modality-input {
	margin-top: 3px;
	flex-shrink: 0;
}

.pgsc-checkout__modality-label {
	font-size: 0.9375rem;
	line-height: 1.45;
	color: var(--pgsc-color-text-label, #374151);
}

/* -------------------------------------------------------------------------
   Delivery panels / fields
   ------------------------------------------------------------------------- */

.pgsc-checkout__delivery-fields,
.pgsc-checkout__location,
.pgsc-checkout__modalities {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.pgsc-checkout__delivery-panel {
	display: block;
	width: 100%;
}

.pgsc-checkout__delivery-panel--hidden {
	display: none;
}

/* FASE 6.2-C — overlay refresh delivery (REQ-UX-02) */
.pgsc-checkout__delivery-refresh-host {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.pgsc-checkout__delivery-refresh-host--refreshing .pgsc-checkout__location,
.pgsc-checkout__delivery-refresh-host--refreshing .pgsc-checkout__modalities,
.pgsc-checkout__delivery-refresh-host--refreshing .pgsc-checkout__delivery-fields {
	opacity: var(--pgsc-opacity-state-loading-soft, 0.7);
}

.pgsc-checkout__delivery-refresh-overlay {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: var(--pgsc-color-overlay-backdrop-checkout, rgba(42, 38, 38, 0.42));
	backdrop-filter: blur(5px);
	opacity: 0;
	transition: opacity var(--pgsc-duration-fast, 220ms) var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1));
}

.pgsc-checkout__delivery-refresh-overlay--visible {
	opacity: 1;
}

.pgsc-checkout__delivery-refresh-overlay[hidden] {
	display: none !important;
}

.pgsc-checkout__delivery-refresh-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.625rem;
	width: min(100%, 18rem);
	padding: 1.125rem 1.25rem;
	border: 1px solid var(--pgsc-color-border-subtle, var(--pgsc-rose-soft, #f8e8ec));
	border-radius: var(--pgsc-radius-lg, 16px);
	background: var(--pgsc-color-surface, #fff);
	box-shadow: 0 16px 36px rgba(42, 38, 38, 0.12);
	text-align: center;
}

.pgsc-checkout__delivery-refresh-visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
}

.pgsc-checkout__delivery-refresh-spinner {
	position: absolute;
	inset: 0;
	border: 3px solid var(--pgsc-color-state-spinner-track-brand, #f3d9de);
	border-top-color: var(--pgsc-color-state-spinner-active-brand, #6b2838);
	border-radius: 50%;
	animation: pgsc-delivery-refresh-spin 0.85s linear infinite;
}

.pgsc-checkout__delivery-refresh-icon {
	position: relative;
	z-index: 1;
	font-size: 1.25rem;
	line-height: 1;
}

.pgsc-checkout__delivery-refresh-message {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
}

@keyframes pgsc-delivery-refresh-spin {
	to {
		transform: rotate(360deg);
	}
}

.pgsc-checkout__location--entering-pending,
.pgsc-checkout__modalities--entering-pending,
.pgsc-checkout__delivery-fields--entering-pending {
	opacity: 0;
	transform: translateY(8px);
}

.pgsc-checkout__location--entering,
.pgsc-checkout__modalities--entering,
.pgsc-checkout__delivery-fields--entering {
	opacity: 1;
	transform: translateY(0);
	transition:
		opacity var(--pgsc-duration-fast, 200ms) var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1)),
		transform var(--pgsc-duration-fast, 200ms) var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1));
}

@media (prefers-reduced-motion: reduce) {
	.pgsc-checkout__delivery-refresh-overlay {
		transition: none;
	}

	.pgsc-checkout__delivery-refresh-spinner {
		animation: none;
		border-top-color: var(--pgsc-color-state-spinner-active-brand, #6b2838);
	}

	.pgsc-checkout__location--entering-pending,
	.pgsc-checkout__modalities--entering-pending,
	.pgsc-checkout__delivery-fields--entering-pending,
	.pgsc-checkout__location--entering,
	.pgsc-checkout__modalities--entering,
	.pgsc-checkout__delivery-fields--entering {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

.pgsc-checkout__delivery-fields--monteria-home,
.pgsc-checkout__delivery-fields--monteria-store,
.pgsc-checkout__delivery-fields--national-address,
.pgsc-checkout__delivery-fields--national-carrier {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pgsc-checkout__delivery-note {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: var(--pgsc-color-text-label, #374151);
}

/* -------------------------------------------------------------------------
   Summary
   ------------------------------------------------------------------------- */

.pgsc-checkout__summary {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.pgsc-checkout__summary-section {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--pgsc-color-border, var(--pgsc-rose-muted, #f3d9de));
	border-radius: var(--pgsc-radius-card, var(--pgsc-radius-md, 12px));
	background: var(--pgsc-color-card, var(--pgsc-white, #fff));
	box-shadow: var(--pgsc-shadow-card, 0 6px 20px var(--pgsc-shadow-soft, rgba(42, 38, 38, 0.08)));
}

.pgsc-checkout__summary-section--items {
	background: linear-gradient(
		180deg,
		var(--pgsc-color-surface, var(--pgsc-white, #fff)) 0%,
		var(--pgsc-color-background-subtle, var(--pgsc-nude-deep, #ede3db)) 100%
	);
}

.pgsc-checkout__summary-section--totals {
	background: linear-gradient(
		145deg,
		var(--pgsc-color-border-subtle, var(--pgsc-rose-soft, #f8e8ec)) 0%,
		var(--pgsc-color-background, var(--pgsc-nude, #f8f1ec)) 55%,
		var(--pgsc-color-surface, var(--pgsc-white, #fff)) 100%
	);
	border-color: var(--pgsc-color-accent, var(--pgsc-rose, #e8b4bc));
	box-shadow:
		var(--pgsc-shadow-card, 0 6px 20px var(--pgsc-shadow-soft, rgba(42, 38, 38, 0.08))),
		inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.pgsc-checkout__summary-heading {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
}

.pgsc-checkout__summary-items {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pgsc-checkout__summary-item {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	grid-template-rows: auto auto;
	gap: 4px 12px;
	align-items: start;
	padding: 12px;
	border: 1px solid var(--pgsc-color-border-subtle, var(--pgsc-rose-soft, #f8e8ec));
	border-radius: var(--pgsc-radius-md, 12px);
	background: var(--pgsc-color-surface, #fff);
	box-shadow: 0 4px 14px rgba(42, 38, 38, 0.06);
	font-size: 0.9375rem;
	line-height: 1.45;
}

.pgsc-checkout__summary-item--enhanced {
	grid-template-columns: 72px minmax(0, 1fr);
}

.pgsc-checkout__summary-item-media {
	grid-row: 1 / span 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border-radius: var(--pgsc-radius-sm, 8px);
	background: linear-gradient(
		145deg,
		var(--pgsc-color-border-subtle, var(--pgsc-rose-soft, #f8e8ec)) 0%,
		var(--pgsc-color-background, var(--pgsc-nude, #f8f1ec)) 100%
	);
}

.pgsc-checkout__summary-item-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pgsc-checkout__summary-item-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.pgsc-checkout__summary-item-name {
	color: var(--pgsc-color-text, var(--pgsc-black-soft, #2a2626));
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.35;
}

.pgsc-checkout__summary-item-qty {
	color: var(--pgsc-color-text-muted, #5e5858);
	font-size: 0.8125rem;
	font-weight: 500;
}

.pgsc-checkout__summary-item-price {
	grid-column: 2;
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
	font-weight: 700;
	font-size: 0.9375rem;
	text-align: left;
	white-space: nowrap;
}

.pgsc-checkout__summary-item:not(.pgsc-checkout__summary-item--enhanced) .pgsc-checkout__summary-item-name {
	grid-column: 1 / -1;
}

.pgsc-checkout__summary-item:not(.pgsc-checkout__summary-item--enhanced) .pgsc-checkout__summary-item-qty {
	grid-column: 1;
}

.pgsc-checkout__summary-item:not(.pgsc-checkout__summary-item--enhanced) .pgsc-checkout__summary-item-price {
	grid-column: 2;
	text-align: right;
}

.pgsc-checkout__summary-totals {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding-top: 4px;
}

.pgsc-checkout__summary-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 0;
}

.pgsc-checkout__summary-row--total {
	flex-wrap: wrap;
	margin-top: 10px;
	padding: 16px 14px;
	border-top: 0;
	border-radius: var(--pgsc-radius-md, 12px);
	background: linear-gradient(
		135deg,
		var(--pgsc-color-surface, var(--pgsc-white, #fff)) 0%,
		var(--pgsc-color-border-subtle, var(--pgsc-rose-soft, #f8e8ec)) 100%
	);
	box-shadow: inset 0 0 0 1px var(--pgsc-color-accent, var(--pgsc-rose, #e8b4bc));
}

.pgsc-checkout__summary-row--total .pgsc-checkout__summary-label {
	flex: 1 1 100%;
}

.pgsc-checkout__summary-row--total .pgsc-checkout__summary-value {
	flex: 1 1 100%;
	margin-top: 4px;
	text-align: left;
}

.pgsc-checkout__summary-vat-note {
	flex: 1 1 100%;
	margin: 6px 0 0;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.35;
	color: var(--pgsc-color-text-muted, #5e5858);
	text-align: left;
}

.pgsc-checkout__summary-row--gift-total {
	position: relative;
}

.pgsc-checkout__summary-total-eyebrow {
	display: block;
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
}

.pgsc-checkout__summary-row--total .pgsc-checkout__summary-label,
.pgsc-checkout__summary-row--total .pgsc-checkout__summary-value {
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--pgsc-color-primary-hover, var(--pgsc-wine-dark, #4f1c2a));
}

.pgsc-checkout__summary-value--total {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
}

.pgsc-checkout__summary-label,
.pgsc-checkout__summary-value {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.45;
}

.pgsc-checkout__summary-label {
	color: var(--pgsc-color-text-muted, var(--pgsc-black-muted, #5e5858));
}

.pgsc-checkout__summary-value {
	color: var(--pgsc-color-text, var(--pgsc-black-soft, #2a2626));
	text-align: right;
}

.pgsc-checkout__summary-row--discount {
	padding: 8px 10px;
	border-radius: var(--pgsc-radius-sm, 8px);
	background: var(--pgsc-color-discount-bg, var(--pgsc-rose-soft, #f8e8ec));
}

.pgsc-checkout__summary-row--discount .pgsc-checkout__summary-label {
	display: flex;
	flex-direction: column;
	gap: 2px;
	color: var(--pgsc-color-primary-hover, var(--pgsc-wine-dark, #4f1c2a));
	font-weight: 600;
}

.pgsc-checkout__summary-discount-code {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--pgsc-color-text-muted, var(--pgsc-black-muted, #5e5858));
}

.pgsc-checkout__summary-row--discount .pgsc-checkout__summary-value--discount {
	color: var(--pgsc-color-discount, var(--pgsc-wine, #6b2838));
	font-weight: 700;
}

.pgsc-checkout__summary-financials {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.pgsc-checkout__coupon {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--pgsc-color-border, var(--pgsc-rose-muted, #f3d9de));
	border-radius: var(--pgsc-radius-card, var(--pgsc-radius-md, 12px));
	background: var(--pgsc-color-card, var(--pgsc-white, #fff));
}

.pgsc-checkout__coupon-heading {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.9375rem;
}

.pgsc-checkout__coupon-heading-stack {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.3125rem;
	min-width: 0;
}

.pgsc-checkout__coupon-heading-main {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--pgsc-color-text, var(--pgsc-black-soft, #2a2626));
}

.pgsc-checkout__coupon-heading-emoji {
	flex-shrink: 0;
	font-size: 1.0625rem;
	line-height: 1;
}

.pgsc-checkout__coupon-heading-sub {
	display: block;
	font-size: 0.6875rem;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.02em;
	color: var(--pgsc-color-text-muted, #5e5858);
	opacity: 0.82;
}

.pgsc-checkout__coupon-heading--toggle {
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
}

.pgsc-checkout__coupon-heading--toggle:focus-visible {
	outline: 2px solid var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
	outline-offset: 3px;
	border-radius: 4px;
}

/* FASE 6.2-K — Lista legacy PHP oculta; UI premium usa applied-state */
.pgsc-checkout__coupon-applied-list {
	display: none !important;
}

.pgsc-checkout__coupon-accordion-panel:not( [hidden] ) {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pgsc-checkout__coupon-accordion-panel[hidden] {
	display: none !important;
}

.pgsc-checkout__coupon-field-label {
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--pgsc-color-text-muted, #5e5858);
}

.pgsc-checkout__coupon--accordion-collapsed {
	padding: 12px 14px;
	gap: 0;
}

/* FASE 6.2-J.1 — Estados exclusivos cupón (data-pgsc-coupon-ui-state) */
.pgsc-checkout__coupon[data-pgsc-coupon-ui-state='collapsed']
	.pgsc-checkout__coupon-accordion-panel,
.pgsc-checkout__coupon[data-pgsc-coupon-ui-state='collapsed']
	.pgsc-checkout__coupon-applied-state,
.pgsc-checkout__coupon[data-pgsc-coupon-ui-state='collapsed']
	.pgsc-checkout__coupon-applied-list,
.pgsc-checkout__coupon[data-pgsc-coupon-ui-state='collapsed']
	.pgsc-checkout__coupon-notice {
	display: none !important;
}

.pgsc-checkout__coupon[data-pgsc-coupon-ui-state='open']
	.pgsc-checkout__coupon-applied-state,
.pgsc-checkout__coupon[data-pgsc-coupon-ui-state='open']
	.pgsc-checkout__coupon-applied-list,
.pgsc-checkout__coupon[data-pgsc-coupon-ui-state='open']
	.pgsc-checkout__coupon-heading--toggle,
.pgsc-checkout__coupon[data-pgsc-coupon-ui-state='open']
	.pgsc-checkout__coupon-notice {
	display: none !important;
}

.pgsc-checkout__coupon[data-pgsc-coupon-ui-state='open']
	.pgsc-checkout__coupon-accordion-panel {
	display: flex !important;
}

.pgsc-checkout__coupon[data-pgsc-coupon-ui-state='open']
	.pgsc-checkout__coupon-notice--error:not( [hidden] ) {
	display: block !important;
}

.pgsc-checkout__coupon[data-pgsc-coupon-ui-state='change']
	.pgsc-checkout__coupon-applied-state,
.pgsc-checkout__coupon[data-pgsc-coupon-ui-state='change']
	.pgsc-checkout__coupon-applied-list,
.pgsc-checkout__coupon[data-pgsc-coupon-ui-state='change']
	.pgsc-checkout__coupon-heading--toggle,
.pgsc-checkout__coupon[data-pgsc-coupon-ui-state='change']
	.pgsc-checkout__coupon-notice {
	display: none !important;
}

.pgsc-checkout__coupon[data-pgsc-coupon-ui-state='change']
	.pgsc-checkout__coupon-accordion-panel {
	display: flex !important;
}

.pgsc-checkout__coupon[data-pgsc-coupon-ui-state='change']
	.pgsc-checkout__coupon-notice--error:not( [hidden] ) {
	display: block !important;
}

.pgsc-checkout__coupon[data-pgsc-coupon-ui-state='applied']
	.pgsc-checkout__coupon-accordion-panel,
.pgsc-checkout__coupon[data-pgsc-coupon-ui-state='applied']
	.pgsc-checkout__coupon-heading--toggle,
.pgsc-checkout__coupon[data-pgsc-coupon-ui-state='applied']
	.pgsc-checkout__coupon-applied-list,
.pgsc-checkout__coupon[data-pgsc-coupon-ui-state='applied']
	.pgsc-checkout__coupon-notice {
	display: none !important;
}

.pgsc-checkout__coupon[data-pgsc-coupon-ui-state='applied']
	.pgsc-checkout__coupon-applied-state {
	display: flex !important;
}

.pgsc-checkout__coupon-icon {
	font-size: 1.125rem;
	line-height: 1;
}

.pgsc-checkout__coupon-form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
}

.pgsc-checkout__coupon-input {
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--pgsc-color-border, var(--pgsc-rose-muted, #f3d9de));
	border-radius: var(--pgsc-radius-button, var(--pgsc-radius-sm, 8px));
	background: var(--pgsc-color-background, var(--pgsc-nude, #f8f1ec));
	font-size: 16px;
}

.pgsc-checkout__coupon-input:focus {
	border-color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
	outline: none;
	box-shadow: 0 0 0 3px var(--pgsc-color-border-subtle, var(--pgsc-rose-soft, #f8e8ec));
}

.pgsc-checkout__coupon-button {
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--pgsc-color-button-primary-border, var(--pgsc-wine, #6b2838));
	border-radius: var(--pgsc-radius-sm, 8px);
	background: var(--pgsc-color-button-primary-bg, var(--pgsc-wine, #6b2838));
	color: var(--pgsc-color-on-primary, #fff);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
}

.pgsc-checkout__coupon-button--loading {
	opacity: var(--pgsc-opacity-state-loading-button, 0.8);
	cursor: wait;
}

.pgsc-checkout__coupon-applied-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pgsc-checkout__coupon-applied-item {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	padding: 10px 12px;
	border-radius: var(--pgsc-radius-sm, 8px);
	background: var(--pgsc-color-discount-bg, var(--pgsc-rose-soft, #f8e8ec));
	font-size: 0.875rem;
}

.pgsc-checkout__coupon-notice {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.45;
}

.pgsc-checkout__coupon-notice--error {
	color: var(--pgsc-color-state-error-text, var(--pgsc-color-error-text, #611a15));
}

.pgsc-checkout__coupon-notice--success {
	color: var(--pgsc-color-state-success-text-brand, var(--pgsc-color-primary-hover, var(--pgsc-wine-dark, #4f1c2a)));
}

.pgsc-checkout__summary-financials > .pgsc-checkout__coupon {
	display: none !important;
}

.pgsc-checkout__coupon--applied {
	padding: 10px 12px;
	border-color: rgba(46, 125, 50, 0.22);
	background: rgba(46, 125, 50, 0.05);
}

.pgsc-checkout__coupon-applied-state {
	flex-direction: column;
	gap: 6px;
}

.pgsc-checkout__coupon-applied-badge {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.35;
	color: #2e7d32;
}

.pgsc-checkout__coupon-applied-check {
	font-size: 0.9375rem;
	line-height: 1;
}

.pgsc-checkout__coupon-applied-code-row,
.pgsc-checkout__coupon-applied-savings-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
}

.pgsc-checkout__coupon-applied-code-label,
.pgsc-checkout__coupon-applied-savings-label {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--pgsc-color-text-muted, #5e5858);
}

.pgsc-checkout__coupon-applied-code,
.pgsc-checkout__coupon-applied-savings {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
}

.pgsc-checkout__coupon-applied-code {
	letter-spacing: 0.02em;
	color: var(--pgsc-color-text, var(--pgsc-black-soft, #2a2626));
}

.pgsc-checkout__coupon-change {
	align-self: flex-start;
	margin-top: 2px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.35;
	cursor: pointer;
}

.pgsc-checkout__coupon-change span {
	display: inline-block;
}

.pgsc-checkout__delivery-fields--monteria-home > .pgsc-checkout__geo-action {
	margin-bottom: 4px;
}

/* -------------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------------- */

.pgsc-checkout__nav {
	display: flex;
	flex-direction: column-reverse;
	gap: 10px;
	width: 100%;
}

.pgsc-checkout__nav-button {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--pgsc-color-button-secondary-border, #d1d5db);
	border-radius: 6px;
	background: var(--pgsc-color-button-secondary-bg, #fff);
	color: var(--pgsc-color-button-secondary-text, #111827);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
}

.pgsc-checkout__nav-button--next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	border-color: var(--pgsc-color-button-functional-border, #6b2838);
	background: var(--pgsc-color-button-functional-bg, #6b2838);
	color: var(--pgsc-color-on-primary, #fff);
	font-weight: 600;
	box-shadow: 0 8px 20px rgba(107, 40, 56, 0.22);
	transition:
		transform var(--pgsc-duration-fast, 200ms) var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1)),
		opacity var(--pgsc-duration-fast, 200ms) var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1)),
		background-color var(--pgsc-duration-fast, 200ms) var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1)),
		box-shadow var(--pgsc-duration-fast, 200ms) var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1));
}

.pgsc-checkout__nav-button--next:not(:disabled):hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(107, 40, 56, 0.28);
}

.pgsc-checkout__nav-button--next .pgsc-checkout__nav-button-chevron {
	font-size: 1.125rem;
	line-height: 1;
	opacity: 0.95;
}

.pgsc-checkout__nav-button--next .pgsc-checkout__nav-button-label {
	display: inline-block;
}

.pgsc-checkout__nav-button--next .pgsc-checkout__nav-button-spinner {
	display: none;
	width: 1rem;
	height: 1rem;
	margin-right: 0.5rem;
	border: 2px solid var(--pgsc-color-state-spinner-track-on-primary, rgba(255, 255, 255, 0.35));
	border-top-color: var(--pgsc-color-state-spinner-active-on-primary, var(--pgsc-color-on-primary, #fff));
	border-radius: 50%;
	vertical-align: -0.15em;
	animation: pgsc-step-transition-spin 0.7s linear infinite;
}

.pgsc-checkout__nav-button--next.pgsc-checkout__nav-button--saving {
	opacity: var(--pgsc-opacity-state-processing, 0.92);
	cursor: wait;
	transform: none;
	box-shadow: 0 4px 12px rgba(107, 40, 56, 0.18);
}

.pgsc-checkout__nav-button--next.pgsc-checkout__nav-button--saving .pgsc-checkout__nav-button-spinner {
	display: inline-block;
}

.pgsc-checkout__nav-button--next.pgsc-checkout__nav-button--saving .pgsc-checkout__nav-button-chevron {
	display: none;
}

.pgsc-checkout__nav-button--next:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	background: var(--pgsc-color-text-muted, #9ca3af);
	border-color: var(--pgsc-color-text-muted, #9ca3af);
	box-shadow: none;
	transform: none;
}

.pgsc-checkout__nav-button:focus {
	outline: 2px solid var(--pgsc-color-focus-ring, #6b2838);
	outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   Mobile-first (390px baseline)
   ------------------------------------------------------------------------- */

.pgsc-checkout__step {
	padding: 14px;
}

/* -------------------------------------------------------------------------
   Desktop
   ------------------------------------------------------------------------- */

@media (min-width: 768px) {
	.pgsc-checkout__mount {
		max-width: 640px;
		padding: 24px;
	}

	.pgsc-checkout__progress-label {
		font-size: 0.75rem;
	}

	.pgsc-checkout__nav {
		flex-direction: row;
		justify-content: space-between;
	}

	.pgsc-checkout__nav-button {
		width: auto;
		min-width: 140px;
	}

	.pgsc-checkout__summary-item--enhanced {
		grid-template-columns: 80px minmax(0, 1fr);
	}

	.pgsc-checkout__summary-item-media {
		width: 80px;
		height: 80px;
	}
}

@media (min-width: 1024px) {
	.pgsc-checkout__mount {
		max-width: 720px;
	}
}

.pgsc-checkout__summary-delivery-card {
	display: none !important;
}

/* -------------------------------------------------------------------------
   FASE 6.2-I — Premium summary hierarchy (mobile-first 390px)
   ------------------------------------------------------------------------- */

.pgsc-checkout__summary-section--subtotal {
	padding: 0;
	border: 0;
	background: transparent;
}

.pgsc-checkout__summary-subtotal-compact {
	margin: 0;
	padding: 12px 0 6px;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.5;
	color: var(--pgsc-color-text-muted, #5e5858);
}

.pgsc-checkout__summary-subtotal-compact-text {
	display: block;
	word-break: break-word;
}

.pgsc-checkout__summary-subtotal-compact-label,
.pgsc-checkout__summary-subtotal-compact-amount {
	font-weight: 700;
	color: var(--pgsc-color-text, var(--pgsc-black-soft, #2a2626));
}

.pgsc-checkout__summary-subtotal-compact-amount {
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
}

.pgsc-checkout__summary-subtotal-hint {
	display: none;
}

.pgsc-checkout__summary-subtotal-row {
	display: none;
}

.pgsc-checkout__summary-savings-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-top: 10px;
	padding: 10px 12px;
	border-radius: var(--pgsc-radius-sm, 10px);
	background: rgba(107, 40, 56, 0.06);
}

.pgsc-checkout__summary-savings-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--pgsc-color-text, var(--pgsc-black-soft, #2a2626));
}

.pgsc-checkout__summary-savings-value {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
}

.pgsc-checkout__summary-delivery-row--location,
.pgsc-checkout__summary-delivery-row--modality {
	display: block;
}

.pgsc-checkout__summary-delivery-row--location .pgsc-checkout__summary-delivery-label,
.pgsc-checkout__summary-delivery-row--modality .pgsc-checkout__summary-delivery-label {
	display: none;
}

.pgsc-checkout__summary-delivery-row--location .pgsc-checkout__summary-delivery-value,
.pgsc-checkout__summary-delivery-row--modality .pgsc-checkout__summary-delivery-value {
	text-align: left;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
}

.pgsc-checkout__summary-delivery-row--cost {
	margin-top: 2px;
	padding-top: 10px;
	border-top: 1px solid var(--pgsc-color-border-subtle, var(--pgsc-rose-soft, #f8e8ec));
}

.pgsc-checkout__step-transition-visual--compact .pgsc-checkout__step-transition-icon {
	display: none;
}

.pgsc-checkout__step-transition-visual--compact {
	width: 3rem;
	height: 3rem;
}

/* -------------------------------------------------------------------------
   FASE 6.2-G — Premium Checkout Experience refinements
   ------------------------------------------------------------------------- */

.pgsc-checkout__step-transition-overlay {
	backdrop-filter: blur(8px);
}

.pgsc-checkout__step-transition-card {
	width: min(100%, 19rem);
	padding: 1.375rem 1.5rem 1.25rem;
	border-radius: var(--pgsc-radius-lg, 18px);
	box-shadow: 0 20px 48px rgba(42, 38, 38, 0.16);
}

.pgsc-checkout__step-transition-message {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.35;
}

.pgsc-checkout__step-transition-subtitle {
	max-width: 16rem;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--pgsc-color-text-muted, #5e5858);
}

.pgsc-checkout__modality-option {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border: 1.5px solid var(--pgsc-color-border-neutral, #e8e2e6);
	border-radius: var(--pgsc-radius-md, 14px);
	background: var(--pgsc-color-surface, #fff);
	box-shadow: 0 2px 8px rgba(42, 38, 38, 0.04);
	cursor: pointer;
	transition:
		border-color var(--pgsc-duration-fast, 220ms) var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1)),
		background var(--pgsc-duration-fast, 220ms) var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1)),
		box-shadow var(--pgsc-duration-fast, 220ms) var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1)),
		transform var(--pgsc-duration-fast, 220ms) var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1));
}

.pgsc-checkout__modality-option--selected,
.pgsc-checkout__modality-option:has(.pgsc-checkout__modality-input:checked) {
	border-color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
	background: linear-gradient(
		145deg,
		var(--pgsc-color-surface, #fff) 0%,
		var(--pgsc-color-border-subtle, var(--pgsc-rose-soft, #f8e8ec)) 100%
	);
	box-shadow:
		0 8px 22px rgba(107, 40, 56, 0.12),
		inset 0 0 0 1px rgba(107, 40, 56, 0.06);
	transform: translateY(-1px);
}

.pgsc-checkout__modality-input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pgsc-checkout__modality-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: var(--pgsc-color-background-subtle, var(--pgsc-nude-deep, #ede3db));
	font-size: 1.125rem;
	line-height: 1;
}

.pgsc-checkout__modality-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.pgsc-checkout__modality-label {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--pgsc-color-text, var(--pgsc-black-soft, #2a2626));
}

.pgsc-checkout__modality-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.375rem;
	height: 1.375rem;
	border-radius: 999px;
	background: transparent;
	color: transparent;
	font-size: 0.75rem;
	font-weight: 700;
	transition:
		background var(--pgsc-duration-fast, 220ms) ease,
		color var(--pgsc-duration-fast, 220ms) ease;
}

.pgsc-checkout__modality-option--selected .pgsc-checkout__modality-check,
.pgsc-checkout__modality-option:has(.pgsc-checkout__modality-input:checked) .pgsc-checkout__modality-check {
	background: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
	color: var(--pgsc-color-on-primary, #fff);
}

.pgsc-checkout__summary-section--delivery,
.pgsc-checkout__summary-section--savings {
	background: var(--pgsc-color-surface, #fff);
}

.pgsc-checkout__summary-delivery-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
}

.pgsc-checkout__summary-delivery-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.pgsc-checkout__summary-delivery-label {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--pgsc-color-text-muted, #5e5858);
}

.pgsc-checkout__summary-delivery-value {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--pgsc-color-text, var(--pgsc-black-soft, #2a2626));
	text-align: right;
}

.pgsc-checkout__summary-section--savings .pgsc-checkout__coupon {
	margin-top: 4px;
	padding: 14px;
	border-top: 0;
}

.pgsc-checkout__summary-section--total-emphasis .pgsc-checkout__summary-row--discount {
	display: flex !important;
	margin-bottom: 6px;
}

.pgsc-checkout__summary-section--total-emphasis
	.pgsc-checkout__summary-row--discount
	.pgsc-checkout__summary-discount-code {
	display: none;
}

.pgsc-checkout__summary-row--savings-discount {
	padding: 10px 12px;
	border-radius: var(--pgsc-radius-sm, 10px);
	background: rgba(107, 40, 56, 0.06);
}

.pgsc-checkout__summary-row--visually-compact {
	display: none !important;
}

.pgsc-checkout__summary-section--total-emphasis {
	padding-top: 18px;
	border-width: 1.5px;
}

.pgsc-checkout__summary-item {
	padding: 14px;
	border-radius: var(--pgsc-radius-md, 14px);
	box-shadow: 0 6px 18px rgba(42, 38, 38, 0.07);
}

.pgsc-checkout__summary-item-media {
	width: 76px;
	height: 76px;
	border-radius: var(--pgsc-radius-md, 12px);
}

.pgsc-checkout__summary-item-name {
	font-size: 0.96875rem;
	font-weight: 600;
}

.pgsc-checkout__summary-item-price {
	font-size: 1rem;
	font-weight: 700;
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
}

.pgsc-checkout__summary-item-media--placeholder::after {
	content: '🎁';
	font-size: 1.5rem;
	line-height: 1;
	opacity: 0.55;
}

.pgsc-checkout__trust {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 4px;
	padding: 14px 16px;
	border: 1px solid var(--pgsc-color-border-subtle, var(--pgsc-rose-soft, #f8e8ec));
	border-radius: var(--pgsc-radius-md, 14px);
	background: linear-gradient(
		180deg,
		var(--pgsc-color-surface, #fff) 0%,
		var(--pgsc-color-background-subtle, var(--pgsc-nude-deep, #ede3db)) 100%
	);
}

.pgsc-checkout__trust-title {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
}

.pgsc-checkout__trust-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pgsc-checkout__trust-item {
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--pgsc-color-text-muted, #5e5858);
}

.pgsc-checkout__location-picker-chrome {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 14px;
}

.pgsc-checkout__location-picker-back {
	align-self: flex-start;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.35;
	cursor: pointer;
}

.pgsc-checkout__location-picker-title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--pgsc-color-text, var(--pgsc-black-soft, #2a2626));
}

.pgsc-checkout__location-picker-subtitle {
	margin: 0 0 6px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--pgsc-color-text-muted, #5e5858);
}

.pgsc-checkout__location-search-field label {
	font-size: 0.875rem;
	font-weight: 600;
}

.pgsc-checkout__location-search-field .pgsc-side-cart__city-search {
	padding: 12px 14px;
	border: 1.5px solid var(--pgsc-color-border-neutral, #e8e2e6);
	border-radius: var(--pgsc-radius-md, 12px);
	font-size: 0.9375rem;
}

.pgsc-side-cart--checkout.pgsc-side-cart--location-open .pgsc-side-cart__shipping {
	padding-top: 16px;
}

.pgsc-side-cart--checkout.pgsc-side-cart--location-open .pgsc-side-cart__state-select,
.pgsc-side-cart--checkout.pgsc-side-cart--location-open .pgsc-side-cart__city-search {
	border-radius: var(--pgsc-radius-md, 12px);
}

.pgsc-side-cart--checkout.pgsc-side-cart--location-open .pgsc-city-results {
	border-radius: var(--pgsc-radius-md, 12px);
	box-shadow: 0 12px 28px rgba(42, 38, 38, 0.12);
}

@media (max-width: 420px) {
	.pgsc-checkout__progress-list--premium {
		padding-inline: 0;
	}

	.pgsc-checkout__progress-label {
		font-size: 0.625rem;
		max-width: 4.75rem;
	}

	.pgsc-checkout__progress-number {
		width: 34px;
		height: 34px;
	}

	.pgsc-checkout__progress-connector {
		top: 17px;
		left: calc(50% + 19px);
		width: calc(100% - 38px);
	}

	.pgsc-checkout__summary-item {
		grid-template-columns: 64px minmax(0, 1fr);
	}

	.pgsc-checkout__summary-item-media {
		width: 64px;
		height: 64px;
	}
}

/* -------------------------------------------------------------------------
   FASE 6.2-L / 6.2-L.1 — Transición premium Confirmar y pagar → Pago
   Reutiliza card/spinner de step-transition-overlay.
   ------------------------------------------------------------------------- */

.pgsc-checkout__payment-transition-overlay {
	z-index: 24;
	background: var(--pgsc-color-overlay-backdrop-checkout, rgba(42, 38, 38, 0.48));
	backdrop-filter: blur(8px);
	opacity: 0;
	transition: opacity var(--pgsc-duration-fast, 220ms) var(--pgsc-ease-app, cubic-bezier(0.32, 0.72, 0, 1));
}

.pgsc-checkout__payment-transition-overlay:not( [hidden] ) {
	opacity: 1;
}

.pgsc-checkout__payment-transition-card {
	width: min(100%, 20rem);
	gap: 0.625rem;
	padding: 1.5rem 1.5rem 1.125rem;
	text-align: center;
	background: linear-gradient(
		180deg,
		var(--pgsc-color-surface, #fff) 0%,
		var(--pgsc-color-background, var(--pgsc-nude, #f8f1ec)) 100%
	);
	border-color: var(--pgsc-color-border-subtle, var(--pgsc-rose-soft, #f8e8ec));
}

.pgsc-checkout__payment-transition-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	margin-bottom: 0.125rem;
}

.pgsc-checkout__payment-transition-logo {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.015em;
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
}

.pgsc-checkout__payment-transition-tagline {
	max-width: 14rem;
	font-size: 0.6875rem;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0.02em;
	color: var(--pgsc-color-text-muted, #5e5858);
}

.pgsc-checkout__payment-transition-visual {
	width: 3.5rem;
	height: 3.5rem;
	margin: 0.125rem auto 0.25rem;
}

.pgsc-checkout__payment-transition-visual .pgsc-checkout__step-transition-icon {
	display: none;
}

.pgsc-checkout__payment-transition-title {
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
}

.pgsc-checkout__payment-transition-checklist {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	width: 100%;
	margin: 0.375rem 0 0;
	padding: 0.875rem 0 0;
	border-top: 1px solid var(--pgsc-color-border-subtle, var(--pgsc-rose-soft, #f8e8ec));
	list-style: none;
	text-align: left;
}

.pgsc-checkout__payment-transition-check-item {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.35;
	color: var(--pgsc-color-text-muted, #5e5858);
}

.pgsc-checkout__payment-transition-check-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.125rem;
	font-size: 0.875rem;
	line-height: 1;
}

.pgsc-checkout__payment-transition-check-item--waiting
	.pgsc-checkout__payment-transition-check-icon::before {
	content: '◌';
	opacity: 0.35;
}

.pgsc-checkout__payment-transition-check-item--done {
	color: var(--pgsc-color-text, #2a2626);
}

.pgsc-checkout__payment-transition-check-item--done
	.pgsc-checkout__payment-transition-check-icon::before {
	content: '✓';
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
	font-weight: 700;
}

.pgsc-checkout__payment-transition-check-item--active {
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
	font-weight: 600;
}

.pgsc-checkout__payment-transition-check-item--active
	.pgsc-checkout__payment-transition-check-icon::before {
	content: '◌';
	animation: pgsc-payment-check-pulse 1.1s ease-in-out infinite;
}

@keyframes pgsc-payment-check-pulse {
	0%,
	100% {
		opacity: 0.35;
		transform: scale(1);
	}

	50% {
		opacity: 1;
		transform: scale(1.08);
	}
}

@media ( max-width: 390px ) {
	.pgsc-checkout__payment-transition-card {
		width: min(100%, 18.5rem);
		padding: 1.25rem 1.125rem 1rem;
	}

	.pgsc-checkout__payment-transition-logo {
		font-size: 1.375rem;
	}

	.pgsc-checkout__payment-transition-tagline {
		font-size: 0.65625rem;
	}

	.pgsc-checkout__payment-transition-checklist {
		gap: 0.4375rem;
	}

	.pgsc-checkout__payment-transition-check-item {
		font-size: 0.78125rem;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.pgsc-checkout__payment-transition-overlay {
		transition: none;
	}

	.pgsc-checkout__payment-transition-check-item--active
		.pgsc-checkout__payment-transition-check-icon::before {
		animation: none;
		opacity: 0.7;
	}
}

/* -------------------------------------------------------------------------
   Purchase Review Experience — Block System
   ------------------------------------------------------------------------- */

.pg-purchase-review-screen .pg-purchase-review__header {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--pgsc-color-border-subtle, var(--pgsc-rose-soft, #f8e8ec));
}

.pg-purchase-review-screen.pgsc-checkout__step--active .pg-purchase-review__header {
	animation: pg-purchase-review-header-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pg-purchase-review-header-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.pg-purchase-review__eyebrow {
	margin: 0 0 10px;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
	opacity: 0.88;
}

.pg-purchase-review__title {
	margin: 0;
	font-size: clamp(1.375rem, 5vw, 1.625rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.025em;
	color: var(--pgsc-color-text, var(--pgsc-black-soft, #2a2626));
}

.pg-purchase-review-screen .pg-purchase-review__intro {
	margin: 10px 0 0;
	max-width: 34ch;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.55;
	color: var(--pgsc-color-text-muted, #5e5858);
}

.pg-purchase-review-screen .pg-purchase-review__intro.pgsc-checkout__step-intro--summary {
	color: var(--pgsc-color-text-muted, #5e5858);
}

.pg-purchase-review,
.pg-purchase-review.pgsc-checkout__summary {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
}

.pg-purchase-block {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 18px;
	border: 1px solid var(--pgsc-color-border, var(--pgsc-rose-muted, #f3d9de));
	border-radius: var(--pgsc-radius-card, var(--pgsc-radius-md, 14px));
	background: var(--pgsc-color-card, var(--pgsc-white, #fff));
	box-shadow: var(--pgsc-shadow-card, 0 4px 16px rgba(42, 38, 38, 0.06));
}

.pg-purchase-block__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.pg-purchase-block__title {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
}

.pg-purchase-block__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pg-purchase-block__note,
.pg-purchase-block__empty {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--pgsc-color-text-muted, #5e5858);
}

.pg-purchase-review__financials-bundle {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.pg-purchase-review__financials-bundle > .pg-purchase-block {
	margin: 0;
}

.pg-purchase-block--products {
	background: linear-gradient(
		180deg,
		var(--pgsc-color-surface, #fff) 0%,
		var(--pgsc-color-background-subtle, var(--pgsc-nude-deep, #ede3db)) 100%
	);
}

.pg-purchase-block--delivery .pgsc-checkout__summary-delivery-value {
	font-size: 0.875rem;
	font-weight: 600;
}

.pg-purchase-block--breakdown {
	padding-top: 14px;
	padding-bottom: 14px;
}

.pg-purchase-block--breakdown .pgsc-checkout__summary-row {
	padding: 6px 0;
}

.pg-purchase-block--breakdown .pgsc-checkout__summary-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--pgsc-color-text-muted, #5e5858);
}

.pg-purchase-block--breakdown .pgsc-checkout__summary-value {
	font-size: 0.9375rem;
	font-weight: 600;
}

.pg-purchase-block--total,
.pg-purchase-block.pgsc-checkout__summary-section--total-emphasis {
	padding: 20px 18px;
	border-color: var(--pgsc-color-accent, var(--pgsc-rose, #e8b4bc));
	background: linear-gradient(
		145deg,
		var(--pgsc-color-border-subtle, var(--pgsc-rose-soft, #f8e8ec)) 0%,
		var(--pgsc-color-background, var(--pgsc-nude, #f8f1ec)) 52%,
		var(--pgsc-color-surface, #fff) 100%
	);
	box-shadow:
		var(--pgsc-shadow-card, 0 8px 24px rgba(42, 38, 38, 0.08)),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pg-purchase-block--total .pg-purchase-block__header--total {
	margin-bottom: 2px;
}

.pg-purchase-block--total .pgsc-checkout__summary-totals--hero {
	margin: 0;
}

.pg-purchase-block--total .pgsc-checkout__summary-row--total {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 4px 0 0;
	border: 0;
	text-align: center;
}

.pg-purchase-block--total .pgsc-checkout__summary-total-eyebrow {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--pgsc-color-text-muted, #5e5858);
}

.pg-purchase-block--total .pgsc-checkout__summary-value--total {
	font-size: var(--pgsc-purchase-review-total-size, clamp(1.75rem, 5vw, 2.25rem));
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
}

.pg-purchase-block--total .pgsc-checkout__summary-vat-note {
	margin: 8px 0 0;
	font-size: 0.75rem;
	font-weight: 500;
	text-align: center;
	color: var(--pgsc-color-text-muted, #5e5858);
}

.pg-purchase-block--coupon {
	padding: 14px 16px;
	background: var(--pgsc-color-surface, #fff);
}

.pg-purchase-block--coupon .pgsc-checkout__coupon {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.pg-purchase-block--coupon .pgsc-checkout__coupon-heading {
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	text-transform: none;
	color: inherit;
}

.pg-purchase-block--coupon .pgsc-checkout__coupon-heading-main {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
}

.pg-purchase-block--coupon .pgsc-checkout__coupon-heading-sub {
	font-size: 0.6875rem;
	font-weight: 500;
	color: var(--pgsc-color-text-muted, #5e5858);
}

.pg-payment-method-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pg-payment-method-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 14px 14px;
	border: 1.5px solid var(--pgsc-color-border, var(--pgsc-rose-muted, #f3d9de));
	border-radius: var(--pgsc-radius-md, 12px);
	background: var(--pgsc-color-surface, #fff);
	cursor: pointer;
	transition:
		border-color var(--pgsc-duration-fast, 220ms) ease,
		box-shadow var(--pgsc-duration-fast, 220ms) ease,
		background-color var(--pgsc-duration-fast, 220ms) ease;
}

.pg-payment-method-card:hover {
	border-color: var(--pgsc-color-accent, var(--pgsc-rose, #e8b4bc));
}

.pg-payment-method-card--selected,
.pg-payment-method-card:has(.pg-payment-method-card__input:checked) {
	border-color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
	background: rgba(107, 40, 56, 0.04);
	box-shadow: 0 4px 14px rgba(107, 40, 56, 0.1);
}

.pg-payment-method-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	background: var(--pgsc-color-background-subtle, var(--pgsc-nude-deep, #ede3db));
	font-size: 1.125rem;
	line-height: 1;
}

.pg-payment-method-card__icon[data-pgsc-payment-icon='cash']::before {
	content: '💵';
}

.pg-payment-method-card__icon[data-pgsc-payment-icon='card']::before {
	content: '💳';
}

.pg-payment-method-card__icon[data-pgsc-payment-icon='bank']::before {
	content: '🏦';
}

.pg-payment-method-card__icon[data-pgsc-payment-icon='wallet']::before {
	content: '👛';
}

.pg-payment-method-card__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.pg-payment-method-card__title {
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--pgsc-color-text, #2a2626);
}

.pg-payment-method-card__description {
	font-size: 0.8125rem;
	line-height: 1.35;
	color: var(--pgsc-color-text-muted, #5e5858);
}

.pg-payment-method-card__check {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.375rem;
	height: 1.375rem;
	border-radius: 999px;
	border: 1.5px solid var(--pgsc-color-border, var(--pgsc-rose-muted, #f3d9de));
	font-size: 0.75rem;
	font-weight: 700;
	color: transparent;
	transition:
		background-color var(--pgsc-duration-fast, 220ms) ease,
		border-color var(--pgsc-duration-fast, 220ms) ease,
		color var(--pgsc-duration-fast, 220ms) ease;
}

.pg-payment-method-card__check::before {
	content: '✓';
}

.pg-payment-method-card--selected .pg-payment-method-card__check,
.pg-payment-method-card:has(.pg-payment-method-card__input:checked)
	.pg-payment-method-card__check {
	border-color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
	background: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
	color: var(--pgsc-color-on-primary, #fff);
}

.pg-purchase-block--trust,
.pg-trust-strip {
	padding: 16px 18px;
	border-color: var(--pgsc-color-border-subtle, var(--pgsc-rose-soft, #f8e8ec));
	background: linear-gradient(
		180deg,
		var(--pgsc-color-surface, #fff) 0%,
		var(--pgsc-color-background-subtle, var(--pgsc-nude-deep, #ede3db)) 100%
	);
}

.pg-trust-strip__title,
.pgsc-checkout__trust-title {
	margin: 0 0 10px;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--pgsc-color-text, #2a2626);
}

.pg-trust-strip__list,
.pgsc-checkout__trust-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pg-trust-strip__item,
.pgsc-checkout__trust-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--pgsc-color-text-muted, #5e5858);
}

.pg-trust-strip__icon {
	display: inline-flex;
	flex-shrink: 0;
	width: 1.125rem;
	height: 1.125rem;
	align-items: center;
	justify-content: center;
	margin-top: 1px;
}

.pg-trust-strip__icon[data-pgsc-trust-icon='shield-check']::before {
	content: '✓';
	font-size: 0.6875rem;
	font-weight: 800;
	color: var(--pgsc-color-primary, var(--pgsc-wine, #6b2838));
}

.pg-trust-strip__icon[data-pgsc-trust-icon='lock']::before {
	content: '🔒';
	font-size: 0.75rem;
}

.pg-trust-strip__icon[data-pgsc-trust-icon='eye-off']::before {
	content: '👁';
	font-size: 0.75rem;
	opacity: 0.7;
}

@media ( max-width: 390px ) {
	.pg-purchase-review-screen .pg-purchase-review__header {
		margin-bottom: 18px;
		padding-bottom: 16px;
	}

	.pg-purchase-review__eyebrow {
		margin-bottom: 8px;
		font-size: 0.625rem;
		letter-spacing: 0.1em;
	}

	.pg-purchase-review__title {
		font-size: clamp(1.25rem, 6vw, 1.5rem);
	}

	.pg-purchase-review-screen .pg-purchase-review__intro {
		margin-top: 8px;
		font-size: 0.875rem;
		line-height: 1.5;
		max-width: none;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.pg-purchase-review-screen.pgsc-checkout__step--active .pg-purchase-review__header {
		animation: none;
	}
}

@media ( max-width: 390px ) {
	.pg-purchase-review,
	.pg-purchase-review.pgsc-checkout__summary {
		gap: 12px;
	}

	.pg-purchase-block {
		padding: 14px 16px;
		border-radius: 13px;
	}

	.pg-purchase-block--total .pgsc-checkout__summary-value--total {
		font-size: clamp(1.625rem, 7vw, 2rem);
	}

	.pg-payment-method-card {
		padding: 12px;
		gap: 10px;
	}

	.pg-payment-method-card__icon {
		width: 2.25rem;
		height: 2.25rem;
		font-size: 1rem;
	}
}
