/* r38: NFC cart UI on /nfc and the light home (Add to cart). */
.nfc-prev-note{background:#17140F;color:#FBF8F1;text-align:center;font-size:12px;padding:8px 16px;letter-spacing:.02em}
.vpl-nfc-cart .nfc-p-row,.vpl-home-cart .nfc-p-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding-top:14px;border-top:1px solid #ECE5D6;flex-wrap:wrap}
.vpl-nfc-cart .nfc-step,.vpl-home-cart .nfc-step{display:flex;align-items:center;border:1px solid #CFC5B1;border-radius:999px;background:#fff}
.vpl-nfc-cart .nfc-step button,.vpl-home-cart .nfc-step button{width:44px;height:44px;background:transparent;border:none;color:#17140F;font-size:20px;cursor:pointer;font-family:inherit;line-height:1}
.vpl-nfc-cart .nfc-step button:disabled,.vpl-home-cart .nfc-step button:disabled{opacity:.35;cursor:not-allowed}
.vpl-nfc-cart .nfc-step output,.vpl-home-cart .nfc-step output{min-width:28px;text-align:center;font-weight:600}
.vpl-nfc-cart .nfc-add,.vpl-home-cart .nfc-add{flex:1 1 140px;min-height:44px;background:#17140F;color:#FBF8F1;font-weight:600;font-size:14px;border:none;border-radius:999px;padding:10px 18px;cursor:pointer;font-family:inherit}
.vpl-nfc-cart .nfc-add:hover,.vpl-home-cart .nfc-add:hover,.vpl-nfc-cart .nfc-add:focus-visible,.vpl-home-cart .nfc-add:focus-visible{background:#8A6316}
.vpl-nfc-cart .nfc-add.is-added,.vpl-home-cart .nfc-add.is-added{background:#8A6316}
.vpl-nfc-cart [data-color][aria-pressed="true"],.vpl-home-cart [data-color][aria-pressed="true"]{border-color:#8A6316 !important;box-shadow:0 0 0 1px #8A6316}

.vpl-nfc-cart .nfc-line,.vpl-home-cart .nfc-line{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #ECE5D6;font-size:15px;flex-wrap:wrap}
.vpl-nfc-cart .nfc-line-info,.vpl-home-cart .nfc-line-info{flex:1 1 160px;min-width:0}
.vpl-nfc-cart .nfc-line-info b,.vpl-home-cart .nfc-line-info b{display:block;font-weight:600}
.vpl-nfc-cart .nfc-line-info small,.vpl-home-cart .nfc-line-info small{color:#5E574B}
.vpl-nfc-cart .nfc-line-acts,.vpl-home-cart .nfc-line-acts{display:flex;align-items:center;gap:8px}
.vpl-nfc-cart .nfc-line .nfc-step,.vpl-home-cart .nfc-line .nfc-step{transform:scale(.92);transform-origin:right center}
.vpl-nfc-cart .nfc-line-total,.vpl-home-cart .nfc-line-total{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:18px;min-width:5ch;text-align:right}
.vpl-nfc-cart .nfc-rm,.vpl-home-cart .nfc-rm{background:transparent;border:none;color:#8A8274;font-size:13px;cursor:pointer;font-family:inherit;text-decoration:underline;padding:8px}
.vpl-nfc-cart .nfc-rm:hover,.vpl-home-cart .nfc-rm:hover{color:#17140F}
.vpl-nfc-cart .nfc-checkout-btn,.vpl-home-cart .nfc-checkout-btn{display:block;margin-top:24px;text-align:center;background:#8A6316;color:#FBF8F1;font-weight:600;padding:16px;border-radius:999px;font-size:16px;text-decoration:none}
.vpl-nfc-cart .nfc-checkout-btn.is-off,.vpl-home-cart .nfc-checkout-btn.is-off{opacity:.45;pointer-events:none}
.vpl-nfc-cart .nfc-wa-btn,.vpl-home-cart .nfc-wa-btn{display:block;margin-top:10px;text-align:center;border:1px solid #CFC5B1;color:#17140F;padding:14px;border-radius:999px;text-decoration:none}

/* Sticky: cart total, room so the WhatsApp FAB cannot cover the button. */
.vpl-nfc-cart .vpl-sticky{gap:10px;padding:8px 8px 8px 16px;z-index:40}
.vpl-nfc-cart .nfc-sticky-info,.vpl-home-cart .nfc-sticky-info{flex:1 1 auto;min-width:0;background:transparent;border:none;color:#FBF8F1;text-align:left;font:inherit;font-size:14px;cursor:pointer;padding:4px 0}
.vpl-nfc-cart .nfc-sticky-info strong,.vpl-home-cart .nfc-sticky-info strong{font-family:Fraunces,Georgia,serif;font-size:18px;font-weight:600}
.vpl-nfc-cart .nfc-sticky-go,.vpl-home-cart .nfc-sticky-go{flex:0 0 auto;background:#8A6316;color:#FBF8F1;font-weight:600;font-size:14px;padding:10px 18px;border-radius:999px;text-decoration:none;white-space:nowrap;max-width:46%}
@media (max-width:900px){
  /* Lift the green chat bubble above the sticky bar so it never covers Checkout. Preview page only. */
  body.vpl-nfc-cart .wa-fab{bottom:calc(92px + env(safe-area-inset-bottom, 0px));right:max(16px, env(safe-area-inset-right, 0px));z-index:39}
  .vpl-nfc-cart .vpl-sticky{bottom:calc(12px + env(safe-area-inset-bottom, 0px))}
}

/* Drawer */
.nfc-drawer{position:fixed;inset:0;z-index:60;pointer-events:none}
.nfc-drawer.is-open{pointer-events:auto}
.nfc-drawer-back{position:absolute;inset:0;background:rgba(23,20,15,.45)}
.nfc-drawer-panel{position:absolute;right:0;top:0;bottom:0;width:min(400px,100%);background:#FBF8F1;color:#17140F;display:flex;flex-direction:column;box-shadow:-12px 0 40px rgba(23,20,15,.2);transform:translateX(110%);transition:transform .25s ease}
.nfc-drawer.is-open .nfc-drawer-panel{transform:none}
.nfc-drawer-h{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid #E2DACA}
.nfc-drawer-h h2{margin:0;font-family:Fraunces,Georgia,serif;font-size:22px;font-weight:600}
.nfc-drawer-x{width:44px;height:44px;border:none;background:transparent;font-size:28px;cursor:pointer;color:#17140F;line-height:1}
.nfc-drawer-body{flex:1;overflow:auto;padding:8px 18px 16px}
.nfc-drawer-empty{color:#5E574B;padding:24px 0}
.nfc-drawer-f{padding:16px 18px calc(16px + env(safe-area-inset-bottom,0px));border-top:1px solid #E2DACA;background:#fff}
.nfc-drawer-total{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;font-size:16px}
.nfc-drawer-total b{font-family:Fraunces,Georgia,serif;font-size:28px}
.nfc-drawer .nfc-checkout-btn{margin-top:12px}
@media (max-width:520px){
  .nfc-drawer-panel{width:100%;top:auto;height:min(86vh,640px);border-radius:22px 22px 0 0;transform:translateY(110%);box-shadow:0 -12px 40px rgba(23,20,15,.2)}
  .nfc-drawer.is-open .nfc-drawer-panel{transform:none}
}

.nfc-toast{
  position:fixed;left:50%;top:calc(64px + env(safe-area-inset-top, 0px));
  transform:translateX(-50%) translateY(-6px);
  background:#17140F;color:#FBF8F1;
  padding:8px 14px;border-radius:999px;font-size:13px;line-height:1.3;font-weight:500;
  z-index:70;max-width:min(340px, calc(100vw - 24px));
  text-align:center;white-space:normal;
  box-shadow:0 8px 24px rgba(23,20,15,.3);
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .35s ease, transform .35s ease, visibility .35s ease;
}
.nfc-toast.is-on{opacity:1;visibility:visible;pointer-events:none;transform:translateX(-50%) translateY(0)}
.nfc-toast[hidden]{display:none !important;opacity:0;visibility:hidden}

.vpl-nfc-cart .nfc-nav-cart,.vpl-home-cart .nfc-nav-cart{flex:0 0 auto;background:#17140F;color:#FBF8F1;font-weight:600;font-size:14px;padding:10px 18px;border-radius:999px;white-space:nowrap;border:none;cursor:pointer;font-family:inherit}
.vpl-nfc-cart .nfc-nav-cart:hover,.vpl-home-cart .nfc-nav-cart:hover,.vpl-nfc-cart .nfc-nav-cart:focus-visible,.vpl-home-cart .nfc-nav-cart:focus-visible{background:#8A6316}

/* Header Cart · N on the light home (and any page with nfcCartNav). */
.vpl-home-cart .n2-right .nfc-nav-cart{margin-right:4px}
@media (max-width:700px){
  .vpl-home-cart .n2-right .nfc-nav-cart{padding:8px 12px;font-size:13px}
}
@media (max-width:420px){
  /* Login / My cards stay in the ☰ menu; keeps Cart + Create on one row at 390px. */
  .vpl-home-cart .n2-right .n2-auth{display:none}
  .vpl-home-cart .n2-right .nfc-nav-cart{padding:7px 10px;font-size:12px;margin-right:2px}
}
/* Home finish tiles: compact qty + add row */
.vpl-home-cart .nfc-p-row{margin-top:14px;padding-top:14px}
