:root {
	--yi-red: #d80003;
	--yi-red-light: #ff0000;
	--yi-gray: #808080;
	--yi-gray-light: #b3b3b3;
	--yi-gradient: linear-gradient(135deg, #ff0000 0%, #d80003 100%);
	--yi-dark: #1f1f1f;
}

body,
.font-primary,
input,
select,
textarea,
button,
.btn,
h1, h2, h3, h4, h5, h6 {
	font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

body {
	color: #444;
}

.text-color-primary,
.text-primary {
	color: var(--yi-red) !important;
}

.bg-primary,
.bg-color-primary {
	background-color: var(--yi-red) !important;
}

a {
	color: var(--yi-red);
}

a:hover,
a:focus {
	color: var(--yi-red-light);
}

.text-color-hover-primary:hover {
	color: var(--yi-red) !important;
}

.btn-primary {
	--bs-btn-bg: var(--yi-red);
	--bs-btn-border-color: var(--yi-red);
	--bs-btn-hover-bg: #b30002;
	--bs-btn-hover-border-color: #b30002;
	--bs-btn-active-bg: #b30002;
	--bs-btn-active-border-color: #b30002;
	background-image: var(--yi-gradient);
	border-color: var(--yi-red);
}

.btn-outline-primary {
	--bs-btn-color: var(--yi-red);
	--bs-btn-border-color: var(--yi-red);
	--bs-btn-hover-bg: var(--yi-red);
	--bs-btn-hover-border-color: var(--yi-red);
	--bs-btn-active-bg: var(--yi-red);
}

.header-nav-main nav > ul > li > a.active,
.header-nav-main nav > ul > li.active > a,
.header-nav-main nav > ul > li:hover > a {
	color: var(--yi-red) !important;
}

@keyframes yiActiveShift {
	0%   { background-position: 0% 50%; }
	50%  { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

.yi-nav-active,
a.yi-nav-active,
li.yi-nav-active > a,
.header-nav-links a.nav-link.yi-nav-active,
.header-nav a.nav-link.yi-nav-active,
.header-nav-main nav > ul > li > a.yi-nav-active,
.header-nav-main nav > ul > li.yi-nav-active > a {
	position: relative;
	display: inline-flex !important;
	align-items: center !important;
	color: #fff !important;
	background: linear-gradient(270deg, #ff0000, #d80003, #ff4d2e, #b80003) !important;
	background-size: 300% 300% !important;
	animation: yiActiveShift 5s ease infinite;
	border-radius: 8px !important;
	padding: 7px 16px !important;
	line-height: 1 !important;
	box-shadow: 0 6px 18px rgba(216, 0, 3, 0.40);
}

.header-nav-main nav > ul > li:hover > a.yi-nav-active,
.header-nav-main nav > ul > li > a.yi-nav-active:hover,
.header-nav-main nav > ul > li > a.yi-nav-active:focus {
	color: #fff !important;
}

#mainNav > li > a.nav-link.yi-nav-active,
.header-nav-main #mainNav > li > a.yi-nav-active,
.header-nav-main #mainNav > li:hover > a.yi-nav-active {
	background-image: linear-gradient(270deg, #ff0000, #d80003, #ff4d2e, #b80003) !important;
	background-color: transparent !important;
	background-size: 300% 300% !important;
	color: #fff !important;
	display: inline-flex !important;
	align-items: center !important;
	border-radius: 8px !important;
	padding: 7px 16px !important;
	line-height: 1 !important;
	animation: yiActiveShift 5s ease infinite;
}

html body #header #mainNav > li > a.nav-link.yi-nav-active,
html body #mainNav > li > a.nav-link.yi-nav-active,
html body #header #mainNav > li > a.nav-link.yi-nav-active:hover,
html body #mainNav > li > a.nav-link.yi-nav-active:hover,
html body #header #mainNav > li > a.nav-link.yi-nav-active:focus,
html body #mainNav > li > a.nav-link.yi-nav-active:focus,
html body #header .header-nav-main nav > ul#mainNav > li:hover > a.yi-nav-active {
	background-image: linear-gradient(270deg, #ff0000, #d80003, #ff4d2e, #b80003) !important;
	background-color: transparent !important;
	background-size: 300% 300% !important;
	color: #fff !important;
	display: inline-flex !important;
	align-items: center !important;
	border-radius: 8px !important;
	padding: 7px 16px !important;
	line-height: 1 !important;
	height: auto !important;
	min-height: 0 !important;
	box-shadow: 0 6px 18px rgba(216, 0, 3, 0.40) !important;
	animation: yiActiveShift 5s ease infinite;
}

html body #header #mainNav > li:has(> a.nav-link.yi-nav-active),
html body #mainNav > li:has(> a.nav-link.yi-nav-active) {
	display: flex !important;
	align-items: center !important;
}

@media (max-width: 991px) {
	html body #header .header-nav-main nav > ul#mainNav > li > a.nav-link.yi-nav-active,
	html body #mainNav > li > a.nav-link.yi-nav-active,
	html body #mainNav > li > a.nav-link.yi-nav-active:hover,
	html body #mainNav > li > a.nav-link.yi-nav-active:focus {
		background-image: linear-gradient(270deg, #ff0000, #d80003, #ff4d2e, #b80003) !important;
		background-color: transparent !important;
		color: #fff !important;
		border-radius: 8px !important;
		padding: 7px 16px !important;
		line-height: 1 !important;
		display: inline-flex !important;
		align-items: center !important;
	}
}

#header .header-nav-main nav > ul > li.dropdown .dropdown-menu,
#header .header-nav-main nav > ul > li.dropdown.open > a:before,
#header .header-nav-main nav > ul > li.dropdown:hover > a:before {
	border-top-color: var(--yi-red) !important;
	border-bottom-color: var(--yi-red) !important;
}

#header .header-nav-main nav > ul > li.dropdown .dropdown-menu .dropdown-item {
	color: var(--yi-dark);
}

#header .header-nav-main nav > ul > li.dropdown .dropdown-menu .dropdown-item:hover,
#header .header-nav-main nav > ul > li.dropdown .dropdown-menu .dropdown-item:focus,
#header .header-nav-main nav > ul > li.dropdown .dropdown-menu .dropdown-item.active,
#header .header-nav-main nav > ul > li.dropdown .dropdown-menu .dropdown-item:active {
	color: var(--yi-red) !important;
	background-color: #fff4f4 !important;
}

#header .header-nav-main nav > ul > li.dropdown .dropdown-menu .dropdown-item i {
	color: var(--yi-red) !important;
}

