/**
 * Global footer: dark brand surface, useful navigation and a real newsletter.
 */

.myc-footer {
	margin-top: auto;
	border-top: 1px solid rgb(226 233 243 / 12%);
	background:
		radial-gradient(circle at 82% 10%, rgb(37 70 116 / 42%), transparent 34%),
		linear-gradient(145deg, var(--ps-color-brand-950), #050b13 72%);
	color: rgb(242 245 250 / 72%);
}

.myc-footer-shell {
	width: min(100%, var(--ps-content-discovery));
	margin: 0 auto;
	padding-inline-start: max(var(--ps-space-5), env(safe-area-inset-left));
	padding-inline-end: max(var(--ps-space-5), env(safe-area-inset-right));
}

.myc-footer-main {
	display: grid;
	grid-template-columns: minmax(220px, 1.15fr) minmax(140px, .68fr) minmax(165px, .8fr) minmax(360px, 1.65fr);
	gap: clamp(32px, 4vw, 64px);
	padding-block: clamp(56px, 7vw, 88px) clamp(44px, 5vw, 64px);
}

.myc-footer-brand {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	gap: var(--ps-space-5);
}

.myc-footer-brand-link {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	color: #fff;
	font-family: var(--ps-font-display);
	font-size: 25px;
	font-weight: 700;
	letter-spacing: .08em;
	text-decoration: none;
}

.myc-footer-brand-image {
	display: block;
	width: min(185px, 100%);
	height: auto;
	filter: brightness(0) invert(1);
}

.myc-footer-brand > p {
	max-width: 30ch;
	margin: 0;
	font-size: 14px;
	line-height: 1.75;
}

.myc-footer-column h2,
.myc-footer-newsletter h2 {
	margin: 0;
	color: #fff;
	font-family: var(--ps-font-display);
	font-weight: 600;
}

.myc-footer-column h2 {
	font-size: 17px;
	letter-spacing: .035em;
}

.myc-footer-column ul {
	display: grid;
	gap: 13px;
	margin: var(--ps-space-5) 0 0;
	padding: 0;
	list-style: none;
}

.myc-footer-column a,
.myc-footer-newsletter-privacy a {
	color: inherit;
	text-decoration: none;
	transition: color var(--ps-transition-fast);
}

.myc-footer-column a {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	font-size: 14px;
}

.myc-footer-column a:hover,
.myc-footer-column a:focus-visible,
.myc-footer-newsletter-privacy a:hover,
.myc-footer-newsletter-privacy a:focus-visible {
	color: #fff;
}

.myc-footer-newsletter {
	position: relative;
	overflow: hidden;
	align-self: start;
	padding: clamp(24px, 3vw, 36px);
	border: 1px solid rgb(226 233 243 / 14%);
	border-radius: var(--ps-radius-lg);
	background: linear-gradient(135deg, rgb(28 53 87 / 74%), rgb(12 23 39 / 88%));
	box-shadow: 0 24px 60px rgb(0 0 0 / 18%);
}

.myc-footer-newsletter::after {
	position: absolute;
	top: -38px;
	right: -26px;
	width: 120px;
	height: 120px;
	border: 1px solid rgb(255 255 255 / 10%);
	border-radius: 50%;
	box-shadow: 0 0 0 26px rgb(255 255 255 / 3%);
	content: "";
	pointer-events: none;
}

.myc-footer-eyebrow {
	display: inline-block;
	margin-bottom: 9px;
	color: rgb(226 233 243 / 70%);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .18em;
}

.myc-footer-newsletter h2 {
	font-size: clamp(24px, 2vw, 31px);
	line-height: 1.1;
}

.myc-footer-newsletter > p:not(.myc-footer-newsletter-privacy) {
	max-width: 48ch;
	margin: 12px 0 20px;
	font-size: 14px;
	line-height: 1.6;
}

.myc-footer-newsletter-form .fluentform,
.myc-footer-newsletter-form .frm-fluent-form,
.myc-footer-newsletter-form .ff-el-group,
.myc-footer-newsletter-form .ff-t-container {
	margin: 0;
}

.myc-footer-newsletter-form .ff-t-container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
}

.myc-footer-newsletter-form .ff-t-cell {
	min-width: 0;
	padding: 0;
}

.myc-footer-newsletter-form input[type="email"] {
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid rgb(255 255 255 / 24%);
	border-radius: var(--ps-radius-md);
	background: rgb(255 255 255 / 96%);
	color: var(--ps-color-ink);
	font: inherit;
	box-shadow: none;
}

.myc-footer-newsletter-form input[type="email"]:focus {
	border-color: #fff;
	outline: 0;
}

.myc-footer-newsletter-form .ff-btn-submit {
	min-width: 124px !important;
	height: 50px;
	margin: 0 !important;
	padding: 0 22px !important;
	border: 1px solid #fff !important;
	border-radius: var(--ps-radius-md) !important;
	background: #fff !important;
	color: var(--ps-color-brand-900) !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	opacity: 1 !important;
	box-shadow: none !important;
	transition: background-color var(--ps-transition-fast), color var(--ps-transition-fast), transform var(--ps-transition-fast) !important;
}

.myc-footer-newsletter-form .ff-btn-submit:hover,
.myc-footer-newsletter-form .ff-btn-submit:focus-visible {
	background: var(--ps-color-brand-100) !important;
	transform: translateY(-1px);
}

.myc-footer-newsletter-form .error,
.myc-footer-newsletter-form .text-danger,
.myc-footer-newsletter-form .ff-el-is-error .text-danger {
	color: #ffd5d5 !important;
	font-size: 12px;
}

.myc-footer-newsletter-form .ff-message-success {
	margin: 0;
	border-color: rgb(255 255 255 / 24%);
	background: rgb(255 255 255 / 10%);
	color: #fff;
}

/*
 * Soto Core's own newsletter form (`[soto_boletin]`), which
 * replaces the Fluent Forms one above. Same field, same white button, same
 * band — so the switch changes nothing a visitor can see.
 */
.myc-footer-newsletter-form .psf-newsletter {
	margin: 0;
}

.myc-footer-newsletter-form .psf-newsletter [hidden] {
	display: none;
}

/* No focus ring: base.css draws one on every control (0,3,0). */
.myc-footer-newsletter-form .psf-newsletter :is(input, button):is(:focus, :focus-visible) {
	outline: none;
}

.myc-footer-newsletter-form .psf-newsletter__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
}

.myc-footer-newsletter-form .psf-newsletter__input {
	box-sizing: border-box;
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid rgb(255 255 255 / 24%);
	border-radius: var(--ps-radius-md);
	background: rgb(255 255 255 / 96%);
	box-shadow: none;
	color: var(--ps-color-ink);
	font: inherit;
	font-size: 16px;
}

.myc-footer-newsletter-form .psf-newsletter__input::placeholder {
	color: #8a8487;
	opacity: 1;
}

.myc-footer-newsletter-form .psf-newsletter__input:focus {
	border-color: #fff;
	outline: 0;
}

.myc-footer-newsletter-form .psf-newsletter__input[aria-invalid="true"] {
	border-color: #ffb4b4;
}

.myc-footer-newsletter-form .psf-newsletter__button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 124px;
	height: 50px;
	margin: 0;
	padding: 0 22px;
	border: 1px solid #fff;
	border-radius: var(--ps-radius-md);
	background: #fff;
	box-shadow: none;
	color: var(--ps-color-brand-900);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color var(--ps-transition-fast), color var(--ps-transition-fast), transform var(--ps-transition-fast);
}

.myc-footer-newsletter-form .psf-newsletter__button:hover,
.myc-footer-newsletter-form .psf-newsletter__button:focus-visible {
	background: var(--ps-color-brand-100);
	outline: 0;
	transform: translateY(-1px);
}

.myc-footer-newsletter-form .psf-newsletter__button .psf-submit__busy {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgb(12 23 39 / 25%);
	border-top-color: var(--ps-color-brand-900);
	border-radius: 50%;
	animation: myc-footer-spin 700ms linear infinite;
}

.myc-footer-newsletter-form .psf-newsletter__button.is-busy .psf-submit__label {
	visibility: hidden;
}

.myc-footer-newsletter-form .psf-newsletter__button.is-busy .psf-submit__busy {
	position: absolute;
	display: block;
}

@keyframes myc-footer-spin {
	to {
		transform: rotate(360deg);
	}
}

.myc-footer-newsletter-form .psf-newsletter__error {
	margin: 8px 0 0;
	color: #ffd5d5;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
}

.myc-footer-newsletter-form .psf-newsletter__success {
	display: flex;
	align-items: center;
	min-height: 50px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid rgb(255 255 255 / 24%);
	border-radius: var(--ps-radius-md);
	background: rgb(255 255 255 / 10%);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.myc-footer-newsletter-privacy {
	margin: 11px 0 0;
	font-size: 11px;
	line-height: 1.5;
}

.myc-footer-newsletter-privacy a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.myc-footer-newsletter-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding-inline: 20px;
	border-radius: var(--ps-radius-md);
	background: #fff;
	color: var(--ps-color-brand-900);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.myc-footer-socials {
	display: flex;
	align-items: center;
	gap: var(--ps-space-2);
}

.myc-footer-social-link {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border: 1px solid rgb(226 233 243 / 16%);
	border-radius: 50%;
	background: rgb(255 255 255 / 4%);
	color: rgb(242 245 250 / 72%);
	transition: color var(--ps-transition-fast), background-color var(--ps-transition-fast), border-color var(--ps-transition-fast), transform var(--ps-transition-fast);
}

.myc-footer-social-link:not(.is-unavailable):hover,
.myc-footer-social-link:not(.is-unavailable):focus-visible {
	border-color: rgb(255 255 255 / 42%);
	background: rgb(255 255 255 / 10%);
	color: #fff;
	transform: translateY(-2px);
}

.myc-footer-social-link.is-unavailable {
	opacity: .4;
}

.myc-footer-social-link svg {
	width: 18px;
	height: 18px;
	fill: currentcolor;
}

.myc-footer-social-link svg.myc-social-icon-whatsapp {
	fill: none;
	stroke: currentcolor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.65;
}

.myc-footer-social-link svg rect,
.myc-footer-social-link svg circle {
	fill: none;
	stroke: currentcolor;
	stroke-width: 1.8;
}

.myc-footer-social-link svg .myc-footer-social-dot {
	fill: currentcolor;
	stroke: 0;
}

.myc-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ps-space-5);
	min-height: 76px;
	padding-block: var(--ps-space-4) calc(var(--ps-space-4) + env(safe-area-inset-bottom));
	border-top: 1px solid rgb(226 233 243 / 12%);
	font-size: 11px;
}

.myc-footer-copyright {
	margin: 0;
}

/*
 * The marks the store accepts. Each sits in a white tile of one size, whatever
 * the shape of the file inside it: they arrive as a mix of card-shaped badges
 * and bare wordmarks, and left to their own proportions they would step up and
 * down the row.
 */
.myc-footer-payments {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.myc-footer-payments li {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 46px;
	height: 30px;
	padding: 3px;
	border-radius: 5px;
	background: #fff;
}

.myc-footer-payments img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@media (max-width: 1120px) {
	.myc-footer-main {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.myc-footer-brand {
		grid-column: 1;
	}

	.myc-footer-newsletter {
		grid-row: 1;
		grid-column: 2;
	}
}

@media (max-width: 760px) {
	.myc-footer-shell {
		padding-inline-start: max(var(--ps-page-gutter-mobile), env(safe-area-inset-left));
		padding-inline-end: max(var(--ps-page-gutter-mobile), env(safe-area-inset-right));
	}

	.myc-footer-main {
		grid-template-columns: 1fr;
		gap: 34px;
		padding-block: 48px 40px;
	}

	.myc-footer-brand,
	.myc-footer-newsletter {
		grid-row: auto;
		grid-column: 1;
	}

	.myc-footer-brand {
		align-items: center;
		order: 1;
		text-align: center;
	}

	.myc-footer-brand-link {
		justify-content: center;
		width: 100%;
		margin-inline: auto;
	}

	.myc-footer-brand-image {
		margin-inline: auto;
	}

	.myc-footer-newsletter {
		order: 2;
		padding: 24px 20px;
	}

	.myc-footer-shop {
		order: 3;
	}

	.myc-footer-help {
		order: 4;
	}

	.myc-footer-brand > p {
		max-width: 36ch;
	}

	.myc-footer-socials {
		justify-content: center;
	}

	.myc-footer-column ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px 18px;
	}

	.myc-footer-newsletter-form .ff-t-container {
		grid-template-columns: 1fr;
	}

	.myc-footer-newsletter-form .ff-btn-submit {
		width: 100% !important;
	}

	.myc-footer-bottom {
		align-items: center;
		flex-direction: column;
		min-height: 0;
		padding-block: 24px calc(28px + env(safe-area-inset-bottom));
		text-align: center;
	}

	.myc-footer-copyright,
	.myc-footer-payments {
		width: 100%;
	}

	.myc-footer-payments {
		justify-content: center;
	}
}

@media (max-width: 390px) {
	.myc-footer-column ul {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.myc-footer-social-link,
	.myc-footer-newsletter-form .ff-btn-submit {
		transition: none !important;
	}
}
