/* =========================
   PetDentify · Get Your Tag (page)
   Depends on: base.css, components.css, header.css
   ========================= */

/* Page rhythm */
.page-get-your-tag .section { padding-top: 14px; padding-bottom: 24px; }

/* Eyebrow & headings */
.page-get-your-tag .eyebrow {
  display: block; margin: 0;
  font-size: 14px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; color: var(--green);
}
.page-get-your-tag h1 { margin-top: 2px; margin-bottom: 8px; }

/* Guarantee strip (green box) */
.guarantee-strip{
  display:flex; align-items:center; gap:10px;
  background:#ECFDF5;
  border:1px solid #BBF7D0;
  color:#065F46;
  padding:10px 14px;
  border-radius:12px;
  font-size:14px;
}
.guarantee-strip::before{
  content:"✓"; font-weight:800; color:var(--green);
}

/* Cards grid */
.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 12px;
  align-items: stretch;
}

/* ---------- Tokens ---------- */
:root {
  --pcard-sub-lh: 1.35;
  --pcard-sub-lines: 2;
  --pcard-sub-h: calc(var(--pcard-sub-lines) * var(--pcard-sub-lh) * 1em);

  --radius-10: 10px;
  --radius-12: 12px;
  --shadow-card: 0 1px 2px rgba(2,6,12,.04);
  --shadow-card-hover: 0 10px 28px rgba(2,6,12,.10);

  --preview-h: 116px;
}
@media (max-width: 640px) {
  :root {
    --pcard-sub-lines: 3;
    --pcard-sub-h: calc(var(--pcard-sub-lines) * var(--pcard-sub-lh) * 1em);
  }
}