.bg-yi-gradient {
	background-image: var(--yi-gradient) !important;
	color: #fff !important;
}

.text-yi {
	color: var(--yi-red) !important;
}

.border-yi {
	border-color: var(--yi-red) !important;
}

.btn-yi {
	background-image: var(--yi-gradient);
	border: none;
	color: #fff;
	font-weight: 600;
	letter-spacing: .02em;
	box-shadow: 0 4px 14px rgba(216, 0, 3, .28);
	transition: filter .2s ease, transform .12s ease, box-shadow .2s ease;
}

.btn-yi:hover,
.btn-yi:focus {
	color: #fff;
	filter: brightness(1.06);
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(216, 0, 3, .36);
}

.btn-yi:active {
	transform: translateY(0);
}

.btn-yi-outline {
	background: transparent;
	border: 2px solid var(--yi-red);
	color: var(--yi-red);
	font-weight: 600;
	transition: all .18s ease;
}

.btn-yi-outline:hover,
.btn-yi-outline:focus {
	background-image: var(--yi-gradient);
	border-color: transparent;
	color: #fff;
}

.page-header.yi-page-header {
	background-image: var(--yi-gradient);
	padding: 2.2rem 0;
}

.page-header.yi-page-header h1,
.page-header.yi-page-header .breadcrumb,
.page-header.yi-page-header .breadcrumb a,
.page-header.yi-page-header .breadcrumb li.active {
	color: #fff !important;
	border-color: rgba(255, 255, 255, .5) !important;
}

.page-header.yi-page-header h1 {
	font-weight: 800;
}

.page-header.yi-page-header .breadcrumb a:hover {
	color: rgba(255, 255, 255, .8) !important;
}

.yi-logo {
	height: 40px;
	width: auto;
}

.yi-card {
	border: 1px solid #ececec;
	border-radius: 12px;
	box-shadow: 0 6px 26px rgba(0, 0, 0, .05);
}

.text-gray {
	color: var(--yi-gray) !important;
}

.yi-account-toggle {
	font-weight: 600;
	color: var(--yi-dark);
	text-decoration: none;
	white-space: nowrap;
}

.yi-account-toggle:hover {
	color: var(--yi-red);
}

.yi-method-group .btn-check:checked + .btn {
	background-image: var(--yi-gradient);
	border-color: transparent;
	color: #fff;
}

.yi-result-card {
	border: 1px solid #eee;
	border-radius: 14px;
	overflow: hidden;
}

.yi-result-card .yi-result-head {
	background-image: var(--yi-gradient);
	color: #fff;
	padding: 1rem 1.25rem;
}

.yi-result-row {
	display: flex;
	justify-content: space-between;
	padding: .55rem 0;
	border-bottom: 1px dashed #e6e6e6;
}

.yi-result-row:last-child {
	border-bottom: none;
}

.yi-result-row .yi-label {
	color: var(--yi-gray);
}

