/*
 * Shopy Check UI — carrito y checkout rediseñados.
 * Tokens y medidas tomados del diseño aprobado para la tienda.
 */

body.shopy-ui-active, body:has(.shopy-page) {
	--yg-ink: #14151a;
	--yg-header: #111214;
	--yg-lime: #D7FF3D;
	--yg-teal: #2fb8c4;
	--yg-surface: #ffffff;
	--yg-bg: #f4f4f2;
	--yg-border: #e7e7e4;
	--yg-border-input: #858585;
	--yg-muted: #60656b;
	--yg-label: #555555;
	--yg-ok-bg: #eef7d8;
	--yg-ok: #526e0e;
	--yg-error: #b42318;
	--yg-link: #2f5fe0;
	--yg-link-hover: #1e3fa8;
	--yg-radius-card: 14px;
	--yg-radius-option: 12px;
	--yg-radius-input: 8px;
}

/* --------------------------------------------------------------------------
 * Lienzo: el rediseño ocupa la página completa, sin el ancho del tema
 * ----------------------------------------------------------------------- */

body.shopy-ui-active {
	background: var(--yg-bg) !important;
	font-family: 'Inter', Arial, Helvetica, sans-serif;
	color: var(--yg-ink);
}

/* El tema puede sustituir las clases del <body> después de cargar Elementor.
 * El wrapper de Shopy es el marcador estable para aplicar el lienzo propio. */
body:has(.shopy-page) {
	background: var(--yg-bg) !important;
	font-family: 'Inter', Arial, Helvetica, sans-serif;
	color: var(--yg-ink);
}