/* ---------- Card base ---------- */
.pcard{
  display: grid;
  grid-template-rows: auto var(--pcard-sub-h) 1fr auto;
  row-gap: 8px;
  height: 100%;
  border: 1px solid #e6e9ef;
  border-radius: var(--radius-12);
  padding: 10px 12px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.pcard:hover { border-color: #e3e8ee; box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }

/* Header row */
.pcard-head{
  grid-row: 1;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0 0 6px;
}
.pcard h4 { margin: 0; font-weight: 800; font-size: 18px; letter-spacing: .005em; }
.pcard .price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }

/* Subtitle row */
.pcard .sub{
  grid-row: 2;
  font-size: 12px;
  line-height: var(--pcard-sub-lh);
  height: var(--pcard-sub-h);
  margin: 0 0 10px;
  color: #5b6470;

  display: -webkit-box;
  -webkit-line-clamp: var(--pcard-sub-lines);
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

/* Middle content band */
.pcard .pre-color{
  grid-row: 3;
  min-height: 0;
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 0;
}

/* Footer */
.pcard .pcard-footer{ grid-row: 4; margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.pcard-footer .btn { width: 100%; height: 44px; }
.btn-row { display: flex; gap: 8px; }
.btn-row .btn { flex: 1 1 auto; }

/* ---------- Starter alignment ---------- */
#starter .pd-preview.in-card { margin-bottom: 0; }

#starter .pcard-footer {
  border-top: 1px solid #e6e9ef;
  margin-top: 14px;   /* adjust up/down 1px if needed */
  padding-top: 10px;
}

#starter .selected-label {
  order: -1;
  margin-bottom: 6px;
  min-height: 20px;
  text-align: center;
}

/* Additional tags header tweaks */
[aria-labelledby="addons-title"] .price { margin-bottom: 2px; }
[aria-labelledby="addons-title"] .sub  { margin: 0 0 10px; line-height: var(--pcard-sub-lh); }

/* Annual Renewal */
#annual-renewal{ background:#f7faff; border:1px solid #e6e9ef; }

/* Swatches */
.pcard label.fw-800 { display: block; font-weight: 800; margin: 12px 0 6px; }
.swatch-row { display: flex; gap: 8px; margin: 8px 0 6px; }
.swatch {
  width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #f8fafc; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.swatch .dot { width: 14px; height: 14px; border-radius: 50%; }
.swatch[data-color="green"]  .dot{ background:#22c55e; }
.swatch[data-color="blue"]   .dot{ background:#3b82f6; }
.swatch[data-color="pink"]   .dot{ background:#ec4899; }
.swatch[data-color="red"]    .dot{ background:#ef4444; }
.swatch[data-color="yellow"] .dot{ background:#eab308; }
.swatch:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(2,6,12,.10); }
.swatch:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.swatch.active { outline: 2px solid var(--green); box-shadow: 0 0 0 3px rgba(7,192,103,.18); }

/* Preview */
.pd-preview.in-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: var(--preview-h);
  text-align: center;
  font-size: 14px;
  color: #0f172a;
}
.pd-preview.in-card img {
  display: block;
  margin-bottom: 6px;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: var(--preview-h);
  object-fit: contain;
}

/* Selected labels */
#starter .selected-label,
[aria-labelledby="addons-title"] .selected-label {
  text-align: center; font-size: 12px; line-height: 1.2;
}
.selected-label span { font-weight: 800; }

/* Reassurance strip */
.reassurance-list {
  list-style: none; display: flex; justify-content: center; gap: 18px;
  padding: 0; margin: 14px auto; font-size: 13px; font-weight: 600; color: #0b0b0b;
}
.reassurance-list li::before { content: "✓"; margin-right: 6px; color: var(--green); font-weight: 800; }
@media (max-width: 640px) { .reassurance-list { flex-direction: column; gap: 10px; text-align: center; } }

/* Buttons */
.btn, .pcard-footer .btn, .btn-row .btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.btn[disabled], .btn.is-loading { opacity: .6; cursor: not-allowed; pointer-events: none; }

/* Prevent awkward wrap in 'Go to checkout' */
.btn .btn-label { white-space: nowrap; }
.btn .badge { margin-left: 8px; flex-shrink: 0; }

/* Add-on matrix */
.addon-matrix {
  display: grid; gap: 8px; margin: 8px 0;
  border: 1px dashed #e6e9ef; border-radius: 12px; padding: 8px; background: #fafcff;
}
.addon-row {
  display: flex; align-items: center; gap: 8px; padding: 2px 0;
}
.addon-row:not(:last-child) { border-bottom: 1px dashed #eef2f7; }
.addon-row .swatch { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); }
.addon-row .dot { width: 12px; height: 12px; border-radius: 50%; display: block; }
.addon-row .color-name { min-width: 64px; font-weight: 600; color: #0f172a; }
.addon-row .qty {
  margin-left: auto; display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.addon-row .qty .plusminus {
  min-width: 36px; height: 36px; background: #fff; border: 0; cursor: pointer;
  border-left: 1px solid #e6e9ef; border-right: 1px solid #e6e9ef;
}
.addon-row .qty .qty-input {
  width: 56px; height: 36px; text-align: center; border: 0; font-weight: 700; background: #fff;
  font-size: 14px;
  -moz-appearance: textfield;
}
.addon-row .qty .qty-input::-webkit-outer-spin-button,
.addon-row .qty .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Totals strip */
.addon-summary {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding: 8px 10px;
  border: 1px solid #eef2f7; background: #fff; border-radius: var(--radius-10);
}
.addon-summary .sub { margin: 0; }
.addon-summary .badge { margin-left: auto; }
.badge {
  display: inline-block; min-width: 20px; padding: 3px 8px; border-radius: 999px;
  font-size: 12px; background: #0FA958; color: #fff; margin-left: 8px; font-weight: 700;
}

/* Visually-hidden helper */
.sr-only {
  position:absolute!important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Accessibility & motion preferences */
@media (prefers-reduced-motion: reduce) {
  .pcard, .swatch { transition: none; }
  .pcard:hover { transform: none; box-shadow: var(--shadow-card); }
  .swatch:hover { transform: none; box-shadow: none; }
}

/* Focus affordance on +/- controls */
.plusminus:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }