/* =========================================================
   Nav Icons for Elementor & WooCommerce
   Globals come from :root vars printed by NIE_Settings.
   Every value here is a fallback the Elementor controls override.
   ========================================================= */

:root {
	--nie-icon-size: 22px;
	--nie-icon-color: #1a1a1a;
	--nie-icon-hover: #e01010;
	--nie-icon-gap: 18px;
	--nie-accent: #e01010;
	--nie-badge-bg: #e01010;
	--nie-badge-color: #fff;
	--nie-badge-size: 17px;
	--nie-panel-bg: #fff;
	--nie-panel-radius: 16px;
	--nie-overlay: rgba(0, 0, 0, .55);
	--nie-border: #e3e3e3;
	--nie-muted: #7a7a7a;
	--nie-z: 100000;
}

/* ---------------- Trigger ---------------- */

.nie-wrap {
	display: flex;
	align-items: center;
	position: relative;
}

.nie-bar {
	display: flex;
	align-items: center;
	gap: var(--nie-icon-gap);
	flex-wrap: nowrap;
}

.nie-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: none;
	border: 0 solid transparent;
	padding: 0;
	margin: 0;
	cursor: pointer;
	line-height: 1;
	text-decoration: none;
	color: var(--nie-icon-color);
	font-family: inherit;
	transition: color .22s ease, background-color .22s ease,
		border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.nie-trigger:hover {
	color: var(--nie-icon-hover);
}

.nie-trigger:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.nie-text-below {
	flex-direction: column;
	gap: 4px;
}

.nie-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: inherit;
}

.nie-icon svg {
	width: var(--nie-icon-size);
	height: var(--nie-icon-size);
	fill: currentColor;
	transition: inherit;
}

.nie-icon i {
	font-size: var(--nie-icon-size);
	color: currentColor;
	transition: inherit;
}

.nie-text {
	transition: inherit;
}

.nie-caret {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.nie-flag {
	width: 18px;
	height: auto;
	border-radius: 2px;
	display: block;
}

.nie-lang-current {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.nie-lang-code {
	font-weight: 600;
	letter-spacing: .3px;
}

.nie-cart-total {
	margin-inline-start: 8px;
	font-weight: 600;
}

.nie-notice {
	padding: 10px 14px;
	background: #fff6e5;
	border: 1px solid #f0d9a8;
	border-radius: 8px;
	font-size: 13px;
	color: #8a6100;
}

/* ---------------- Badge ---------------- */

.nie-count {
	position: absolute;
	top: -8px;
	inset-inline-end: -10px;
	min-width: var(--nie-badge-size);
	height: var(--nie-badge-size);
	padding: 0 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--nie-badge-bg);
	color: var(--nie-badge-color);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	box-sizing: border-box;
	pointer-events: none;
	transition: transform .2s ease;
}

.nie-hide-empty-badge .nie-count.is-empty {
	display: none;
}

.nie-count.is-bump {
	animation: nie-bump .4s ease;
}

@keyframes nie-bump {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.35); }
	100% { transform: scale(1); }
}

/* ---------------- Dropdown ---------------- */

.nie-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	inset-inline-end: 0;
	width: 230px;
	background: var(--nie-panel-bg);
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
	padding: 8px;
	z-index: 9999;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease;
}

.nie-dropdown[hidden] { display: none; }
.nie-dropdown.is-open { opacity: 1; transform: translateY(0); }

.nie-dropdown-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 10px 12px;
	border-bottom: 1px solid rgba(0, 0, 0, .07);
	margin-bottom: 6px;
}

.nie-avatar { border-radius: 50%; flex-shrink: 0; }

.nie-dropdown-user {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.35;
}

.nie-dropdown-user strong,
.nie-dropdown-user span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nie-dropdown-user strong { font-size: 14px; }
.nie-dropdown-user span { font-size: 12px; opacity: .6; }

.nie-dropdown-list { list-style: none; margin: 0; padding: 0; }

.nie-dropdown-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	color: #1a1a1a;
	text-decoration: none;
	transition: background-color .18s ease, color .18s ease;
}

.nie-dropdown-item:hover {
	background: rgba(0, 0, 0, .05);
	color: var(--nie-accent);
}

.nie-dropdown-item.is-active { font-weight: 700; }

.nie-dropdown-icon { display: inline-flex; width: 16px; }
.nie-dropdown-icon svg { width: 16px; height: 16px; fill: currentColor; }
.nie-dropdown-icon i { font-size: 14px; }

