/* ===== Header / Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 2px solid #ededf0;
  backdrop-filter: blur(14px);
}

.nav-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 148px;
}

.brand-logo {
  width: 154px;
  max-height: 50px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.nav-links a,
.nav-links button {
  position: relative;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links a::after,
.nav-links button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 3px;
  border-radius: 999px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav-links a:hover::after,
.nav-links button:hover::after,
.nav-links .active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* ===== Buttons ===== */
.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.icon-btn:hover {
  background: var(--soft);
  border-color: #ebebef;
}

.icon-btn:active,
.button:active,
.pill:active {
  transform: translateY(1px);
}

.badge-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--paper);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
}

.badge-count.show {
  display: flex !important;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 850;
  letter-spacing: 0.01em;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.button span {
  display: inline-block;
  transition: transform 160ms ease;
}

.button:hover {
  background: #252525;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.button:hover span[aria-hidden="true"] {
  transform: translateX(4px);
}

.button.secondary {
  background: var(--paper);
  color: var(--ink);
}

.button.secondary:hover {
  background: var(--soft);
  box-shadow: none;
}

.button.ghost {
  border-color: #dcdce2;
  background: var(--paper);
  color: var(--ink);
}

.button.ghost:hover {
  border-color: var(--ink);
  box-shadow: none;
}

.button.danger {
  border-color: var(--danger);
  background: var(--danger);
}

.button.small {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.82rem;
}

/* Locked (read-only) email field for logged-in users */
.field[readonly],
.field.is-locked {
  background: #f4f4f4 !important;
  color: #555 !important;
  cursor: not-allowed;
  opacity: 0.85;
  border-color: #ddd !important;
  box-shadow: none !important;
}

/* Account-locked layout: green status line below the email */
.email-account-status {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #2a9d3f;
  line-height: 1.45;
}
.email-account-status svg { flex-shrink: 0; margin-top: 2px; }
.email-account-status strong { color: #1e7a31; font-weight: 800; }

.field.is-invalid {
  border-color: #ff4d4f !important;
  box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.15) !important;
  animation: shake 0.32s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}

.primary-cta {
  width: 100%;
  height: 58px;
  font-size: 1.1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 20px;
}

.minimal-btn {
  width: 100%;
  height: 48px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
  font-size: 0.95rem;
}

.pill {
  min-height: 39px;
  padding: 8px 16px;
  border: 2px solid #d8d8df;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  text-shadow: none !important;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.pill:hover,
.pill.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

/* ===== Fields ===== */
.field {
  width: 100%;
  min-height: 42px;
  border: 2px solid #d8d8df;
  border-radius: 12px;
  background: var(--paper);
  padding: 10px 12px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

textarea.field {
  min-height: 104px;
  resize: vertical;
}

.field::placeholder {
  color: #a0a0a5;
}

.select-field {
  min-height: 42px;
  border: 2px solid #d8d8df;
  border-radius: 999px;
  background: var(--paper);
  padding: 8px 38px 8px 18px;
  font-weight: 750;
  box-sizing: border-box;
}

/* ===== Search ===== */
.search-strip {
  display: none;
  border-bottom: 2px solid #ededf0;
  background: #fbfbfc;
}

.search-strip.open {
  display: block;
}

.search-strip .container {
  padding: 14px 0;
}

.search-input {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 12px 18px;
  outline: none;
  background: var(--paper);
}

/* ===== Toolbar ===== */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.pill-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== Swatch ===== */
.swatches {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

/* ===== Stock / Status ===== */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #efeff2;
  color: #565660;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-badge.new {
  background: #fee2e2;
  color: #b91c1c;
}

.status-badge.coming_soon {
  background: #fef08a;
  color: #713f12;
}

.status-badge.restocked {
  background: #dbeafe;
  color: #1e40af;
}

.status-badge.paused {
  background: #efeff2;
  color: #565660;
}

.status-badge.cancelled {
  background: #ffe1e1;
  color: #8f1d1d;
}

.status-badge.paid,
.status-badge.shipped {
  background: #e2f1ff;
  color: #15528b;
}

.status-badge.done {
  background: #efeff2;
  color: #565660;
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.stock-badge.low {
  background: #ffedd5;
  color: #c2410c;
}

.stock-badge.out {
  background: #fee2e2;
  color: #991b1b;
}

/* ===== Qty Controls ===== */
.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #d8d8df;
  border-radius: 999px;
  padding: 4px;
}

.qty-controls button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--soft);
  font-weight: 900;
}

/* ===== Empty State ===== */
.empty-state {
  padding: 70px 20px;
  border: 3px dashed #d6d6dc;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
}

/* ===== Form Grid ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field small {
  color: #ff4d4f;
  font-size: 0.9rem;
  margin-left: 2px;
}

.form-field span {
  font-size: 0.88rem;
  font-weight: 850;
  color: var(--ink);
  margin: 0;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 20px;
}

#shippingFeeRow {
  transition: opacity 300ms ease, max-height 300ms ease, margin 300ms ease;
  max-height: 0;
  opacity: 0;
  margin-bottom: 0 !important;
  overflow: hidden;
  display: flex;
}

#shippingFeeRow.show {
  max-height: 40px;
  opacity: 1;
  margin-bottom: 8px !important;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  max-width: min(480px, calc(100% - 32px));
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 850;
  transform: translate(-50%, 130%);
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
  pointer-events: none;
}

.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: var(--paper);
  border: 3px solid var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  cursor: pointer;
}

.bento-card:hover:not(.dragging):not(.dragging-preview) {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  z-index: 10;
}

.bento-card.dragging-preview {
  opacity: 0.4;
  transform: scale(0.95);
  border-style: dashed;
  z-index: 0;
}

.bento-card.dragging {
  opacity: 0;
}

.bento-card.is-studio::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 40px;
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.bento-card.is-studio:hover::after {
  border-color: rgba(0, 0, 0, 0.1);
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ===== Cart & Badge Animations ===== */
@keyframes cartBounce {
  0% {
    transform: scale(1);
  }

  20% {
    transform: scale(0.8) rotate(-10deg);
  }

  45% {
    transform: scale(1.2) rotate(10deg);
  }

  65% {
    transform: scale(0.95) rotate(-5deg);
  }

  85% {
    transform: scale(1.05) rotate(0deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes badgePop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.4);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes cartRipple {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.cart-bouncing svg {
  animation: cartBounce 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-bouncing::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: var(--yellow);
  z-index: -1;
  animation: cartRipple 600ms ease-out;
}

.badge-popping {
  animation: badgePop 450ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes badgePop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  60% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== Custom Dropdown ===== */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  border: 2px solid #d8d8df;
  border-radius: 12px;
  background: var(--paper);
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.custom-select-trigger:hover {
  border-color: var(--ink);
}

.custom-select-trigger.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

.custom-select-trigger span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--paper);
  border: 2px solid #d8d8df;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 200ms ease, opacity 200ms ease;
  display: flex;
  flex-direction: column;
}

.custom-select-wrapper.open .custom-select-dropdown {
  max-height: 320px;
  opacity: 1;
}

.dropdown-search {
  padding: 10px;
  border-bottom: 1px solid #ededf0;
}

.dropdown-search input {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid #ededf0;
  border-radius: 8px;
  outline: none;
  font-size: 0.9rem;
}

.dropdown-search input:focus {
  border-color: var(--ink);
}

.dropdown-options {
  overflow-y: auto;
  max-height: 240px;
  padding: 6px;
}

.dropdown-option {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 150ms ease;
  font-size: 0.95rem;
}

.dropdown-option:hover {
  background: #f4f4f6;
}

.dropdown-option.selected {
  background: var(--ink);
  color: #fff;
}

.dropdown-option.selected span {
  color: #fff;
}

.dropdown-option span.flag {
  font-size: 1.2rem;
}

.dropdown-option.hidden {
  display: none;
}

/* ===== Shipping Methods ===== */
.shipping-methods-wrapper {
  grid-column: 1 / -1;
  margin-top: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 400ms ease, opacity 400ms ease, margin 400ms ease;
}

.shipping-methods-wrapper.show {
  max-height: 800px;
  opacity: 1;
  margin-top: 10px;
}

.shipping-methods-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.shipping-method-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 2px solid #d8d8df;
  border-radius: 12px;
  cursor: pointer;
  transition: all 200ms ease;
  background: var(--paper);
}

.shipping-method-card:hover {
  border-color: var(--ink);
}

.shipping-method-card.active {
  border-color: var(--ink);
  background: #fafafb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.shipping-method-info strong {
  display: block;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 4px;
  font-weight: 800;
}

.shipping-method-info span {
  font-size: 0.85rem;
  color: var(--muted);
}

.shipping-method-price {
  font-weight: 850;
  font-size: 1.1rem;
}

/* ===== Portfolio Editorial Layout ===== */
.portfolio-container {
  width: 100%;
  max-width: 1240px;
  /* Synchronized with storefront .container */
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) 20px;
}

.bento-grid {
  display: grid;
  width: 100%;
}

.portfolio-hero-header {
  padding: 0 0 var(--pf-header-pb) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-main-title {
  font-size: var(--pf-title-size);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  text-transform: uppercase;
  color: var(--ink);
}

.hero-subtext {
  font-size: var(--pf-subtext-size);
  line-height: 1.5;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 40px;
  margin-left: auto;
  margin-right: auto;
}

.hero-card-actions {
  display: flex;
  gap: var(--pf-btn-gap);
  justify-content: center;
}

.pill-btn {
  height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.pill-btn.primary {
  background: var(--ink);
  color: white;
}

.pill-btn.secondary {
  background: white;
  color: var(--ink);
  border: 2px solid var(--ink);
}

.pill-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pill-btn.primary:hover {
  background: #252525;
}

.hero-stats-row {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 24px;
  margin-top: auto;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 24px;
  font-weight: 950;
  color: var(--ink);
}

.stat-label {
  font-size: 10px;
  font-weight: 800;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Bento Card Elements */
.bento-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bento-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-card:hover .bento-media img {
  transform: scale(1.05);
}

.bento-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.4) 100%);
  color: white;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bento-card:hover .bento-overlay,
.bento-card.is-studio .bento-overlay {
  opacity: 1;
}

.bento-card.is-dark .bento-overlay {
  background: none;
}

.bento-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bento-tag {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bento-corner-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-45deg);
  transition: transform 0.4s ease;
}

.bento-card:hover .bento-corner-btn {
  transform: rotate(0);
}

.bento-title {
  font-size: 24px;
  font-weight: 950;
  line-height: 1.1;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.bento-text {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.8;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.portfolio-sub-text {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
  margin-top: 24px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  opacity: 0.6;
}

/* End of Portfolio Components */

/* ===== Header Shipping Box Button & Animations ===== */
.shipping-box-btn {
  position: relative;
  border: 2px solid transparent !important;
  background: transparent !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  transition: all 160ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.shipping-box-btn .badge-count {
  display: flex !important;
}

.shipping-box-btn:hover {
  transform: scale(1.08) translateY(-1px) !important;
  background: var(--soft) !important;
  box-shadow: none !important;
}

.shipping-box-btn:active {
  transform: scale(0.95) translateY(1px) !important;
  box-shadow: none !important;
}

@keyframes shippingBoxBounce {
  0%, 100% {
    transform: translateY(0);
  }
  15% {
    transform: translateY(-3.5px);
  }
  30% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-1.5px);
  }
  60%, 80% {
    transform: translateY(0);
  }
}

.shipping-box-active svg {
  animation: shippingBoxBounce 2.5s infinite ease-in-out;
}

@keyframes badgeGlowPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 199, 0, 0.7);
  }
  50% {
    box-shadow: 0 0 8px 3px rgba(255, 199, 0, 0.45);
  }
}

