
.ffvd-points-card{
  --ffvd-green:#17482b;
  --ffvd-green-2:#215836;
  --ffvd-accent:#bf7827;
  --ffvd-bg:#f8f6ef;
  --ffvd-soft:#eef3ea;
  --ffvd-border:#dbe5d9;
  box-sizing:border-box;
  border:1px solid var(--ffvd-border);
  border-radius:18px;
  margin:0 0 22px;
  background:var(--ffvd-bg);
  color:#233328;
  font-family:inherit;
  box-shadow:0 6px 20px rgba(19,65,31,.05);
  overflow:hidden;
}
.ffvd-points-card *{box-sizing:border-box}
.ffvd-points-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:18px 20px;
  background:linear-gradient(180deg,#f0f5ed 0%, #ecf2e8 100%);
  border-bottom:1px solid var(--ffvd-border);
}
.ffvd-points-heading-wrap{flex:1 1 auto;min-width:0}
.ffvd-points-heading{
  font-weight:800;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:1.28em;
  color:var(--ffvd-green);
  margin:0 0 6px;
}
.ffvd-points-intro{margin:0;color:#48604f;line-height:1.55;max-width:780px}
.ffvd-points-symbol{
  width:34px;height:34px;min-width:34px;
  background:var(--ffvd-green);color:#fff;border-radius:50%;
  display:inline-flex;justify-content:center;align-items:center;
  font-size:16px;box-shadow:0 5px 12px rgba(23,72,43,.16)
}
.ffvd-points-balance-badge{
  display:flex;flex-direction:column;align-items:flex-end;justify-content:center;
  padding:12px 16px;border-radius:14px;border:1px solid rgba(23,72,43,.12);
  background:#fff;min-width:185px;box-shadow:0 3px 10px rgba(23,72,43,.04)
}
.ffvd-points-balance-label{font-size:.82em;font-weight:700;color:#607162;text-transform:uppercase;letter-spacing:.04em}
.ffvd-points-balance-badge strong{margin-top:4px;font-size:1.25em;color:var(--ffvd-green);line-height:1.2}
.ffvd-points-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px 20px 0}
.ffvd-points-stat{
  background:#fff;border:1px solid var(--ffvd-border);border-radius:16px;padding:16px 18px;
  box-shadow:0 3px 10px rgba(19,65,31,.03)
}
.ffvd-points-stat-label{display:block;font-size:.86em;font-weight:700;color:#617260;text-transform:uppercase;letter-spacing:.03em;margin-bottom:8px}
.ffvd-points-stat strong{display:block;font-size:1.5em;line-height:1.05;color:var(--ffvd-green);margin-bottom:4px}
.ffvd-points-stat small{display:block;color:#59685d;line-height:1.45}
.ffvd-points-panel{padding:18px 20px 20px}
.ffvd-points-form label{display:block;font-size:.95em;font-weight:700;margin:0 0 10px;color:var(--ffvd-green)}
.ffvd-points-control{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap}
.ffvd-points-control select{
  flex:2 1 240px;min-height:48px;border:1px solid #d5ddcf;background:#fff;color:#24352a;
  padding:10px 13px;border-radius:10px;font:inherit;box-shadow:none
}
.ffvd-points-control select:focus,.ffvd-points-control button.ffvd-points-button:focus{outline:none;box-shadow:0 0 0 3px rgba(191,120,39,.14);border-color:var(--ffvd-accent)}
.ffvd-points-control button.ffvd-points-button{
  background:var(--ffvd-green);color:#fff;border:1px solid var(--ffvd-green);padding:12px 18px;
  border-radius:10px;cursor:pointer;font-weight:700;flex:1 0 170px;box-shadow:none;font:inherit;min-height:48px
}
.ffvd-points-control button.ffvd-points-button:hover,.ffvd-points-control button.ffvd-points-button:focus{background:var(--ffvd-green-2);color:#fff;border-color:var(--ffvd-green-2)}
.ffvd-points-message{
  margin:0 0 14px;padding:13px 14px;border-radius:12px;border:1px solid var(--ffvd-border);background:#fff;line-height:1.5;color:#314035
}
.ffvd-points-message strong{color:var(--ffvd-green)}
.ffvd-points-message--info{background:#f4f8f2;border-color:#d9e7d6}
.ffvd-points-message--success{background:#edf7ef;border-color:#cfe4d3}
.ffvd-points-message--warn{background:#fbf5eb;border-color:#ecd9b9}
.ffvd-points-rule-list{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 10px}
.ffvd-points-rule-list span{
  display:inline-flex;align-items:center;gap:7px;background:var(--ffvd-soft);border:1px solid var(--ffvd-border);
  color:#314136;border-radius:999px;padding:9px 12px;font-size:.9em;font-weight:600;line-height:1.3
}
.ffvd-points-rule-list span::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--ffvd-accent);display:inline-block;flex:0 0 8px}
.ffvd-points-small{font-size:.88em;color:#5d695e;margin:10px 0 0!important;line-height:1.55}
.ffvd-points-card a{color:var(--ffvd-green);font-weight:650;text-decoration:underline}
.ffvd-points-card table{width:100%;margin-top:15px;background:transparent}

@media(max-width:700px){
  .ffvd-points-top{flex-direction:column;align-items:stretch}
  .ffvd-points-balance-badge{align-items:flex-start;min-width:0}
  .ffvd-points-summary-grid{grid-template-columns:1fr}
}
@media(max-width:540px){
  .ffvd-points-card{margin-bottom:18px}
  .ffvd-points-top{padding:16px}
  .ffvd-points-heading{font-size:1.14em}
  .ffvd-points-summary-grid{padding:14px 16px 0;gap:12px}
  .ffvd-points-panel{padding:16px}
  .ffvd-points-control{display:block}
  .ffvd-points-control select,.ffvd-points-control button.ffvd-points-button{width:100%;margin:0 0 10px}
  .ffvd-points-rule-list{gap:8px}
  .ffvd-points-rule-list span{width:100%;justify-content:flex-start}
}

/* v1.2.6 — independently collapsible loyalty panel in cart and checkout. */
.ffvd-points-card .ffvd-points-top-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:0 0 auto}
.ffvd-points-card button.ffvd-points-toggle{
  display:none;align-items:center;justify-content:center;gap:9px;flex:none;
  min-width:82px;min-height:44px;margin:0;padding:9px 14px;
  border:1px solid var(--ffvd-green);border-radius:10px;
  color:#fff;background:var(--ffvd-green);font-size:.9em;font-weight:750;
  font-family:inherit;line-height:1.2;cursor:pointer;box-shadow:none;
  transition:background-color .18s ease, border-color .18s ease
}
.ffvd-points-card.ffvd-points-card--js button.ffvd-points-toggle{display:inline-flex}
.ffvd-points-card button.ffvd-points-toggle:hover{background:var(--ffvd-green-2);border-color:var(--ffvd-green-2);color:#fff}
.ffvd-points-card button.ffvd-points-toggle:focus-visible{outline:3px solid var(--ffvd-accent);outline-offset:3px}
.ffvd-points-card .ffvd-points-toggle-chevron{
  width:7px;height:7px;display:block;flex:0 0 7px;
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(225deg) translate(-1px,-1px);
  transition:transform .18s ease
}
.ffvd-points-card.is-collapsed .ffvd-points-toggle-chevron{transform:rotate(45deg) translate(-1px,-1px)}
.ffvd-points-card .ffvd-points-body[hidden]{display:none!important}
.ffvd-points-card.is-collapsed .ffvd-points-top{border-bottom:0}
@media(max-width:700px){
  .ffvd-points-card .ffvd-points-top-actions{justify-content:space-between;width:100%}
  .ffvd-points-card .ffvd-points-top-actions .ffvd-points-balance-badge{flex:1 1 auto;min-width:0}
}
@media(max-width:375px){
  .ffvd-points-card button.ffvd-points-toggle{min-width:72px;padding:8px 10px}
}

/* v1.3.8 — Unified Fat Farmer controls.
   The balance tile and the adjacent Åbn/Luk control must be exactly the same
   size; both stay readable at mobile widths. Other point actions use a 48px
   control height. */
.ffvd-points-card .ffvd-points-top-actions {
  align-items: stretch;
  gap: 10px;
}
.ffvd-points-card .ffvd-points-top-actions .ffvd-points-balance-badge,
.ffvd-points-card .ffvd-points-top-actions button.ffvd-points-toggle {
  box-sizing: border-box !important;
  width: 132px;
  min-width: 132px;
  max-width: 132px;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px;
  flex: 0 0 132px;
  margin: 0 !important;
  border-radius: 11px !important;
  padding: 6px 10px !important;
}
.ffvd-points-card .ffvd-points-top-actions .ffvd-points-balance-badge {
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
}
.ffvd-points-card .ffvd-points-balance-label {
  font-size: 10px;
  line-height: 1.2;
}
.ffvd-points-card .ffvd-points-balance-badge strong {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.15;
  white-space: nowrap;
}
.ffvd-points-card .ffvd-points-top-actions button.ffvd-points-toggle {
  align-items: center;
  justify-content: center;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}
.ffvd-points-card .ffvd-points-control button.ffvd-points-button,
.ffvd-points-card .ffvd-points-control select {
  box-sizing: border-box !important;
  min-height: 48px !important;
  border-radius: 11px !important;
}
@media (max-width: 700px) {
  .ffvd-points-card .ffvd-points-top-actions {width: 100%; display: flex; gap: 10px;}
  .ffvd-points-card .ffvd-points-top-actions .ffvd-points-balance-badge,
  .ffvd-points-card .ffvd-points-top-actions button.ffvd-points-toggle {
    width: auto;
    min-width: 0;
    max-width: none;
    flex: 1 1 0;
  }
}

/* v1.4.0 – transparent estimate and payment-confirmed loyalty feedback. */
.ffvd-points-estimate{display:flex;flex-direction:column;gap:3px;padding:14px 16px;margin:14px 0 8px;background:#fff;border:1px solid #d6e5d4;border-left:4px solid #bf7827;border-radius:12px;color:#273c2d}
.ffvd-points-estimate>span{font-size:.85em;color:#536755;font-weight:700}
.ffvd-points-estimate strong{color:#17482b;font-size:1.2em;line-height:1.3}
.ffvd-points-estimate small{font-size:.82em;line-height:1.5;color:#596c5d}
.ffvd-points-earned{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:18px 20px;margin:18px 0;background:#eff6ed;border:1px solid #c6dfc8;border-radius:15px}
.ffvd-points-earned strong{color:#17482b;font-size:1.1em}
.ffvd-points-earned span{color:#445d4d;flex:1 1 180px}
.ffvd-points-earned a{padding:9px 13px;border-radius:9px;background:#17482b;color:#fff;text-decoration:none;font-weight:750}
.ffvd-points-earned a:hover,.ffvd-points-earned a:focus-visible{background:#215836;color:#fff;outline:2px solid #bf7827;outline-offset:2px}