/* ---------------- Panels: shared ---------------- */

.nie-panel {
	position: fixed;
	inset: 0;
	z-index: var(--nie-z);
	background: var(--nie-overlay);
	opacity: 0;
	transition: opacity .25s ease;
}

.nie-panel[hidden] { display: none; }
.nie-panel.is-open { opacity: 1; }

.nie-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 22px;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
	flex-shrink: 0;
}

.nie-panel-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
}

.nie-panel-close,
.nie-modal-close,
.nie-search-clear {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	color: #999;
	border-radius: 50%;
	flex-shrink: 0;
	transition: background-color .18s ease, color .18s ease;
}

.nie-panel-close:hover,
.nie-modal-close:hover,
.nie-search-clear:hover {
	background: rgba(0, 0, 0, .06);
	color: #333;
}

.nie-panel-close svg,
.nie-modal-close svg,
.nie-search-clear svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.nie-panel-scroll {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.nie-panel-loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .6);
	z-index: 5;
}

.nie-panel-loading[hidden] { display: none; }

/* ---------------- Drawer ---------------- */

.nie-drawer-box {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 400px;
	max-width: 92vw;
	background: var(--nie-panel-bg);
	display: flex;
	flex-direction: column;
	box-shadow: 0 0 50px rgba(0, 0, 0, .25);
	transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

.nie-drawer[data-side="right"] .nie-drawer-box {
	right: 0;
	transform: translateX(100%);
}

.nie-drawer[data-side="left"] .nie-drawer-box {
	left: 0;
	transform: translateX(-100%);
}

.nie-drawer.is-open .nie-drawer-box { transform: translateX(0); }

/* ---------------- Cart / wishlist items ---------------- */

.nie-cart-list,
.nie-wishlist-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nie-cart-item,
.nie-wishlist-item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 22px;
	border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.nie-cart-thumb {
	width: 70px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #f5f5f5;
}

.nie-cart-thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.nie-cart-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.nie-cart-name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.nie-cart-name a {
	color: inherit;
	text-decoration: none;
}

.nie-cart-name a:hover { color: var(--nie-accent); }

.nie-cart-meta {
	font-size: 12px;
	color: var(--nie-muted);
}

.nie-cart-meta p { margin: 0; }

.nie-cart-price {
	font-size: 13px;
	color: var(--nie-muted);
}

.nie-cart-price ins { text-decoration: none; }

.nie-cart-remove {
	width: 26px;
	height: 26px;
	flex-shrink: 0;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	color: #bbb;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: color .18s ease, background-color .18s ease;
}

.nie-cart-remove:hover {
	color: var(--nie-accent);
	background: rgba(0, 0, 0, .05);
}

.nie-cart-remove svg {
	width: 13px;
	height: 13px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
}

/* Quantity stepper */

.nie-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--nie-border);
	border-radius: 8px;
	overflow: hidden;
	width: fit-content;
	margin-top: 3px;
}

.nie-qty-btn {
	width: 28px;
	height: 28px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	color: #555;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color .15s ease;
}

.nie-qty-btn:hover { background: rgba(0, 0, 0, .05); }

.nie-qty-input {
	width: 38px;
	height: 28px;
	border: none;
	border-inline: 1px solid var(--nie-border);
	text-align: center;
	font-size: 13px;
	background: transparent;
	color: inherit;
	-moz-appearance: textfield;
	appearance: textfield;
}

.nie-qty-input::-webkit-outer-spin-button,
.nie-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ---------------- Cart footer ---------------- */

.nie-cart-foot {
	flex-shrink: 0;
	padding: 18px 22px 22px;
	border-top: 1px solid rgba(0, 0, 0, .08);
	background: var(--nie-panel-bg);
}

.nie-cart-foot.is-hidden { display: none; }

.nie-cart-subtotal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	font-size: 15px;
}

.nie-cart-subtotal strong { font-size: 17px; }

.nie-cart-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

/* ---------------- Buttons ---------------- */

.nie-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1.5px solid var(--nie-accent);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	font-family: inherit;
	transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.nie-btn-solid {
	background: var(--nie-accent);
	color: #fff;
}

.nie-btn-solid:hover { filter: brightness(.92); color: #fff; }

.nie-btn-ghost {
	background: transparent;
	color: var(--nie-accent);
}

.nie-btn-ghost:hover { background: rgba(0, 0, 0, .04); }

.nie-btn-small {
	height: 34px;
	padding: 0 14px;
	font-size: 12.5px;
	background: var(--nie-accent);
	color: #fff;
	width: fit-content;
	margin-top: 4px;
}

.nie-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------------- Empty state ---------------- */

.nie-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 60px 24px;
	text-align: center;
	color: var(--nie-muted);
}

