/* ═══════════════════════════════════════════════════════
   FK Subscription UX v1.7
   Design system: minimal B&W, clear interaction feedback,
   button hierarchy: Skip (primary) › Pause (secondary) › Cancel (ghost/hidden)
   ═══════════════════════════════════════════════════════ */

/* ── Reset scroll lock ── */
body.fk-no-scroll { overflow: hidden; }

/* ══════════════════════════════════════
   ACTION BAR — the subscription page block
   ══════════════════════════════════════ */
.fk-action-bar {
  margin-top: 24px;
  padding: 20px 0 6px;
  border-top: 1px solid #e8e8e8;
}

.fk-action-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #b0b0b0;
  margin: 0 0 14px;
}

/* Two primary buttons side by side, skip first */
.fk-primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.fk-primary-actions--single {
  grid-template-columns: 1fr;
  max-width: 280px;
}

/* ── SKIP — highest priority: solid black, full weight ── */
.fk-btn--manage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 20px;
  background: #1a1a1a;
  color: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: background .15s, transform .1s, box-shadow .15s;
}
.fk-btn--manage:hover {
  background: #333;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
  transform: translateY(-1px);
}
.fk-btn--manage:active {
  transform: translateY(1px) scale(.98);
  box-shadow: none;
  background: #000;
}
.fk-btn--manage.is-loading { pointer-events: none; opacity: .6; }
.fk-btn--manage:disabled   { opacity: .35; cursor: default; transform: none; box-shadow: none; }
.fk-btn--manage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.15);
  opacity: 0;
  transition: opacity .1s;
}
.fk-btn--manage:active::after { opacity: 1; }

/* ── RESUME — same weight as pause ── */
.fk-btn--resume {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 16px;
  background: #1a1a1a;
  color: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background .15s, transform .1s, box-shadow .15s;
  position: relative;
  overflow: hidden;
}

