.uv-cpg {
  --c1: #2d6bff;
  --c2: #20d3b0;
  --s: 16px;
  --k: 1;
  --fg: var(--theme-ink, #1d1d1f);
  --bg: var(--theme-page, #f5f5f7);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 1.2em 1.2em .9em;
  border-radius: 1.2em;
  background: var(--bg);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 8%, transparent), 0 18px 40px -26px rgba(0,0,0,.45);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  font-size: clamp(12px, var(--s), 24px);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
}

.uv-cpg .hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .7em;
  margin: 0 0 .7em;
  font-weight: 700;
}

.uv-cpg .hd h3 {
  min-width: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  overflow-wrap: anywhere;
}

.uv-cpg .ct {
  max-width: none;
  margin: 0;
  padding: 0;
  font-size: .8em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--fg) 55%, transparent);
  text-align: right;
}

.uv-cpg .br {
  height: .45em;
  flex-shrink: 0;
  margin-bottom: .8em;
  border-radius: 1em;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  overflow: hidden;
}

.uv-cpg .br > span {
  background: linear-gradient(90deg, var(--c1), var(--c2));
  transition: width calc(.6s / clamp(.5, var(--k), 2)) cubic-bezier(.22,1,.36,1);
}

.uv-cpg .packing-checklist,
.uv-cpg .checklist-items {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.uv-cpg .checklist-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: .3em;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: auto;
}

.uv-cpg .checklist-label {
  position: relative;
  display: flex;
  flex-direction: row;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: .7em;
  padding: .5em 0;
  font-size: inherit;
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
}

.uv-cpg input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.uv-cpg .bx {
  display: grid;
  flex: none;
  width: 1.3em;
  height: 1.3em;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.8px color-mix(in srgb, var(--fg) 24%, transparent);
  transition: background-color calc(.3s / clamp(.5, var(--k), 2)) cubic-bezier(.25,.1,.25,1), box-shadow calc(.3s / clamp(.5, var(--k), 2)) cubic-bezier(.25,.1,.25,1);
}

.uv-cpg .bx svg {
  width: .8em;
  height: .8em;
  color: #fff;
}

.uv-cpg .bx path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset calc(.3s / clamp(.5, var(--k), 2)) cubic-bezier(.25,.1,.25,1);
}

.uv-cpg .packing-checklist-item .packing-item-copy strong {
  font-size: .8125em;
  font-weight: 500;
  color: inherit;
}

.uv-cpg .packing-item-copy small {
  font-size: .6875em;
}

.uv-cpg .tx {
  transition: opacity calc(.3s / clamp(.5, var(--k), 2)) cubic-bezier(.25,.1,.25,1);
}

.uv-cpg input:checked + .bx {
  background: var(--c1);
  box-shadow: inset 0 0 0 1.8px var(--c1);
}

.uv-cpg input:checked + .bx path {
  stroke-dashoffset: 0;
}

.uv-cpg input:checked ~ .tx {
  opacity: .45;
}

.uv-cpg input:checked ~ .tx strong {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.uv-cpg input:focus-visible + .bx {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uv-cpg.is-complete .ti {
  color: var(--c2);
}

.uv-cpg .packing-item-remove {
  width: 44px;
  height: 44px;
  background: transparent;
  color: var(--theme-muted);
}

.trip-prep-card .packing-item-form input,
.trip-prep-card .packing-item-form .btn-secondary {
  min-height: 44px;
}

.trip-prep-card .packing-item-form input {
  font-size: 16px;
}

@media (hover: hover) and (pointer: fine) {
  .uv-cpg .checklist-label:hover .bx {
    box-shadow: inset 0 0 0 1.8px var(--c1);
  }

  .uv-cpg .packing-item-remove:hover {
    background: var(--theme-accent-soft);
    color: var(--theme-accent-dark);
  }
}

.uv-cpg.shopping-cart-checklist {
  border: 0;
}

.uv-cpg .shopping-cart-item {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0;
}

.uv-cpg .shopping-cart-checkbox {
  flex: none;
  width: 44px;
}

.uv-cpg .shopping-cart-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .7em;
}

.uv-cpg .shopping-cart-copy img {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
}

.uv-cpg .shopping-cart-name {
  display: flex;
  flex: 1;
  flex-direction: row;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  margin: 0;
  font: inherit;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
  touch-action: manipulation;
}

.uv-cpg .shopping-cart-item.is-purchased .tx {
  opacity: .45;
}

.uv-cpg .shopping-cart-item.is-purchased .shopping-cart-name {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.uv-cpg .shopping-cart-empty {
  color: color-mix(in srgb, var(--fg) 55%, transparent);
  font-size: .8em;
}

@media (prefers-reduced-motion: reduce) {
  .uv-cpg .br > span,
  .uv-cpg .bx,
  .uv-cpg .bx path,
  .uv-cpg .tx {
    transition: none;
  }
}