.shipping-badge-pulse {
  animation: badgeGlowPulse 2s infinite ease-in-out;
}

/* ===== Top-of-screen Toasts (mobile-friendly) ===== */
.pacco-top-toast-host {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  width: min(calc(100% - 32px), 420px);
}

.pacco-top-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 14px;
  background: #111;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.2, 0.9, 0.3, 1);
  pointer-events: auto;
}

.pacco-top-toast--show {
  opacity: 1;
  transform: translateY(0);
}

.pacco-top-toast--hide {
  opacity: 0;
  transform: translateY(-12px);
}

.pacco-top-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.pacco-top-toast-msg {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.pacco-top-toast-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 140ms ease, color 140ms ease;
  flex-shrink: 0;
}
.pacco-top-toast-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Type variants */
/* Success: matches the .modal-add-btn.added state (PAC.CO confirm green).
   Same #4ade80 background and #000 text as the button so the visual
   confirmation reads as one continuous feedback. */
.pacco-top-toast--success {
  background: #4ade80;
  color: #000;
}
.pacco-top-toast--success .pacco-top-toast-icon {
  background: rgba(0, 0, 0, 0.18);
}

.pacco-top-toast--error {
  background: #c0392b;
  color: #fff;
}
.pacco-top-toast--error .pacco-top-toast-icon {
  background: rgba(255, 255, 255, 0.2);
}