body.shopy-ui-active .site-content,
body.shopy-ui-active .ast-container,
body.shopy-ui-active .content-area,
body.shopy-ui-active .site-main,
body.shopy-ui-active .entry-content,
body.shopy-ui-active article.page,
body.shopy-ui-active .woocommerce {
	max-width: none !important;
	width: auto !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

body:has(.shopy-page) .site-content,
body:has(.shopy-page) .ast-container,
body:has(.shopy-page) .content-area,
body:has(.shopy-page) .site-main,
body:has(.shopy-page) .entry-content,
body:has(.shopy-page) article.page,
body:has(.shopy-page) .woocommerce {
	max-width: none !important;
	width: auto !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.shopy-ui-active .ast-container {
	display: block !important;
}

body:has(.shopy-page) .ast-container {
	display: block !important;
}

/* Monpicko injects its own oversized page-title/breadcrumb hero above the
 * checkout canvas. It is not part of the checkout design and must not consume
 * the first screen, regardless of the theme's page-title display setting. */
body:has(.shopy-hide-theme-chrome) .breadcrumb-wrap,
body:has(.shopy-hide-theme-chrome) .monpicko-breadcrumb,
body:has(.shopy-hide-theme-chrome) .page-header,
body:has(.shopy-hide-theme-chrome) .pavo-builder.after_header {
	display: none !important;
}

/* Fallback estable para themes/builder chrome que se imprime antes del
 * shortcode y para páginas cuyo script cambia las clases del body. */
body:has(.shopy-hide-theme-chrome) #masthead,
body:has(.shopy-hide-theme-chrome) .site-header,
body:has(.shopy-hide-theme-chrome) .ast-primary-header-bar,
body:has(.shopy-hide-theme-chrome) .ast-above-header-wrap,
body:has(.shopy-hide-theme-chrome) .ast-below-header-wrap,
body:has(.shopy-hide-theme-chrome) .elementor-location-header,
body:has(.shopy-hide-theme-chrome) #colophon,
body:has(.shopy-hide-theme-chrome) .site-footer,
body:has(.shopy-hide-theme-chrome) .elementor-location-footer,
body:has(.shopy-hide-theme-chrome) .ast-breadcrumbs-wrapper,
body:has(.shopy-hide-theme-chrome) .breadcrumb-wrap,
body:has(.shopy-hide-theme-chrome) .monpicko-breadcrumb,
body:has(.shopy-hide-theme-chrome) .page-header,
body:has(.shopy-hide-theme-chrome) .entry-header,
body:has(.shopy-hide-theme-chrome) .ast-single-post-order,
body:has(.shopy-hide-theme-chrome) .pavo-builder.after_header,
body:has(.shopy-hide-theme-chrome) .pavo-builder header {
	display: none !important;
}

.shopy-page,
.shopy-page * {
	box-sizing: border-box;
}

/* WooCommerce maqueta el checkout clásico con floats de dos columnas; aquí la
 * rejilla la define este diseño. */
.shopy-page #order_review,
.shopy-page #order_review_heading,
.shopy-page #customer_details,
.shopy-page .woocommerce-checkout-review-order,
.shopy-page .col2-set,
.shopy-page .col2-set .col-1,
.shopy-page .col2-set .col-2 {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	clear: none !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
}

.shopy-page {
	font-family: 'Inter', Arial, Helvetica, sans-serif;
	color: var(--yg-ink);
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
}

.shopy-page a {
	color: var(--yg-link);
	text-decoration: none;
}

.shopy-page a:hover {
	color: var(--yg-link-hover);
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
 * Barra superior
 * ----------------------------------------------------------------------- */

.shopy-topbar {
	background: var(--yg-header);
	padding: 18px 32px;
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.shopy-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.shopy-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none !important;
}

.shopy-brand img {
	height: 26px;
	width: auto;
	display: block;
}

.shopy-mark {
	position: relative;
	width: 26px;
	height: 26px;
	display: block;
}

.shopy-mark-dot {
	position: absolute;
	inset: 0;
	background: var(--yg-lime);
	border-radius: 50%;
}

.shopy-mark-diamond {
	position: absolute;
	width: 14px;
	height: 14px;
	background: var(--yg-teal);
	top: 6px;
	left: 6px;
	transform: rotate(45deg);
	border-radius: 2px;
}

.shopy-wordmark {
	color: #fff;
	font-weight: 800;
	font-size: 20px;
	letter-spacing: .5px;
}

.shopy-secure {
	color: #ffffff;
	font-size: 13px;
	margin-left: 10px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

/* --------------------------------------------------------------------------
 * Rejilla
 * ----------------------------------------------------------------------- */

.shopy-shell {
	/* La referencia define 1180px de contenido más 24px de aire a cada lado.
	 * Como esta hoja usa border-box, el contenedor exterior debe medir 1228px. */
	max-width: 1228px;
	margin: 0 auto;
	padding: 40px 24px 80px;
}

.shopy-grid {
	display: grid;
	/* Keep predictable physical column order even if the active theme is RTL. */
	direction: ltr;
	grid-template-columns: minmax(0, 1fr) 400px;
	column-gap: 56px;
	row-gap: 28px;
	align-items: start;
}

/* WooCommerce/theme clearfix pseudo-elements otherwise become anonymous grid
 * items: ::before takes cell 1, the form moves to cell 2, and the summary is
 * pushed to row 2. They are unnecessary inside this self-contained grid. */
.shopy-grid::before,
.shopy-grid::after {
	display: none !important;
	content: none !important;
}

/* checkout.js inserta los errores de validación como primer hijo directo del
 * formulario. Sin esta regla, CSS Grid lo interpreta como una tercera pieza:
 * el aviso ocupa la columna principal, desplaza el formulario a la lateral y
 * manda el resumen a una fila nueva. El aviso debe ser siempre una fila
 * completa situada antes de las dos columnas del checkout. */
.shopy-grid > .woocommerce-NoticeGroup,
.shopy-grid > .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
	width: 100%;
	min-width: 0;
	margin: 0;
}

.shopy-grid > .woocommerce-NoticeGroup:empty,
.shopy-grid > .woocommerce-notices-wrapper:empty {
	display: none;
}

.shopy-grid > .woocommerce-NoticeGroup > .woocommerce-error,
.shopy-grid > .woocommerce-notices-wrapper > .woocommerce-error {
	margin: 0;
}

.shopy-col-main {
	min-width: 0;
	width: auto !important;
	grid-column: 1;
	grid-row: auto;
	direction: ltr;
}

.shopy-col-side {
	position: sticky;
	top: 24px;
	min-width: 0;
	width: auto !important;
	grid-column: 2;
	grid-row: auto;
	direction: ltr;
}

.shopy-before {
	margin-bottom: 20px;
}

.shopy-intro {
	margin-bottom: 28px;
}

.shopy-pill {
	display: inline-block;
	background: var(--yg-ok-bg);
	color: var(--yg-ok);
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
}

.shopy-page .shopy-intro h1 {
	font-size: 26px;
	margin: 12px 0 4px;
	font-weight: 800;
	line-height: normal;
	color: var(--yg-ink);
}

.shopy-cart-page .shopy-intro h1 {
	margin: 0 0 4px;
}

.shopy-page .shopy-intro p {
	color: #6b6b6b;
	font-size: 14px;
	margin: 0;
}

/* --------------------------------------------------------------------------
 * Tarjetas
 * ----------------------------------------------------------------------- */

.shopy-card {
	background: var(--yg-surface);
	border: 1px solid var(--yg-border);
	border-radius: var(--yg-radius-card);
	padding: 28px;
	margin-bottom: 20px;
}

.shopy-col-side .shopy-card {
	margin-bottom: 0;
}

.shopy-page .shopy-card-title,
.shopy-page .woocommerce-billing-fields > h3,
.shopy-page .woocommerce-billing-fields h3 {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 18px;
	padding: 0;
	border: 0;
	color: var(--yg-ink);
	line-height: 1.3;
	display: block;
}

.shopy-card-payment .shopy-card-title {
	margin-bottom: 4px;
}

.shopy-save-info-slot:empty,
.shopy-save-info-slot[hidden],
.shopy-remember-actions[hidden],
.shopy-forget-data[hidden] {
	display: none !important;
}

.shopy-save-info {
	margin: 4px 0 22px;
	padding: 18px 20px;
	border: 1px solid var(--yg-border);
	border-radius: 12px;
	background: #fff;
}

.shopy-save-info .form-row {
	margin: 0 !important;
	padding: 0 !important;
}

.shopy-save-info label.checkbox {
	display: grid !important;
	grid-template-columns: 18px 1fr;
	column-gap: 10px;
	align-items: center;
	margin: 0 !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	cursor: pointer;
}

.shopy-save-info #shopy-remember-data {
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	accent-color: var(--yg-ink);
}

.shopy-save-info-copy {
	display: block;
	grid-column: 2;
	margin-top: 3px;
	color: var(--yg-muted);
	font-size: 11.5px;
	font-weight: 400;
	line-height: 1.45;
}

.shopy-save-info-copy a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.shopy-remember-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	margin: 10px 0 0 !important;
	padding: 0 !important;
}

.shopy-page .shopy-forget-data {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--yg-ink);
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.shopy-remember-status {
	color: var(--yg-muted);
	font-size: 12px;
}

.shopy-legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin: 2px 0 8px;
	padding: 18px 0 0;
	border-top: 1px solid var(--yg-border);
}

