.red-hp-dbc {
	--red-hp-dbc-card-width: var(--red-hp-dbc-width-mobile);
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 12px 0;
	font-family: inherit;
	color: var(--red-hp-dbc-text);
}

.red-hp-dbc *,
.red-hp-dbc *::before,
.red-hp-dbc *::after {
	box-sizing: border-box;
}

.red-hp-dbc__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 8px;
	padding: 0 2px;
}

.red-hp-dbc__heading {
	display: inline-flex;
	min-width: 0;
	align-items: center;
	gap: 8px;
	color: var(--red-hp-dbc-title);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
}

.red-hp-dbc__heading-icon {
	display: inline-flex;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	align-items: center;
	justify-content: center;
	color: var(--red-hp-dbc-accent);
}

.red-hp-dbc__heading-icon svg,
.red-hp-dbc__view-all svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.red-hp-dbc__view-all {
	display: inline-flex;
	width: auto;
	min-width: max-content;
	height: 28px;
	align-items: center;
	justify-content: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--red-hp-dbc-accent);
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	appearance: none;
}

.red-hp-dbc__view-all:hover,
.red-hp-dbc__view-all:focus {
	background: transparent;
	color: var(--red-hp-dbc-accent);
	outline: none;
}

.red-hp-dbc__view-all svg {
	width: 16px;
	height: 16px;
}

.red-hp-dbc__track {
	display: flex;
	gap: var(--red-hp-dbc-gap);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding: 0 1px 2px;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.red-hp-dbc__track::-webkit-scrollbar {
	display: none;
}

.red-hp-dbc__card {
	position: relative;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 52px;
	align-items: center;
	flex: 0 0 var(--red-hp-dbc-card-width);
	width: var(--red-hp-dbc-card-width);
	min-width: 0;
	min-height: var(--red-hp-dbc-height);
	padding: 12px 0 12px 12px;
	border: 1px solid rgba(238, 27, 36, 0.14);
	border-radius: var(--red-hp-dbc-radius);
	background: var(--red-hp-dbc-bg);
	color: var(--red-hp-dbc-text);
	box-shadow: none;
	scroll-snap-align: start;
	overflow: hidden;
}

.red-hp-dbc__badge {
	display: inline-flex;
	width: 34px;
	height: 34px;
	margin-right: 2px;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: var(--red-hp-dbc-accent);
	color: #fff;
	font-size: 20px;
	font-weight: 800;
	line-height: 1;
}

.red-hp-dbc__badge span {
	transform: rotate(-10deg);
}

.red-hp-dbc__content {
	min-width: 0;
	padding: 0 10px 0 4px;
}

.red-hp-dbc__title {
	display: block;
	margin: 0;
	color: var(--red-hp-dbc-title);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.18;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.red-hp-dbc__title-value {
	color: var(--red-hp-dbc-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.red-hp-dbc__minimum,
.red-hp-dbc__description,
.red-hp-dbc__fomo {
	margin: 2px 0 0;
	font-size: 13px;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.red-hp-dbc__minimum {
	color: var(--red-hp-dbc-title);
	font-weight: 600;
}

.red-hp-dbc__description {
	color: var(--red-hp-dbc-muted);
}

.red-hp-dbc__fomo {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #d0411e;
	font-weight: 700;
}

.red-hp-dbc__fomo.is-critical {
	color: var(--red-hp-dbc-accent);
}

.red-hp-dbc__fomo::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	flex: 0 0 12px;
	border-radius: 999px 999px 999px 0;
	background: currentColor;
	transform: rotate(-45deg);
}

.red-hp-dbc__copy {
	display: inline-flex;
	position: relative;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-left: 1px dashed rgba(238, 27, 36, 0.22);
	border-radius: 0;
	background: transparent;
	color: var(--red-hp-dbc-accent);
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.18s ease;
	appearance: none;
}

.red-hp-dbc__copy:hover,
.red-hp-dbc__copy:focus {
	background: rgba(238, 27, 36, 0.04);
	color: var(--red-hp-dbc-accent);
	outline: none;
}

.red-hp-dbc__copy:active {
	transform: scale(0.94);
}

.red-hp-dbc__copy svg {
	width: 36px;
	height: 36px;
	padding: 9px;
	border: 1px solid rgba(238, 27, 36, 0.36);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.72);
	fill: currentColor;
}

.red-hp-dbc__check-icon {
	display: none;
}

.red-hp-dbc__copy.is-copied .red-hp-dbc__copy-icon {
	display: none;
}

.red-hp-dbc__copy.is-copied .red-hp-dbc__check-icon {
	display: block;
}

.red-hp-dbc__copy.is-copied {
	color: #fff;
}

.red-hp-dbc__copy.is-copied svg {
	border-color: #2bbf74;
	background: #2bbf74;
}

.red-hp-dbc__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 9px;
}

.red-hp-dbc .red-hp-dbc__dot {
	display: block;
	flex: 0 0 8px;
	width: 8px;
	min-width: 8px;
	max-width: 8px;
	height: 8px;
	min-height: 8px;
	max-height: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #d8d8d8;
	box-shadow: none;
	cursor: pointer;
	font-size: 0;
	line-height: 0;
	transition: background-color 0.18s ease;
	appearance: none;
}

.red-hp-dbc .red-hp-dbc__dot.is-active {
	width: 8px;
	background: var(--red-hp-dbc-accent);
}

.red-hp-dbc .red-hp-dbc__dot::before,
.red-hp-dbc .red-hp-dbc__dot::after {
	content: none;
}

.red-hp-dbc .red-hp-dbc__dot:focus-visible {
	outline: 2px solid var(--red-hp-dbc-accent);
	outline-offset: 3px;
}

.red-hp-dbc.is-expanded .red-hp-dbc__track {
	flex-wrap: wrap;
	overflow: visible;
	scroll-snap-type: none;
}

.red-hp-dbc.is-expanded .red-hp-dbc__dots {
	display: none;
}

.red-hp-dbc.is-expanded .red-hp-dbc__view-all svg {
	transform: rotate(-90deg);
}

.red-hp-dbc__notice {
	position: absolute;
	right: 8px;
	bottom: 28px;
	z-index: 2;
	max-width: min(92vw, 360px);
	padding: 8px 12px;
	border-radius: 6px;
	background: rgba(22, 22, 22, 0.9);
	color: #fff;
	font-size: 12px;
	line-height: 1.3;
	text-align: center;
	transform: translateY(10px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.red-hp-dbc__notice.is-visible {
	transform: translateY(0);
	opacity: 1;
}

@media (min-width: 640px) {
	.red-hp-dbc {
		--red-hp-dbc-card-width: var(--red-hp-dbc-width-tablet);
	}
}

@media (min-width: 1024px) {
	.red-hp-dbc {
		--red-hp-dbc-card-width: var(--red-hp-dbc-width-desktop);
	}
}

@media (max-width: 480px) {
	.red-hp-dbc__card {
		grid-template-columns: 42px minmax(0, 1fr) 48px;
		padding-left: 10px;
	}

	.red-hp-dbc__title {
		font-size: 16px;
	}

	.red-hp-dbc__minimum,
	.red-hp-dbc__description,
	.red-hp-dbc__fomo {
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.red-hp-dbc__track {
		scroll-behavior: auto;
	}

	.red-hp-dbc__copy,
	.red-hp-dbc__dot,
	.red-hp-dbc__notice {
		transition: none;
	}
}
