.atop-gifts {
	--atop-icon: 46px;
	margin: 0;
	font-size: 13px;
	line-height: 1.3;
	color: #222;
	background: #ffffff;
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	padding: 10px 8px 6px;
	box-shadow: rgba(0, 0, 0, 0.06) 0 1px 2px;
}

.atop-gifts-message {
	margin: 0 0 8px;
	text-align: center;
}

.atop-gifts-message-left,
.atop-gifts-message-name {
	font-weight: 700;
}

.atop-gifts-track-wrap {
	position: relative;
	height: 100px;
	margin: 0;
}

.atop-gifts-step.is-start {
	margin-left: 0;
}

.atop-gifts-zero {
	display: block;
	width: 46px;
	height: 46px;
	position: relative;
}

.atop-gifts-zero::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 22px;
	width: 12px;
	height: 12px;
	margin: -5px 0 0 -5px;
	border-radius: 50%;
	background: #6dab3c;
}

.atop-gifts-step.is-end {
	margin-left: -46px;
}

.atop-gifts-caption {
	position: absolute;
	top: 50px;
	left: 50%;
	width: 72px;
	margin-left: -36px;
	text-align: center;
	font-size: 12px;
	line-height: 1.3;
}

.atop-gifts-track {
	position: absolute;
	left: calc(var(--atop-icon) / 2);
	right: calc(var(--atop-icon) / 2);
	top: 19px;
	height: 8px;
	background: #e6e6e6;
	border-radius: 99px;
	overflow: hidden;
}

.atop-gifts-fill {
	height: 100%;
	background: #6dab3c;
}

.atop-gifts-step {
	position: absolute;
	top: 0;
	width: 46px;
	margin-left: -23px;
	text-align: center;
}

.atop-gifts-icon {
	display: inline-block;
	width: 46px;
	height: 46px;
	vertical-align: top;
}

.atop-gifts-icon img {
	display: block;
	width: 46px;
	height: 46px;
	object-fit: contain;
}

.atop-gifts-caption-amount {
	display: block;
	margin-bottom: 2px;
	font-weight: 700;
}

.atop-gifts-caption-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.atop-gifts-lines {
	width: 100%;
	margin: 0;
	border: 0;
	border-bottom: 1px solid #e6e6e6;
	border-radius: 0;
	background: transparent;
	box-sizing: border-box;
}

.atop-gifts-lines summary {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	padding: 10px 0;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	list-style: none;
	text-align: left;
}

.atop-gifts-lines-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 0;
	background: none;
	color: #545454;
	flex: 0 0 20px;
}

.atop-gifts-lines-icon svg {
	width: 18px;
	height: 18px;
}

.atop-gifts-lines-label {
	flex: 1;
	min-width: 0;
	text-align: left;
}

.atop-gifts-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 19px;
	height: 19px;
	margin-left: 6px;
	padding: 0 5px;
	border-radius: 99px;
	background: #6dab3c;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.atop-gifts-count > span {
	display: block;
	line-height: 1;
	text-box: trim-both cap alphabetic;
}

.atop-gifts-lines summary::-webkit-details-marker {
	display: none;
}

.atop-gifts-lines summary::after {
	content: "";
	display: inline-block;
	box-sizing: border-box;
	width: 9px;
	height: 9px;
	margin-left: 4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 0.28s ease;
	flex: 0 0 9px;
}

.atop-gifts-lines[open] summary::after {
	transform: rotate(45deg);
}

.atop-gifts-lines::details-content {
	content-visibility: visible;
	height: auto;
}

.atop-gifts-lines-panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.28s ease;
}

.atop-gifts-lines[open] .atop-gifts-lines-panel {
	grid-template-rows: 1fr;
}

.atop-gifts-lines-panel-inner {
	overflow: hidden;
}

.atop-gifts-line {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 8px 0;
	border-top: 1px solid #e6e6e6;
}

.atop-gifts-lines:not([open]) .atop-gifts-line {
	border-top: 0;
}

.atop-gifts-line img {
	width: 48px;
	height: 48px;
	object-fit: contain;
	flex: 0 0 48px;
}

.atop-gifts-line-name {
	flex: 1;
	min-width: 0;
	text-align: left;
}

.atp-sliding-cart-off-canvas .atop-gifts-sidecart {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 136px;
	z-index: 3;
	margin: 0;
}

.atp-sliding-cart-off-canvas .atop-gifts-lines {
	width: auto;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding-right: 8px;
	overflow: hidden;
	flex-shrink: 0;
}

.cart-widget-side .atop-gifts-lines {
	margin: 8px 10px 4px;
}

.atp-sliding-cart-off-canvas .atop-gifts-message {
	margin: 0 0 4px;
}

.atp-sliding-cart-off-canvas .atop-gifts-caption {
	display: none;
}

.atp-sliding-cart-off-canvas .atop-gifts-track-wrap {
	height: 46px;
}

.atp-sliding-cart-off-canvas:has(.atop-gifts-sidecart) .woocommerce-cart-form__contents {
	bottom: 220px !important;
	padding-bottom: 8px;
}

.cart-widget-side .atop-gifts-caption {
	display: none;
}

.cart-widget-side .atop-gifts-track-wrap {
	height: 46px;
}

.cart-widget-side .atop-gifts {
	margin: 0 0 10px;
}

.atop-gift-price {
	margin-left: auto;
	white-space: nowrap;
}

.atp-sliding-cart-off-canvas .atop-gifts-line-name {
	font-size: 14px;
	line-height: 14px;
}

.atp-sliding-cart-off-canvas .atop-gift-price,
.atp-sliding-cart-off-canvas .atop-gift-price ins {
	font-size: 12.8px;
	font-weight: 300;
	line-height: 12.8px;
}

.atop-gift-price del {
	color: #bbb;
	margin-right: 4px;
}

.atop-gift-price ins {
	color: #d60057;
	font-weight: 700;
	text-decoration: none;
}