.shopy-legal-links a {
	color: #4f5b45;
	font-size: 12px;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.shopy-legal-links a:hover,
.shopy-legal-links a:focus-visible {
	color: var(--yg-ink);
}

.shopy-page .shopy-card-sub {
	color: var(--yg-muted);
	font-size: 13px;
	margin: 0 0 16px;
}

/* --------------------------------------------------------------------------
 * Campos de facturación
 * ----------------------------------------------------------------------- */

.shopy-shipping-slot {
	display: block;
}

.shopy-page .woocommerce-billing-fields__field-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.shopy-page .woocommerce-billing-fields .form-row {
	margin: 0;
	padding: 0;
	float: none;
	width: auto;
	display: block;
}

.shopy-page .woocommerce-billing-fields .form-row-wide,
.shopy-page .woocommerce-billing-fields .form-row-full {
	grid-column: 1 / -1;
}

/* Keep visual order equal to native field priority and keyboard order.
 * Never hide country-specific or third-party fields with a fixed ID list. */
.shopy-page #billing_document_type_field,
.shopy-page #billing_document_number_field { grid-column: 1 / -1; }

.shopy-invoice-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	margin: -2px 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid #ececea;
}

.shopy-invoice-heading strong {
	font-size: 14px;
	color: var(--yg-ink);
}

.shopy-invoice-heading span {
	font-size: 11.5px;
	color: var(--yg-muted);
}

.shopy-page #ship-to-different-address {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 15px !important;
	line-height: 1.35 !important;
}

.shopy-page #ship-to-different-address label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-weight: 700;
	cursor: pointer;
}

.shopy-page #ship-to-different-address-checkbox {
	width: 18px !important;
	height: 18px !important;
	min-width: 18px;
	margin: 0 !important;
	accent-color: var(--yg-ink);
}

.shopy-page .shipping_address {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #ececea;
}

.shopy-page .woocommerce-shipping-fields__field-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.shopy-page .woocommerce-shipping-fields .form-row {
	margin: 0;
	padding: 0;
	float: none;
	width: auto;
	display: block;
}

.shopy-page .woocommerce-shipping-fields .form-row-wide {
	grid-column: 1 / -1;
}

.shopy-page .woocommerce-shipping-fields label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--yg-label);
	margin: 0 0 6px;
	line-height: 1.3 !important;
}

.shopy-page .woocommerce-shipping-fields label .required,
.shopy-page .woocommerce-shipping-fields .optional {
	display: none;
}

/* El rojo de WooCommerce sólo aparece tras el primer intento de confirmar. */
.shopy-page .form-row.woocommerce-invalid input.input-text,
.shopy-page .form-row.woocommerce-invalid select,
.shopy-page .form-row.woocommerce-invalid .select2-selection {
	border-color: var(--yg-border-input) !important;
	box-shadow: none !important;
}

.shopy-page .shopy-validated .form-row.woocommerce-invalid input.input-text,
.shopy-page .shopy-validated .form-row.woocommerce-invalid select,
.shopy-page .shopy-validated .form-row.woocommerce-invalid .select2-selection {
	border-color: var(--yg-error) !important;
	box-shadow: 0 0 0 3px rgba(211, 51, 51, .08) !important;
}

.shopy-page .woocommerce-billing-fields label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--yg-label);
	margin: 0 0 6px;
	/* Astra impone 28.8px a las etiquetas del formulario. La referencia usa
	 * una línea compacta de 16px; el !important evita el espacio vertical extra. */
	line-height: 1.3 !important;
}

.shopy-page .woocommerce-billing-fields label .required,
.shopy-page .woocommerce-billing-fields label abbr {
	display: none;
}

.shopy-page .woocommerce-billing-fields .optional {
	display: none;
}

.shopy-page .woocommerce-input-wrapper {
	display: block;
	width: 100%;
}

.shopy-page .shopy-phone-field > label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.shopy-phone-validity {
	margin-left: auto;
	font-size: 11px;
	font-weight: 700;
	color: var(--yg-muted);
}

.shopy-page .shopy-phone-field > label .required {
	display: inline !important;
	color: var(--yg-error);
}

.shopy-phone-valid .shopy-phone-validity {
	color: #168647;
}

.shopy-phone-invalid .shopy-phone-validity {
	color: var(--yg-error);
}

.shopy-page .shopy-phone-control {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 6px;
	width: 100%;
}

.shopy-phone-prefix {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 76px;
	padding: 0 11px;
	border: 1px solid var(--yg-border-input);
	border-radius: var(--yg-radius-input);
	background: #f5f6f7;
	color: #334155;
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}

.shopy-page .shopy-phone-control input[type="tel"] {
	min-width: 0;
}

.shopy-page .shopy-phone-valid .shopy-phone-control input[type="tel"] {
	border-color: #23b967 !important;
	background-color: #effcf4 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23168647' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 12px center !important;
	padding-right: 40px;
	box-shadow: 0 0 0 3px rgba(35, 185, 103, .08) !important;
}

/* Tiene que ganar incluso si WooCommerce o el tema dejan la clase
 * `woocommerce-validated` en el campo después de una actualización AJAX. */
.shopy-page .form-row.shopy-phone-invalid .shopy-phone-control input[type="tel"],
.shopy-page .shopy-validated .form-row.shopy-phone-invalid .shopy-phone-control input[type="tel"] {
	border-color: var(--yg-error) !important;
	background-color: #fff7f7 !important;
	background-image: none !important;
	box-shadow: 0 0 0 3px rgba(211, 51, 51, .08) !important;
}

.shopy-page input[type="text"],
.shopy-page input[type="tel"],
.shopy-page input[type="email"],
.shopy-page input[type="number"],
.shopy-page input[type="password"],
.shopy-page textarea,
.shopy-page select {
	width: 100%;
	border: 1px solid var(--yg-border-input);
	border-radius: var(--yg-radius-input) !important;
	padding: 11px 12px;
	font-size: 13.5px;
	font-family: inherit;
	color: var(--yg-ink);
	background: #fff;
	outline: none;
	box-shadow: none;
	height: auto;
	line-height: 1.35;
	margin: 0;
	transition: border-color .15s, box-shadow .15s;
}