.yi-result-row .yi-value {
	font-weight: 600;
	color: var(--yi-dark);
}

.yi-billable-row {
	background: #fff4f4;
	border: 1px solid #ffd0d1;
	border-radius: 10px;
	padding: .85rem 1rem;
	margin: .5rem 0;
}

.yi-billable-row .yi-value {
	color: var(--yi-red);
	font-size: 1.15rem;
}

.yi-total-box {
	background-image: var(--yi-gradient);
	color: #fff;
	border-radius: 12px;
	padding: 1.25rem 1.5rem;
	text-align: center;
}

.yi-total-box .yi-total-amount {
	font-size: 2.1rem;
	font-weight: 800;
	line-height: 1.1;
}

.yi-stepper {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	position: relative;
	margin: 2rem 0 1rem;
	padding: 0;
	list-style: none;
}

.yi-stepper .yi-step {
	flex: 1 1 0;
	text-align: center;
	position: relative;
	min-width: 0;
}

.yi-stepper .yi-step::before {
	content: "";
	position: absolute;
	top: 22px;
	left: -50%;
	width: 100%;
	height: 4px;
	background: #e3e3e3;
	z-index: 0;
}

.yi-stepper .yi-step:first-child::before {
	display: none;
}

.yi-stepper .yi-step.completed::before,
.yi-stepper .yi-step.current::before {
	background-image: var(--yi-gradient);
}

.yi-stepper .yi-step-dot {
	position: relative;
	z-index: 1;
	width: 46px;
	height: 46px;
	margin: 0 auto;
	border-radius: 50%;
	background: #fff;
	border: 3px solid #e3e3e3;
	color: var(--yi-gray);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.05rem;
	font-weight: 700;
	transition: all .2s ease;
}

.yi-stepper .yi-step.completed .yi-step-dot {
	background: var(--yi-red);
	border-color: var(--yi-red);
	color: #fff;
}

.yi-stepper .yi-step.current .yi-step-dot {
	background-image: var(--yi-gradient);
	border-color: transparent;
	color: #fff;
	transform: scale(1.18);
	box-shadow: 0 0 0 6px rgba(216, 0, 3, .15);
}

.yi-stepper .yi-step-label {
	display: block;
	margin-top: .6rem;
	font-size: .78rem;
	font-weight: 600;
	color: var(--yi-gray);
	line-height: 1.25;
}

.yi-stepper .yi-step.completed .yi-step-label,
.yi-stepper .yi-step.current .yi-step-label {
	color: var(--yi-dark);
}

.yi-stepper .yi-step.current .yi-step-label {
	color: var(--yi-red);
}

.yi-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.yi-timeline::before {
	content: "";
	position: absolute;
	left: 9px;
	top: 6px;
	bottom: 6px;
	width: 2px;
	background: #e3e3e3;
}

.yi-timeline-item {
	position: relative;
	padding: 0 0 1.4rem 2.4rem;
}

.yi-timeline-item::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 4px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid #cfcfcf;
}

.yi-timeline-item.done::before {
	background: var(--yi-red);
	border-color: var(--yi-red);
}

.yi-timeline-item.active::before {
	background-image: var(--yi-gradient);
	border-color: transparent;
	box-shadow: 0 0 0 4px rgba(216, 0, 3, .15);
}

.yi-timeline-item .yi-tl-date {
	font-size: .8rem;
	color: var(--yi-gray);
	font-weight: 600;
}

.yi-hero {
	background-image: var(--yi-gradient);
	color: #fff;
	padding: 4.5rem 0 5rem;
}

.yi-preview-card {
	border: 1px solid #ededed;
	border-radius: 14px;
	transition: transform .18s ease, box-shadow .18s ease;
	height: 100%;
	background: #fff;
}

.yi-preview-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 34px rgba(0, 0, 0, .1);
}

.yi-preview-icon {
	width: 64px;
	height: 64px;
	border-radius: 14px;
	background-image: var(--yi-gradient);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
}

.badge.yi-badge {
	font-weight: 600;
	padding: .42em .7em;
	font-size: .72rem;
}

.yi-modal .modal-content {
	border: none;
	border-radius: 14px;
	overflow: hidden;
}

.yi-modal .modal-header {
	background-image: var(--yi-gradient);
	color: #fff;
	border-bottom: none;
	padding: 1.1rem 1.4rem;
}

.yi-modal .modal-header .modal-title {
	font-weight: 700;
}

.yi-modal .modal-header .btn-close {
	filter: brightness(0) invert(1);
	opacity: .9;
}

.yi-modal .modal-body {
	padding: 1.4rem;
}

.yi-modal .yi-modal-route {
	color: rgba(255, 255, 255, .9);
	font-weight: 500;
}

