/**
 * pysieclapki - "Twoje Łapki" (.pysiec-lapki*, własny layout, nie z makiety -
 * patrz komentarz w account.tpl) i "Regulamin programu Łapki"
 * (.pysiec-lapki-terms*, 1:1 z makiety, linie 2616-2687).
 */

/* --- Regulamin (1:1 z makiety) --- */

.pysiec-lapki-terms {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 32px) clamp(40px, 6vw, 76px);
  box-sizing: border-box;
}

.pysiec-lapki-terms__title {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 44px);
  letter-spacing: -.025em;
  margin: 14px 0 0;
  color: var(--pysiec-text, #1a1a18);
}

.pysiec-lapki-terms__version {
  font-size: 15px;
  color: var(--pysiec-espresso, #3e2f23);
  margin: 10px 0 0;
}

.pysiec-lapki-terms__layout {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.5vw, 32px);
  align-items: flex-start;
  margin-top: clamp(24px, 3vw, 36px);
}

.pysiec-lapki-terms__aside {
  flex: 1 1 240px;
  min-width: 0;
  background: var(--pysiec-cream, #e8dcc5);
  border-radius: 26px;
  padding: clamp(20px, 3vw, 28px);
  box-sizing: border-box;
  position: sticky;
  top: var(--pysiec-terms-sticky-top, 150px);
}

.pysiec-lapki-terms__aside-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(62, 47, 35, .65);
}

.pysiec-lapki-terms__facts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.pysiec-lapki-terms__fact {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: 18px;
  color: var(--pysiec-espresso, #3e2f23);
}

.pysiec-lapki-terms__aside-divider {
  height: 1px;
  background: rgba(62, 47, 35, .18);
  margin: 20px 0;
}

.pysiec-lapki-terms__aside-note {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(62, 47, 35, .75);
  margin: 14px 0 0;
}

.pysiec-lapki-terms__main {
  flex: 3 1 420px;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--pysiec-line-20, rgba(62, 47, 35, .2));
  border-radius: 26px;
  padding: clamp(22px, 3.2vw, 38px);
  box-sizing: border-box;
}

.pysiec-lapki-terms__tldr {
  background: rgba(143, 163, 92, .14);
  border-radius: 18px;
  padding: 18px 20px;
}

.pysiec-lapki-terms__tldr-title {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: 16px;
}

.pysiec-lapki-terms__tldr-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--pysiec-espresso, #3e2f23);
  margin: 8px 0 0;
  max-width: 70ch;
}

.pysiec-lapki-terms__section {
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid var(--pysiec-line-14, rgba(62, 47, 35, .14));
}

.pysiec-lapki-terms__section-title {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.01em;
  margin: 0;
}

.pysiec-lapki-terms__section-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--pysiec-espresso, #3e2f23);
  margin: 10px 0 0;
  max-width: 74ch;
}

.pysiec-lapki-terms__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--pysiec-line-14, rgba(62, 47, 35, .14));
}

.pysiec-lapki-terms__btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--pysiec-radius-pill, 999px);
  background: var(--pysiec-espresso, #3e2f23);
  color: var(--pysiec-bg, #faf8f3);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.pysiec-lapki-terms__btn:hover,
.pysiec-lapki-terms__btn:focus-visible {
  background: var(--pysiec-text, #1a1a18);
  color: var(--pysiec-bg, #faf8f3);
}

.pysiec-lapki-terms__btn--primary {
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
  background: var(--pysiec-brand, #b08858);
}

.pysiec-lapki-terms__btn--primary:hover,
.pysiec-lapki-terms__btn--primary:focus-visible {
  background: var(--pysiec-brand-hover, #9b7346);
}

.pysiec-lapki-terms__btn--outline {
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
  background: none;
  border: 1px solid var(--pysiec-espresso, #3e2f23);
  color: var(--pysiec-espresso, #3e2f23);
}

.pysiec-lapki-terms__btn--outline:hover,
.pysiec-lapki-terms__btn--outline:focus-visible {
  background: var(--pysiec-espresso, #3e2f23);
  color: var(--pysiec-bg, #faf8f3);
}

/* --- Twoje Łapki (własny layout - patrz account.tpl) --- */

.pysiec-lapki {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 32px) clamp(40px, 6vw, 76px);
  box-sizing: border-box;
}

.pysiec-lapki__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.pysiec-lapki__title {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: -.02em;
  margin: 0;
  color: var(--pysiec-text, #1a1a18);
}

.pysiec-lapki__terms-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--pysiec-brand, #b08858);
  text-decoration: none;
}

.pysiec-lapki__terms-link:hover {
  color: var(--pysiec-brand-hover, #9b7346);
}

.pysiec-lapki__balance-card {
  background: var(--pysiec-espresso, #3e2f23);
  color: var(--pysiec-bg, #faf8f3);
  border-radius: 26px;
  padding: clamp(24px, 3.5vw, 38px);
  margin-top: 20px;
}

.pysiec-lapki__balance-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.pysiec-lapki__balance-number {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1;
}

.pysiec-lapki__balance-label {
  font-size: 15px;
  opacity: .85;
}

.pysiec-lapki__progress-wrap {
  margin-top: 20px;
}

.pysiec-lapki__progress-labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  opacity: .85;
}

.pysiec-lapki__progress-track {
  height: 8px;
  border-radius: var(--pysiec-radius-pill, 999px);
  background: rgba(250, 248, 243, .2);
  margin-top: 8px;
  overflow: hidden;
}

.pysiec-lapki__progress-fill {
  height: 8px;
  border-radius: var(--pysiec-radius-pill, 999px);
  background: var(--pysiec-accent-green, #8fa35c);
}

.pysiec-lapki__tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(12px, 2vw, 16px);
  margin-top: clamp(20px, 3vw, 32px);
}

.pysiec-lapki__tier {
  background: #fff;
  border: 1px solid var(--pysiec-line-20, rgba(62, 47, 35, .2));
  border-radius: 20px;
  padding: 18px;
  text-align: center;
}

.pysiec-lapki__tier-cost {
  display: block;
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: 26px;
  color: var(--pysiec-text, #1a1a18);
}

.pysiec-lapki__tier-cost-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(62, 47, 35, .6);
}

.pysiec-lapki__tier-reward {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--pysiec-brand, #b08858);
}

.pysiec-lapki__history {
  background: #fff;
  border: 1px solid var(--pysiec-line-20, rgba(62, 47, 35, .2));
  border-radius: 22px;
  padding: clamp(20px, 2.8vw, 28px);
  margin-top: clamp(20px, 3vw, 32px);
  box-sizing: border-box;
}

.pysiec-lapki__history-title {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: 17px;
}

.pysiec-lapki__history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--pysiec-line-14, rgba(62, 47, 35, .14));
  font-size: 14px;
}

.pysiec-lapki__history-date {
  font-size: 12px;
  color: rgba(62, 47, 35, .65);
}

.pysiec-lapki__history-points {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  color: var(--pysiec-accent-green, #8fa35c);
  flex: 0 0 auto;
}

.pysiec-lapki__history-points--negative {
  color: #b3392f;
}

.pysiec-lapki__history-empty {
  font-size: 14px;
  color: var(--pysiec-espresso, #3e2f23);
  padding: 12px 0;
}

.pysiec-lapki__footnote {
  font-size: 12px;
  color: rgba(62, 47, 35, .7);
  margin: 16px 0 0;
}

.pysiec-lapki__footnote a {
  color: var(--pysiec-brand, #b08858);
  font-weight: 700;
}
