/* Nuni, WooCommerces egen korg och kassa på nuniglobal.es (bygge 50).
   Kassan och tacksidan får sajtens typsnitt, Camello-Rough i rubriker och Gilroy i text, som korgen redan har. */

body .nuni-checkout {
	--nuni-font-sans: 'Gilroy', 'Inter', system-ui, sans-serif;
	--nuni-font-display: 'Camello-Rough', 'Cormorant Garamond', 'Times New Roman', serif;
	--nuni-font-mono: 'Gilroy', 'Inter', system-ui, sans-serif;
}

/* Fältens etiketter kommer i gemener ur översättningen ("nombre", "correo electrónico"). Versal först, som i korgen. */
body .nuni-checkout .form-row > label,
body .nuni-checkout .nuni-checkout__totals-grand > span:first-child,
body .nuni-cart .nuni-cart__totals-row > span:first-child,
body .nuni-cart .nuni-cart__totals-grand > span:first-child {
	display: block;
}
body .nuni-checkout .form-row > label::first-letter,
body .nuni-checkout .nuni-checkout__totals-grand > span:first-child::first-letter,
body .nuni-cart .nuni-cart__totals-row > span:first-child::first-letter,
body .nuni-cart .nuni-cart__totals-grand > span:first-child::first-letter {
	text-transform: uppercase;
}

/* Fraktraden i kassans sammanfattning. Etiketten och metoden låg ihop ("EnvíoEntrega a domicilio"). */
body .nuni-checkout .nuni-checkout__totals-row {
	gap: 16px;
}
body .nuni-checkout .nuni-checkout__totals-row > :first-child {
	flex-shrink: 0;
}
body .nuni-checkout .nuni-checkout__totals-row > :last-child {
	text-align: right;
}

/* Betalsättets ruta stack ut 7 px till höger om formuläret på mobil. */
body .nuni-checkout #payment div.payment_box {
	margin-left: 0;
	margin-right: 0;
	box-sizing: border-box;
	width: auto;
	max-width: 100%;
}

/* Totalsumman i samma typsnitt som korgens summa. */
body .nuni-checkout .nuni-checkout__totals-grand > span:last-child {
	font-family: 'Gilroy', 'Inter', system-ui, sans-serif;
	font-weight: 600;
}

/* Fält och val minst 44 px höga, landet ser ut som de andra fälten. */
body .nuni-checkout form.checkout .input-text,
body .nuni-checkout form.checkout select,
body .nuni-checkout form.checkout .select2-container .select2-selection--single {
	min-height: 44px;
	box-sizing: border-box;
}
body .nuni-checkout form.checkout .select2-container .select2-selection--single {
	display: flex;
	align-items: center;
}
body .nuni-checkout form.checkout .select2-container .select2-selection--single .select2-selection__arrow {
	height: 100%;
}
body .nuni-checkout form.checkout select.country_to_state--single {
	width: 100%;
	padding: 0 12px;
	font-size: 14px;
	font-weight: 400;
	color: inherit;
	background: #fff;
	-webkit-appearance: none;
	appearance: none;
	pointer-events: none;
}
body .nuni-checkout .woocommerce-additional-fields > h3 {
	margin-top: 28px;
}

/* Fraktvalens två rader låg nästan ihop. */
body .nuni-checkout #shipping_method li label {
	line-height: 1.4;
}

/* Correos lägger en tom ruta under vald fraktmetod. Den visas bara när den har innehåll (val av kontor). */
body .nuni-checkout #shipping_method .correos_oficial:not(:has(*)) {
	display: none;
}

/* Inga dekorativa pilar i korgens knappar och länkar. */
body .nuni-cart .nuni-cart__cta svg,
body .nuni-cart .nuni-cart__continue svg {
	display: none;
}