/* Monpicko gives native selects a 25px pill radius, overriding the regular
 * checkout control shape. Normalize their height and radius to text inputs. */
.shopy-page select {
	height: 42px !important;
	min-height: 42px !important;
	box-sizing: border-box;
}

.shopy-page input::placeholder,
.shopy-page textarea::placeholder {
	color: #656565;
	opacity: 1;
}

.shopy-page input:focus,
.shopy-page textarea:focus,
.shopy-page select:focus {
	border-color: var(--yg-ink);
	box-shadow: 0 0 0 3px rgba(20, 21, 26, .08);
}

/* Estado de error nativo de WooCommerce: sólo tras intentar confirmar */
.shopy-page .shopy-validated .woocommerce-invalid input.input-text,
.shopy-page .shopy-validated .woocommerce-invalid select,
.shopy-page .shopy-validated .woocommerce-invalid .select2-selection,
.shopy-page input.shopy-error {
	border-color: var(--yg-error);
	box-shadow: 0 0 0 3px rgba(211, 51, 51, .08);
}

.shopy-page .form-row.shopy-client-invalid input.input-text,
.shopy-page .form-row.shopy-client-invalid select,
.shopy-page .form-row.shopy-client-invalid .select2-selection {
	border-color: var(--yg-error) !important;
	background-color: #fffafa !important;
	box-shadow: 0 0 0 3px rgba(211, 51, 51, .08) !important;
}

.shopy-field-error,
.shopy-inline-error {
	display: block;
	color: var(--yg-error);
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.35;
	margin-top: 5px;
}

/* Ayuda contextual accesible por hover, foco de teclado o toque. */
.shopy-page label.shopy-field-label-with-help {
	display: flex;
	align-items: center;
	gap: 5px;
}

.shopy-help-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}

.shopy-help-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 3px;
	width: 24px;
	height: 24px;
	min-width: 24px;
	padding: 0;
	border: 1px solid #8b8f96;
	border-radius: 50%;
	background: #fff !important;
	color: #656a72;
	font: 700 11px/1 Arial, sans-serif;
	cursor: help;
	appearance: none;
}

.shopy-help-button:hover,
.shopy-help-button:focus-visible,
.shopy-help-button:active {
	border-color: var(--yg-ink);
	background: #fff !important;
	color: var(--yg-ink) !important;
	outline: none;
	box-shadow: 0 0 0 3px rgba(20, 21, 26, .1);
}

.shopy-tooltip {
	position: absolute;
	left: 0;
	bottom: 100%;
	z-index: 50;
	width: 230px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #202124;
	color: #fff;
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.4;
	text-align: left;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	pointer-events: auto;
	transition: opacity .14s, transform .14s, visibility .14s;
}

.shopy-tooltip::after {
	content: '';
	position: absolute;
	left: 10px;
	top: 100%;
	border: 6px solid transparent;
	border-top-color: #202124;
}

.shopy-help-wrap:not(.is-dismissed):hover .shopy-tooltip,
.shopy-help-wrap:not(.is-dismissed):focus-within .shopy-tooltip,
.shopy-help-wrap.is-open .shopy-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* select2 / selectWoo con la misma apariencia que un input */
.shopy-page .select2-container--default .select2-selection--single {
	border: 1px solid var(--yg-border-input);
	border-radius: var(--yg-radius-input) !important;
	height: 42px !important;
	min-height: 42px !important;
	padding: 11px 12px;
	box-sizing: border-box;
	background: #fff;
}

.shopy-page .select2-container--default .select2-selection--single .select2-selection__rendered {
	padding: 0;
	line-height: 1.35;
	font-size: 13.5px;
	color: var(--yg-ink);
}

.shopy-page .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 100%;
	top: 0;
	right: 8px;
}

.shopy-page .select2-container--default.select2-container--focus .select2-selection--single,
.shopy-page .select2-container--default.select2-container--open .select2-selection--single {
	border-color: var(--yg-ink);
	box-shadow: 0 0 0 3px rgba(20, 21, 26, .08);
}

/* --------------------------------------------------------------------------
 * Formas de pago
 * ----------------------------------------------------------------------- */

.shopy-page .shopy-pay-options {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	display: grid;
	gap: 16px;
}

.shopy-page .shopy-pay-option {
	list-style: none;
	border: 1px solid #e2e2de !important;
	background: #fff;
	border-radius: var(--yg-radius-option);
	padding: 16px 18px;
	margin: 0;
	overflow: hidden;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}

.shopy-page .shopy-pay-option:hover {
	border-color: #b9b9b3;
}

.shopy-page .shopy-pay-option.shopy-selected,
.shopy-page .shopy-pay-option.shopy-selected:hover {
	border: 1px solid var(--yg-ink) !important;
	background: #fafcf0;
}

.shopy-page .shopy-pay-radio {
	position: absolute;
	width: 1px !important;
	height: 1px !important;
	min-width: 1px !important;
	min-height: 1px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	opacity: 0 !important;
	overflow: hidden !important;
	white-space: nowrap !important;
	pointer-events: none !important;
}

.shopy-page .shopy-pay-option:focus-within {
	outline: 3px solid rgba(20, 21, 26, .2);
	outline-offset: 2px;
}

/* Mantener la fila aunque el tema defina #payment label como bloque. */
.shopy-page #payment .payment_methods > .wc_payment_method > label.shopy-pay-label {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	font-size: 14.5px;
	font-weight: 400;
	color: var(--yg-ink);
	cursor: pointer;
	line-height: 1.35;
}