.nie-empty-icon {
	width: 54px;
	height: 54px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: .45;
}

.nie-empty p { margin: 0; font-size: 15px; }

/* ---------------- Free shipping bar ---------------- */

.nie-progress-wrap {
	padding: 14px 22px;
	border-bottom: 1px solid rgba(0, 0, 0, .06);
	flex-shrink: 0;
}

.nie-progress-wrap[hidden] { display: none; }

.nie-progress-text {
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--nie-muted);
}

.nie-progress {
	display: block;
	height: 6px;
	background: rgba(0, 0, 0, .08);
	border-radius: 999px;
	overflow: hidden;
}

.nie-progress-i {
	display: block;
	height: 100%;
	width: 0;
	background: var(--nie-accent);
	border-radius: 999px;
	transition: width .35s ease;
}

/* ---------------- Search ---------------- */

.nie-search--overlay .nie-search-box {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: var(--nie-panel-bg);
	padding: 18px 22px 8px;
	transform: translateY(-14px);
	opacity: 0;
	transition: transform .25s ease, opacity .25s ease;
	max-height: 100vh;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.nie-search.is-open .nie-search-box {
	transform: translateY(0);
	opacity: 1;
}

.nie-search--dropdown {
	background: transparent;
	pointer-events: none;
}

.nie-search--dropdown .nie-search-box {
	position: absolute;
	top: 80px;
	left: 50%;
	transform: translateX(-50%) translateY(-10px);
	width: min(620px, 92vw);
	background: var(--nie-panel-bg);
	border-radius: var(--nie-panel-radius);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
	padding: 16px;
	opacity: 0;
	pointer-events: auto;
	transition: transform .22s ease, opacity .22s ease;
}

.nie-search--dropdown.is-open .nie-search-box {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

.nie-search-form {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nie-search-field {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
	height: 56px;
	border: 1.5px solid var(--nie-border);
	border-radius: 10px;
	overflow: hidden;
	transition: border-color .18s ease;
}

.nie-search-field:focus-within { border-color: var(--nie-accent); }

.nie-search-field input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: none !important;
	outline: none !important;
	background: transparent !important;
	box-shadow: none !important;
	padding: 0 12px;
	font-size: 15px;
	color: inherit;
	font-family: inherit;
}

.nie-search-field input::-webkit-search-cancel-button { display: none; }

.nie-results { margin-top: 12px; }

.nie-results-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nie-result {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	transition: background-color .15s ease;
}

.nie-result:hover,
.nie-result.is-active { background: rgba(0, 0, 0, .05); }

.nie-result-thumb {
	width: 46px;
	height: 46px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #f2f2f2;
}

.nie-result-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nie-result-info {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nie-result-title {
	font-size: 14px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nie-result-price {
	font-size: 12.5px;
	color: var(--nie-muted);
}

.nie-results-more {
	display: block;
	margin-top: 6px;
	padding: 12px;
	text-align: center;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--nie-accent);
	text-decoration: none;
	border-top: 1px solid rgba(0, 0, 0, .07);
}

.nie-results-state {
	padding: 22px 12px;
	text-align: center;
	font-size: 14px;
	color: var(--nie-muted);
}

/* ---------------- Modal (login) ---------------- */

.nie-modal {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	overflow-y: auto;
}

.nie-modal[hidden] { display: none; }

.nie-modal-box {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: var(--nie-panel-bg);
	border-radius: var(--nie-panel-radius);
	padding: 32px 28px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
	transform: translateY(14px) scale(.98);
	transition: transform .22s ease;
}

.nie-modal.is-open .nie-modal-box { transform: translateY(0) scale(1); }

.nie-modal-close {
	position: absolute;
	top: 14px;
	inset-inline-end: 14px;
}

.nie-modal-head {
	margin-bottom: 20px;
	text-align: center;
}

.nie-modal-title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a1a;
}

.nie-modal-sub {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--nie-muted);
}

/* Tabs */

.nie-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 20px;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.nie-tab {
	position: relative;
	flex: 1;
	background: none;
	border: none;
	padding: 10px 4px 12px;
	font-size: 14px;
	font-weight: 600;
	color: #999;
	cursor: pointer;
	font-family: inherit;
	transition: color .18s ease;
}

.nie-tab:after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: transparent;
	transition: background-color .18s ease;
}

