/* Moncler Scripts — welcome offer panel and promo code field in the cart.
   Desktop sizes follow the store's vw scale; screens up to 1024px use fixed px like mobile.css. */

/* ===== Promo field inside the cart ===== */
.promo_box {
	display: flex;
	flex-direction: column;
	gap: 0.417vw;
	padding-bottom: 0.625vw;
	border-bottom: 0.052vw solid rgba(255, 255, 255, 0.06);
}
.promo_box:empty {
	display: none;
}
.promo_box.is_busy {
	opacity: 0.75;
}
.promo_form {
	display: flex;
	gap: 0.313vw;
}
.promo_field {
	position: relative;
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
}
.promo_field_ico {
	position: absolute;
	left: 0.521vw;
	display: flex;
	color: rgba(255, 255, 255, 0.35);
	pointer-events: none;
}
.promo_field_ico svg {
	width: 0.677vw;
	height: 0.677vw;
}
.promo_field input {
	width: 100%;
	height: 1.771vw;
	padding: 0 0.521vw 0 1.563vw;
	border: 0.052vw solid #2a2e2d;
	border-radius: 0.156vw;
	background: #151717;
	color: #fff;
	font-family: 'SemiBold';
	font-size: 0.625vw;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	outline: none;
	transition: border-color 0.2s ease, background 0.2s ease;
	user-select: text;
}
.promo_field input::placeholder {
	font-family: 'Light';
	letter-spacing: 0;
	text-transform: none;
	color: rgba(255, 255, 255, 0.35);
}
.promo_field input:focus {
	border-color: rgba(153, 247, 26, 0.45);
	background: #171a17;
}
.promo_field:focus-within .promo_field_ico {
	color: #99f71a;
}
.promo_apply {
	flex: none;
	min-width: 3.646vw;
	height: 1.771vw;
	padding: 0 0.729vw;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0.052vw solid rgba(153, 247, 26, 0.45);
	border-radius: 0.156vw;
	background: rgba(153, 247, 26, 0.08);
	color: #99f71a;
	font-family: 'Bold';
	font-size: 0.573vw;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}
.promo_apply:hover:not(:disabled) {
	background: #99f71a;
	color: #0d0f0d;
}
.promo_apply:disabled {
	cursor: default;
}
.promo_spin {
	width: 0.677vw;
	height: 0.677vw;
	border: 0.104vw solid rgba(153, 247, 26, 0.3);
	border-top-color: #99f71a;
	border-radius: 50%;
	animation: promo_spin 0.8s linear infinite;
}
@keyframes promo_spin {
	to {
		transform: rotate(360deg);
	}
}
.promo_error {
	margin: 0;
	font-family: 'Regular';
	font-size: 0.521vw;
	line-height: 1.4;
	color: #ff4d5e;
}
.promo_offer {
	display: flex;
	align-items: center;
	gap: 0.417vw;
	width: 100%;
	padding: 0.365vw 0.417vw;
	border: 0.052vw dashed rgba(153, 247, 26, 0.35);
	border-radius: 0.156vw;
	background: rgba(153, 247, 26, 0.05);
	color: rgba(255, 255, 255, 0.75);
	text-align: left;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}