/* Korsförsäljningen i sidokorgen, "Comprados juntos con frecuencia". */
.nuni-es-korg-xs {
	margin: 20px 0 4px;
	padding: 18px 16px 6px;
	background: #F4ECDD;
	border-radius: 10px;
}
.nuni-es-korg-xs__titulo {
	margin: 0 0 12px;
	font-family: 'Gilroy', 'Inter', system-ui, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #6B5B47;
}
.nuni-es-korg-xs__lista {
	list-style: none;
	margin: 0;
	padding: 0;
}
.nuni-es-korg-xs__vara {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 0 0 12px;
}
.nuni-es-korg-xs__bild img {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
}
.nuni-es-korg-xs__text {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
body .nuni-v3-cart-drawer .nuni-es-korg-xs__namn,
.nuni-es-korg-xs__namn {
	font-family: 'Gilroy', 'Inter', system-ui, sans-serif;
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: #2A1F14;
	text-decoration: none;
}
body .nuni-v3-cart-drawer .nuni-es-korg-xs__pris,
.nuni-es-korg-xs__pris {
	display: block;
	line-height: 1.4;
	font-size: 13px;
	color: #2A1F14;
}
.nuni-es-korg-xs__pris del {
	color: #6B5B47;
	opacity: 0.8;
	margin-right: 4px;
}
.nuni-es-korg-xs__pris ins {
	text-decoration: none;
	font-weight: 600;
}
body .nuni-v3-cart-drawer a.button.nuni-es-korg-xs__knapp,
.nuni-es-korg-xs__knapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	padding: 0 18px;
	border: 1px solid #2A1F14;
	border-radius: 999px;
	background: transparent;
	color: #2A1F14;
	font-family: 'Gilroy', 'Inter', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 180ms ease, color 180ms ease;
}
body .nuni-v3-cart-drawer a.button.nuni-es-korg-xs__knapp:hover,
body .nuni-v3-cart-drawer a.button.nuni-es-korg-xs__knapp:focus-visible {
	background: #2A1F14;
	color: #FBF7EE;
}
body .nuni-v3-cart-drawer a.button.nuni-es-korg-xs__knapp.loading {
	opacity: 0.6;
	pointer-events: none;
}
.nuni-es-korg-xs .added_to_cart {
	display: none;
}

/* Tryckytor minst 44 px på mobil i sidokorgen, korgen, kassan och på tacksidan. Namn- och kontaktlänkar får större
   yta med utfyllnad och negativ marginal, så att raderna står kvar där de står. */
@media (max-width: 820px) {
	body .nuni-v3-cart-drawer .nuni-v3-cart-drawer__close,
	body .nuni-v3-cart-drawer .remove_from_cart_button,
	body .nuni-cart .nuni-cart__item-remove,
	body .nuni-cart .nuni-cart__qty-btn,
	body .nuni-checkout .nuni-checkout__remove-coupon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
	}
	body .nuni-checkout .nuni-checkout__remove-coupon {
		margin: -15px -16px -15px -8px;
	}
	body .nuni-v3-cart-drawer .elementor-menu-cart__footer-buttons .elementor-button,
	body .nuni-cart .nuni-cart__qty-input,
	body .nuni-checkout #place_order,
	body .nuni-checkout .nuni-checkout__coupon-input,
	body .nuni-checkout .nuni-checkout__coupon-btn {
		min-height: 44px;
	}
	body .nuni-cart .nuni-cart__continue {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
	body .nuni-v3-cart-drawer .product-name a,
	body .nuni-cart .nuni-cart__item-name a,
	body .nuni-checkout .nuni-order__item-name {
		display: inline-block;
		padding-block: 6px;
		margin-block: -6px;
	}
	body .nuni-checkout--thankyou a[href^="tel:"],
	body .nuni-checkout--thankyou a[href^="mailto:"] {
		display: inline-block;
		padding-block: 12px;
		margin-block: -12px;
	}
	/* Kassawidgeten sätter etiketterna till 22 px med !important. */
	body .nuni-checkout .nuni-checkout__embed #payment .nuni-checkout__extras--submit label.checkbox,
	body .nuni-checkout .woocommerce-form__label-for-checkbox,
	body .nuni-checkout label.checkbox {
		min-height: 44px !important;
	}
	body .nuni-v3-cart-drawer .elementor-menu-cart__footer-buttons a.elementor-button {
		min-height: 44px !important;
	}
}
