/* Storefront Real-Time Cart Nudge & Exclusive Offer Toast (Inherits Storefront Typography) */
#oc-cart-nudge-host {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 10650;
  width: min(392px, calc(100vw - 24px));
  font-family: inherit;
  color: #0f172a;
  pointer-events: none;
}
html[data-apb-glass] #oc-cart-nudge-host {
  bottom: 92px;
}
#oc-cart-nudge-host[hidden] {
  display: none !important;
}
.oc-cn-card {
  pointer-events: auto;
  position: relative;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 16px 16px 15px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08), 0 18px 38px rgba(15, 23, 42, 0.16);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.22s cubic-bezier(0.23, 1, 0.32, 1), transform 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}
.oc-cn-card.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.oc-cn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-right: 34px;
  margin-bottom: 8px;
}
.oc-cn-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.oc-cn-pill-disc {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.oc-cn-pill-info {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.oc-cn-timer {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  font-variant-numeric: tabular-nums;
}
.oc-cn-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.oc-cn-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.oc-cn-close:active {
  transform: scale(0.95);
}
.oc-cn-close:focus-visible,
.oc-cn-cta:focus-visible,
.oc-cn-code-copy:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.oc-cn-title {
  margin: 0 0 6px;
  padding-right: 26px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}
.oc-cn-msg {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #334155;
}
.oc-cn-coupon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  margin-bottom: 12px;
  background: #f8fafc;
  border: 1px dashed #93c5fd;
  border-radius: 9px;
}
.oc-cn-code-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.oc-cn-code-lbl {
  font-size: 13px;
  color: #64748b;
}
.oc-cn-code-val {
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: 14.5px;
  font-weight: 700;
  color: #1d4ed8;
  letter-spacing: 0.02em;
}
.oc-cn-min-txt {
  font-size: 13px;
  font-weight: 600;
  color: #166534;
  white-space: nowrap;
}
.oc-cn-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.oc-cn-cta {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 9px;
  background: #2563eb;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.16s ease, transform 0.15s cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover: hover) and (pointer: fine) {
  .oc-cn-cta:hover {
    background: #1d4ed8;
    color: #ffffff;
  }
}
.oc-cn-cta:active {
  transform: scale(0.97);
}
.oc-cn-cta.is-loading .oc-cn-cta-txt {
  opacity: 0;
}
.oc-cn-cta.is-done {
  background: #16a34a;
}
.oc-cn-spinner {
  display: none;
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2.2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: ocCnSpin 0.65s linear infinite;
}
.oc-cn-cta.is-loading .oc-cn-spinner {
  display: block;
}
.oc-cn-err {
  margin-top: 8px;
  font-size: 13px;
  color: #dc2626;
  line-height: 1.4;
}
@keyframes ocCnSpin {
  to { transform: rotate(360deg); }
}
@media (max-width: 767px) {
  #oc-cart-nudge-host {
    left: 12px;
    right: 12px;
    bottom: 14px;
    width: auto;
  }
  html[data-apb-glass] #oc-cart-nudge-host {
    bottom: 84px;
  }
  .oc-cn-title {
    font-size: 16px;
  }
  .oc-cn-msg {
    font-size: 14.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .oc-cn-card,
  .oc-cn-close,
  .oc-cn-cta {
    transition: none !important;
  }
  .oc-cn-spinner {
    animation: none !important;
  }
}