.nie-tab.is-active { color: var(--nie-accent); }
.nie-tab.is-active:after { background: var(--nie-accent); }

.nie-form[hidden] { display: none; }

/* Fields */

.nie-field { margin-bottom: 18px; }

.nie-field > label,
.nie-label-row label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
}

.nie-label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.nie-label-row label { margin-bottom: 0; }

.nie-forgot {
	font-size: 13px;
	font-weight: 700;
	color: var(--nie-accent);
	text-decoration: none;
}

.nie-forgot:hover { text-decoration: underline; }

.nie-input-wrap {
	display: flex;
	align-items: center;
	height: 50px;
	background: #fff;
	border: 1.5px solid var(--nie-border);
	border-radius: 10px;
	overflow: hidden;
	transition: border-color .18s ease;
}

.nie-input-wrap:focus-within { border-color: var(--nie-accent); }

.nie-field-icon {
	width: 20px;
	height: 20px;
	margin-inline-start: 14px;
	flex-shrink: 0;
	fill: none;
	stroke: var(--nie-accent);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.nie-input-wrap input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: none !important;
	outline: none !important;
	background: transparent !important;
	box-shadow: none !important;
	padding: 0 14px;
	font-size: 14px;
	color: #1a1a1a;
	font-family: inherit;
}

