/* Pick labels, compare tick box, compare bar and pop-up. Uses tokens.css. */

/* ---------- Pick label ---------- */
.gd-pick { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 3px 10px; border-radius: var(--gd-pill); font-size: 12px; font-weight: 700; background: var(--gd-tint); color: var(--gd-green-dark); }
.gd-pick::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.gd-pick.is-outdoor { background: color-mix(in srgb, var(--gd-navy) 12%, #fff); color: var(--gd-navy); }
.gd-pick.is-easy { background: color-mix(in srgb, var(--gd-brown) 12%, #fff); color: var(--gd-brown); }
.gd-pick.is-strong { background: color-mix(in srgb, var(--gd-purple) 12%, #fff); color: var(--gd-purple); }
.gd-pick.is-indoor { background: color-mix(in srgb, var(--gd-ink) 8%, #fff); color: var(--gd-ink); }
.single-product .gd-pick { margin: 0 0 12px; font-size: 13px; }

/* ---------- Compare tick box on cards ---------- */
.gd-compare { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--gd-ink-soft); cursor: pointer; user-select: none; }
.gd-compare input { width: 17px; height: 17px; margin: 0; accent-color: var(--gd-green); cursor: pointer; }

/* ---------- Bar ---------- */
.gd-cmp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--gd-ink); color: #fff; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 24px rgba(24, 36, 15, .25); }
.gd-cmp-bar__inner { max-width: var(--gd-wrap); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.gd-cmp-bar__list { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 300px; min-width: 0; }
.gd-cmp-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .12); border-radius: var(--gd-pill); padding: 5px 6px 5px 12px; font-size: 13px; font-weight: 600; }
.gd-cmp-chip button { border: 0; background: rgba(255, 255, 255, .18); color: #fff; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; line-height: 1; font-size: 15px; }
.gd-cmp-bar__msg { font-size: 13px; color: var(--gd-sage); }
.gd-cmp-bar .gd-btn[disabled] { opacity: .6; cursor: default; transform: none; }
.gd-cmp-bar__clear { border: 0; background: none; color: #c3ccc0; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }

/* ---------- Pop-up ---------- */
.gd-cmp { border: 0; border-radius: 20px; padding: 0; width: calc(100% - 32px); max-width: 860px; color: var(--gd-ink); box-shadow: 0 24px 60px rgba(24, 36, 15, .35); }
.gd-cmp::backdrop { background: rgba(24, 36, 15, .6); }
.gd-cmp__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px 8px; }
.gd-cmp__head h2 { margin: 0; font-size: 22px; font-weight: 800; }
.gd-cmp__close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--gd-tint); font-size: 22px; line-height: 1; cursor: pointer; color: inherit; }
.gd-cmp__scroll { overflow-x: auto; padding: 0 22px; }
.gd-cmp table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.gd-cmp th, .gd-cmp td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--gd-line); vertical-align: middle; }
.gd-cmp thead th { border-bottom: 0; vertical-align: bottom; }
.gd-cmp thead a { display: grid; gap: 6px; color: var(--gd-ink); text-decoration: none; font-weight: 800; font-size: 15px; }
.gd-cmp thead img { width: 100%; max-width: 160px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.gd-cmp tbody th { color: var(--gd-ink-soft); font-weight: 600; white-space: nowrap; width: 1%; }
.gd-cmp tr.is-diff td { background: color-mix(in srgb, var(--gd-sage) 16%, #fff); font-weight: 700; }
.gd-cmp tbody tr:last-child td, .gd-cmp tbody tr:last-child th { border-bottom: 0; padding-top: 14px; }
.gd-cmp td .gd-btn { padding: 10px 16px; font-size: 14px; }
.gd-cmp__note { margin: 0; padding: 10px 22px 18px; font-size: 12px; color: var(--gd-ink-soft); }

@media (max-width: 640px) {
	.gd-cmp-bar__list { flex-basis: 100%; }
	.gd-cmp__head, .gd-cmp__scroll, .gd-cmp__note { padding-left: 14px; padding-right: 14px; }
}