.promo_offer:hover {
	background: rgba(153, 247, 26, 0.1);
	border-color: rgba(153, 247, 26, 0.6);
}
.promo_offer_ico {
	display: flex;
	color: #99f71a;
}
.promo_offer_ico svg {
	width: 0.729vw;
	height: 0.729vw;
}
.promo_offer_txt {
	flex: 1;
	min-width: 0;
	font-family: 'Light';
	font-size: 0.521vw;
	line-height: 1.35;
}
.promo_offer_txt b {
	font-family: 'Bold';
	font-weight: normal;
	color: #99f71a;
	letter-spacing: 0.04em;
}
.promo_offer_cta {
	font-family: 'Bold';
	font-size: 0.521vw;
	text-transform: uppercase;
	color: #99f71a;
}
.promo_applied {
	display: flex;
	align-items: center;
	gap: 0.417vw;
	padding: 0.365vw 0.365vw 0.365vw 0.417vw;
	border: 0.052vw solid rgba(153, 247, 26, 0.35);
	border-radius: 0.156vw;
	background: linear-gradient(90deg, rgba(153, 247, 26, 0.14), rgba(153, 247, 26, 0.04));
}
.promo_applied_ico {
	width: 1.25vw;
	height: 1.25vw;
	flex: none;
	display: grid;
	place-items: center;
	border-radius: 0.156vw;
	background: #99f71a;
	color: #0d0f0d;
}
.promo_applied_ico svg {
	width: 0.677vw;
	height: 0.677vw;
}
.promo_applied_txt {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.104vw;
}
.promo_applied_txt span:first-child {
	font-family: 'Bold';
	font-size: 0.625vw;
	letter-spacing: 0.06em;
	color: #99f71a;
}
.promo_applied_txt span:last-child {
	font-family: 'Light';
	font-size: 0.495vw;
	color: rgba(255, 255, 255, 0.6);
}
.promo_remove {
	width: 1.25vw;
	height: 1.25vw;
	flex: none;
	display: grid;
	place-items: center;
	border: none;
	border-radius: 0.156vw;
	background: transparent;
	color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease;
}
.promo_remove:hover:not(:disabled) {
	color: #ff4d5e;
	background: rgba(255, 77, 94, 0.08);
}
.promo_remove svg {
	width: 0.625vw;
	height: 0.625vw;
}
.promo_lines {
	display: flex;
	flex-direction: column;
	gap: 0.208vw;
}
.promo_lines > div {
	display: flex;
	justify-content: space-between;
	gap: 0.521vw;
	font-family: 'Regular';
	font-size: 0.573vw;
	color: rgba(255, 255, 255, 0.6);
}
.promo_strike {
	text-decoration: line-through;
	text-decoration-color: rgba(255, 77, 94, 0.8);
}
.promo_save span:last-child {
	font-family: 'Bold';
	color: #99f71a;
}

/* ===== Welcome panel ===== */
.welcome_panel {
	position: fixed;
	left: 1.25vw;
	bottom: 1.25vw;
	z-index: 900;
	width: 14.063vw;
	display: flex;
	flex-direction: column;
	gap: 0.521vw;
	padding: 0.833vw;
	overflow: hidden;
	border: 0.052vw solid #2f352c;
	border-radius: 0.313vw;
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(153, 247, 26, 0.16), transparent 60%),
		#1a1c1c;
	box-shadow: 0 1.042vw 3.125vw rgba(0, 0, 0, 0.55), 0 0 2.5vw rgba(153, 247, 26, 0.08);
	color: #fff;
	opacity: 0;
	visibility: hidden;
	transform: translateY(1.042vw);
	transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
