:root {
  --kf-bg: #eef4ff;
  --kf-surface: #ffffff;
  --kf-ink: #1a1f2e;
  --kf-muted: #5c6578;
  --kf-accent: #c45c26;
  --kf-accent-2: #2c1810;
  --kf-border: #d7dff0;
  --kf-ok: #1f7a4c;
  --kf-err: #a12828;
  --kf-radius: 10px;
  --kf-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body.kfvp-body {
  margin: 0;
  font-family: var(--kf-font);
  color: var(--kf-ink);
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(186, 230, 253, 0.85) 0%, transparent 55%),
    radial-gradient(800px 520px at 92% 8%, rgba(221, 214, 254, 0.9) 0%, transparent 50%),
    linear-gradient(145deg, #e0f2fe 0%, #eef2ff 42%, #f3e8ff 100%);
  min-height: 100vh;
  background-attachment: fixed;
}
a { color: var(--kf-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.kfvp-nav {
  background: var(--kf-accent-2);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.kfvp-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.kfvp-logo { color: #fff; font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.kfvp-logo span { font-weight: 400; opacity: .75; margin-left: 6px; }
.kfvp-nav nav { display: flex; gap: 14px; flex: 1; }
.kfvp-nav nav a { color: #f3ebe3; text-decoration: none; font-size: .95rem; position: relative; display: inline-flex; align-items: center; gap: 6px; }
.kfvp-nav nav a.kfvp-nav-orders.has-alert { font-weight: 600; }
.kfvp-nav-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e11d48;
  box-shadow: 0 0 0 2px rgba(44, 24, 16, 0.35), 0 0 8px rgba(225, 29, 72, 0.65);
  flex: 0 0 auto;
}
@keyframes kfvp-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}
.kfvp-nav-dot { animation: kfvp-dot-pulse 1.6s ease-in-out infinite; }
.kfvp-nav-user { display: flex; gap: 12px; align-items: center; font-size: .9rem; }
.kfvp-nav-user a { color: #f0c9a8; }
.kfvp-main { max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; }
.kfvp-main--wide { max-width: 1280px; }
.kfvp-page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.kfvp-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}
.kfvp-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.kfvp-search-input {
  flex: 1;
  min-width: 220px;
  max-width: 420px;
  padding: 10px 14px;
  border: 1px solid var(--kf-border);
  border-radius: 8px;
  background: var(--kf-surface);
  font: inherit;
  color: var(--kf-ink);
}
.kfvp-search-input:focus {
  outline: 2px solid rgba(196, 92, 38, 0.35);
  border-color: var(--kf-accent);
}
.kfvp-row-actions {
  white-space: nowrap;
  min-width: 140px;
}
.kfvp-row-actions a {
  font-size: inherit;
  font-weight: inherit;
}
.kfvp-action-sep { color: var(--kf-muted); }
.kfvp-live-url {
  color: var(--kf-ok) !important;
  font-weight: inherit;
  font-size: inherit;
}
.kfvp-live-url:hover {
  color: #17633d !important;
}
.kfvp-product-title-link {
  color: inherit;
  text-decoration: none;
}
.kfvp-product-title-link:hover {
  color: var(--kf-accent);
  text-decoration: underline;
}
.kfvp-product-title {
  display: block;
  font-weight: 600;
  line-height: 1.35;
}
.kfvp-product-meta {
  display: block;
  margin-top: 2px;
  color: var(--kf-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}
.kfvp-product-meta a {
  text-decoration: none;
}
.kfvp-product-meta a:hover {
  text-decoration: underline;
}
.kfvp-muted { color: var(--kf-muted); line-height: 1.5; }
.kfvp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0; }
.kfvp-card {
  background: var(--kf-surface);
  border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(44, 24, 16, .04);
}
.kfvp-card:hover { border-color: var(--kf-accent); text-decoration: none; }
.kfvp-card strong { font-size: 1.1rem; }
.kfvp-card span { color: var(--kf-muted); font-size: .92rem; }
.kfvp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--kf-surface); border: 1px solid var(--kf-border); border-radius: var(--kf-radius); }
.kfvp-table-wrap--products { max-width: 100%; }
.kfvp-table { width: 100%; border-collapse: collapse; }
.kfvp-table--products { min-width: 960px; }
.kfvp-table th, .kfvp-table td { padding: 12px 14px; border-bottom: 1px solid var(--kf-border); text-align: left; vertical-align: top; font-size: .92rem; }
.kfvp-table th { background: #f3f6ff; font-weight: 600; white-space: nowrap; }
.kfvp-col-title { min-width: 240px; max-width: 360px; }
.kfvp-col-type { min-width: 220px; max-width: 300px; }
.kfvp-col-price { white-space: nowrap; }
.kfvp-col-status { width: 72px; text-align: center; vertical-align: middle; }
.kfvp-col-note { min-width: 120px; max-width: 200px; }
.kfvp-col-updated { white-space: nowrap; }
.kfvp-status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  vertical-align: middle;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 3px rgba(0, 0, 0, 0.06);
  cursor: default;
}
.kfvp-status-dot-pending { background: #e6b800; }
.kfvp-status-dot-draft { background: #9aa3b5; }
.kfvp-status-dot-publish { background: #1f7a4c; }
.kfvp-status-dot-needs_changes { background: #e67e22; }
.kfvp-status-dot-rejected { background: #a12828; }
.kfvp-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.kfvp-page-meta { margin: 0; }
.kfvp-page-controls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kfvp-page-btn {
  min-width: 36px;
  padding: 7px 10px;
  border: 1px solid var(--kf-border);
  border-radius: 8px;
  background: var(--kf-surface);
  color: var(--kf-ink);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}
.kfvp-page-btn:hover:not(:disabled) { border-color: var(--kf-accent); color: var(--kf-accent); }
.kfvp-page-btn.is-active {
  background: var(--kf-accent);
  border-color: var(--kf-accent);
  color: #fff;
}
.kfvp-page-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.kfvp-page-ellipsis { color: var(--kf-muted); padding: 0 4px; }
.kfvp-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  background: #eee;
}
.kfvp-badge-pending { background: #fff3cd; color: #7a5b00; }
.kfvp-badge-draft { background: #e8e8e8; color: #444; }
.kfvp-badge-publish { background: #d8f3e3; color: var(--kf-ok); }
.kfvp-badge-needs_changes { background: #ffe2c8; color: #8a3b00; }
.kfvp-badge-rejected { background: #f8d7da; color: var(--kf-err); }
.kfvp-btn {
  display: inline-block;
  border: 1px solid var(--kf-border);
  background: #fff;
  color: var(--kf-ink);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
}
.kfvp-btn-primary { background: var(--kf-accent); border-color: var(--kf-accent); color: #fff; }
.kfvp-btn:disabled { opacity: .55; cursor: not-allowed; }
.kfvp-login-page { display: grid; place-items: center; padding: 40px 16px; }
.kfvp-login-card {
  width: min(420px, 100%);
  background: var(--kf-surface);
  border: 1px solid var(--kf-border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(44,24,16,.08);
}
.kfvp-login-logo {
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}
.kfvp-login-logo a { display: inline-block; line-height: 0; text-decoration: none; }
.kfvp-login-logo img {
  display: block;
  width: min(280px, 85%);
  height: auto;
  max-height: 110px;
  object-fit: contain;
}
.kfvp-brand { display: flex; justify-content: center; align-items: baseline; margin-bottom: 8px; }
.kfvp-brand a { font-weight: 700; color: var(--kf-accent-2); font-size: 1.2rem; text-decoration: none; }
.kfvp-brand span,
.kfvp-brand-title { color: var(--kf-muted); font-size: .9rem; font-weight: 600; letter-spacing: .02em; }
.kfvp-captcha {
  padding: 12px;
  background: #f3f6ff;
  border: 1px solid var(--kf-border);
  border-radius: 8px;
}
.kfvp-captcha label { margin: 0; }
.kfvp-form { display: flex; flex-direction: column; gap: 14px; }
.kfvp-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.kfvp-form input[type=text],
.kfvp-form input[type=password],
.kfvp-form input[type=number],
.kfvp-form input[type=url],
.kfvp-form input[type=email],
.kfvp-form input[type=tel],
.kfvp-form textarea,
.kfvp-form select {
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
  border: 1px solid var(--kf-border);
  border-radius: 8px;
  background: #fff;
}
.kfvp-form textarea { min-height: 110px; resize: vertical; }
.kfvp-inline { flex-direction: row !important; align-items: center; font-weight: 400 !important; }
.kfvp-alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; }
.kfvp-alert-error { background: #f8d7da; color: var(--kf-err); }
.kfvp-alert-ok { background: #d8f3e3; color: var(--kf-ok); border: 1px solid #b7e4cb; font-weight: 600; }
.kfvp-alert-info { background: #eef3ff; color: #1e3a8a; }
.kfvp-alert-info a { color: #1e3a8a; font-weight: 600; }
.kfvp-group-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
}
.kfvp-product-form .kfvp-field-group {
  background: var(--kf-surface);
  border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(44, 24, 16, .04);
}
.kfvp-product-form h2 { margin: 0 0 8px; font-size: 1.1rem; }
.kfvp-product-form .kfvp-field-group > .kfvp-muted { margin: 0 0 14px; }
.kfvp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.kfvp-stack { display: flex; flex-direction: column; gap: 16px; }
.kfvp-full { width: 100%; }
.kfvp-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.kfvp-progress span {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--kf-muted);
  background: #fff;
  border: 1px solid var(--kf-border);
  border-radius: 999px;
  padding: 6px 10px;
}
.kfvp-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.kfvp-type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 16px 14px;
  border: 1.5px solid var(--kf-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.kfvp-type-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.kfvp-type-card-label { font-size: 1rem; color: var(--kf-ink); }
.kfvp-type-card-meta { font-size: .78rem; font-weight: 600; color: var(--kf-muted); text-transform: uppercase; letter-spacing: .04em; }
.kfvp-type-card:hover { border-color: #c9b8a8; }
.kfvp-type-card.is-selected {
  border-color: var(--kf-accent);
  background: #fff8f3;
  box-shadow: 0 0 0 3px rgba(196, 92, 38, .12);
}
.kfvp-desc textarea {
  min-height: 140px;
  width: 100%;
  line-height: 1.55;
  font-size: 1rem;
}
.kfvp-desc textarea[name="description"] { min-height: 260px; }
.kfvp-readonly {
  background: #f3f6ff !important;
  color: var(--kf-muted);
  cursor: default;
}
.kfvp-profile-locked input:disabled,
.kfvp-profile-locked input.kfvp-readonly {
  opacity: 1;
  background: #f0eee9 !important;
  color: #5a5248;
  border-color: #e0d8ce;
  cursor: not-allowed;
  pointer-events: none;
}
.kfvp-badge--locked {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  background: #efe8df;
  color: #6b635a;
  border: 1px solid #e0d8ce;
}
.kfvp-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.kfvp-cat-list {
  display: grid;
  gap: 14px;
}
.kfvp-cat-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--kf-border);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(44, 24, 16, 0.03);
}
.kfvp-cat-card h2 {
  margin: 0;
  font-size: 1.05rem;
}
.kfvp-cat-card h2 a {
  color: var(--kf-ink);
  text-decoration: none;
}
.kfvp-cat-card h2 a:hover {
  color: var(--kf-accent);
  text-decoration: underline;
}
.kfvp-cat-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kfvp-specs-grid { margin-top: 8px; }
.kfvp-cat-tree { max-height: 260px; overflow: auto; border: 1px solid var(--kf-border); border-radius: 8px; padding: 10px; background: #fff; }
.kfvp-cat-tree label { font-weight: 400; flex-direction: row; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.kfvp-cat-children { margin-left: 18px; }
.kfvp-images { display: flex; flex-wrap: wrap; gap: 10px; }
.kfvp-image-thumb {
  width: 110px; height: 110px; border-radius: 8px; overflow: hidden; border: 2px solid var(--kf-border); position: relative; background: #eef2ff;
}
.kfvp-image-thumb.is-cover {
  border-color: #8c6a3d;
  box-shadow: 0 0 0 1px rgba(140, 106, 61, 0.25);
}
.kfvp-image-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kfvp-image-thumb .kfvp-remove-image {
  position: absolute; top: 4px; right: 4px; border: 0; background: rgba(0,0,0,.65); color: #fff; border-radius: 4px; width: 24px; height: 24px; cursor: pointer; z-index: 2;
}
.kfvp-cover-badge {
  position: absolute;
  left: 4px;
  bottom: 4px;
  z-index: 2;
  background: #8c6a3d;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 7px;
  border-radius: 4px;
  line-height: 1.2;
}
.kfvp-set-cover {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  z-index: 2;
  border: 0;
  background: rgba(20, 28, 39, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 6px;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.2;
}
.kfvp-set-cover:hover {
  background: #8c6a3d;
}
.kfvp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.kfvp-actions-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  margin: 0;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--kf-border);
  box-shadow: 0 -8px 24px rgba(44, 24, 16, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.kfvp-actions-sticky .kfvp-btn {
  min-width: 160px;
}
body.kfvp-body:has(.kfvp-actions-sticky),
body.kfvp-product-edit-page {
  padding-bottom: 88px;
}
.kfvp-product-form {
  padding-bottom: 12px;
}
.kfvp-note-box { background: #fff7ed; border: 1px solid #f0d2b0; padding: 12px; border-radius: 8px; margin-bottom: 16px; }

/* Orders */
.kfvp-order-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.kfvp-chip {
  border: 1px solid var(--kf-border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--kf-ink);
}
.kfvp-chip.is-active {
  background: var(--kf-accent-2);
  border-color: var(--kf-accent-2);
  color: #fff;
}
.kfvp-orders-list { display: flex; flex-direction: column; gap: 16px; }
.kfvp-order-card {
  background: var(--kf-surface);
  border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius);
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(44, 24, 16, .04);
}
.kfvp-order-card-head { margin-bottom: 12px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.kfvp-order-grid {
  display: grid;
  grid-template-columns: minmax(200px, 0.9fr) minmax(240px, 1.1fr);
  gap: 18px;
}
.kfvp-order-grid h3 { margin: 0 0 8px; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--kf-muted); }
.kfvp-address {
  font-size: .92rem;
  line-height: 1.45;
  white-space: pre-line;
  background: #f7f9ff;
  border: 1px solid var(--kf-border);
  border-radius: 8px;
  padding: 12px;
}
.kfvp-order-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--kf-border);
}
.kfvp-order-colour {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
}
.kfvp-order-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: .9rem;
  color: var(--kf-ink);
}
.kfvp-order-meta-label {
  color: var(--kf-muted);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-right: 2px;
}
.kfvp-order-price {
  font-weight: 600;
}
.kfvp-order-colour-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--kf-border);
  flex-shrink: 0;
}
.kfvp-order-line:last-child { border-bottom: 0; }
.kfvp-order-line-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kfvp-order-product-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.kfvp-order-product-link:hover { color: var(--kf-accent); }
.kfvp-order-view-product {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--kf-accent);
  text-decoration: none;
  width: fit-content;
}
.kfvp-order-view-product:hover { text-decoration: underline; }
.kfvp-order-line-status { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.kfvp-ful-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.kfvp-ful-btn {
  border: 1px solid var(--kf-border);
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}
.kfvp-ful-preparing { color: #996800; border-color: #f0e2a0; background: #fcf9e8; }
.kfvp-ful-dispatched { color: #007017; border-color: #b8e6bf; background: #edfaef; }
.kfvp-ful-done { color: var(--kf-ok); font-size: .85rem; font-weight: 700; }
.kfvp-badge-ful-new { background: #eef3ff; color: #1e3a8a; }
.kfvp-badge-ful-preparing { background: #fff3cd; color: #7a5b00; }
.kfvp-badge-ful-dispatched { background: #d8f3e3; color: var(--kf-ok); }
.kfvp-badge-ful-partial { background: #ffe2c8; color: #8a3b00; }

.kfvp-attr-field { display: flex; flex-direction: column; gap: 8px; }
.kfvp-attr-add { display: flex; gap: 8px; align-items: center; }
.kfvp-attr-add input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
.kfvp-attr-add .kfvp-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 12px;
  font-size: .85rem;
}
.kfvp-subtype-hint { margin: 8px 0 6px; font-size: .88rem; }
.kfvp-subtype-add {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.kfvp-subtype-add input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
.kfvp-subtype-add .kfvp-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 12px;
  font-size: .85rem;
}
.kfvp-attr-colour {
  position: relative;
}
.kfvp-attr-colour .kfvp-colour-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.kfvp-colour-hint {
  display: block;
  font-weight: 400;
  font-size: .8rem;
  margin: 2px 0 6px;
}
.kfvp-colour-tiles {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.kfvp-swatch-tile--mini {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}
.kfvp-colour-more {
  font-size: .75rem;
  font-weight: 700;
  color: var(--kf-muted);
  margin-left: 2px;
}
.kfvp-colour-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--kf-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-weight: 400;
  color: var(--kf-ink);
  line-height: 1.25;
  min-height: 0;
  box-sizing: border-box;
}
.kfvp-colour-trigger:hover,
.kfvp-attr-colour.is-open .kfvp-colour-trigger {
  border-color: #c9b8a8;
}
.kfvp-colour-trigger-label {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kfvp-colour-trigger-label.is-placeholder {
  color: var(--kf-muted);
}
.kfvp-colour-chevron {
  flex: 0 0 auto;
  width: 0.55em;
  height: 0.55em;
  margin-left: 4px;
  border-right: 1.5px solid #6b7280;
  border-bottom: 1.5px solid #6b7280;
  transform: translateY(-2px) rotate(45deg);
}
.kfvp-attr-colour.is-open .kfvp-colour-chevron {
  transform: translateY(1px) rotate(225deg);
}
.kfvp-swatch-panel {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--kf-border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(26, 31, 46, .14);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kfvp-swatch-panel[hidden] { display: none !important; }
.kfvp-swatch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--kf-ink);
  width: 100%;
  transition: border-color .15s ease, background .15s ease;
}
.kfvp-swatch:hover { background: #f7f4ef; }
.kfvp-swatch.is-selected {
  border-color: var(--kf-accent);
  background: #fff8f3;
}
.kfvp-swatch-tile {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,.12);
}
.kfvp-swatch-tile--empty {
  background: transparent;
  border-color: transparent;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.kfvp-swatch-label {
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kfvp-multi-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.kfvp-attr-multi {
  position: relative;
}
.kfvp-attr-multi .kfvp-multi-dd {
  position: relative;
}
.kfvp-multi-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--kf-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-weight: 400;
  color: var(--kf-ink);
  line-height: 1.25;
  min-height: 0;
  box-sizing: border-box;
}
.kfvp-multi-trigger:hover,
.kfvp-attr-multi.is-open .kfvp-multi-trigger {
  border-color: #c9b8a8;
}
.kfvp-multi-trigger-label {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kfvp-multi-trigger-label.is-placeholder {
  color: var(--kf-muted);
}
.kfvp-multi-panel {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--kf-border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(26, 31, 46, .14);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kfvp-multi-panel[hidden] { display: none !important; }
.kfvp-multi-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 10px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--kf-ink);
  width: 100%;
}
.kfvp-multi-option:hover { background: #f7f4ef; }
.kfvp-multi-option.is-selected {
  border-color: var(--kf-accent);
  background: #fff8f3;
}
.kfvp-multi-check {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 1.5px solid #c4b8a8;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
  position: relative;
}
.kfvp-multi-option.is-selected .kfvp-multi-check {
  border-color: var(--kf-accent);
  background: var(--kf-accent);
}
.kfvp-multi-option.is-selected .kfvp-multi-check::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.kfvp-multi-option-label {
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kfvp-attr-add .kfvp-btn {
  min-width: 52px;
}
.kfvp-busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 31, 46, 0.45);
  backdrop-filter: blur(2px);
}
.kfvp-busy-overlay[hidden] { display: none !important; }
.kfvp-busy-card {
  background: #fff;
  border-radius: 12px;
  padding: 22px 28px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  max-width: 90vw;
}
.kfvp-busy-msg {
  margin: 0;
  font-weight: 600;
  color: var(--kf-ink);
  text-align: center;
}
.kfvp-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--kf-accent);
  border-radius: 50%;
  animation: kfvp-spin .8s linear infinite;
}
@keyframes kfvp-spin {
  to { transform: rotate(360deg); }
}
body.kfvp-busy {
  overflow: hidden;
}

@media (max-width: 700px) {
  .kfvp-nav nav { width: 100%; }
  .kfvp-actions-sticky {
    justify-content: stretch;
    padding-left: 12px;
    padding-right: 12px;
  }
  .kfvp-actions-sticky .kfvp-btn {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    text-align: center;
  }
  .kfvp-order-grid { grid-template-columns: 1fr; }
  .kfvp-order-line { flex-direction: column; align-items: stretch; }
  .kfvp-order-line-status { align-items: flex-start; }
  .kfvp-attr-add { flex-direction: column; align-items: stretch; }
  .kfvp-subtype-add { flex-direction: column; align-items: stretch; }
}
