/* ---------- Pleasure taškai (inc/points.php, pleasure-promo Points\Loyalty; DESIGN.md tokens of main.css) ---------- */

/* Product page (2026-10-11, owner "čia neaišku, kas čia per taškai"): the points line on its own line under "Kaina su
   PVM" (main.css set it beside the VAT text after a dot), muted with the gift icon, then "Kas tai?": a Berry link for a
   logged-in customer, else a <details> whose card floats over the page (no layout jump). */
.product-points, .product-page .summary > .product-points { position: relative; display: block; flex: 1 1 100%; margin: 6px 0 0; padding-left: 22px; color: var(--c-muted); font-size: 13px; font-weight: 500; line-height: 1.5; font-variant-numeric: tabular-nums; }
.product-page .summary > .product-vat + .product-points::before { content: none; }
/* The text and "Kas tai?" flow as one sentence that wraps under itself, the icon hangs left of its first line. */
.product-points__icon { position: absolute; top: 2px; left: 0; display: grid; place-items: center; color: var(--c-muted); }
.product-points__icon .icon { width: 16px; height: 16px; }
.product-points__text { margin-right: 6px; }
.product-points__what { display: inline; margin: 0; padding: 2px 1px; color: var(--c-berry); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.product-points__what:hover { color: var(--c-berry-dark); }
.points-what { display: inline; }
.points-what > summary { list-style: none; }
.points-what > summary::-webkit-details-marker { display: none; }
.points-what > summary:focus-visible, .product-points a.product-points__what:focus-visible { outline: 3px solid var(--c-berry); outline-offset: 2px; border-radius: 4px; }
.points-what__pop { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; display: grid; gap: 6px; width: min(340px, 100%); padding: 14px 16px 12px; border-radius: var(--r-sm); background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line), var(--shadow-pop); color: var(--c-ink-2); font-size: 13px; font-weight: 500; line-height: 1.5; }
.points-what__line { display: block; }
.points-what__more { justify-self: start; display: inline-flex; align-items: center; min-height: 32px; color: var(--c-berry); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.points-what__more:hover { color: var(--c-berry-dark); }

/* Reviews: the label of a rewarded review. */
.review-points { margin: 6px 0 0; color: var(--c-muted); font-size: 12px; }

/* The cart and checkout row: a Line panel with the balance, the steps select and "Taikyti", the gifts for points. */
.points-row { display: grid; gap: 10px; margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-surface); color: var(--c-ink); font-size: 14px; }
.points-row[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.points-row p { margin: 0; }
.points-row__balance { font-weight: 700; font-variant-numeric: tabular-nums; }
.points-row__choice { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.points-row__label { margin: 0; font-size: 13px; font-weight: 700; }
.points-row__chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* A reward chip: the native radio over the whole chip (keyboard, touch and screen readers as a radio group). */
.points-chip { position: relative; display: inline-flex; min-width: 0; }
.points-chip__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.points-chip__text { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--c-line-strong); border-radius: var(--r-sm); background: var(--c-surface); color: var(--c-ink); font-size: 13px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.points-chip:hover .points-chip__text { border-color: var(--c-ink); }
.points-chip__input:checked + .points-chip__text { border-color: var(--c-ink); background: var(--c-ink); color: #fff; }
.points-chip__input:focus-visible + .points-chip__text { outline: 3px solid var(--c-berry); outline-offset: 2px; }
.woocommerce .points-row .points-row__apply, .points-row .points-row__apply { justify-self: start; min-height: 44px; padding: 0 18px; border-radius: var(--r-sm); background: var(--c-ink); color: #fff; font-size: 12px; letter-spacing: 0.14em; }
.woocommerce .points-row .points-row__apply:hover, .points-row .points-row__apply:hover { background: var(--c-berry); color: #fff; }
/* With points.js a chip applies at once; "Taikyti" is for the page without JavaScript. */
.points-js .points-row .points-row__apply { display: none; }
.points-row__note, .points-row__earn { color: var(--c-muted); font-size: 13px; line-height: 1.45; }
.points-row button:focus-visible, .points-row a:focus-visible { outline: 3px solid var(--c-berry); outline-offset: 2px; }
.points-row--guest { background: var(--c-soft); border-color: var(--c-soft-2); }
.points-row__invite { line-height: 1.5; }
.points-row__invite a { color: var(--c-berry); font-weight: 700; }
.points-row__invite a:hover { color: var(--c-berry-dark); }

/* Order received: what the order earns. */
.points-earn { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-surface); font-size: 14px; line-height: 1.5; }
.points-earn a { color: var(--c-berry); font-weight: 700; white-space: nowrap; }

/* Account page Taškai. */
.points-page { display: grid; gap: 32px; }
.points-page h2 { margin: 0 0 14px; font-size: 24px; line-height: 1.2; }
.points-page__staff { margin: 0; padding: 12px 16px; border: 1px solid var(--c-line); border-radius: var(--r-sm); color: var(--c-muted); font-size: 14px; }
.points-summary { display: grid; gap: 10px; padding: 22px 20px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-surface); }
.points-summary h2 { margin: 0; }
.points-summary__balance { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0; }
.points-summary__number { font-family: var(--f-serif); font-size: 46px; font-weight: 500; line-height: 0.95; font-variant-numeric: lining-nums tabular-nums; }
.points-summary__value { color: var(--c-muted); font-size: 15px; font-weight: 600; }
.points-summary__pending { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; color: var(--c-ink-2); font-size: 14px; }
.points-summary__expiry { margin: 0; color: var(--c-muted); font-size: 13px; }
.points-summary__cta { justify-self: start; margin-top: 4px; }
.points-how__list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.points-how__list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--c-line); font-size: 15px; line-height: 1.5; }
.points-how__list li:last-child { border-bottom: 1px solid var(--c-line); }
.points-how__num { font-family: var(--f-serif); font-size: 26px; font-weight: 600; line-height: 0.9; color: var(--c-champagne-ink); font-variant-numeric: lining-nums; }
.points-how__birthday { margin: 12px 0 0; font-size: 14px; }
.points-how__birthday a { color: var(--c-berry); font-weight: 700; }
.points-rewards__lead { margin: -4px 0 14px; color: var(--c-muted); font-size: 14px; }

/* The rewards catalogue (the account page and /taskai/): white cards with a Line ring and 16 px corners, two columns
   from 640 px, an odd last card across the row (no holes). */
.points-cards, .entry__content .points-cards { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) {
  .points-cards, .entry__content .points-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points-cards > .points-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.points-card, .entry__content .points-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 14px; align-content: start; margin: 0; padding: 14px; border-radius: var(--r-sm); background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); }