.welcome_panel::before {
	content: '////////////';
	position: absolute;
	right: -1.5vw;
	top: -3.4vw;
	font-family: 'Regular';
	font-size: 7.448vw;
	letter-spacing: -2.6vw;
	color: rgba(153, 247, 26, 0.05);
	pointer-events: none;
	transition: none;
}
.welcome_panel::after {
	content: '';
	position: absolute;
	left: 0.833vw;
	top: 0;
	width: 1.667vw;
	height: 0.104vw;
	background: #99f71a;
	box-shadow: 0 0 0.729vw #99f71a;
}
.welcome_panel.is_open {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.welcome_panel > * {
	position: relative;
}
.welcome_close {
	position: absolute;
	top: 0.521vw;
	right: 0.521vw;
	z-index: 1;
	width: 1.25vw;
	height: 1.25vw;
	display: grid;
	place-items: center;
	border: 0.052vw solid #2a2e2d;
	border-radius: 0.156vw;
	background: rgba(0, 0, 0, 0.2);
	color: rgba(255, 255, 255, 0.6);
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.welcome_close:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.25);
}
.welcome_close svg {
	width: 0.573vw;
	height: 0.573vw;
}
.welcome_top {
	display: flex;
	align-items: center;
	gap: 0.625vw;
}
.welcome_badge {
	width: 1.719vw;
	height: 1.719vw;
	display: grid;
	place-items: center;
	flex: none;
	border-radius: 0.208vw;
	background: linear-gradient(145deg, #99f71a, #6c9f2c);
	box-shadow: 0 0 1.25vw rgba(153, 247, 26, 0.35);
	color: #0d0f0d;
}
.welcome_badge svg {
	width: 0.938vw;
	height: 0.938vw;
}
.welcome_label {
	display: flex;
	flex-direction: column;
	gap: 0.156vw;
}
.welcome_label span:first-child {
	font-family: 'Regular';
	font-size: 0.573vw;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: #99f71a;
}
.welcome_label span:last-child {
	font-family: 'Light';
	font-size: 0.625vw;
	color: rgba(255, 255, 255, 0.55);
}
.welcome_title {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.417vw;
	font-family: 'Regular';
	text-transform: uppercase;
	line-height: 1;
}
.welcome_title span:first-child {
	font-size: 1.094vw;
	text-shadow: 0 0 1.341vw rgba(255, 255, 255, 0.15);
}
.welcome_title span:last-child {
	font-family: 'Bold';
	font-size: 1.615vw;
	color: #99f71a;
	text-shadow: 0 0 1.5vw rgba(153, 247, 26, 0.45);
}
.welcome_text {
	margin: 0;
	font-family: 'Light';
	font-size: 0.573vw;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.55);
}
.welcome_code {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.521vw;
	padding: 0.313vw 0.313vw 0.313vw 0.625vw;
	border: 0.104vw dashed rgba(153, 247, 26, 0.45);
	border-radius: 0.208vw;
	background: rgba(0, 0, 0, 0.25);
}
.welcome_code_val {
	font-family: 'Bold';
	font-size: 0.833vw;
	letter-spacing: 0.18em;
	color: #fff;
	user-select: all;
}
.welcome_copy {
	display: inline-flex;
	align-items: center;
	gap: 0.313vw;
	height: 1.406vw;
	padding: 0 0.521vw;
	border: 0.052vw solid #2f352c;
	border-radius: 0.156vw;
	background: #1f2221;
	color: rgba(255, 255, 255, 0.8);
	font-family: 'SemiBold';
	font-size: 0.573vw;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.welcome_copy:hover,
.welcome_copy.is_copied {
	color: #99f71a;
	border-color: rgba(153, 247, 26, 0.45);
}
.welcome_copy svg {
	width: 0.677vw;
	height: 0.677vw;
}
.welcome_cta {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.458vw;
	height: 1.875vw;
	border: none;
	border-radius: 0.184vw;
	background: linear-gradient(93deg, #89d620 0%, #57762e 100%);
	box-shadow: 0 0.184vw 2.5vw rgba(153, 247, 26, 0.25);
	color: #fff;
	font-family: 'Bold';
	font-size: 0.625vw;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
.welcome_cta::before {
	content: '////////////';
	position: absolute;
	left: -1vw;
	font-family: 'Regular';
	font-size: 7.448vw;
	letter-spacing: -2.532vw;
	color: rgba(0, 0, 0, 0.15);
	pointer-events: none;
}
.welcome_cta > * {
	position: relative;
}
.welcome_cta svg {
	width: 0.833vw;
	height: 0.833vw;
}
.welcome_cta:hover:not(:disabled) {
	transform: rotate(-1.5deg) scale(1.02);
	box-shadow: 0 0.184vw 3vw rgba(153, 247, 26, 0.35);
}
.welcome_cta.is_saved {
	background: rgba(153, 247, 26, 0.1);
	box-shadow: none;
	color: #99f71a;
	cursor: default;
}
.welcome_cta.is_saved::before {
	color: rgba(153, 247, 26, 0.06);
}
.welcome_cta.is_saved svg {
	display: none;
}
.welcome_note {
	margin: -0.156vw 0 0;
	font-family: 'Light';
	font-size: 0.469vw;
	line-height: 1.45;
	text-align: center;
	color: rgba(255, 255, 255, 0.4);
}

.welcome_tab {
	position: fixed;
	left: 1.25vw;
	bottom: 1.25vw;
	z-index: 899;
	display: inline-flex;
	align-items: center;
	gap: 0.417vw;
	height: 2.188vw;
	padding: 0 0.833vw 0 0.313vw;
	border: 0.052vw solid rgba(153, 247, 26, 0.45);
	border-radius: 1.25vw;
	background: #1a1c1c;
	box-shadow: 0 0.521vw 1.563vw rgba(0, 0, 0, 0.45), 0 0 1.25vw rgba(153, 247, 26, 0.15);
	color: #99f71a;
	font-family: 'Bold';
	font-size: 0.729vw;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.521vw);
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, box-shadow 0.3s ease;
}
.welcome_tab.is_open {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.welcome_tab:hover {
	box-shadow: 0 0.521vw 1.563vw rgba(0, 0, 0, 0.45), 0 0 1.75vw rgba(153, 247, 26, 0.35);
}
.welcome_tab_ico {
	width: 1.563vw;
	height: 1.563vw;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #99f71a;
	color: #0d0f0d;
}
.welcome_tab_ico svg {
	width: 0.833vw;
	height: 0.833vw;
}

.promo_toast {
	position: fixed;
	left: 50%;
	bottom: 1.25vw;
	z-index: 10001;
	max-width: min(92vw, 26vw);
	padding: 0.625vw 0.938vw;
	border: 0.052vw solid rgba(153, 247, 26, 0.4);
	border-left: 0.156vw solid #99f71a;
	border-radius: 0.208vw;
	background: #101111;
	box-shadow: 0 0.833vw 2.083vw rgba(0, 0, 0, 0.55);
	color: #fff;
	font-family: 'Regular';
	font-size: 0.677vw;
	line-height: 1.45;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 0.521vw);
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.promo_toast.is_open {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}
.promo_toast.is_error {
	border-color: rgba(255, 77, 94, 0.4);
	border-left-color: #ff4d5e;
}

@media (prefers-reduced-motion: reduce) {
	.welcome_panel,
	.welcome_tab,
	.promo_toast {
		transition: none;
	}
}

/* ===== Tablets and phones: fixed px, panel becomes a bottom sheet ===== */
@media (max-width: 1024px) {
	.promo_box {
		gap: 8px;
		padding-bottom: 12px;
		border-bottom-width: 1px;
	}
	.promo_form {
		gap: 8px;
	}
	.promo_field_ico {
		left: 12px;
	}
	.promo_field_ico svg {
		width: 16px;
		height: 16px;
	}
	.promo_field input {
		height: 44px;
		padding: 0 12px 0 38px;
		border-width: 1px;
		border-radius: 6px;
		font-size: 16px;
	}
	.promo_apply {
		min-width: 78px;
		height: 44px;
		padding: 0 14px;
		border-width: 1px;
		border-radius: 6px;
		font-size: 13px;
	}
	.promo_spin {
		width: 16px;
		height: 16px;
		border-width: 2px;
	}
	.promo_error {
		font-size: 12px;
	}
	.promo_offer {
		gap: 10px;
		min-height: 44px;
		padding: 8px 10px;
		border-width: 1px;
		border-radius: 6px;
	}
	.promo_offer_ico svg {
		width: 18px;
		height: 18px;
	}
	.promo_offer_txt,
	.promo_offer_cta {
		font-size: 12px;
	}
	.promo_applied {
		gap: 10px;
		padding: 8px;
		border-width: 1px;
		border-radius: 6px;
	}
	.promo_applied_ico,
	.promo_remove {
		width: 32px;
		height: 32px;
		border-radius: 5px;
	}
	.promo_applied_ico svg,
	.promo_remove svg {
		width: 16px;
		height: 16px;
	}
	.promo_remove {
		width: 44px;
		height: 44px;
	}
	.promo_applied_txt {
		gap: 2px;
	}
	.promo_applied_txt span:first-child {
		font-size: 14px;
	}
	.promo_applied_txt span:last-child {
		font-size: 11px;
	}
	.promo_lines {
		gap: 4px;
	}
	.promo_lines > div {
		font-size: 13px;
	}

	.welcome_panel {
		left: 16px;
		bottom: 16px;
		width: 290px;
		max-width: calc(100vw - 32px);
		gap: 10px;
		padding: 16px;
		border-width: 1px;
		border-radius: 10px;
		box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 36px rgba(153, 247, 26, 0.08);
		transform: translateY(18px);
	}
	.welcome_panel::before {
		right: -30px;
		top: -60px;
		font-size: 140px;
		letter-spacing: -48px;
	}
	.welcome_panel::after {
		left: 16px;
		width: 32px;
		height: 2px;
	}
	.welcome_close {
		top: 10px;
		right: 10px;
		width: 32px;
		height: 32px;
		border-width: 1px;
		border-radius: 6px;
	}
	.welcome_close svg {
		width: 16px;
		height: 16px;
	}
	.welcome_top {
		gap: 12px;
		padding-right: 40px;
	}
	.welcome_badge {
		width: 34px;
		height: 34px;
		border-radius: 8px;
		box-shadow: 0 0 22px rgba(153, 247, 26, 0.3);
	}
	.welcome_badge svg {
		width: 18px;
		height: 18px;
	}
	.welcome_label {
		gap: 3px;
	}
	.welcome_label span:first-child {
		font-size: 11px;
	}
	.welcome_label span:last-child {
		font-size: 12px;
	}
	.welcome_title {
		gap: 8px;
	}
	.welcome_title span:first-child {
		font-size: 20px;
	}
	.welcome_title span:last-child {
		font-size: 30px;
	}
	.welcome_text {
		font-size: 12px;
		line-height: 1.45;
	}
	.welcome_code {
		gap: 10px;
		padding: 6px 6px 6px 12px;
		border-width: 2px;
		border-radius: 6px;
	}
	.welcome_code_val {
		font-size: 16px;
	}
	.welcome_copy {
		gap: 6px;
		height: 32px;
		padding: 0 10px;
		border-width: 1px;
		border-radius: 5px;
		font-size: 11px;
	}
	.welcome_copy svg {
		width: 14px;
		height: 14px;
	}
	.welcome_cta {
		gap: 8px;
		height: 42px;
		border-radius: 6px;
		box-shadow: 0 3px 22px rgba(153, 247, 26, 0.2);
		font-size: 13px;
	}
	.welcome_cta::before {
		left: -90px;
		top: -44px;
		font-size: 140px;
		letter-spacing: -48px;
	}
	.welcome_cta svg {
		width: 16px;
		height: 16px;
	}
	.welcome_cta:hover:not(:disabled) {
		transform: none;
	}
	.welcome_note {
		margin-top: -4px;
		font-size: 11px;
	}
	.welcome_tab {
		left: 16px;
		bottom: 16px;
		gap: 8px;
		height: 44px;
		padding: 0 16px 0 6px;
		border-width: 1px;
		border-radius: 22px;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(153, 247, 26, 0.15);
		font-size: 14px;
		transform: translateY(10px);
	}
	.welcome_tab_ico {
		width: 32px;
		height: 32px;
	}
	.welcome_tab_ico svg {
		width: 17px;
		height: 17px;
	}
	.promo_toast {
		bottom: 16px;
		max-width: calc(100vw - 32px);
		width: max-content;
		padding: 12px 16px;
		border-width: 1px;
		border-left-width: 3px;
		border-radius: 6px;
		font-size: 13px;
		transform: translate(-50%, 10px);
	}
}
@media (max-width: 600px) {
	.welcome_panel {
		left: 10px;
		bottom: max(10px, env(safe-area-inset-bottom));
		width: min(290px, calc(100vw - 20px));
		max-width: none;
		padding: 16px 16px max(14px, env(safe-area-inset-bottom));
	}
	.welcome_tab {
		left: 12px;
		bottom: max(12px, env(safe-area-inset-bottom));
	}
}

/* ===== No outlines: promo field in the cart and the welcome panel ===== */
.promo_field input,
.promo_apply,
.promo_offer,
.promo_applied,
.welcome_panel,
.welcome_code,
.welcome_close,
.welcome_copy,
.welcome_tab,
.promo_toast {
	border: none;
}
.promo_field input {
	background: #232626;
}
.promo_field input:focus {
	background: #262b25;
}
.promo_apply {
	background: rgba(153, 247, 26, 0.12);
}
.promo_offer {
	background: rgba(153, 247, 26, 0.07);
}
.promo_offer:hover {
	background: rgba(153, 247, 26, 0.13);
}
.welcome_code {
	background: rgba(0, 0, 0, 0.32);
}
.welcome_close {
	background: rgba(255, 255, 255, 0.05);
}
.welcome_close:hover {
	background: rgba(255, 255, 255, 0.1);
}
.welcome_copy {
	background: rgba(255, 255, 255, 0.06);
}
.welcome_copy:hover,
.welcome_copy.is_copied {
	background: rgba(153, 247, 26, 0.12);
}

/* «10% off» the same size as «Get» */
.welcome_title span:last-child {
	font-size: 1.094vw;
}
@media (max-width: 1024px) {
	.welcome_title span:last-child {
		font-size: 20px;
	}
}

/* Space above «Get 10% off» */
.welcome_title {
	margin-top: 0.521vw;
}
@media (max-width: 1024px) {
	.welcome_title {
		margin-top: 8px;
	}
}

/* «Before discount / Discount»: spacing and a divider between the rows */
.promo_lines {
	gap: 0;
	margin-top: 0.208vw;
	padding: 0.104vw 0.417vw;
	border-radius: 0.156vw;
	background: rgba(255, 255, 255, 0.025);
}
.promo_lines > div {
	align-items: center;
	padding: 0.417vw 0;
}
.promo_lines > div + div {
	border-top: 0.052vw solid rgba(255, 255, 255, 0.07);
}
@media (max-width: 1024px) {
	.promo_lines {
		margin-top: 4px;
		padding: 2px 12px;
		border-radius: 6px;
	}
	.promo_lines > div {
		padding: 10px 0;
	}
	.promo_lines > div + div {
		border-top-width: 1px;
	}
}