.pacco-top-toast--warning {
  background: #ffe600;
  color: #111;
  border: 2px solid #111;
}
.pacco-top-toast--warning .pacco-top-toast-icon {
  background: #111;
  color: #ffe600;
}
.pacco-top-toast--warning .pacco-top-toast-close {
  color: rgba(17, 17, 17, 0.6);
}
.pacco-top-toast--warning .pacco-top-toast-close:hover {
  background: rgba(17, 17, 17, 0.1);
  color: #111;
}

.pacco-top-toast--info {
  background: #2563eb;
  color: #fff;
}
.pacco-top-toast--info .pacco-top-toast-icon {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== Auth alert modal (Account not found / Signup success) ===== */
.pacco-auth-alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: paccoAlertFadeIn 220ms ease both;
}
.pacco-auth-alert-overlay.open { display: flex; }
@keyframes paccoAlertFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pacco-auth-alert {
  background: #fff;
  border: 3px solid #050505;
  border-radius: 42px;
  box-shadow: none;
  width: 100%;
  max-width: 440px;
  padding: 28px 26px;
  text-align: center;
  animation: paccoAlertPopIn 280ms cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes paccoAlertPopIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pacco-auth-alert-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: #ffe600;
  border: 3px solid #111;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  color: #111;
}
.pacco-auth-alert-icon--success {
  background: #1f7a3a;
  color: #fff;
}
.pacco-auth-alert-icon--warning {
  background: #ffe600;
  color: #111;
}

.pacco-auth-alert-title {
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #111;
}

.pacco-auth-alert-msg {
  color: #555;
  margin: 0 0 18px 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.pacco-auth-alert-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pacco-auth-alert-btn {
  flex: 1;
  min-width: 120px;
  padding: 12px 18px;
  border: 2px solid #111;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 140ms cubic-bezier(0.2, 0.9, 0.3, 1);
  font-family: inherit;
}

.pacco-auth-alert-btn--primary {
  background: #111;
  color: #fff;
  box-shadow: none;
}
.pacco-auth-alert-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: none;
}
.pacco-auth-alert-btn--primary:active {
  transform: translateY(1px);
  box-shadow: none;
}

.pacco-auth-alert-btn--ghost {
  background: #fff;
  color: #111;
  box-shadow: none;
}
.pacco-auth-alert-btn--ghost:hover {
  transform: translateY(-1px);
  box-shadow: none;
  background: #fafaf9;
}
.pacco-auth-alert-btn--ghost:active {
  transform: translateY(1px);
  box-shadow: none;
}