/* AR-1612 */
.ar-garantie-deschide {
	position: relative;
	-webkit-appearance: none;
	appearance: none;
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	line-height: inherit;
	color: #544487;
	font-weight: 600;
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.ar-garantie-deschide:hover {
	color: #3F2A55;
	background: none;
}
.ar-garantie-deschide:focus-visible {
	outline: 2px solid #544487;
	outline-offset: 2px;
	border-radius: 2px;
}

.ar-garantie-pdp.pdp_discount_badge::before {
	display: none;
}
.ar-garantie-pdp .ar-garantie-iconita {
	position: absolute;
	left: 0;
	top: -2px;
}
.pdp_discount_badge.pdp_delivery_cost:has(+ .ar-garantie-pdp) {
	margin-bottom: 12px;
}

.ar-garantie-checkout {
	margin: 10px 0 0;
}
.ar-garantie-checkout .ar-garantie-deschide {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	line-height: 1.3;
}
.ar-garantie-checkout .ar-garantie-iconita {
	flex: none;
}

html.ar-garantie-deschis,
html.ar-garantie-deschis body {
	overflow: hidden;
}
.ar-garantie-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.ar-garantie-modal[hidden] {
	display: none;
}
.ar-garantie-modal__fundal {
	position: absolute;
	inset: 0;
	background-color: rgba(27, 20, 40, 0.55);
	opacity: 0;
	transition: opacity 0.2s ease;
}
.ar-garantie-modal__fereastra {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 640px;
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	background-color: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	outline: none;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.ar-garantie-modal.is-open .ar-garantie-modal__fundal {
	opacity: 1;
}
.ar-garantie-modal.is-open .ar-garantie-modal__fereastra {
	opacity: 1;
	transform: none;
}
.ar-garantie-modal__antet {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 16px 16px 24px;
	border-bottom: 1px solid #E2E3ED;
}
.ar-garantie-modal__titlu {
	margin: 0;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 600;
	color: #3F2A55;
	text-transform: none;
}
.ar-garantie-modal__x {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: #F1EFF7;
	color: #3F2A55;
	cursor: pointer;
}
.ar-garantie-modal__x:hover {
	background-color: #E6E2F1;
}
.ar-garantie-modal__corp {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 24px;
}
.ar-garantie-modal .ar-garantie-modal__imagine {
	display: block;
	width: 100%;
	max-width: 480px;
	height: auto;
	margin: 0 auto;
	border: 1px solid #E2E3ED;
}
.ar-garantie-modal__subsol {
	flex: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	padding: 14px 24px;
	border-top: 1px solid #E2E3ED;
}
.ar-garantie-modal__descarca {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #544487;
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.ar-garantie-modal__descarca svg {
	flex: none;
}
.ar-garantie-modal__sursa {
	color: #544487;
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.ar-garantie-modal__descarca:hover,
.ar-garantie-modal__sursa:hover {
	color: #3F2A55;
}
.ar-garantie-modal__x:focus-visible,
.ar-garantie-modal__descarca:focus-visible,
.ar-garantie-modal__sursa:focus-visible {
	outline: 2px solid #544487;
	outline-offset: 2px;
}

@media(max-width:1023px){
	.ar-garantie-pdp .ar-garantie-deschide::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: 50%;
		height: 44px;
		transform: translateY(-50%);
	}
	.ar-garantie-checkout .ar-garantie-deschide {
		min-height: 44px;
	}
	#payment .form-row.place-order > .ar-garantie-checkout {
		order: -1;
		margin: 2px 0 0;
	}
	body.ar_pas_plata_active #order_review {
		padding-bottom: 270px;
	}
	#order_review .form-row.place-order {
		top: calc(100% - 270px);
	}
}
@media(max-width:479px){
	body.ar_pas_plata_active #order_review {
		padding-bottom: 276px;
	}
	#order_review .form-row.place-order {
		top: calc(100% - 276px);
	}
}
@media(max-width:767px){
	.ar-garantie-modal {
		align-items: flex-end;
		padding: 0;
	}
	.ar-garantie-modal__fereastra {
		max-width: none;
		height: calc(100% - 40px);
		max-height: none;
		border-radius: 16px 16px 0 0;
		opacity: 1;
		transform: translateY(100%);
		transition: transform 0.28s ease;
	}
	.ar-garantie-modal__antet {
		padding: 12px 12px 12px 16px;
	}
	.ar-garantie-modal__titlu {
		font-size: 17px;
	}
	.ar-garantie-modal__corp {
		padding: 16px;
	}
	.ar-garantie-modal .ar-garantie-modal__imagine {
		max-width: none;
	}
	.ar-garantie-modal__subsol {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
		box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
	}
	.ar-garantie-modal__descarca {
		justify-content: center;
		min-height: 52px;
		border: 1.5px solid #544487;
		border-radius: 6px;
		font-size: 16px;
		text-decoration: none;
	}
	.ar-garantie-modal__sursa {
		align-self: center;
	}
}
@media(prefers-reduced-motion: reduce){
	.ar-garantie-modal__fundal,
	.ar-garantie-modal__fereastra {
		transition: none;
	}
}
/* END AR-1612 */