.fk-btn--resume:hover  { background: #333; box-shadow: 0 3px 10px rgba(0,0,0,.18); transform: translateY(-1px); }
.fk-btn--resume:active { transform: translateY(1px) scale(.98); box-shadow: none; background: #000; }
.fk-btn--resume:disabled { opacity: .35; cursor: default; transform: none; }

/* ── CANCEL — lowest priority: barely there ── */
.fk-cancel-row {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.fk-btn--cancel-trigger {
  background: none;
  border: none;
  font-size: 11px;
  color: #c8c8c8;
  cursor: pointer;
  padding: 6px 10px;
  letter-spacing: .02em;
  transition: color .2s;
  text-decoration: none;
}

.fk-btn--cancel-trigger:hover {
  color: #888;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Status note (pending-cancel) */
.fk-status-note { font-size: 13px; color: #999; margin: 0 0 12px; line-height: 1.5; }

/* ── Hide WCS native cancel ── */
.woocommerce-MyAccount-content .subscription_details a.cancel,
.woocommerce-MyAccount-content .woocommerce-subscription-actions a.cancel {
  display: none !important;
}

/* ══════════════════════════════════════
   TOAST — inline feedback, no modal needed
   Slides in from bottom of action bar
   ══════════════════════════════════════ */
.fk-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 0 14px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .3s ease, opacity .3s ease, padding .3s ease;
  position: relative;
  z-index: 9999;
}

.fk-toast.is-visible {
  max-height: 120px;
  opacity: 1;
  padding: 12px 14px;
}

/* Checkmark prefix baked in via pseudo */
.fk-toast::before {
  content: '✓';
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  opacity: .7;
}

/* ══════════════════════════════════════
   OVERLAY + MODAL
   ══════════════════════════════════════ */
.fk-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,.45);
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.fk-overlay.is-open { opacity: 1; pointer-events: auto; }

.fk-modal {
  background: #fff;
  border-radius: 6px;
  width: 100%;
  max-width: 462px; /* FIX 2: 10% wider to prevent horizontal scroll */
  padding: 32px 28px 24px;
  position: relative;
  transform: translateY(14px) scale(.98);
  transition: transform .22s ease, opacity .22s ease;
  opacity: 0;
  border: 1px solid #e8e8e8;
  box-shadow: 0 16px 48px rgba(0,0,0,.14);
  max-height: 90vh;
  overflow-y: auto;
}

.fk-overlay.is-open .fk-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.fk-modal__close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #c0c0c0;
  padding: 6px;
  border-radius: 3px;
  transition: color .14s, background .14s;
}
.fk-modal__close:hover { color: #1a1a1a; background: #f4f4f4; }
.fk-modal__close:active { background: #eaeaea; }

.fk-modal__step {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}
.fk-modal__step.is-active {
  display: block;
  animation: fk-step-in .18s ease forwards;
}
@keyframes fk-step-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Loader ── */
.fk-loader { display: none; text-align: center; padding: 32px 0; }
.fk-loader.is-visible { display: block; }

.fk-spinner {
  display: inline-block;
  width: 22px; height: 22px;
  border: 2.5px solid #e8e8e8;
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: fk-spin .65s linear infinite;
  margin-bottom: 10px;
}
@keyframes fk-spin { to { transform: rotate(360deg); } }
.fk-loader p { font-size: 13px; color: #aaa; margin: 0; }

/* ── Modal typography ── */
.fk-modal__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 5px;
  color: #1a1a1a;
  letter-spacing: -.01em;
}
.fk-modal__subtitle {
  font-size: 13px;
  color: #888;
  margin: 0 0 20px;
  line-height: 1.55;
}
.fk-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* ══════════════════════════════════════
   DURATION OPTIONS (pause modal)
   ══════════════════════════════════════ */
.fk-dur-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }

.fk-dur-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border: 1.5px solid #e8e8e8;
  border-radius: 4px;
  cursor: pointer;
  background: #fff;
  text-align: left;
  width: 100%;
  transition: border-color .14s, background .14s, transform .1s, box-shadow .1s;
  position: relative;
}

/* Hover: border goes black + faint lift */
.fk-dur-option:hover {
  border-color: #1a1a1a;
  background: #fafafa;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

/* Active/clicked: sink */
.fk-dur-option:active {
  transform: translateY(1px);
  box-shadow: none;
  background: #f0f0f0;
  border-color: #1a1a1a;
}

/* Selected state */
.fk-dur-option.is-selected {
  border-color: #1a1a1a;
  background: #f7f7f7;
}

/* Checkmark on selected */
.fk-dur-option.is-selected::after {
  content: '✓';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
}

.fk-dur-option__icon {
  width: 36px; height: 36px;
  border: 1.5px solid #e8e8e8;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  color: #666;
  background: #fafafa;
  transition: border-color .14s, background .14s;
}
.fk-dur-option:hover .fk-dur-option__icon,
.fk-dur-option.is-selected .fk-dur-option__icon {
  border-color: #1a1a1a;
  background: #fff;
  color: #1a1a1a;
}

.fk-dur-option__title { display: block; font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 2px; }
.fk-dur-option__hint  { font-size: 11px; color: #aaa; line-height: 1.4; }

/* ══════════════════════════════════════
   SURVEY OPTIONS
   ══════════════════════════════════════ */
.fk-survey__options { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }

.fk-survey__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1.5px solid #e8e8e8;
  border-radius: 4px;
  cursor: pointer;
  background: #fff;
  text-align: left;
  width: 100%;
  transition: border-color .14s, background .14s, transform .1s;
  position: relative;
}

.fk-survey__option:hover {
  border-color: #ccc;
  background: #fafafa;
  transform: translateX(2px);
}

.fk-survey__option:active {
  transform: translateX(0);
  background: #f0f0f0;
}

.fk-survey__option.is-selected {
  border-color: #1a1a1a;
  background: #f7f7f7;
}

.fk-survey__option.is-selected::after {
  content: '✓';
  position: absolute;
  right: 13px;
  font-size: 12px;
  font-weight: 700;
  color: #1a1a1a;
}

.fk-survey__option-text strong { display: block; font-size: 13px; font-weight: 600; color: #1a1a1a; }
.fk-survey__option-text span   { font-size: 11px; color: #aaa; }

.fk-survey__detail {
  display: none;
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e8e8e8;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 72px;
  margin-top: 8px;
  box-sizing: border-box;
  transition: border-color .14s;
}
.fk-survey__detail.is-visible { display: block; }
.fk-survey__detail:focus { outline: none; border-color: #1a1a1a; }

/* ══════════════════════════════════════
   OFFER SCREEN
   ══════════════════════════════════════ */
.fk-offer__headline { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: #1a1a1a; letter-spacing: -.01em; }
.fk-offer__body     { font-size: 13px; color: #777; line-height: 1.6; margin: 0 0 20px; }
.fk-offer__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
/* Secondary "Avbryt ändå" button — visually muted, clearly tertiary */
.fk-offer__actions .fk-btn--ghost:last-child {
  color: var(--color-text-tertiary);
  border-color: transparent;
  font-size: 12px;
  padding: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fk-offer__actions .fk-btn--ghost:last-child:hover {
  color: var(--color-text-primary);
  background: transparent;
}

/* ══════════════════════════════════════
   CONFIRM SCREEN
   ══════════════════════════════════════ */
.fk-confirm__icon  { font-size: 32px; margin: 0 0 12px; display: block; }
.fk-confirm__title { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: #1a1a1a; }
.fk-confirm__body  { font-size: 13px; color: #777; line-height: 1.6; margin: 0 0 20px; }

/* ══════════════════════════════════════
   SHARED MODAL BUTTONS
   ══════════════════════════════════════ */
.fk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background .14s, transform .1s, box-shadow .14s, opacity .14s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: .01em;
}

/* Active press feedback for ALL modal buttons */
.fk-btn:active { transform: scale(.97); }

/* Primary — solid black */
.fk-btn--primary { background: #1a1a1a; color: #fff; border: none; }
.fk-btn--primary:hover {
  background: #333;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
  transform: translateY(-1px);
}
.fk-btn--primary:active  { transform: translateY(1px) scale(.97); box-shadow: none; background: #000; }
.fk-btn--primary:disabled { opacity: .30; cursor: default; transform: none; box-shadow: none; }

/* Ghost — outlined */
.fk-btn--ghost { background: none; border: 1.5px solid #ddd; color: #888; }
.fk-btn--ghost:hover { background: #f7f7f7; border-color: #bbb; color: #444; }
.fk-btn--ghost:active { background: #eee; transform: scale(.97); }

/* Danger — red outlined, used only on final cancel confirm */
.fk-btn--danger { background: none; border: 1.5px solid #d9534f; color: #d9534f; }
.fk-btn--danger:hover { background: #fef5f5; box-shadow: 0 2px 6px rgba(217,83,79,.15); }
.fk-btn--danger:active { background: #fde8e8; transform: scale(.97); }

/* Full width inside offer actions */
.fk-offer__actions .fk-btn { width: 100%; }

/* ══════════════════════════════════════
   LOADING STATE ON MODAL BUTTONS
   Spinner replaces text when .is-loading
   ══════════════════════════════════════ */
.fk-btn.is-loading {
  pointer-events: none;
  color: transparent;
}
.fk-btn.is-loading::before {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: rgba(255,255,255,.9);
  border-radius: 50%;
  animation: fk-spin .65s linear infinite;
}
.fk-btn--ghost.is-loading::before,
.fk-btn--danger.is-loading::before {
  border-color: rgba(0,0,0,.15);
  border-top-color: rgba(0,0,0,.6);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 520px) {
  .fk-modal { padding: 24px 18px 20px; }
  .fk-primary-actions { grid-template-columns: 1fr; }
  .fk-btn--manage { order: -1; } /* Manage button first on mobile */
}

/* ══════════════════════════════════════
   VÄLJ MATLÅDOR — kundfliken
   ══════════════════════════════════════ */
.fk-matlador-page {
  padding: 8px 0 24px;
}

.fk-matlador-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 6px;
}

.fk-matlador-desc {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 480px;
}

.fk-btn--matlador {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: #1a1a1a;
  color: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  letter-spacing: .01em;
}
.fk-btn--matlador:hover {
  background: #333;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(0,0,0,.18);
  transform: translateY(-1px);
}
.fk-btn--matlador:active {
  transform: translateY(1px) scale(.98);
  box-shadow: none;
}

.fk-matlador-hint {
  font-size: 12px;
  color: #aaa;
  margin-top: 12px;
}

.fk-matlador-unconfigured {
  padding: 16px;
  background: #fdf6e8;
  border: 1px solid #f0d89a;
  border-radius: 4px;
  font-size: 13px;
  color: #8a5500;
  max-width: 480px;
}

/* ══════════════════════════════════════
   DATO-VÄLJARE — leveransdatum för skip/pause
   ══════════════════════════════════════ */
.fk-date-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.fk-dates-loading,
.fk-dates-empty {
  font-size: 13px;
  color: #aaa;
  padding: 16px 0;
  text-align: center;
}

.fk-date-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  cursor: pointer;
  background: #fff;
  text-align: left;
  width: 100%;
  font-family: inherit;
  transition: border-color .14s, background .14s, transform .1s;
  position: relative;
}

.fk-date-option:hover {
  border-color: #1a1a1a;
  background: #f9f9f9;
  transform: translateX(2px);
}

.fk-date-option:active {
  transform: translateX(0) scale(.99);
  background: #f0f0f0;
}

/* Första alternativet (närmast i tid) — subtil highlight */
/* First option: highlighted left border + 'Närmast' tag INSIDE the delivery column */
.fk-date-option--first {
  border-color: #1a1a1a;
  background: #fafafa;
  border-left: 3px solid #1a1a1a;
}

/* Närmast badge — removed from absolute position to prevent text overlap */
.fk-date-option--first::before { display: none; }

/* Vald: markeras med bock */
.fk-date-option--selected {
  border-color: #1a1a1a;
  background: #f5f5f5;
}

.fk-date-option--selected::after {
  content: '✓';
  position: absolute;
  right: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
}

.fk-date-option--first.fk-date-option--selected::before {
  display: none; /* Dölj "Närmast" när vald */
}

.fk-date-weekday {
  font-size: 12px;
  color: #888;
  text-transform: capitalize;
  min-width: 64px;
}

.fk-date-date {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  flex: 1;
  padding-left: 10px;
}

/* Betalnings-not under listan */
.fk-date-payment-note {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 4px;
  line-height: 1.5;
}

.fk-current-delivery {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  border: 0.5px solid var(--color-border-tertiary);
  margin-bottom: 12px;
  font-size: 12px;
}
.fk-current-label {
  color: var(--color-text-tertiary);
  font-weight: 500;
}
.fk-current-value {
  color: var(--color-text-primary);
  font-weight: 600;
}

/* ══════════════════════════════════════
   DATO-VÄLJARE v2.1 — leverans + betalning tydligt
   ══════════════════════════════════════ */

/* Omstrukturerat datokort: leverans till vänster, betalning till höger */
.fk-date-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
}

/* Vänster sida: leveransdag */
.fk-date-delivery {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

/* Höger sida: betalningsdag — subtil men tydlig */
.fk-date-payment {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

/* Etikett ovanför värdet */
.fk-date-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #aaa;
  line-height: 1;
}

/* Leveransdatumvärde — stort och tydligt */
.fk-date-value {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

/* Betalningsdatumvärde — lite mindre, sekundär info */
.fk-date-payval {
  font-size: 12px;
  font-weight: 500;
  color: #666;
  line-height: 1.2;
}

/* Vald: betalningsfärg mörknar */
.fk-date-option--selected .fk-date-payval {
  color: #1a1a1a;
}

/* Hur-det-fungerar-not */
.fk-date-payment-note {
  font-size: 12px;
  color: #888;
  line-height: 1.6;
  padding: 8px 12px;
  background: #f9f9f9;
  border-radius: 3px;
  border-left: 2px solid #e0e0e0;
  margin-bottom: 6px;
}
.fk-date-payment-note strong {
  color: #555;
}

/* Separerarlinje mellan leverans och betalning i kortet */
.fk-date-option::before {
  content: '';
  width: 1px;
  height: 28px;
  background: #e8e8e8;
  flex-shrink: 0;
}
.fk-date-option--selected::before,
.fk-date-option:hover::before {
  background: #ccc;
}

/* ── Pausa tills vidare — längst ned i listan, visuellt separerat ── */
.fk-date-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 6px;
  color: var(--color-text-tertiary);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.fk-date-divider::before,
.fk-date-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border-tertiary);
}

.fk-date-option--indefinite {
  border-color: var(--color-border-tertiary);
  border-style: dashed;
  background: var(--color-background-secondary);
  opacity: .85;
}

.fk-date-option--indefinite:hover {
  border-color: #1a1a1a;
  border-style: solid;
  background: #f5f5f5;
}

.fk-date-option--indefinite .fk-date-label {
  color: #999;
}

.fk-date-option--indefinite .fk-date-value {
  font-size: 13px;
  font-weight: 500;
  color: #555;
}

.fk-date-option--indefinite .fk-date-payval {
  color: #999;
  font-style: italic;
}

.fk-date-option--indefinite.fk-date-option--selected {
  border-color: #1a1a1a;
  border-style: solid;
  background: #f0f0f0;
}

/* ══════════════════════════════════════
   TIPSA EN VÄN — kundflik
   ══════════════════════════════════════ */
.fk-referral-page { max-width: 560px; }

.fk-referral-hero {
  margin-bottom: 24px;
}
.fk-referral-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.fk-referral-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.65;
}
.fk-referral-desc strong { color: #1a1a1a; }

/* Kod-box */
.fk-referral-code-box {
  background: #f8f7f5;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.fk-referral-code-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 10px;
}
.fk-referral-code-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.fk-referral-code {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #1a1a1a;
  font-family: 'DM Mono', 'Courier New', monospace;
}
.fk-btn--copy {
  padding: 7px 16px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .13s;
  flex-shrink: 0;
}
.fk-btn--copy:hover { opacity: .75; }
.fk-btn--copied { background: #1a6b3c !important; }

.fk-referral-code-hint {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}

/* Dela-knappar */
.fk-referral-share { margin-bottom: 20px; }
.fk-referral-share-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 10px;
}
.fk-referral-share-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fk-share-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .13s, transform .1s;
  border: none;
  font-family: inherit;
}
.fk-share-btn:hover { opacity: .80; transform: translateY(-1px); }
.fk-share-btn:active { transform: scale(.97); }
.fk-share-btn--wa    { background: #25D366; color: #fff; }
.fk-share-btn--email { background: #1a1a1a; color: #fff; }
.fk-share-btn--copy  { background: #fff; color: #1a1a1a; border: 1.5px solid #ddd; }
.fk-share-btn--copy:hover { border-color: #1a1a1a; opacity: 1; }

/* Hemlig gåva */
.fk-referral-gift {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #fffbf0;
  border: 1px solid #f0e0a0;
  border-radius: 6px;
  margin-bottom: 20px;
}
.fk-referral-gift__ico { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.fk-referral-gift strong { display: block; font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 3px; }
.fk-referral-gift p { font-size: 12px; color: #888; line-height: 1.55; }

/* Statistik */
.fk-referral-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.fk-referral-stat {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 14px 16px;
  text-align: center;
}
.fk-referral-stat__num {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.fk-referral-stat__lbl {
  font-size: 11px;
  color: #aaa;
  letter-spacing: .04em;
}

/* Historik-tabell */
.fk-referral-history-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 10px;
}
.fk-referral-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.fk-referral-history-table th {
  padding: 8px 12px;
  background: #f8f8f8;
  border-bottom: 1px solid #e8e8e8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #aaa;
  text-align: left;
}
.fk-referral-history-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #f4f4f4;
  color: #444;
}
.fk-referral-history-table tr:last-child td { border-bottom: none; }

.fk-referral-badge { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.fk-referral-badge--ok { background: #edf7f1; color: #1a6b3c; border: 1px solid #b8e6c9; }

@media (max-width: 480px) {
  .fk-referral-stats { grid-template-columns: 1fr 1fr; }
  .fk-referral-code  { font-size: 20px; }
}

/* ── Referral progress bar ── */
.fk-referral-progress {
  background: var(--color-bg, #fff);
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.fk-referral-progress__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.fk-referral-progress__label {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
}

.fk-referral-progress__count {
  font-size: 12px;
  font-weight: 700;
  color: #1a1a1a;
}

.fk-referral-progress__bar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.fk-referral-progress__fill {
  height: 100%;
  background: #1a1a1a;
  border-radius: 4px;
  transition: width .5s ease;
  min-width: 4px;
}

/* Green when close to milestone */
.fk-referral-progress__fill[style*="width:66"],
.fk-referral-progress__fill[style*="width:99"],
.fk-referral-progress__fill[style*="width:100"] {
  background: #1a6b3c;
}

.fk-referral-progress__next {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

/* ── Närmast-tag — rendered via JS inside date-delivery span ── */
.fk-date-option--first .fk-nearest-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fff;
  background: #1a1a1a;
  padding: 1px 6px;
  border-radius: 3px;
  margin-top: 3px;
  vertical-align: middle;
}

/* Fix: payment column right padding when no ::before badge present */
.fk-date-payment {
  padding-right: 0 !important;
}

/* ══════════════════════════════════════
   PAUSA ELLER HOPPA ÖVER — dedikerad flik
   ══════════════════════════════════════ */
.fk-pausa-page {
  max-width: 640px;
}

.fk-pausa-page__intro {
  font-size: 13px;
  color: #888;
  margin-bottom: 18px;
  line-height: 1.6;
}

.fk-pausa-page__empty {
  font-size: 13px;
  color: #aaa;
  padding: 24px 0;
}

/* Prenumerationskort */
.fk-pausa-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 14px;
}

.fk-pausa-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 18px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  gap: 12px;
}

.fk-pausa-card__name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 3px;
}

.fk-pausa-card__delivery {
  display: block;
  font-size: 11px;
  color: #999;
}

/* Status pill */
.fk-pausa-card__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.fk-pausa-card__status--active {
  border: 1px solid #1a1a1a;
  color: #1a1a1a;
}
.fk-pausa-card__status--active::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1a1a1a;
  animation: fk-pulse 2.2s ease infinite;
}
.fk-pausa-card__status--on-hold {
  border: 1px solid #c8920a;
  color: #c8920a;
}
.fk-pausa-card__status--on-hold::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c8920a;
}
.fk-pausa-card__status--pending-cancel {
  border: 1px solid #c0392b;
  color: #c0392b;
}
.fk-pausa-card__status--pending-cancel::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c0392b;
}
@keyframes fk-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

/* Knappar */
.fk-pausa-card__actions {
  padding: 14px 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.fk-pausa-card__infoblock {
  margin: 0 18px 4px;
  padding: 10px 14px;
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  border: 0.5px solid var(--color-border-tertiary);
}
.fk-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 3px 0;
  font-size: 13px;
  gap: 12px;
}
.fk-info-row + .fk-info-row {
  border-top: 0.5px solid var(--color-border-tertiary);
}
.fk-info-label {
  color: var(--color-text-secondary);
  white-space: nowrap;
}
.fk-info-value {
  color: var(--color-text-primary);
  font-weight: 500;
  text-align: right;
}

/* Referral history — free delivery badge */
.fk-referral-badge--free {
  background: #fffbf0;
  color: #8a6500;
  border: 1px solid #f0d880;
}

/* ══════════════════════════════════════════════════
   KLICK-FEEDBACK — alla interaktiva element
   Konsekvent press-känsla: scale down + outline flash
   ══════════════════════════════════════════════════ */

/* Global focus-visible ring — tangentbordsnavigering */
.fk-btn:focus-visible,
.fk-btn--manage:focus-visible,
.fk-btn--resume:focus-visible,
.fk-btn--cancel-trigger:focus-visible,
.fk-btn--primary:focus-visible,
.fk-btn--ghost:focus-visible,
.fk-btn--danger:focus-visible,
.fk-date-option:focus-visible,
.fk-survey__option:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

/* Modal primary button — tydlig klickfeedback */
.fk-btn--primary {
  transition: background .12s, transform .08s, box-shadow .12s !important;
}
.fk-btn--primary:active {
  transform: translateY(1px) scale(.97) !important;
  box-shadow: none !important;
  filter: brightness(.92);
}

/* Modal ghost button */
.fk-btn--ghost {
  transition: background .12s, border-color .12s, transform .08s !important;
}
.fk-btn--ghost:active {
  transform: translateY(1px) scale(.97) !important;
  background: #eaeaea !important;
}

/* Danger button */
.fk-btn--danger:active {
  transform: translateY(1px) scale(.97) !important;
  filter: brightness(.9);
}

/* Date option cards — depressed feel on click */
.fk-date-option {
  transition: border-color .12s, background .12s, transform .1s, box-shadow .12s !important;
}
.fk-date-option:active {
  transform: scale(.985) !important;
  background: #f0f0f0 !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.1) !important;
}

/* Survey reason options */
.fk-survey__option {
  transition: border-color .12s, background .12s, transform .1s !important;
}
.fk-survey__option:active {
  transform: scale(.985) !important;
  background: #f0f0f0 !important;
}

/* Referral share buttons */
.fk-share-btn,
.fk-btn--copy,
.fk-btn--matlador {
  transition: opacity .13s, transform .1s, filter .12s !important;
}
.fk-share-btn:active,
.fk-btn--copy:active,
.fk-btn--matlador:active {
  transform: scale(.96) !important;
  filter: brightness(.88) !important;
}

/* Modal close button */
.fk-modal__close:active {
  background: #ddd !important;
  transform: scale(.92) !important;
}

/* Pausa-sidan knappar */
.fk-pausa-card__actions .fk-btn:active {
  transform: translateY(1px) scale(.97) !important;
}

/* Prevent any :active state when disabled */
button:disabled:active,
.fk-btn:disabled:active {
  transform: none !important;
  filter: none !important;
}

/* ── Referral prize banner ── */
.fk-referral-prize-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 6px;
  color: #fff;
}

.fk-referral-prize-banner__icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.fk-referral-prize-banner__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fk-referral-prize-banner__text strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

.fk-referral-prize-banner__text span {
  font-size: 11px;
  color: rgba(255,255,255,.75);
  line-height: 1.55;
}

/* ══════════════════════════════════════════════════
   MITT KONTO — FK-flikar highlight + mobil scroll
   Enkel fetstil — ingen bakgrund (temakompabilitet)
   ══════════════════════════════════════════════════ */

/* FK-flikarna i menyn — enkel fetstil, inga bakgrundsfärger */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--pausa-hoppa-over > a,
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--valj-matlador > a,
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--tipsa-en-van > a {
  font-weight: 700 !important;
}

/* ══════════════════════════════════════════════════
   EXIT SURVEY — Betygssteget (steg 2)
   ══════════════════════════════════════════════════ */
.fk-rating__label {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
}
.fk-rating__label--secondary {
  margin-top: 16px;
  font-weight: 500;
  color: #555;
}
.fk-rating__stars {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}
.fk-rating__star {
  font-size: 28px;
  color: #ddd;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  transition: color .12s, transform .1s;
  line-height: 1;
}
.fk-rating__star:hover,
.fk-rating__star--active {
  color: #f0b429;
}
.fk-rating__star:active {
  transform: scale(.88);
}




/* ══════════════════════════════════════════════════
   4 VECKORS MENYER — kundvy
   ══════════════════════════════════════════════════ */

.fk-menu-page__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 4px;
}
.fk-menu-page__subtitle {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0 0 24px;
}
.fk-menu-empty {
  padding: 24px;
  text-align: center;
  color: var(--color-text-tertiary);
  font-size: 13px;
}
.fk-menu-weeks {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.fk-menu-week {
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}
.fk-menu-week__header {
  padding: 14px 16px;
  border-bottom: 0.5px solid var(--color-border-tertiary);
  background: var(--color-background-secondary);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fk-menu-week__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fk-menu-week__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.fk-menu-status-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 20px;
}
.fk-menu-status--open {
  background: var(--color-background-success);
  color: var(--color-text-success);
}
.fk-menu-status--upcoming {
  background: var(--color-background-info);
  color: var(--color-text-info);
}
.fk-menu-status--closed {
  background: var(--color-background-secondary);
  color: var(--color-text-tertiary);
}
.fk-menu-week__dates {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.fk-menu-date-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.fk-menu-date-block__label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--color-text-tertiary);
}
.fk-menu-date-block__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}
.fk-menu-date-block--delivery .fk-menu-date-block__value {
  color: var(--color-text-success);
}
.fk-menu-date-sep {
  font-size: 16px;
  color: var(--color-text-tertiary);
  padding: 0 2px;
  align-self: flex-end;
  margin-bottom: 2px;
}
.fk-menu-week__empty {
  font-size: 13px;
  color: var(--color-text-tertiary);
  padding: 16px;
}
/* ── HelloFresh-stil: square crop, minimal caption ── */
/* ── HelloFresh-stil: square crop, minimal caption ── */
.fk-menu-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: default;
}
.fk-menu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.11);
}
.fk-menu-card__img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f5f3;
  flex-shrink: 0;
  position: relative;
}
.fk-menu-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.fk-menu-card:hover .fk-menu-card__img {
  transform: scale(1.04);
}
.fk-menu-card__body {
  padding: 9px 10px 11px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fk-menu-card__name {
  font-size: 12px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
/* Grid: 4 kolumner på bred skärm, 2 på mobil */
.fk-menu-grid {
  padding: 14px 16px 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 680px) {
  .fk-menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* ── Mobil: scroll-target padding + subtle flash när innehåll laddas ── */
@media (max-width: 767px) {
  .woocommerce-MyAccount-content {
    scroll-margin-top: 16px;
  }

  /* Flash-animation som bekräftar att sidan laddats på rätt ställe */
  @keyframes fk-content-arrive {
    0%   { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
  }

  .woocommerce-MyAccount-content {
    animation: fk-content-arrive 0.32s ease both;
  }
}

/* ── Nav: "4 veckors menyer" bold — alla WC selector-varianter ── */
.woocommerce-MyAccount-navigation-link--veckans-meny a,
.woocommerce-MyAccount-navigation-link-veckans-meny a,
li.woocommerce-MyAccount-navigation-link--veckans-meny > a {
  font-weight: 700 !important;
}

/* ── Prize banner längst ner på sidan ── */
.fk-referral-prize-banner--bottom {
  margin-top: 24px;
  margin-bottom: 0;
}
/* ── "Inbokat"-tagg på nuvarande leveransdatum i date-picker ── */
.fk-date-option--current {
  border: 2px solid var(--color-primary, #2e7d32) !important;
  background: var(--color-background-success, #f1f8f1);
}
.fk-current-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--color-primary, #2e7d32);
  color: #fff;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}