.nie-input-wrap input::placeholder { color: #b5b5b5; }

.nie-eye {
	width: 44px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	color: #b5b5b5;
	flex-shrink: 0;
}

.nie-eye:hover { color: #777; }

.nie-eye svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Class based so themes forcing svg display cannot break it. */
.nie-eye .nie-eye-hide { display: none; }
.nie-eye.is-revealed .nie-eye-show { display: none; }
.nie-eye.is-revealed .nie-eye-hide { display: block; }

/* Strength meter */

.nie-strength {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
}

.nie-strength[hidden] { display: none; }

.nie-strength-bar {
	flex: 1;
	height: 4px;
	background: #eee;
	border-radius: 4px;
	overflow: hidden;
}

.nie-strength-bar i {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 4px;
	transition: width .25s ease, background-color .25s ease;
}

.nie-strength-text {
	font-size: 12px;
	font-weight: 600;
	min-width: 56px;
}

.nie-strength.level-1 .nie-strength-bar i { width: 33%; background: #e01010; }
.nie-strength.level-2 .nie-strength-bar i { width: 66%; background: #f0a500; }
.nie-strength.level-3 .nie-strength-bar i { width: 100%; background: #1fa463; }
.nie-strength.level-1 .nie-strength-text { color: #e01010; }
.nie-strength.level-2 .nie-strength-text { color: #f0a500; }
.nie-strength.level-3 .nie-strength-text { color: #1fa463; }

/* Remember + submit */

.nie-remember {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 22px;
	font-size: 14px;
	cursor: pointer;
	user-select: none;
}

.nie-remember input[type=checkbox] {
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: var(--nie-accent);
	cursor: pointer;
	flex-shrink: 0;
}

.nie-submit {
	position: relative;
	width: 100%;
	height: 52px;
	background: var(--nie-accent);
	color: #fff;
	border: none;
	border-radius: 40px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1.5px;
	font-family: inherit;
	cursor: pointer;
	transition: filter .2s ease, opacity .2s ease;
}

.nie-submit:hover { filter: brightness(.92); }
.nie-submit:disabled { opacity: .7; cursor: not-allowed; }
.nie-submit.is-loading .nie-submit-text { visibility: hidden; }

.nie-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2.5px solid rgba(0, 0, 0, .15);
	border-top-color: var(--nie-accent);
	border-radius: 50%;
	animation: nie-spin .7s linear infinite;
}

.nie-submit .nie-spinner {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -10px 0 0 -10px;
	border-color: rgba(255, 255, 255, .35);
	border-top-color: #fff;
}

.nie-submit.is-loading .nie-spinner { display: block; }

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

.nie-switch {
	margin: 18px 0 0;
	text-align: center;
	font-size: 14px;
}

.nie-switch-link {
	color: var(--nie-accent);
	font-weight: 700;
	text-decoration: none;
	margin-inline-start: 5px;
}

.nie-switch-link:hover { text-decoration: underline; }

/* Messages */

.nie-message {
	display: none;
	margin-bottom: 16px;
	padding: 11px 14px;
	border-radius: 8px;
	font-size: 13.5px;
	line-height: 1.45;
}

.nie-message.is-error {
	display: block;
	background: #fdecec;
	color: #b31212;
	border: 1px solid #f5c6c6;
}

.nie-message.is-success {
	display: block;
	background: #e9f7ef;
	color: #17734a;
	border: 1px solid #c3e9d5;
}

/* ---------------- Toast ---------------- */

.nie-toast {
	position: fixed;
	bottom: 24px;
	inset-inline-start: 50%;
	transform: translateX(-50%) translateY(20px);
	background: #1a1a1a;
	color: #fff;
	padding: 12px 20px;
	border-radius: 999px;
	font-size: 14px;
	z-index: calc(var(--nie-z) + 10);
	opacity: 0;
	pointer-events: none;
	transition: opacity .22s ease, transform .22s ease;
}

.nie-toast.is-open {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* ---------------- Misc containers ---------------- */

.nie-cart-body,
.nie-wishlist-body {
	display: block;
}

.nie-has-dropdown {
	position: relative;
}

.nie-lang-trigger {
	gap: 6px;
}

.nie-lang-name {
	white-space: nowrap;
}

.nie-dropdown-item .nie-flag {
	flex-shrink: 0;
}

/* ---------------- Mobile bottom bar ---------------- */

.nie-mobilebar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 62px;
	display: flex;
	align-items: stretch;
	justify-content: space-around;
	background: #fff;
	box-shadow: 0 -2px 18px rgba(0, 0, 0, .1);
	z-index: 9998;
	padding-bottom: env(safe-area-inset-bottom);
	transition: transform .28s ease;
}

.nie-mobilebar.is-hidden { transform: translateY(110%); }

.nie-mobilebar .nie-wrap { flex: 1; }

.nie-mobilebar .nie-trigger {
	flex-direction: column;
	gap: 3px;
	width: 100%;
	height: 100%;
	justify-content: center;
	font-size: 11px;
}

.nie-mobilebar .nie-text { font-size: 11px; }

.nie-mobilebar:not(.has-labels) .nie-text { display: none; }

/* ---------------- Utility ---------------- */

body.nie-locked {
	overflow: hidden;
}

.nie-hide-mobile { display: inline-flex; }

@media (max-width: 767px) {
	.nie-hide-mobile { display: none !important; }

	.nie-drawer-box { width: 100%; max-width: 100%; }

	.nie-modal { padding: 12px; align-items: flex-end; }
	.nie-modal-box { padding: 26px 20px; }

	.nie-dropdown {
		inset-inline-end: auto;
		inset-inline-start: 50%;
		transform: translateX(-50%) translateY(-6px);
	}

	.nie-dropdown.is-open { transform: translateX(-50%) translateY(0); }

	.nie-search--dropdown .nie-search-box { top: 60px; }
}

@media (prefers-reduced-motion: reduce) {
	.nie-panel,
	.nie-drawer-box,
	.nie-modal-box,
	.nie-search-box,
	.nie-dropdown,
	.nie-trigger,
	.nie-mobilebar,
	.nie-toast {
		transition: none !important;
	}
	.nie-count.is-bump { animation: none !important; }
	.nie-spinner { animation-duration: 1.6s; }
}


/* =========================================================
   RTL overrides.
   The base sheet uses logical properties throughout, so only
   the genuinely physical rules need flipping here.
   ========================================================= */

.nie-drawer[data-side="right"] .nie-drawer-box {
	right: auto;
	left: 0;
	transform: translateX(-100%);
}

.nie-drawer[data-side="left"] .nie-drawer-box {
	left: auto;
	right: 0;
	transform: translateX(100%);
}

.nie-drawer.is-open .nie-drawer-box {
	transform: translateX(0);
}

.nie-search--dropdown .nie-search-box {
	left: auto;
	right: 50%;
	transform: translateX(50%) translateY(-10px);
}

.nie-search--dropdown.is-open .nie-search-box {
	transform: translateX(50%) translateY(0);
}

.nie-toast {
	left: auto;
	right: 50%;
	transform: translateX(50%) translateY(20px);
}

.nie-toast.is-open {
	transform: translateX(50%) translateY(0);
}

.nie-submit .nie-spinner {
	left: auto;
	right: 50%;
	margin: -10px -10px 0 0;
}

.nie-tab:after {
	left: 0;
	right: 0;
}

@media (max-width: 767px) {
	.nie-dropdown {
		transform: translateX(50%) translateY(-6px);
	}
	.nie-dropdown.is-open {
		transform: translateX(50%) translateY(0);
	}
}
