/* Floating Gift With Purchase widget */

.gwp-root {
	position: fixed;
	left: 34px;
	bottom: 28px;
	z-index: 99990;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gwp-root,
.gwp-root * {
	box-sizing: border-box;
}

.gwp-fab {
	appearance: none;
	position: relative;
	width: 78px;
	height: 78px;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	background: var(--gwp-button, #111);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
	transition: transform .15s ease, box-shadow .15s ease;
}

.gwp-fab:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
}

.gwp-fab svg {
	width: 34px;
	height: 34px;
}

.gwp-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 28px;
	height: 28px;
	padding: 0 5px;
	border-radius: 14px;
	background: var(--gwp-badge, #e02b2b);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 28px;
	text-align: center;
	box-shadow: 0 0 0 2px #fff;
}

.gwp-overlay {
	display: none;
}

.gwp-modal {
	position: fixed;
	left: 34px;
	bottom: 132px;
	width: 518px;
	max-width: calc(100vw - 68px);
	max-height: calc(100vh - 164px);
	overflow: auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 18px rgba(30, 30, 36, .18);
	z-index: 99992;
	animation: gwp-rise .22s ease;
}

.gwp-modal__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 18px 18px;
	background: #fff;
	border-bottom: 1px solid #eeeef0;
}

.gwp-modal__copy {
	min-width: 0;
}

.gwp-modal__title {
	margin: 0;
	color: #2f2f32;
	font-size: 29px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0;
}

.gwp-modal__subtitle {
	margin: 14px 0 0;
	color: #606166;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 0;
}

.gwp-close {
	appearance: none;
	flex: 0 0 auto;
	width: 25px;
	height: 25px;
	border: 0;
	background: transparent;
	color: #5c566d;
	cursor: pointer;
	font-size: 38px;
	font-weight: 300;
	line-height: 22px;
	padding: 0;
	text-align: center;
}

.gwp-close:hover {
	color: #2f2f32;
}

.gwp-modal__body {
	padding: 16px 16px 16px;
}

.gwp-tiers {
	display: grid;
	gap: 12px;
}

.gwp-tier {
	display: grid;
	grid-template-columns: 164px minmax(0, 1fr);
	min-height: 160px;
	filter: drop-shadow(0 3px 10px rgba(42, 42, 48, .12));
}

.gwp-tier__img,
.gwp-tier__info {
	background: #fff;
}

.gwp-tier__img {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 160px;
	border-radius: 9px 0 0 9px;
	border-right: 2px dashed #d5d5d8;
	overflow: hidden;
}

.gwp-tier__img img {
	display: block;
	width: 76%;
	height: 76%;
	object-fit: contain;
}

.gwp-tier__check {
	position: absolute;
	top: 13px;
	right: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #5964df;
	color: #fff;
}

.gwp-tier__check svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.gwp-tier__info {
	display: flex;
	align-items: flex-start;
	min-width: 0;
	min-height: 160px;
	border-radius: 0 9px 9px 0;
	padding: 16px 12px;
}

.gwp-tier__offer {
	color: #2f2f32;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

.gwp-empty {
	color: #606166;
	font-size: 18px;
	text-align: center;
	padding: 22px 0;
	margin: 0;
}

.gwp-free-gift-label {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 10px;
	background: #2ea44f;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	vertical-align: middle;
}

@keyframes gwp-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes gwp-rise {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: none; }
}

@keyframes gwp-sheet {
	from { transform: translateY(100%); }
	to   { transform: none; }
}

@media (max-width: 760px) {
	.gwp-modal {
		left: 16px;
		bottom: 108px;
		width: 518px;
		max-width: calc(100vw - 32px);
		max-height: calc(100vh - 132px);
		border-radius: 12px;
	}

	.gwp-modal__head {
		padding: 20px 18px 18px;
	}

	.gwp-modal__title {
		font-size: 29px;
	}

	.gwp-modal__subtitle {
		font-size: 17px;
	}

	.gwp-tier {
		grid-template-columns: 164px minmax(0, 1fr);
	}
}

@media (max-width: 560px) {
	.gwp-root {
		left: 16px;
		bottom: 16px;
	}

	.gwp-fab {
		width: 64px;
		height: 64px;
	}

	.gwp-modal__head {
		padding: 18px 16px 16px;
	}

	.gwp-modal__body {
		padding: 14px 14px 14px;
	}

	.gwp-close {
		width: 34px;
		height: 34px;
		font-size: 46px;
		line-height: 30px;
	}

	.gwp-tier {
		grid-template-columns: minmax(126px, 38%) minmax(0, 1fr);
		min-height: 0;
	}

	.gwp-tier__img {
		min-height: 132px;
		border-right: 2px dashed #d5d5d8;
		border-bottom: 0;
		border-radius: 9px 0 0 9px;
	}

	.gwp-tier__info {
		min-height: 132px;
		border-radius: 0 9px 9px 0;
		padding: 14px 10px;
	}

	.gwp-tier__offer {
		font-size: 18px;
	}
}

@media (max-width: 380px) {
	.gwp-tier {
		grid-template-columns: 1fr;
	}

	.gwp-tier__img {
		min-height: 150px;
		border-right: 0;
		border-bottom: 2px dashed #d5d5d8;
		border-radius: 9px 9px 0 0;
	}

	.gwp-tier__info {
		min-height: 96px;
		border-radius: 0 0 9px 9px;
	}

	.gwp-tier__offer {
		font-size: 18px;
	}
}