.points-card__media { grid-row: 1 / span 2; display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border-radius: var(--r-sm); background: var(--c-ph); color: var(--c-champagne-ink); }
.points-card__media .icon { width: 28px; height: 28px; }
.points-card__img, .entry__content .points-card__img { width: 100%; height: 100%; border-radius: 0; object-fit: contain; mix-blend-mode: multiply; }
.points-card--discount .points-card__media { background: var(--c-berry-tint); color: var(--c-berry); }
.points-card__badge { font-family: var(--f-badge); font-size: 20px; font-weight: 600; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: lining-nums; white-space: nowrap; }
.points-card__badge .pct { font-size: 0.7em; vertical-align: 0.3em; }
.points-card__body { display: grid; gap: 2px; min-width: 0; }
.points-card__name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.points-card__meta { color: var(--c-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.points-card__meta strong { color: var(--c-ink); font-weight: 700; }
.points-card__note { color: var(--c-muted); font-size: 12px; line-height: 1.4; }
.points-card__use { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -4px 0 -10px; color: var(--c-berry); font-size: 14px; font-weight: 700; text-decoration: none; }
.points-card__use::after { content: "\2192"; transition: transform 0.18s ease; }
.points-card__use:hover { color: var(--c-berry-dark); }
.points-card__use:hover::after { transform: translateX(3px); }
.points-card__progress { grid-column: 2; display: grid; gap: 6px; margin-top: 6px; }
.points-card__bar { display: block; height: 4px; overflow: hidden; border-radius: 2px; background: var(--c-soft-2); }
.points-card__bar > span { display: block; height: 100%; border-radius: 2px; background: var(--c-berry); }
.points-card__missing { color: var(--c-ink-2); font-size: 13px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .points-card__use::after { transition: none; } }

/* The public page /taskai/ ([pleasure_taskai]). */
.points-public__rate { font-size: 17px; font-weight: 600; }
.points-public .points-cards { margin: 16px 0 24px; }
.points-public__cta { margin-top: 24px; }

.points-history__empty { margin: 0; color: var(--c-muted); font-size: 14px; }
.points-history__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.points-history__table th { padding: 0 0 8px; border-bottom: 1px solid var(--c-ink); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-align: left; text-transform: uppercase; }
.points-history__table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.points-history__table .points-history__points { padding-right: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.points-history__points--minus { color: var(--c-muted); }
.points-history__type { display: block; font-weight: 700; }
.points-history__note, .points-history__pending { display: block; color: var(--c-muted); font-size: 13px; }
@media (max-width: 767px) {
  .points-history__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .points-history__table, .points-history__table tbody, .points-history__table tr, .points-history__table td { display: block; }
  .points-history__table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
  .points-history__table td { padding: 0; border: 0; }
  .points-history__table td:first-child { grid-column: 1 / -1; color: var(--c-muted); font-size: 12px; }
}

/* Paskyros duomenys: the birthday. */
.account-birthday { margin: 24px 0; padding: 0; border: 0; }
.account-birthday legend { margin: 0 0 4px; font-size: 13px; font-weight: 700; }
.account-birthday__hint { margin: 0 0 8px; color: var(--c-muted); font-size: 13px; }
.account-birthday select { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--c-line-strong); background: var(--c-surface); color: var(--c-ink); font: inherit; font-size: 15px; }

/* Account start page: with the Taškai card an odd last card spans the row (DESIGN.md, no holes). */
@media (min-width: 640px) { .account-cards > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
