/* --------------------------------------------------------------------------
   Footer — Figma "Dosh-web"
   -------------------------------------------------------------------------- */
.site-footer {
	padding: 40px 0 20px;
	background: var(--ap-white);
	color: var(--ap-text-muted);
	font-family: var(--font-body);
}

.footer-columns {
	display: grid;
	grid-template-columns: 17fr 34fr 25.5fr 347px;
	align-items: start;
}

.footer-col-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 10px;
	color: var(--ap-black);
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 16px;
	line-height: 24px;
}

.footer-accordion-icon {
	display: none;
	width: 10px;
	height: 6px;
	color: var(--ap-grey);
	transform: rotate(180deg);
	transition: transform 0.2s ease;
}

.footer-menu {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu a {
	color: var(--ap-text-muted);
	font-size: 12px;
	line-height: 15px;
}

.footer-menu a:hover,
.footer-menu .current-menu-item > a {
	color: var(--ap-pink);
}

/* Newsletter */
.footer-newsletter {
	position: relative;
	display: flex;
	align-items: center;
	height: 35px;
	border: 1px solid var(--ap-border);
	border-radius: 18px;
	background: var(--ap-white);
	transition: border-color 0.2s ease;
}

.footer-newsletter:focus-within {
	border-color: var(--ap-black);
}

.footer-newsletter__input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0 10px 0 20px;
	border: 0;
	border-radius: 18px;
	background: transparent;
	color: var(--ap-black);
	font-family: var(--font-body);
	font-size: 12px;
	outline: none;
}

.footer-newsletter__input::placeholder {
	color: var(--ap-text-muted);
	opacity: 1;
}

.footer-newsletter__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 24px; /* WCAG 2.2 minimum target size. */
	height: 24px;
	margin-right: 6px;
	padding: 0 0 0 1px;
	border: 0;
	border-radius: 50%;
	background: var(--ap-black);
	color: var(--ap-white);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.footer-newsletter__submit:hover {
	background: var(--ap-pink);
}

.footer-newsletter__submit .ap-icon {
	width: 5px;
	height: 9px;
}

.footer-newsletter__submit:disabled {
	opacity: 0.6;
	cursor: wait;
}

.footer-newsletter__message {
	margin: 8px 0 0 20px;
	font-size: 12px;
	line-height: 1.4;
}

.footer-newsletter__message.is-success {
	color: #2e7d32;
}

.footer-newsletter__message.is-error {
	color: var(--color-error);
}

.footer-loader {
	width: 11px;
	height: 11px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: var(--ap-white);
	border-radius: 50%;
	animation: ap-footer-spin 0.7s linear infinite;
}

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

/* Language + socials */
.footer-lang-social {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin-top: 30px;
}

.ap-lang--footer {
	color: var(--ap-text-muted);
}

.ap-lang--footer .ap-lang__chevron {
	margin-left: 20px;
}

.ap-lang--footer .ap-lang__list {
	top: auto;
	bottom: calc(100% + 10px);
}

.footer-socials--mobile {
	display: none;
}

/* Payment logos row */
.footer-payments {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 20px;
	margin-top: 30px;
	padding-bottom: 30px;
	border-bottom: 1px solid var(--ap-border-light);
}

.footer-payment-logos {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.payment-logo-item {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: fit-content;
	height: 20px;
}

.payment-logo-item img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 30px;
}

.footer-copyright {
	margin: 0;
	color: var(--ap-text-muted);
	font-size: 12px;
	line-height: 15px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
	.footer-columns {
		grid-template-columns: repeat(3, 1fr) 300px;
		gap: 30px;
	}
}

@media (max-width: 991px) {
	.footer-columns {
		grid-template-columns: repeat(3, 1fr);
	}

	.footer-col-newsletter {
		grid-column: 1 / -1;
		max-width: 420px;
	}

	.footer-lang-social {
		justify-content: flex-start;
	}
}

@media (max-width: 768px) {
	.site-footer {
		padding-top: 15px;
	}

	.footer-columns {
		display: block;
	}

	.footer-col:not(.footer-col-newsletter) {
		border-bottom: 1px solid var(--ap-border-light);
	}

	.footer-col-title {
		margin: 0;
		padding: 25px 0;
		cursor: pointer;
	}

	.footer-col-title--static {
		padding-bottom: 10px;
		cursor: default;
	}

	.footer-accordion-icon {
		display: block;
	}

	.footer-col.active .footer-accordion-icon {
		transform: none;
	}

	.footer-col:not(.footer-col-newsletter) .footer-col-content {
		display: none;
		padding-bottom: 25px;
	}

	.footer-col.active .footer-col-content {
		display: block;
	}

	.footer-menu {
		gap: 14px;
	}

	.footer-menu a {
		font-size: 14px;
		line-height: 18px;
	}

	.footer-col-newsletter {
		max-width: none;
		padding-top: 15px;
	}

	.footer-lang-social {
		justify-content: space-between;
		margin-top: 30px;
	}

	.ap-lang--footer .ap-lang__list {
		right: auto;
		left: 0;
	}

	.footer-socials--mobile {
		display: flex;
	}

	.footer-socials--desktop {
		display: none;
	}

	.footer-payments {
		margin-top: 40px;
		padding-bottom: 0;
	}

	.footer-payment-logos {
		justify-content: center;
	}

	.footer-bottom {
		flex-direction: column-reverse;
		text-align: center;
		padding-top: 30px;
	}
}
