.demrise-logo-reuse {
	margin: 0 0 var(--space-3, 0.75rem);
}

.demrise-logo-reuse[hidden] {
	display: none;
}

.demrise-logo-reuse__list {
	display: flex;
	flex-direction: column;
	gap: var(--space-2, 0.5rem);
}

.demrise-logo-reuse__item {
	align-items: center;
	background: transparent;
	border: 1px solid var(--gray-l-3, #b2aeab);
	border-radius: var(--space-1, 0.25rem);
	box-sizing: border-box;
	color: inherit;
	cursor: pointer;
	display: flex;
	flex-direction: row;
	font: inherit;
	gap: var(--space-3, 0.75rem);
	margin: 0;
	min-width: 0;
	padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
	text-align: left;
	transition: var(--standard-transition, all 250ms ease-in-out);
	width: 100%;
}

.demrise-logo-reuse__item:hover {
	border-color: var(--gray-l-1, #d4d0cc);
}

.demrise-logo-reuse__item:focus-visible,
.demrise-logo-reuse__item.is-selected {
	background-color: color-mix(in srgb, var(--primary-700, #7f5539) 7%, transparent);
	border-color: var(--primary-700, #7f5539);
	outline: none;
}

.demrise-logo-reuse__item:focus-visible {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-600, #9c6644) 18%, transparent);
}

.demrise-logo-reuse__thumb {
	aspect-ratio: 1;
	background-color: var(--primary-50, #f6f1ee);
	border-radius: calc(var(--space-1, 0.25rem) - 1px);
	flex: 0 0 2.75rem;
	height: 2.75rem;
	object-fit: contain;
	width: 2.75rem;
}

.demrise-logo-reuse__thumb--file {
	align-items: center;
	color: var(--primary-700, #7f5539);
	display: inline-flex;
	font-size: var(--text-xs, 0.75rem);
	font-weight: 600;
	justify-content: center;
	letter-spacing: 0.04em;
}

.demrise-logo-reuse__meta {
	display: grid;
	gap: 0.15rem;
	min-width: 0;
	width: 100%;
}

.demrise-logo-reuse__name,
.demrise-logo-reuse__hint {
	margin: 0;
}

.demrise-logo-reuse__name {
	color: var(--primary-800, #5c3d2e);
	font-size: var(--text-sm, 0.875rem);
	font-weight: 400;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.demrise-logo-reuse__hints {
	display: grid;
	gap: 0.15rem;
}

.demrise-logo-reuse__hint {
	color: var(--gray-d-3, #7a746f);
	font-size: var(--text-xs, 0.75rem);
	line-height: 1.35;
	white-space: normal;
}

.demrise-logo-reuse__hint--paid {
	color: var(--accent-green, #588157);
	font-size: var(--text-xs, 0.75rem);
	font-weight: 600;
}

.demrise-logo-upload--reuse .dropzone,
.demrise-logo-upload--reuse .pewc-input-wrapper,
.demrise-logo-upload--reuse .pewc-description {
	display: none;
}

.pewc-group-heading-wrapper:has(> .demrise-logo-recommend-badge),
.pewc-group-heading-wrapper:has(> .demrise-logo-fee-info) {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2, 0.5rem);
	position: relative;
	width: 100%;
}

.pewc-group-heading-wrapper:has(> .demrise-logo-recommend-badge) .pewc-group-heading,
.pewc-group-heading-wrapper:has(> .demrise-logo-fee-info) .pewc-group-heading {
	flex: 0 1 auto;
	margin-bottom: 0;
	min-width: 0;
	width: auto;
}

.demrise-logo-recommend-badge {
	background-color: var(--accent-green, #588157);
	border-radius: var(--space-1_5, 0.375rem);
	color: var(--white, #fff);
	display: inline-block;
	flex: 0 0 auto;
	font-size: var(--text-xs, 0.75rem);
	font-weight: 700;
	letter-spacing: -0.15px;
	line-height: 1.2;
	padding: var(--space-1, 0.25rem) var(--space-1_5, 0.375rem);
	text-transform: uppercase;
	white-space: nowrap;
}

@media (max-width: 1023px) {
	.demrise-logo-recommend-badge {
		font-size: var(--text-2xs, 0.625rem);
	}
}

.pewc-group-heading-wrapper:has(> .demrise-logo-fee-info) .demrise-logo-fee-info {
	flex: 0 0 auto;
	margin-left: auto;
}

.demrise-logo-fee-info {
	display: inline-flex;
	position: relative;
}

.demrise-logo-fee-info__toggle {
	align-items: center;
	background-color: var(--primary-700, #7f5539);
	border: 0;
	border-radius: 999px;
	color: var(--white, #fff);
	cursor: pointer;
	display: inline-flex;
	font-size: var(--text-sm, 0.875rem);
	font-weight: 700;
	height: 1.75rem;
	justify-content: center;
	line-height: 1;
	padding: 0;
	transition: var(--standard-transition, all 250ms ease-in-out);
	width: 1.75rem;
}

.demrise-logo-fee-info__toggle:hover,
.demrise-logo-fee-info__toggle:focus-visible,
.demrise-logo-fee-info.is-open .demrise-logo-fee-info__toggle {
	background-color: var(--primary-600, #9c6644);
	color: var(--white, #fff);
}

@media (min-width: 768px) {
	.demrise-logo-fee-info__toggle {
		font-size: 0.75rem;
		height: 1.5rem;
		width: 1.5rem;
	}
}

.demrise-logo-fee-info__panel {
	background-color: var(--white, #fff);
	border: 1px solid var(--gray-l-3, #b2aeab);
	border-radius: var(--space-1, 0.25rem);
	box-shadow: 0 8px 24px rgba(92, 61, 46, 0.12);
	color: var(--primary-800, #5c3d2e);
	font-size: 0.875rem;
	left: auto;
	line-height: 1.45;
	max-width: min(22rem, calc(100vw - 2rem));
	padding: var(--space-4, 1rem);
	position: absolute;
	right: 0;
	top: calc(100% + var(--space-2, 0.5rem));
	width: max-content;
	z-index: 20;
}

.demrise-logo-fee-info__panel[hidden] {
	display: none;
}

.demrise-logo-fee-info__content :where(h1, h2, h3, h4, h5, h6, p, ul, ol) {
	margin: 0 0 var(--space-2, 0.5rem);
}

.demrise-logo-fee-info__content :where(h1, h2, h3, h4, h5, h6):first-child,
.demrise-logo-fee-info__content :where(p, ul, ol):first-child {
	margin-top: 0;
}

.demrise-logo-fee-info__content :where(h1, h2, h3, h4, h5, h6, p, ul, ol):last-child {
	margin-bottom: 0;
}

.demrise-logo-fee-info__content :where(ul, ol) {
	padding-left: 1.15rem;
}