/* Monpicko añade iconos automáticos al label de pago. Las tarjetas ya incluyen
 * su propio indicador accesible y los iconos nativos de cada pasarela. */
.shopy-page .shopy-pay-label::before,
.shopy-page .shopy-pay-label::after {
	content: none !important;
	display: none !important;
}

.shopy-dot {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #c9c9c4;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	transition: border-color .15s;
}

.shopy-dot-inner {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--yg-ink);
	opacity: 0;
	transition: opacity .15s;
}

.shopy-selected .shopy-dot {
	border-color: var(--yg-ink);
}

.shopy-selected .shopy-dot-inner {
	opacity: 1;
}

.shopy-pay-icon {
	flex: none;
}

/* Neutralizar flotados y topes de altura del tema solo en estas tarjetas. */
.shopy-page #payment .payment_methods .shopy-pay-label img {
	float: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.shopy-page .shopy-pay-label > img {
	height: 32px;
	width: auto;
	max-width: 140px;
	flex: none;
	object-fit: contain;
}

.shopy-pay-copy {
	flex: 1;
	min-width: 0;
	display: block;
}

.shopy-pay-title {
	display: block;
	font-weight: 700;
	font-size: 14.5px;
}

.shopy-pay-sub {
	display: block;
	color: var(--yg-muted);
	font-size: 12.5px;
	font-weight: 400;
}

.shopy-wompi-logo {
	height: 32px !important;
	width: auto !important;
	max-width: 120px !important;
	flex: none;
	object-fit: contain;
	object-position: left;
	display: block;
}

.shopy-pay-spacer {
	flex: 1 1 auto;
	min-width: 8px;
}

.shopy-pay-logos {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: none;
	min-height: 32px;
	margin: 0;
	padding: 0;
	max-width: 100%;
	box-sizing: border-box;
	line-height: 0;
}

.shopy-pay-logos img {
	height: 32px !important;
	width: auto !important;
	max-width: none !important;
	display: block;
	object-fit: contain;
}

/* Panel desplegable del método seleccionado */
.shopy-page .shopy-expand-panel {
	display: none;
	margin-top: 16px;
	padding: 16px 0 0;
	border-top: 1px solid #ececec;
	background: none;
	border-radius: 0;
	color: #3a3a3a;
	font-size: 12.5px;
	animation: shopy-panel-in .18s ease-out;
}

.shopy-page .shopy-pay-option.shopy-selected .shopy-expand-panel {
	display: block;
}

/* WooCommerce/Astra aplica a `.payment_box` un fondo gris, una flecha y otro
 * padding. El handoff usa el fondo suave de la tarjeta seleccionada y sólo una
 * separación superior antes de los beneficios. */
.shopy-page #payment .payment_box.shopy-expand-panel {
	background: transparent !important;
	margin: 16px 0 0 !important;
	padding: 16px 0 0 !important;
	border: 0 !important;
	border-top: 1px solid #ececec !important;
}

.shopy-page #payment .payment_box.shopy-expand-panel::before {
	display: none !important;
}

@keyframes shopy-panel-in {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: none; }
}

.shopy-benefits {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 14px;
}

.shopy-benefit {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	color: #3a3a3a;
}

.shopy-bullet {
	width: 16px;
	height: 16px;
	flex: none;
	border-radius: 50%;
	background: var(--yg-ok-bg);
	display: flex;
	align-items: center;
	justify-content: center;
}

.shopy-bullet span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--yg-ok);
	display: block;
}

.shopy-panel-note {
	background: #fafaf7;
	border-radius: 10px;
	padding: 14px;
	font-size: 12.5px;
	color: #6b6b6b;
}

.shopy-gateway-fields {
	margin-top: 12px;
	font-size: 12.5px;
	color: #6b6b6b;
}

.shopy-gateway-fields p {
	margin: 0 0 8px;
}

/* --------------------------------------------------------------------------
 * Resumen del pedido / totales
 * ----------------------------------------------------------------------- */

.shopy-summary {
	display: flex;
	flex-direction: column;
	padding: 24px;
}

.shopy-page .shopy-summary-head {
	order: 1;
	display: block;
	width: 100%;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	text-align: left;
	cursor: default;
	color: inherit;
	font-family: inherit;
}

.shopy-summary-toggle-label,
.shopy-summary-head-total {
	display: none;
}

.shopy-summary-body {
	order: 2;
}

.shopy-place-order {
	order: 3;
}

.shopy-trust {
	order: 4;
}

.shopy-review-items {
	margin-bottom: 18px;
}

.shopy-review-item {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 14px;
}

.shopy-review-item:last-child {
	margin-bottom: 0;
}

.shopy-item-thumb {
	position: relative;
	width: 56px;
	height: 56px;
	flex: none;
	background: #f6f6f6;
	border-radius: 10px;
	overflow: visible;
}

