/**
 * Блок «Подарок в корзине» — стили модуля gift_goal (тема cyberstore, db812.ru)
 * Файл: catalog/view/javascript/gift_goal/gift_goal.css
 * Акцент магазина: #304ab3, «положительный» цвет: #00BC52, текст: #444, тень: 3px 3px 10px rgba(0,0,0,.07)
 */

#gg-gift-goal.gg {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 18px 0 26px;
	padding: 18px 22px 20px;
	background: #fff;
	border: 1px solid #eef0f6;
	border-radius: 12px;
	box-shadow: 3px 3px 10px rgba(0, 0, 0, .07);
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	transition: border-color .3s, background .3s;
}

#gg-gift-goal.gg::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: #304ab3;
	transition: background .3s;
}

#gg-gift-goal.gg.is-done {
	border-color: #d9f0e1;
	background: linear-gradient(180deg, #f7fdf9, #fff 70%);
}

#gg-gift-goal.gg.is-done::before { background: #00BC52; }

#gg-gift-goal .gg-ico {
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #eef1fb;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .3s;
}

#gg-gift-goal.is-done .gg-ico { background: #e4f8ec; }

#gg-gift-goal .gg-body { flex: 1; min-width: 0; }

#gg-gift-goal .gg-top {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin: 0 0 11px;
}

#gg-gift-goal .gg-title {
	margin: 0;
	font-size: 15px;
	line-height: 21px;
	font-weight: 600;
	color: #111;
	transition: color .3s;
}

#gg-gift-goal .gg-title em {
	font-style: normal;
	color: #304ab3;
}

#gg-gift-goal.is-done .gg-title,
#gg-gift-goal.is-done .gg-title em { color: #0f7a3b; }

#gg-gift-goal .gg-badge {
	margin-left: auto;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	color: #304ab3;
	background: #f1f4fd;
	border-radius: 8px;
	white-space: nowrap;
	transition: all .3s;
}

#gg-gift-goal.is-done .gg-badge { color: #0f7a3b; background: #e7f8ee; }

#gg-gift-goal .gg-bar {
	position: relative;
	height: 10px;
	border-radius: 6px;
	background: #eef0f6;
	overflow: hidden;
}

#gg-gift-goal .gg-fill {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0;
	border-radius: 6px;
	background: linear-gradient(90deg, #3c56c4, #304ab3);
	transition: width .55s cubic-bezier(.22, .61, .36, 1), background .35s;
}

#gg-gift-goal.is-done .gg-fill { background: linear-gradient(90deg, #00BC52, #00a447); }

#gg-gift-goal .gg-fill::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: translateX(-100%);
	animation: gg-shine 2.6s ease-in-out infinite;
}

@keyframes gg-shine {
	0%, 65% { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}

#gg-gift-goal .gg-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 10px;
	flex-wrap: wrap;
}

#gg-gift-goal .gg-sum,
#gg-gift-goal .gg-saving {
	margin: 0;
	font-size: 12px;
	line-height: 16px;
	color: #828282;
}

/* символ валюты приходит из темы как <span class="cs-currency"> ₽</span>:
   внутри строк блока держим его размер равным размеру строки */
#gg-gift-goal .cs-currency {
	font-size: inherit;
	line-height: 1;
	font-weight: inherit;
}

#gg-gift-goal .gg-saving { color: #0f7a3b; }

#gg-gift-goal .gg-hint {
	margin: 10px 0 0;
	font-size: 11px;
	line-height: 15px;
	color: #a8a8a8;
}

/* телефон */
@media (max-width: 767px) {
	#gg-gift-goal.gg {
		padding: 14px 16px 16px;
		gap: 12px;
		border-radius: 10px;
	}
	#gg-gift-goal .gg-ico { width: 38px; height: 38px; }
	#gg-gift-goal .gg-top { gap: 8px; margin-bottom: 10px; }
	#gg-gift-goal .gg-title { font-size: 13px; line-height: 18px; }
	#gg-gift-goal .gg-badge { margin-left: 0; font-size: 11px; padding: 5px 10px; }
	#gg-gift-goal .gg-sum,
	#gg-gift-goal .gg-saving { font-size: 11px; }
}
