.pricebase-public-search,
.pricebase-public-compare {
	--pricebase-compare-teal: #48bdb4;
	--pricebase-compare-teal-dark: #238f88;
	--pricebase-compare-pink: #ec4899;
	--pricebase-compare-pink-dark: #db2777;
	--pricebase-compare-border: #dfe8e7;
}

.pricebase-public-card__compare {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	min-height: 38px;
	margin-top: 10px;
	padding: 7px 13px;
	border: 1px solid var(--pricebase-compare-teal);
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: #176f69;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.pricebase-public-card__compare:hover,
.pricebase-public-card__compare:focus-visible {
	border-color: var(--pricebase-compare-teal-dark);
	background: #e4f7f5;
	color: #145e59;
}

.pricebase-public-card__compare.is-selected {
	border-color: var(--pricebase-compare-pink);
	background: #fce7f3;
	color: #be185d;
}

.pricebase-public-card__compare:active {
	transform: translateY(1px);
}

.pricebase-compare-message {
	min-height: 1.5em;
	margin: 12px 0 0;
	color: #176f69;
	font-size: 13px;
	font-weight: 700;
}

.pricebase-compare-message:empty {
	min-height: 0;
	margin: 0;
}

.pricebase-compare-message.is-error {
	color: #be185d;
}

.pricebase-compare-bar {
	position: fixed;
	z-index: 9999;
	right: 20px;
	bottom: 18px;
	left: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 980px;
	min-height: 72px;
	margin: 0 auto;
	padding: 10px 14px;
	border: 1px solid rgba(72, 189, 180, 0.45);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 8px 24px rgba(27, 85, 81, 0.18);
	backdrop-filter: blur(8px);
}

.pricebase-compare-bar__onboarding {
	position: absolute;
	right: 12px;
	bottom: calc(100% + 8px);
	max-width: min(420px, calc(100vw - 32px));
	margin: 0;
	padding: 8px 11px;
	border: 1px solid #b9e4e0;
	border-radius: 11px;
	background: #f2fbfa;
	box-shadow: 0 6px 16px rgba(27, 85, 81, 0.12);
	color: #285f5a;
	font-size: 12px;
	font-weight: 700;
}

.pricebase-compare-bar__onboarding[hidden] { display: none; }

.pricebase-compare-bar[hidden] {
	display: none;
}

.pricebase-compare-bar__selection {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 5px;
}

.pricebase-compare-bar__selection > strong {
	color: #205d59;
	font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
	font-size: 14px;
}

.pricebase-compare-bar__items {
	display: flex;
	overflow-x: auto;
	gap: 6px;
	padding: 1px 2px 3px;
	-webkit-overflow-scrolling: touch;
}

.pricebase-compare-bar__item {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 5px;
	max-width: 190px;
	padding: 3px 4px 3px 6px;
	border: 1px solid #cfe5e2;
	border-radius: 7px;
	background: #f5fbfa;
}

.pricebase-compare-bar__item img {
	width: 24px;
	height: 24px;
	border-radius: 4px;
	object-fit: contain;
}

.pricebase-compare-bar__item span {
	overflow: hidden;
	color: #3f5553;
	font-size: 10px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pricebase-compare-bar__item button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #a91456;
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
}

.pricebase-compare-bar__item button:hover,
.pricebase-compare-bar__item button:focus-visible {
	background: #fce7f3;
	color: #8e1048;
}

.pricebase-compare-bar__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pricebase-compare-bar__submit,
.pricebase-compare-bar__clear,
.pricebase-public-compare__back,
.pricebase-compare-table__remove,
.pricebase-compare-table__rakuten {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 7px 14px;
	border-radius: 10px;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.pricebase-compare-bar__submit {
	border: 1px solid var(--pricebase-compare-pink);
	background: var(--pricebase-compare-pink);
	color: #fff;
}

.pricebase-compare-bar__submit:hover,
.pricebase-compare-bar__submit:focus-visible {
	border-color: var(--pricebase-compare-pink-dark);
	background: var(--pricebase-compare-pink-dark);
	color: #fff;
}

.pricebase-compare-bar__submit.is-disabled {
	border-color: #cbd5d4;
	background: #e6ebea;
	color: #7c8786;
	cursor: not-allowed;
}

.pricebase-compare-bar__clear {
	border: 1px solid #adc9c6;
	background: #fff;
	color: #276b66;
}

.pricebase-compare-bar__clear:hover,
.pricebase-compare-bar__clear:focus-visible {
	background: #e4f7f5;
	color: #145e59;
}

body.pricebase-compare-bar-visible {
	padding-bottom: 106px;
}

.pricebase-compare-undo[hidden] {
	display: none;
}

.pricebase-compare-undo {
	position: fixed;
	z-index: 10010;
	right: 20px;
	bottom: 22px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border: 1px solid rgba(72, 189, 180, 0.5);
	border-radius: 11px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(27, 85, 81, 0.2);
	color: #354846;
	font-size: 12px;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

body.pricebase-compare-bar-visible .pricebase-compare-undo {
	bottom: 108px;
}

.pricebase-compare-undo.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.pricebase-compare-undo button {
	padding: 3px 5px;
	border: 0;
	background: transparent;
	color: #be185d;
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

.pricebase-compare-toast[hidden],
.pricebase-search-confirm[hidden] {
	display: none;
}

.pricebase-compare-toast {
	position: fixed;
	z-index: 10000;
	right: 24px;
	bottom: 94px;
	display: grid;
	gap: 3px;
	min-width: 210px;
	padding: 12px 14px;
	border: 1px solid rgba(72, 189, 180, 0.5);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 9px 25px rgba(27, 85, 81, 0.2);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.pricebase-compare-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.pricebase-compare-toast strong {
	color: #176f69;
	font-size: 13px;
}

.pricebase-compare-toast span {
	color: #536361;
	font-size: 12px;
}

.pricebase-compare-toast a {
	margin-top: 3px;
	color: #be185d;
	font-size: 12px;
	font-weight: 700;
}

.pricebase-search-confirm {
	position: fixed;
	z-index: 10020;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(19, 41, 39, 0.42);
}

.pricebase-search-confirm__panel {
	width: min(100%, 430px);
	padding: 22px;
	border: 1px solid var(--pricebase-compare-border);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
}

.pricebase-search-confirm__panel strong {
	color: #205d59;
	font-size: 17px;
}

.pricebase-search-confirm__panel p {
	margin: 10px 0 18px;
	color: #40504f;
	font-size: 14px;
	line-height: 1.7;
}

.pricebase-search-confirm__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.pricebase-search-confirm__actions button {
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid var(--pricebase-compare-teal);
	border-radius: 10px;
	background: #fff;
	color: #176f69;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.pricebase-search-confirm__actions button:first-child {
	border-color: var(--pricebase-compare-pink);
	background: var(--pricebase-compare-pink);
	color: #fff;
}

.pricebase-search-confirm__actions button:hover,
.pricebase-search-confirm__actions button:focus-visible {
	background: #e4f7f5;
}

.pricebase-search-confirm__actions button:first-child:hover,
.pricebase-search-confirm__actions button:first-child:focus-visible {
	border-color: var(--pricebase-compare-pink-dark);
	background: var(--pricebase-compare-pink-dark);
}

body.pricebase-search-confirm-open {
	overflow: hidden;
}

.pricebase-public-compare {
	max-width: 1180px;
	margin: 0 auto;
	color: #1d2327;
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

.pricebase-public-compare__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.pricebase-public-compare__heading h2 {
	margin: 0;
	font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
	font-size: 25px;
}

.pricebase-public-compare__heading-links {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 7px;
}

.pricebase-public-compare__recent-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 6px 10px;
	border: 1px solid #efb4cf;
	border-radius: 9px;
	background: #fff7fb;
	color: #a91456;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
}

.pricebase-public-compare__save,
.pricebase-public-compare__saved-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 6px 10px;
	border: 1px solid #efb4cf;
	border-radius: 9px;
	background: #fff7fb;
	color: #a91456;
	font: inherit;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.pricebase-public-compare__save[hidden],
.pricebase-public-compare__saved-link[hidden] {
	display: none;
}

.pricebase-public-compare__save:hover,
.pricebase-public-compare__save:focus-visible,
.pricebase-public-compare__saved-link:hover,
.pricebase-public-compare__saved-link:focus-visible {
	border-color: #ec4899;
	background: #fce7f3;
	color: #8e1048;
}

.pricebase-public-compare ~ .pricebase-saved-toast,
.pricebase-saved-toast {
	position: fixed;
	z-index: 10020;
	right: 18px;
	bottom: 18px;
	max-width: min(360px, calc(100vw - 36px));
	padding: 10px 14px;
	border-radius: 10px;
	background: #245f5a;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.17);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.pricebase-saved-toast.is-error { background: #a52f55; }

.pricebase-save-comparison-dialog {
	position: fixed;
	z-index: 10030;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 18px;
	background: rgba(20, 38, 37, 0.42);
}

.pricebase-save-comparison-dialog__panel {
	box-sizing: border-box;
	width: min(100%, 420px);
	padding: 18px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
}

.pricebase-save-comparison-dialog__panel h2 { margin: 0 0 12px; font-size: 19px; }
.pricebase-save-comparison-dialog__panel label { display: grid; gap: 5px; font-size: 12px; font-weight: 700; }
.pricebase-save-comparison-dialog__panel input { box-sizing: border-box; width: 100%; min-height: 42px; padding: 7px 10px; border: 1px solid #abb9b7; border-radius: 9px; }
.pricebase-save-comparison-dialog__actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 13px; }
.pricebase-save-comparison-dialog__actions button { min-height: 36px; padding: 6px 13px; border: 1px solid #b9cecb; border-radius: 9px; background: #fff; font: inherit; font-size: 12px; font-weight: 700; }
.pricebase-save-comparison-dialog__actions .is-save { border-color: #48bdb4; background: #48bdb4; color: #fff; }

.pricebase-public-compare__recent-link[hidden] {
	display: none;
}

.pricebase-public-compare__recent-link:hover,
.pricebase-public-compare__recent-link:focus-visible {
	border-color: #ec4899;
	background: #fce7f3;
	color: #8e1048;
}

.pricebase-public-compare__back {
	border: 1px solid var(--pricebase-compare-teal);
	background: #fff;
	color: #176f69;
}

.pricebase-public-compare__back:hover,
.pricebase-public-compare__back:focus-visible {
	background: #e4f7f5;
	color: #145e59;
}

.pricebase-public-compare__empty {
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 14px;
	padding: 24px;
	border: 1px solid var(--pricebase-compare-border);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);
	text-align: center;
}

.pricebase-public-compare__empty p {
	margin: 0;
}

.pricebase-compare-empty__mobile {
	display: none;
}

.pricebase-public-compare__back--center {
	min-width: 160px;
}

.pricebase-compare-legend[hidden] {
	display: none;
}

.pricebase-compare-legend {
	margin-bottom: 14px;
	padding: 12px 14px;
	border: 1px solid var(--pricebase-compare-border);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 2px 9px rgba(0, 0, 0, 0.04);
}

.pricebase-compare-legend strong {
	display: block;
	margin-bottom: 7px;
	color: #315e5b;
	font-size: 13px;
}

.pricebase-compare-legend p {
	margin: 0;
	color: #40504f;
	font-size: 12px;
	line-height: 1.6;
}

.pricebase-compare-legend ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pricebase-compare-legend li {
	margin: 0;
	color: #40504f;
	font-size: 12px;
	font-weight: 600;
}

.pricebase-ai-compare-comment {
	width: min(100%, 760px);
	margin: 0 0 8px;
	padding: 15px 17px;
	border: 1px solid rgba(72, 189, 180, 0.34);
	border-radius: 12px;
	background: #eefaf8;
	box-shadow: 0 3px 12px rgba(27, 85, 81, 0.07);
	color: #294c49;
}

.pricebase-ai-compare-comment h2 {
	margin: 0 0 7px;
	font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
	font-size: 16px;
}

.pricebase-ai-compare-comment__title {
	margin: 0 0 9px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.55;
}

.pricebase-ai-compare-comment__label {
	display: block;
	margin-top: 7px;
	font-size: 12px;
}

.pricebase-ai-compare-comment__reasons,
.pricebase-ai-compare-comment__points {
	display: flex;
	flex-wrap: wrap;
	gap: 3px 14px;
	margin: 3px 0 0;
	padding: 0;
	list-style: none;
	font-size: 12px;
	line-height: 1.55;
}

.pricebase-ai-compare-comment__points li::before {
	content: "・";
}

.pricebase-ai-compare-debug {
	margin-top: 10px;
	font-size: 11px;
}

.pricebase-ai-compare-debug pre {
	overflow: auto;
	max-height: 18em;
	padding: 8px;
	background: #fff;
	white-space: pre-wrap;
}

.pricebase-ai-compare-points-compact {
	box-sizing: border-box;
	width: min(100%, 760px);
	margin: 0 0 14px;
	padding: 9px 11px;
	border: 1px solid #e6d9b8;
	border-radius: 8px;
	background: #fffaf0;
	color: #62583f;
	font-size: 11px;
	line-height: 1.5;
}

.pricebase-ai-compare-points-compact > strong {
	display: block;
	margin-bottom: 2px;
	font-size: 11px;
}

.pricebase-ai-compare-points-compact__list {
	margin: 0;
	padding-left: 1.4em;
}

.pricebase-ai-compare-points-compact__more {
	margin-top: 3px;
}

.pricebase-ai-compare-points-compact__more summary {
	display: inline-block;
	color: #39736e;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.pricebase-ai-compare-points-compact__more summary:focus-visible {
	outline: 2px solid #55a8a1;
	outline-offset: 2px;
}

.pricebase-ai-compare-points-compact__more[open] .pricebase-ai-compare-points-compact__list {
	margin-top: 3px;
}

.pricebase-compare-table-wrap {
	overflow-x: auto;
	padding: 2px 2px 14px;
	-webkit-overflow-scrolling: touch;
}

.pricebase-compare-mobile {
	display: none;
}

.pricebase-compare-summary {
	display: none;
}

.pricebase-compare-table {
	width: 100%;
	min-width: 760px;
	border: 1px solid var(--pricebase-compare-border);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
	table-layout: fixed;
}

.pricebase-compare-table--enter {
	animation: pricebase-compare-fade-in 0.32s ease both;
}

@keyframes pricebase-compare-fade-in {
	from {
		opacity: 0;
		transform: translateY(4px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.pricebase-compare-table th,
.pricebase-compare-table td {
	padding: 12px;
	border-right: 1px solid #edf1f0;
	border-bottom: 1px solid #edf1f0;
	vertical-align: top;
	word-break: break-word;
	transition: background-color 0.18s ease;
}

.pricebase-compare-table td.is-winner-pink {
	background: #fdf0f6;
}

.pricebase-compare-table td.is-winner-teal {
	background: #eaf8f6;
}

.pricebase-compare-reason {
	display: table;
	margin-top: 6px;
	padding: 2px 6px;
	border: 1px solid currentColor;
	border-radius: 5px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.35;
	cursor: help;
}

.is-winner-pink .pricebase-compare-reason {
	background: #fff7fb;
	color: #9d174d;
}

.is-winner-teal .pricebase-compare-reason {
	background: #f7fffe;
	color: #176f69;
}

.pricebase-compare-reason:focus-visible {
	outline: 2px solid #315e5b;
	outline-offset: 2px;
}

.pricebase-compare-table tr:last-child th,
.pricebase-compare-table tr:last-child td {
	border-bottom: 0;
}

.pricebase-compare-table th:last-child,
.pricebase-compare-table td:last-child {
	border-right: 0;
}

.pricebase-compare-table tr > th:first-child {
	width: 112px;
	background: #f4fbfa;
	color: #315e5b;
	font-size: 12px;
	text-align: left;
}

.pricebase-compare-table__product {
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 9px;
	min-width: 170px;
	text-align: center;
}

.pricebase-compare-table__image-wrap {
	position: relative;
	width: 128px;
	min-height: 128px;
}

.pricebase-compare-table__product img {
	width: 128px;
	height: 128px;
	border-radius: 9px;
	background: #f7f7f7;
	object-fit: contain;
}

.pricebase-compare-table__badges {
	position: absolute;
	top: 4px;
	right: -6px;
	display: flex;
	align-items: flex-end;
	flex-direction: column;
	gap: 3px;
	pointer-events: none;
}

.pricebase-compare-table__badges span {
	padding: 3px 6px;
	border: 1px solid rgba(236, 72, 153, 0.18);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
	color: #9d174d;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.35;
	white-space: nowrap;
}

.pricebase-compare-table__badges span.is-review,
.pricebase-compare-table__badges span.is-count {
	border-color: rgba(72, 189, 180, 0.24);
	color: #176f69;
}

.pricebase-compare-table__badges span.is-official {
	border-color: rgba(236, 72, 153, 0.3);
	background: #fdf0f6;
}

.pricebase-compare-table__badges span.is-ai,
.pricebase-compare-table__badges span.is-unit,
.pricebase-compare-table__badges span.is-shipping {
	border-color: rgba(72, 189, 180, 0.3);
	color: #176f69;
}

.pricebase-compare-table__product strong {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.45;
}

.pricebase-compare-table td > .pricebase-ai-compare-badges {
	position: static;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 4px;
	pointer-events: none;
}

.pricebase-compare-table__remove {
	min-height: 32px;
	padding: 5px 10px;
	border: 1px solid #ef9fc4;
	background: #fff;
	color: #ad1457;
}

.pricebase-compare-table__remove:hover,
.pricebase-compare-table__remove:focus-visible {
	background: #fce7f3;
	color: #8e1048;
}

.pricebase-compare-table__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.pricebase-compare-table__tags span {
	padding: 3px 7px;
	border-radius: 6px;
	background: #e4f7f5;
	color: #176f69;
	font-size: 11px;
	font-weight: 600;
}

.pricebase-compare-table__tags span.is-special {
	background: #fce7f3;
	color: #be185d;
}

.pricebase-attributes,
.pricebase-compare-mobile__results {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.pricebase-attribute {
	display: inline-flex;
	align-items: center;
	padding: 1px 6px;
	border: 0;
	border-left: 2px solid #8fbebb;
	border-radius: 0;
	background: transparent;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.35;
}

.pricebase-attribute--official,
.pricebase-attribute.is-official {
	border-left-color: #ec4899;
	color: #a91456;
}

.pricebase-attribute--free_shipping,
.pricebase-attribute.is-free-shipping {
	border-left-color: #48bdb4;
	color: #176f69;
}

.pricebase-attribute--furusato,
.pricebase-attribute.is-furusato {
	border-left-color: #b59652;
	color: #765b1e;
}

.pricebase-attribute--subscription,
.pricebase-attribute.is-subscription {
	border-left-color: #8985ad;
	color: #53506f;
}

.pricebase-attribute--set,
.pricebase-attribute.is-set {
	border-left-color: #7a9e9b;
	color: #405f5c;
}

.pricebase-attribute--used,
.pricebase-attribute.is-used {
	border-left-color: #d97706;
	color: #92400e;
}

.pricebase-attribute--new,
.pricebase-attribute.is-new {
	border-left-color: #48bdb4;
	color: #176f69;
}

.pricebase-compare-condition-notice {
	margin: 0 0 10px;
	padding: 8px 10px;
	border: 1px solid #ead7a8;
	border-radius: 8px;
	background: #fff8e8;
	color: #624f2c;
	font-size: 12px;
	line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
	.pricebase-compare-bar__onboarding { scroll-behavior: auto; }
}

.pricebase-public-compare .pricebase-compare-product-link,
.pricebase-public-compare .pricebase-compare-product-link:visited,
.pricebase-public-compare .pricebase-compare-product-link:active,
.pricebase-public-compare .pricebase-compare-product-link:focus {
	background: transparent !important;
	box-shadow: none;
	color: inherit;
	text-decoration: none;
}

.pricebase-public-compare .pricebase-compare-product-link--name,
.pricebase-public-compare .pricebase-compare-product-link--name:visited,
.pricebase-public-compare .pricebase-compare-product-link--name:active,
.pricebase-public-compare .pricebase-compare-product-link--name:focus {
	color: #176f69;
}

.pricebase-public-compare .pricebase-compare-product-link--name:hover {
	background: transparent !important;
	color: #176f69;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pricebase-public-compare .pricebase-compare-product-link:focus-visible {
	border-radius: 3px;
	outline: 2px solid #48bdb4;
	outline-offset: 2px;
}

.pricebase-public-compare .pricebase-compare-product-link--image {
	display: block;
	overflow: hidden;
	border-radius: inherit;
}

.pricebase-compare-mobile__card > .pricebase-compare-product-link--image {
	margin-right: auto;
	margin-left: auto;
}

.pricebase-public-compare .pricebase-compare-product-link--image img {
	transition: transform 0.22s ease, opacity 0.22s ease;
}

.pricebase-public-compare .pricebase-compare-product-link--image:hover img,
.pricebase-public-compare .pricebase-compare-product-link--image:focus-visible img {
	transform: scale(1.025);
	opacity: 0.94;
}

.pricebase-comparison-label {
	display: inline-flex;
	align-items: center;
	padding: 3px 7px;
	border: 1px solid transparent;
	border-radius: 6px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.35;
}

.pricebase-compare-mobile__results .pricebase-comparison-label.is-pink {
	border-color: #f3a4c9;
	background: #fdf0f6;
	color: #9d174d;
}

.pricebase-compare-mobile__results .pricebase-comparison-label.is-teal {
	border-color: #a7ddd8;
	background: #eaf8f6;
	color: #176f69;
}

.pricebase-compare-table__rakuten {
	border: 1px solid var(--pricebase-compare-teal);
	background: var(--pricebase-compare-teal);
	color: #fff;
}

.pricebase-compare-table__rakuten:hover,
.pricebase-compare-table__rakuten:focus-visible {
	border-color: var(--pricebase-compare-teal-dark);
	background: var(--pricebase-compare-teal-dark);
	color: #fff;
}

.pricebase-compare-unavailable {
	color: #7c8786;
}

.pricebase-public-compare .pricebase-unit-price {
	display: inline-block;
	color: #245f5a;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}

.pricebase-public-compare .pricebase-quantity-label {
	display: inline-block;
	color: #455f5d;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.pricebase-public-compare .pricebase-variation-notice,
.pricebase-public-compare .pricebase-unit-price-notice {
	display: flex;
	flex-direction: column;
	gap: 3px;
	box-sizing: border-box;
	padding: 8px 9px;
	border: 1px solid #e6d4a7;
	border-radius: 8px;
	background: #fff8e8;
	color: #624f2c;
	font-size: 11px;
	line-height: 1.45;
	text-align: left;
}

.pricebase-public-compare .pricebase-variation-notice strong,
.pricebase-public-compare .pricebase-unit-price-notice strong {
	font-weight: 700;
}

.pricebase-public-compare .pricebase-variation-notice span,
.pricebase-public-compare .pricebase-unit-price-notice span {
	color: #756544;
}

.pricebase-public-compare .pricebase-unit-price-notice {
	display: block;
	width: fit-content;
	max-width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: #647472;
}

.pricebase-public-compare .pricebase-unit-price-notice summary {
	display: inline-flex;
	align-items: center;
	min-height: 27px;
	box-sizing: border-box;
	padding: 4px 8px;
	border: 1px solid #d7e6e4;
	border-radius: 999px;
	background: #f5f9f8;
	color: #526764;
	font-weight: 500;
	cursor: pointer;
	list-style: none;
}

.pricebase-public-compare .pricebase-unit-price-notice summary::-webkit-details-marker { display: none; }
.pricebase-public-compare .pricebase-unit-price-notice--selection summary { border-color: #c8e8e4; background: #effaf8; color: #347b77; }
.pricebase-public-compare .pricebase-unit-price-notice__detail { max-width: 280px; margin-top: 4px; padding: 6px 8px; border-radius: 7px; background: #f7f9f9; color: #667673; font-size: 10px; line-height: 1.45; }

.pricebase-public-compare .pricebase-quantity-debug {
	padding: 7px 8px;
	border: 1px dashed #91b9b5;
	border-radius: 7px;
	background: #f7fbfb;
	color: #344b49;
	font-size: 10px;
}

.pricebase-public-compare .pricebase-quantity-debug summary {
	font-weight: 700;
	cursor: pointer;
}

.pricebase-public-compare .pricebase-quantity-debug dl {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 2px 6px;
	margin: 6px 0 0;
}

.pricebase-public-compare .pricebase-quantity-debug dt,
.pricebase-public-compare .pricebase-quantity-debug dd {
	margin: 0;
	overflow-wrap: anywhere;
}

@media (max-width: 768px) {
	.pricebase-ai-compare-points-compact {
		width: 100%;
		margin: 0 0 12px;
		padding: 8px 10px;
	}

	.pricebase-ai-compare-comment {
		width: 100%;
		margin-bottom: 12px;
		padding: 13px 14px;
		box-sizing: border-box;
	}

	.pricebase-ai-compare-comment h2 {
		font-size: 15px;
	}

	.pricebase-ai-compare-comment__title {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		font-size: 13px;
	}

	.pricebase-ai-compare-comment__reasons,
	.pricebase-ai-compare-comment__points {
		display: block;
		font-size: 12px;
	}

	.pricebase-ai-compare-comment__reasons li,
	.pricebase-ai-compare-comment__points li {
		margin-top: 2px;
	}

	.pricebase-compare-mobile__card > .pricebase-ai-compare-badges {
		position: static;
		display: flex;
		align-items: flex-start;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 4px;
		margin: 4px 42px 8px 0;
		pointer-events: none;
	}

	.pricebase-compare-table-wrap {
		display: none;
	}

	.pricebase-compare-mobile {
		display: grid;
		gap: 16px;
	}

	.pricebase-compare-summary {
		display: block;
		margin-bottom: 16px;
		padding: 16px;
		border: 1px solid rgba(72, 189, 180, 0.42);
		border-radius: 14px;
		background: #fff;
		box-shadow: 0 5px 18px rgba(27, 85, 81, 0.1);
	}

	.pricebase-compare-summary > h2 {
		margin: 0;
		color: #205d59;
		font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
		font-size: 20px;
	}

	.pricebase-compare-summary__lead {
		margin: 3px 0 12px;
		color: #536361;
		font-size: 12px;
		font-weight: 700;
	}

	.pricebase-compare-summary__group {
		padding: 10px 0;
		border-top: 1px solid #e7efee;
	}

	.pricebase-compare-summary__group h3 {
		margin: 0 0 6px;
		color: #263c3a;
		font-size: 14px;
	}

	.pricebase-compare-summary__item {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		padding: 4px 0;
	}

	.pricebase-compare-summary__item strong {
		min-width: 0;
		color: #354846;
		font-size: 12px;
		line-height: 1.5;
	}

	.pricebase-public-compare .pricebase-compare-summary__item button,
	.pricebase-public-compare .pricebase-compare-summary__item button:visited,
	.pricebase-public-compare .pricebase-compare-summary__item button:hover,
	.pricebase-public-compare .pricebase-compare-summary__item button:focus,
	.pricebase-public-compare .pricebase-compare-summary__item button:focus-visible,
	.pricebase-public-compare .pricebase-compare-summary__item button:active {
		flex: 0 0 auto;
		padding: 4px 7px;
		border: 0 !important;
		border-radius: 0;
		background: transparent !important;
		box-shadow: none !important;
		color: #be185d !important;
		font: inherit;
		font-size: 11px;
		font-weight: 700;
		line-height: 1.5;
		text-decoration: underline;
		text-underline-offset: 2px;
		cursor: pointer;
	}

	.pricebase-public-compare .pricebase-compare-summary__item button:hover {
		color: #8e1048 !important;
	}

	.pricebase-public-compare .pricebase-compare-summary__item button:focus-visible {
		outline: 1px solid #238f88;
		outline-offset: 2px;
	}

	.pricebase-compare-summary__empty {
		margin: 0;
		color: #687573;
		font-size: 12px;
	}

	.pricebase-compare-mobile__card {
		position: relative;
		display: flex;
		align-items: stretch;
		flex-direction: column;
		gap: 12px;
		padding: 52px 16px 16px;
		border: 1px solid var(--pricebase-compare-border);
		border-radius: 14px;
		background: #fff;
		box-shadow: 0 5px 18px rgba(27, 85, 81, 0.1);
	}

	.pricebase-compare-mobile__card:focus {
		outline: 2px solid var(--pricebase-compare-teal);
		outline-offset: 3px;
	}

	.pricebase-compare-mobile__remove {
		position: absolute;
		top: 12px;
		right: 12px;
		width: 44px;
		height: 44px;
		min-height: 44px;
		margin: 0;
		padding: 0;
		border-radius: 50%;
		font-size: 22px;
	}

	.pricebase-compare-mobile__image {
		align-self: center;
		width: 180px;
		height: 180px;
		border-radius: 10px;
		background: #f7f7f7;
		object-fit: contain;
	}

	.pricebase-compare-mobile__card h3 {
		margin: 0;
		color: #243c3a;
		font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
		font-size: 18px;
		line-height: 1.5;
		text-align: center;
	}

	.pricebase-compare-mobile__details {
		margin: 0;
		border: 1px solid #e7efee;
		border-radius: 10px;
		overflow: hidden;
	}

	.pricebase-compare-mobile__detail {
		display: grid;
		grid-template-columns: 104px minmax(0, 1fr);
		margin: 0;
		border-bottom: 1px solid #e7efee;
	}

	.pricebase-compare-mobile__detail:last-child {
		border-bottom: 0;
	}

	.pricebase-compare-mobile__detail dt,
	.pricebase-compare-mobile__detail dd {
		margin: 0;
		padding: 10px;
	}

	.pricebase-compare-mobile__detail dt {
		background: #f4fbfa;
		color: #315e5b;
		font-size: 11px;
		font-weight: 700;
	}

	.pricebase-compare-mobile__detail dd {
		min-width: 0;
		color: #263c3a;
		font-size: 13px;
	}

	.pricebase-compare-mobile__detail .pricebase-unit-price {
		font-size: 15px;
	}

	.pricebase-compare-mobile__detail.is-winner-pink dd {
		background: #fdf0f6;
	}

	.pricebase-compare-mobile__detail.is-winner-teal dd {
		background: #eaf8f6;
	}

	.pricebase-compare-mobile__card > .pricebase-compare-table__rakuten,
	.pricebase-compare-mobile__card > .pricebase-compare-table__remove:not(.pricebase-compare-mobile__remove) {
		align-self: stretch;
	}

	.pricebase-compare-empty__desktop {
		display: none;
	}

	.pricebase-compare-empty__mobile {
		display: block;
	}
}

@media (hover: hover) and (pointer: fine) {
	.pricebase-compare-table tr:hover > th,
	.pricebase-compare-table tr:hover > td:not(.is-winner-pink):not(.is-winner-teal) {
		background: #f7fbfb;
	}

	.pricebase-compare-table tr:hover > td.is-winner-pink {
		background: #fbe5f0;
	}

	.pricebase-compare-table tr:hover > td.is-winner-teal {
		background: #def4f1;
	}
}

@media (max-width: 600px) {
	.pricebase-compare-toast {
		right: 10px;
		bottom: 88px;
		left: 10px;
		min-width: 0;
	}

	.pricebase-search-confirm__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.pricebase-compare-bar {
		right: 8px;
		bottom: 8px;
		left: 8px;
		align-items: stretch;
		min-height: 82px;
		padding: 8px 10px;
	}

	.pricebase-compare-bar__selection {
		max-width: calc(100% - 128px);
	}

	.pricebase-compare-bar__actions {
		align-items: stretch;
		flex-direction: column;
		gap: 5px;
	}

	.pricebase-compare-bar__submit,
	.pricebase-compare-bar__clear {
		min-height: 34px;
		padding: 6px 9px;
	}

	.pricebase-compare-undo,
	body.pricebase-compare-bar-visible .pricebase-compare-undo {
		right: 10px;
		bottom: 104px;
		left: 10px;
		justify-content: space-between;
	}

	.pricebase-public-compare__heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.pricebase-public-compare__heading h2 {
		font-size: 21px;
	}

	.pricebase-public-compare__heading-links {
		justify-content: flex-start;
		width: 100%;
	}

	.pricebase-compare-table {
		min-width: 700px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pricebase-public-card__compare,
	.pricebase-compare-bar__submit,
	.pricebase-compare-bar__clear,
	.pricebase-public-compare__back,
	.pricebase-compare-table__remove,
	.pricebase-compare-table__rakuten,
	.pricebase-compare-toast,
	.pricebase-compare-undo {
		transition: none;
	}

	.pricebase-compare-table--enter {
		animation: none;
	}
}
.pricebase-compare-alcohol-details {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px 12px;
	margin: 0;
	color: #304f4d;
}

.pricebase-compare-alcohol-details .pricebase-alcohol-detail {
	display: inline-flex;
	align-items: center;
	min-height: 20px;
	padding-left: 8px;
	border-left: 2px solid #81d8d0;
	font-size: 0.88rem;
	font-weight: 650;
	line-height: 1.35;
	white-space: nowrap;
}

@media (max-width: 768px) {
	.pricebase-compare-mobile__card > .pricebase-compare-alcohol-details {
		margin-bottom: -4px;
	}
}

.pricebase-compare-alcohol-details .pricebase-alcohol-detail:first-child {
	color: #176b66;
	font-weight: 800;
}

.pricebase-category-hub {
	margin-top: 28px;
	padding: 22px;
	border: 1px solid rgba(101, 210, 207, 0.42);
	border-radius: 22px;
	background: linear-gradient(135deg, #fff 0%, #f3ffff 100%);
}

.pricebase-category-hub__header h2,
.pricebase-category-hub__group h3 {
	margin-top: 0;
	color: #223454;
}

.pricebase-category-hub__header p {
	margin: 0 0 18px;
	color: #536875;
}

.pricebase-category-hub__groups {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
}

.pricebase-category-hub__group {
	padding: 15px;
	border: 1px solid rgba(101, 210, 207, 0.3);
	border-radius: 16px;
	background: #fff;
}

.pricebase-category-hub__group h3 {
	margin-bottom: 10px;
	font-size: 1.05rem;
}

.pricebase-category-hub__group ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pricebase-category-hub__group a {
	display: inline-flex;
	padding: 7px 11px;
	border: 1px solid #65d2cf;
	border-radius: 999px;
	color: #258f91;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
}

.pricebase-category-hub__group a:hover,
.pricebase-category-hub__group a:focus-visible {
	background: #efffff;
	text-decoration: underline;
}

@media (max-width: 600px) {
	.pricebase-category-hub { padding: 15px; border-radius: 18px; }
	.pricebase-category-hub__groups { grid-template-columns: 1fr; }
}