.shopy-item-thumb img {
	width: 56px !important;
	height: 56px !important;
	max-width: 56px !important;
	object-fit: cover;
	border-radius: 10px;
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.shopy-item-qty {
	position: absolute;
	top: -6px;
	right: -6px;
	background: var(--yg-ink);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

.shopy-item-copy {
	flex: 1;
	min-width: 0;
}

.shopy-item-name {
	display: block;
	font-weight: 700;
	font-size: 14px;
	white-space: normal;
	overflow-wrap: anywhere;
}

.shopy-item-sub {
	display: block;
	color: var(--yg-muted);
	font-size: 12.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.shopy-item-price {
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
	flex: none;
}

.shopy-item-price del {
	color: var(--yg-muted);
	font-weight: 400;
	margin-right: 4px;
}

/* Cupón */
.shopy-coupon {
	display: flex;
	gap: 8px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.shopy-page .shopy-coupon-input {
	flex: 1;
	min-width: 120px;
	border: 1px solid var(--yg-border-input);
	border-radius: var(--yg-radius-input);
	padding: 10px 12px;
	font-size: 13px;
	width: auto;
}

.shopy-page .shopy-apply-btn {
	border: 1px solid var(--yg-border-input) !important;
	background: #f6f6f4 !important;
	color: var(--yg-ink) !important;
	border-radius: var(--yg-radius-input) !important;
	padding: 10px 16px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	cursor: pointer;
	transition: background .15s;
	text-transform: none !important;
	letter-spacing: 0 !important;
	height: auto !important;
	width: auto !important;
}

.shopy-page .shopy-apply-btn:hover {
	background: #eee !important;
}

.shopy-page .shopy-apply-btn[disabled] {
	opacity: .6;
	cursor: default;
}

.shopy-coupon-msg {
	flex: 1 0 100%;
	font-size: 12px;
	color: var(--yg-ok);
	display: none;
}

.shopy-coupon-msg.is-visible {
	display: block;
}

.shopy-coupon-msg.is-error {
	color: var(--yg-error);
}

/* Totales */
.shopy-total-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 13.5px;
	color: #4a4a4a;
	margin-bottom: 8px;
}

.shopy-total-row:last-child {
	margin-bottom: 0;
}

.shopy-total-row-coupon a {
	font-size: 12px;
	margin-left: 6px;
}

.shopy-total-row-grand {
	border-top: 1px solid #eee;
	padding-top: 14px;
	margin-top: 6px;
	align-items: baseline;
}

.shopy-total-row-grand > span:first-child {
	font-weight: 700;
	font-size: 15px;
	color: var(--yg-ink);
}

.shopy-grand,
.shopy-grand .woocommerce-Price-amount {
	font-weight: 800;
	font-size: 20px;
	color: var(--yg-ink);
}

.shopy-grand small {
	display: none;
}

.shopy-free {
	color: var(--yg-ok);
	font-weight: 600;
}

.shopy-muted {
	color: var(--yg-muted);
}

/* --------------------------------------------------------------------------
 * CTA
 * ----------------------------------------------------------------------- */

.shopy-place-order {
	margin: 20px 0 0;
	padding: 0;
}

.shopy-bar-total {
	display: none;
}

.shopy-page .shopy-cta,
.shopy-page button#place_order,
.shopy-page a.checkout-button {
	display: block;
	width: 100%;
	background: var(--yg-lime) !important;
	color: var(--yg-ink) !important;
	border: none !important;
	border-radius: 10px !important;
	padding: 16px !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	font-family: inherit !important;
	line-height: 1.2 !important;
	text-align: center;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	cursor: pointer;
	transition: filter .15s;
	height: auto !important;
	box-shadow: none !important;
}

.shopy-page .shopy-cta:hover {
	filter: brightness(0.94);
	color: var(--yg-ink) !important;
	background: var(--yg-lime) !important;
	text-decoration: none !important;
}

.shopy-page .shopy-cta[disabled],
.shopy-page .shopy-cta.is-loading {
	opacity: .6;
	cursor: default;
	filter: none;
}

.shopy-cta-inline {
	display: inline-block !important;
	width: auto !important;
	padding: 14px 26px !important;
	margin-top: 6px;
}

.shopy-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(20, 21, 26, .3);
	border-top-color: var(--yg-ink);
	border-radius: 50%;
	animation: shopy-spin .6s linear infinite;
	vertical-align: -2px;
	margin-right: 8px;
}

@keyframes shopy-spin {
	to { transform: rotate(360deg); }
}

/* Términos y condiciones, si están activos */
.shopy-page .woocommerce-terms-and-conditions-wrapper {
	margin-bottom: 14px;
	font-size: 12.5px;
}

/* --------------------------------------------------------------------------
 * Franjas de confianza
 * ----------------------------------------------------------------------- */

.shopy-trust {
	margin-top: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.shopy-trust-row {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.shopy-trust-row svg {
	flex: none;
	margin-top: 1px;
}

.shopy-trust-title {
	font-weight: 700;
	font-size: 13px;
}

.shopy-trust-copy {
	color: var(--yg-muted);
	font-size: 12px;
}

/* --------------------------------------------------------------------------
 * Carrito
 * ----------------------------------------------------------------------- */

.shopy-cart-card {
	background: var(--yg-surface);
	border: 1px solid var(--yg-border);
	border-radius: var(--yg-radius-card);
	padding: 8px;
	margin-bottom: 20px;
}

/* Monpicko aplica floats y un ancho parcial al formulario clásico del carrito.
 * El resumen ya ocupa su propia columna de CSS Grid, por lo que esos estilos
 * reducen la tarjeta y dejan "Seguir comprando" flotando en el hueco lateral. */
.shopy-cart-page .shopy-col-main {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.shopy-cart-page .woocommerce-cart-form.shopy-cart-card {
	float: none !important;
	clear: both !important;
	width: 100% !important;
	max-width: none !important;
	margin-inline: 0 !important;
}

/* El aviso informativo del precio anticipado se genera fuera de la tarjeta y
 * rompe la composición del carrito. Los errores y mensajes de acción siguen
 * visibles; sólo se oculta este aviso informativo directo en esta pantalla. */
.shopy-cart-shell > .woocommerce-info {
	display: none !important;
}

.shopy-cart-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px;
	border-bottom: 1px solid #f0f0ee;
	flex-wrap: wrap;
}

.shopy-cart-items .shopy-cart-item:last-child {
	border-bottom: 0;
}

.shopy-page .shopy-remove {
	width: 20px;
	height: 20px;
	flex: none;
	border: 1px solid var(--yg-border-input);
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	color: #9a9a9a !important;
	font-size: 11px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .15s;
	text-decoration: none !important;
}

.shopy-page .shopy-remove:hover {
	border-color: #999;
	color: #666 !important;
	background: #fff;
}

.shopy-cart-item .shopy-item-thumb {
	width: 48px;
	height: 48px;
}

.shopy-cart-item .shopy-item-thumb img {
	width: 48px !important;
	height: 48px !important;
	max-width: 48px !important;
	border-radius: 8px;
}

.shopy-cart-item .shopy-item-copy {
	flex: 1 1 100px;
}

.shopy-cart-item .shopy-item-sub {
	font-size: 12px;
}

.shopy-cart-item .shopy-item-price {
	min-width: 64px;
	text-align: right;
}

.shopy-qty {
	display: flex;
	align-items: center;
	border: 1px solid var(--yg-border-input);
	border-radius: var(--yg-radius-input);
	flex: none;
	overflow: hidden;
	background: #fff;
}

.shopy-page .shopy-qty-btn {
	width: 26px;
	height: 30px;
	border: none !important;
	background: none !important;
	cursor: pointer;
	font-size: 15px;
	color: #444 !important;
	padding: 0 !important;
	line-height: 1 !important;
	border-radius: 0 !important;
	transition: background .15s;
}

.shopy-page .shopy-qty-btn:hover {
	background: #f2f2f0 !important;
}

.shopy-page input.shopy-qty-input[type="number"] {
	width: 22px !important;
	min-width: 22px !important;
	max-width: 22px !important;
	flex: 0 0 22px;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	border: 0 !important;
	padding: 0 !important;
	background: none !important;
	box-shadow: none !important;
	-moz-appearance: textfield;
}

.shopy-page input.shopy-qty-input[type="number"]::-webkit-outer-spin-button,
.shopy-page input.shopy-qty-input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.shopy-qty-value {
	width: 34px;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
}

.shopy-cart-card .shopy-coupon {
	padding: 16px;
	margin: 0;
}

.shopy-js .shopy-cart-fallback {
	display: none;
}

.shopy-page .shopy-keep-shopping {
	font-size: 13.5px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.shopy-cart-page .shopy-keep-shopping {
	align-self: flex-start;
	float: none !important;
	clear: both;
	width: fit-content;
	max-width: 100%;
	margin: 20px 0 4px !important;
}

.shopy-cart-totals .shopy-summary-body {
	order: 2;
}

.shopy-empty {
	text-align: center;
	padding: 56px 28px;
}

.shopy-page .shopy-empty h1 {
	font-size: 22px;
	font-weight: 800;
	margin: 16px 0 6px;
}

.shopy-page .shopy-empty p {
	color: #6b6b6b;
	font-size: 14px;
	margin: 0 0 18px;
}

/* --------------------------------------------------------------------------
 * Avisos de WooCommerce
 * ----------------------------------------------------------------------- */

.shopy-page .woocommerce-message,
.shopy-page .woocommerce-info,
.shopy-page .woocommerce-error,
.shopy-page .woocommerce-NoticeGroup ul {
	background: #fff;
	border: 1px solid var(--yg-border);
	border-left: 3px solid var(--yg-ink);
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 13.5px;
	color: var(--yg-ink);
	list-style: none;
	margin: 0 0 14px;
}

.shopy-page .woocommerce-error {
	border-left-color: var(--yg-error);
}

.shopy-page .woocommerce-message {
	border-left-color: var(--yg-ok);
}

.shopy-page .woocommerce-error li {
	list-style: none;
	margin: 0;
}

/* Themes may set white text on notices or their children. Keep native
 * checkout validation readable, including notices outside the form grid. */
body.shopy-ui-active :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) {
	background: #fff !important;
	color: #14151a !important;
	-webkit-text-fill-color: #14151a !important;
}

body.shopy-ui-active :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) :is(li, p, span, strong, em) {
	color: #14151a !important;
	-webkit-text-fill-color: #14151a !important;
}

body.shopy-ui-active :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) a:not(.button) {
	color: #1e3fa8 !important;
	-webkit-text-fill-color: #1e3fa8 !important;
	text-decoration: underline;
}

body.shopy-ui-active .woocommerce-error {
	border-left-color: #b42318 !important;
}

.shopy-page .shopy-intro > p {
	color: #50555b !important;
	-webkit-text-fill-color: #50555b !important;
}

.shopy-page .shopy-required-note .required {
	color: #b42318 !important;
	-webkit-text-fill-color: #b42318 !important;
	font-weight: 700;
}

.shopy-page .woocommerce-message .button,
.shopy-page .woocommerce-info .button {
	display: none;
}

.shopy-page form.checkout_coupon,
.shopy-page .woocommerce-form-coupon-toggle {
	display: none !important;
}

/* Bloqueo de WooCommerce durante AJAX */
.shopy-page .blockUI.blockOverlay {
	background: #fff !important;
	opacity: .5 !important;
}

/* --------------------------------------------------------------------------
 * Tablet / mobile
 * ----------------------------------------------------------------------- */

@media (max-width: 900px) {

	.shopy-shell {
		padding: 0 0 24px;
	}

	.shopy-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	/* Tras una validación fallida, el aviso debe verse antes incluso del
	 * resumen móvil y conservar el mismo aire lateral que el formulario. */
	.shopy-grid > .woocommerce-NoticeGroup,
	.shopy-grid > .woocommerce-notices-wrapper {
		order: -2;
		padding: 16px 16px 0;
	}

	.shopy-col-side {
		position: static;
		order: -1;
		grid-column: 1;
	}

	.shopy-col-main {
		padding: 16px;
		grid-column: 1;
	}

	.shopy-before {
		padding: 16px 16px 0;
		margin-bottom: 0;
	}

	.shopy-card {
		padding: 20px;
	}

	.shopy-intro {
		margin-bottom: 16px;
	}

	.shopy-page .shopy-intro h1 {
		font-size: 20px;
		margin: 10px 0 3px;
	}

	.shopy-page .shopy-intro p {
		font-size: 12.5px;
	}

	/* Resumen colapsable en la parte superior */
	.shopy-col-side .shopy-summary {
		border-radius: 0;
		border-left: 0;
		border-right: 0;
		border-top: 0;
		padding: 0;
		margin: 0;
	}

	.shopy-page .shopy-summary-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 14px 16px;
		background: #fff;
		border-bottom: 1px solid #eee;
		cursor: pointer;
	}

	.shopy-summary .shopy-card-title {
		display: none;
	}

	.shopy-summary-toggle-label {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		font-size: 13px;
		font-weight: 600;
		color: var(--yg-ink);
	}

	.shopy-summary-toggle-label svg {
		transition: transform .18s;
	}

	.shopy-summary-head[aria-expanded="true"] .shopy-summary-toggle-label svg {
		transform: rotate(180deg);
	}

	.shopy-summary-head-total {
		display: inline-block;
		font-weight: 800;
		font-size: 15px;
		color: var(--yg-ink);
	}

	.shopy-summary-body {
		display: none;
		padding: 16px;
		background: #fff;
		border-bottom: 1px solid #eee;
	}

	.shopy-summary-head[aria-expanded="true"] + .shopy-summary-body {
		display: block;
	}

	.shopy-summary .shopy-trust {
		display: none;
		padding: 0 16px 16px;
		background: #fff;
		margin-top: 0;
	}

	.shopy-summary-head[aria-expanded="true"] ~ .shopy-trust {
		display: flex;
	}

	/* Barra inferior fija con total + CTA.
	   En el checkout el contenedor también lleva la clase `form-row`, cuyo
	   `margin: 0 0 6px` del tema gana por especificidad y despegaba la barra del
	   borde inferior. De ahí el selector doblemente cualificado. */
	.shopy-place-order,
	.shopy-page .shopy-place-order.form-row {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 90;
		display: flex;
		align-items: center;
		gap: 12px;
		background: #fff;
		border-top: 1px solid var(--yg-border);
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
		margin: 0;
	}

	.shopy-bar-total {
		display: block;
		flex: 0 1 auto;
		min-width: 0;
	}

	/* Sólo los hijos directos: el importe de WooCommerce llega envuelto en sus
	   propios <span> (.woocommerce-Price-amount y .woocommerce-Price-currencySymbol)
	   y un selector descendente los volvía bloque, partiendo el "$" de la cifra. */
	.shopy-bar-total > span {
		display: block;
		font-size: 10.5px;
		color: var(--yg-muted);
	}

	.shopy-bar-total strong {
		display: block;
		font-size: 15px;
		font-weight: 800;
		color: var(--yg-ink);
		white-space: nowrap;
	}

	.shopy-bar-total .woocommerce-Price-amount {
		font-size: 15px;
	}

	.shopy-place-order-inner {
		flex: 1.4;
		min-width: 0;
	}

	.shopy-page .shopy-cta,
	.shopy-page button#place_order,
	.shopy-page a.checkout-button {
		padding: 14px !important;
		font-size: 14.5px !important;
		white-space: normal !important;
		overflow-wrap: anywhere;
		line-height: 1.3 !important;
	}

	body.shopy-ui-active {
		padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
	}

	body.shopy-ui-active.shopy-mobile-static-cta {
		padding-bottom: 0;
	}

	body.shopy-mobile-static-cta .shopy-place-order,
	body.shopy-mobile-static-cta .shopy-page .shopy-place-order.form-row {
		position: static;
		padding: 12px 16px;
	}

	body.shopy-mobile-static-cta .shopy-bar-total {
		display: none;
	}

	.shopy-wompi-logo {
		height: 24px !important;
	}

	.shopy-pay-logos img {
		height: 32px !important;
	}

	.shopy-logo-desktop {
		display: none;
	}

	.shopy-cart-page .shopy-cart-card {
		padding: 6px;
		border-radius: 10px;
	}

	.shopy-topbar {
		padding: 14px 16px;
	}

	.shopy-brand img {
		height: 26px;
	}

	.shopy-secure {
		display: none;
	}
}

@media (max-width: 640px) {

	.shopy-invoice-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 3px;
	}

	.shopy-page #payment .payment_methods > .wc_payment_method > label.shopy-pay-label {
		gap: 10px;
	}

	.shopy-page .shopy-pay-option {
		padding: 14px 16px;
	}

	.shopy-page .shopy-pay-options {
		gap: 14px;
	}

	.shopy-pay-spacer {
		display: none;
	}

	.shopy-pay-logos {
		flex: 0 0 calc(100% - 30px);
		width: calc(100% - 30px);
		margin: 6px 0 0 30px;
		flex-wrap: wrap;
		gap: 8px;
		justify-content: flex-start;
	}
}

@media (max-width: 480px) {

	.shopy-page .woocommerce-billing-fields__field-wrapper,
	.shopy-page .woocommerce-shipping-fields__field-wrapper {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.shopy-card {
		padding: 16px;
		border-radius: 10px;
	}

	.shopy-benefits {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.shopy-cart-item {
		gap: 8px;
		padding: 12px;
	}

	.shopy-cart-item .shopy-item-copy {
		flex: 1 1 90px;
	}

	.shopy-cart-item .shopy-qty {
		margin-left: 28px;
	}

	.shopy-cart-item .shopy-item-price {
		margin-left: auto;
	}
}