.yi-modal .yi-kv {
	display: flex;
	justify-content: space-between;
	padding: .5rem 0;
	border-bottom: 1px dashed #e6e6e6;
}

.yi-modal .yi-kv:last-child {
	border-bottom: none;
}

.yi-modal .yi-kv .yi-kv-label {
	color: var(--yi-gray);
}

.yi-modal .yi-kv .yi-kv-value {
	font-weight: 600;
	color: var(--yi-dark);
	text-align: right;
}

.yi-modal .yi-modal-total {
	background-image: var(--yi-gradient);
	color: #fff;
	border-radius: 12px;
	padding: 1rem 1.25rem;
	text-align: center;
	margin-top: 1rem;
}

.yi-modal .yi-modal-total .yi-modal-total-amount {
	font-size: 1.8rem;
	font-weight: 800;
	line-height: 1.1;
}

.yi-row-clickable {
	cursor: pointer;
}

.yi-pay-card-fake {
	background: #faf7f7;
	border: 1px dashed #ffd0d1;
	border-radius: 12px;
	padding: 1rem 1.1rem;
}

@media (max-width: 575px) {
	.yi-stepper {
		flex-wrap: wrap;
		gap: 1rem 0;
	}

	.yi-stepper .yi-step {
		flex: 0 0 25%;
	}

	.yi-stepper .yi-step::before {
		display: none;
	}
}

.yi-ad {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	margin: 1.75rem auto;
	max-width: 100%;
	min-height: 110px;
	padding: .75rem;
	background: #f3f4f6;
	border: 1px dashed #c9ccd1;
	border-radius: 8px;
}

.yi-ad-label {
	display: block;
	font-size: .62rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--yi-gray-light);
	margin-bottom: .35rem;
	font-weight: 600;
}

.yi-ad img {
	display: block;
	margin: 0 auto;
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	border: 1px solid #ececec;
}

.yi-ad-leaderboard {
	min-height: 90px;
}

.yi-stepper .yi-step {
	cursor: default;
}

.yi-stepper .yi-step-dot {
	cursor: default;
}

.yi-step-tip {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 14px);
	transform: translateX(-50%) translateY(6px);
	width: 220px;
	max-width: 78vw;
	background: #fff;
	color: var(--yi-dark);
	border: 1px solid #f0d6d6;
	border-top: 3px solid var(--yi-red);
	border-radius: 12px;
	box-shadow: 0 12px 34px rgba(0, 0, 0, .16);
	padding: .7rem .85rem;
	text-align: left;
	font-size: .76rem;
	line-height: 1.4;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .18s ease, transform .18s ease;
	z-index: 20;
}

.yi-stepper .yi-step .yi-step-dot:hover + .yi-step-tip,
.yi-stepper .yi-step:hover .yi-step-tip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
	pointer-events: none;
}

.yi-step-tip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 7px solid transparent;
	border-top-color: #fff;
	filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .06));
}

.yi-step-tip .yi-tip-phase {
	font-weight: 800;
	color: var(--yi-red);
	display: block;
	margin-bottom: .25rem;
	font-size: .82rem;
}

.yi-step-tip .yi-tip-row {
	color: var(--yi-gray);
	display: block;
}

.yi-step-tip .yi-tip-row strong {
	color: var(--yi-dark);
	font-weight: 700;
}

.yi-stepper .yi-step:first-child .yi-step-tip {
	left: 0;
	transform: translateX(0) translateY(6px);
}

.yi-stepper .yi-step:first-child:hover .yi-step-tip {
	transform: translateX(0) translateY(0);
}

.yi-stepper .yi-step:first-child .yi-step-tip::after {
	left: 22px;
}

.yi-stepper .yi-step:last-child .yi-step-tip {
	left: auto;
	right: 0;
	transform: translateX(0) translateY(6px);
}

.yi-stepper .yi-step:last-child:hover .yi-step-tip {
	transform: translateX(0) translateY(0);
}

.yi-stepper .yi-step:last-child .yi-step-tip::after {
	left: auto;
	right: 22px;
}

.yi-next-phase {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	background: #fff4f4;
	border: 1px solid #ffd0d1;
	border-radius: 12px;
	padding: .7rem 1rem;
	margin: 1.25rem 0 .25rem;
	font-size: .9rem;
	color: var(--yi-dark);
}

.yi-next-phase .yi-next-phase-name {
	font-weight: 700;
	color: var(--yi-red);
}

.yi-next-phase .yi-countdown {
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: .02em;
	color: var(--yi-red);
	background: #fff;
	border: 1px solid #ffd0d1;
	border-radius: 999px;
	padding: .15rem .7rem;
}

.yi-delivery-countdown {
	font-variant-numeric: tabular-nums;
	letter-spacing: .02em;
	font-weight: 800;
	color: var(--yi-red);
}
