.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}

.eyebrow {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.pill {
  color: var(--text-soft);
  background: #f5f8fc;
  border: 1px solid var(--border);
}

.pill.brand {
  color: var(--brand-800);
  background: var(--brand-100);
}

.pill.sponsored {
  color: #864d00;
  background: #fff2d9;
  border-color: #ffd18a;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  border: 0;
  border-radius: 999px;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  font-weight: 800;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-800));
  box-shadow: var(--shadow-xs);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.secondary-button {
  color: var(--brand-800);
  background: var(--brand-100);
}

.secondary-button:hover {
  background: #dae8ff;
}

.ghost-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
}

.ghost-button:hover {
  background: #ffffff;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  color: var(--text-soft);
}

.vapt-account-nudge-shell {
  position: fixed;
  inset: 0;
  z-index: 10030;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  pointer-events: none;
}

.vapt-account-nudge-shell.is-visible .vapt-account-nudge {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.vapt-account-nudge-shell.is-closing .vapt-account-nudge {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.98);
}

.vapt-account-nudge {
  position: relative;
  width: min(440px, calc(100vw - 32px));
  overflow: hidden;
  pointer-events: auto;
  border: 1px solid rgba(191, 209, 229, 0.86);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 10%, rgba(31, 120, 255, 0.22), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.98) 50%, rgba(233, 243, 255, 0.98) 100%);
  box-shadow: 0 28px 80px rgba(11, 39, 91, 0.2), 0 8px 24px rgba(18, 98, 219, 0.1);
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale(0.98);
  transition:
    opacity 0.28s ease,
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.vapt-account-nudge::before,
.vapt-account-nudge::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.vapt-account-nudge::before {
  width: 148px;
  height: 148px;
  right: -54px;
  top: -50px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(18, 98, 219, 0.34), rgba(75, 147, 255, 0.08));
}

.vapt-account-nudge::after {
  width: 240px;
  height: 1px;
  right: 28px;
  top: 86px;
  background: linear-gradient(90deg, transparent, rgba(18, 98, 219, 0.36), transparent);
  transform: rotate(-14deg);
}

.vapt-account-nudge-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.vapt-account-nudge-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 42px;
}

.vapt-account-nudge-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
  box-shadow: 0 18px 34px rgba(18, 98, 219, 0.28);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.vapt-account-nudge-mark::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(18, 98, 219, 0.22);
  border-radius: 24px;
  animation: vaptAccountNudgePulse 1.8s ease-in-out infinite;
}

.vapt-account-nudge-kicker {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--brand-800);
  background: rgba(234, 243, 255, 0.86);
  border: 1px solid rgba(191, 209, 229, 0.7);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vapt-account-nudge h2 {
  margin: 0;
  color: #092c69;
  font-size: clamp(1.55rem, 4vw, 2rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.vapt-account-nudge p {
  margin: 0;
  color: #49647f;
  line-height: 1.55;
}

.vapt-account-nudge-highlight {
  display: block;
  border-radius: 18px;
  padding: 13px 14px;
  color: #0b3d91;
  background:
    linear-gradient(135deg, rgba(234, 243, 255, 0.9), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at top right, rgba(75, 147, 255, 0.18), transparent 42%);
  border: 1px solid rgba(191, 209, 229, 0.8);
  font-weight: 900;
}

.vapt-account-nudge-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.vapt-account-nudge-actions .primary-button {
  min-height: 52px;
  box-shadow: 0 16px 30px rgba(18, 98, 219, 0.24);
}

.vapt-account-nudge-actions .ghost-button {
  min-height: 52px;
  color: var(--brand-800);
  background: rgba(255, 255, 255, 0.74);
}

.vapt-account-nudge-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(191, 209, 229, 0.86);
  border-radius: 999px;
  color: #284665;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 22px rgba(14, 39, 74, 0.08);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.vapt-account-nudge-close:hover {
  color: var(--brand-800);
  background: #ffffff;
  transform: rotate(8deg) scale(1.03);
}

@keyframes vaptAccountNudgePulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  position: relative;
  display: grid;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #cbdcf2;
  box-shadow: var(--shadow-md);
}

.product-favorite {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
}

.product-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(31, 120, 255, 0.12), transparent 36%),
    linear-gradient(180deg, #f5f9ff 0%, #e9f1fb 100%);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.product-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.rating {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.rating strong {
  color: var(--warning);
}

.table-shell {
  overflow-x: auto;
  overflow-y: hidden;
}

.table-shell table {
  min-width: 920px;
}

.table-shell table tbody tr {
  transition: background-color 0.16s ease;
}

.table-shell table tbody tr:nth-child(even) {
  background: rgba(247, 251, 255, 0.55);
}

.table-shell table tbody tr:hover {
  background: rgba(223, 236, 255, 0.72);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #ebf1f7;
  vertical-align: top;
}

th {
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span,
.field strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 120px;
  padding: 14px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(75, 147, 255, 0.14);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.action-row .primary-button,
.action-row .secondary-button,
.action-row .ghost-button {
  min-width: 138px;
}

.tracking-panel {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.tracking-map {
  width: 100%;
  height: 320px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-soft);
}

.summary-divider {
  height: 1px;
  background: #e7eef7;
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 260px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.toast strong {
  display: block;
  margin-bottom: 4px;
}

.payment-options {
  display: grid;
  gap: 12px;
}

.payment-option {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.payment-option.is-selected {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(75, 147, 255, 0.14);
}

.payment-option input {
  accent-color: var(--brand-700);
}

.ai-assistant {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 85;
}

.ai-fab {
  max-width: calc(100vw - 28px);
  min-height: 50px;
  padding: 0 18px;
  white-space: nowrap;
  box-shadow: 0 16px 34px rgba(18, 98, 219, 0.24);
}

.ai-fab-line {
  display: inline;
}

.ai-fab-line + .ai-fab-line::before {
  content: " ";
}

.ai-panel {
  width: min(360px, calc(100vw - 30px));
  display: none;
  margin-top: 10px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.ai-assistant.is-open .ai-panel {
  display: grid;
}

.ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #e7eef7;
}

.ai-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #e7eef7;
}

.ai-quick .ghost-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.ai-messages {
  display: grid;
  gap: 10px;
  max-height: 320px;
  padding: 14px;
  overflow-y: auto;
}

.ai-message {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.ai-message.is-user {
  margin-left: auto;
  background: var(--brand-700);
  color: #ffffff;
}

.ai-message.is-bot {
  background: #f0f5fb;
  color: var(--text);
}

.ai-message.is-typing {
  color: var(--text-soft);
}

.ai-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #e7eef7;
}

.ai-form input {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 14px;
  outline: 0;
}

@media (max-width: 640px) {
  .vapt-account-nudge-shell {
    align-items: flex-end;
    justify-content: center;
    padding: 14px;
  }

  .vapt-account-nudge {
    width: 100%;
    border-radius: 26px;
  }

  .vapt-account-nudge-inner {
    gap: 14px;
    padding: 18px;
  }

  .vapt-account-nudge-top {
    gap: 12px;
  }

  .vapt-account-nudge-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
  }

  .vapt-account-nudge-actions {
    grid-template-columns: 1fr;
  }

  .vapt-account-nudge-actions .primary-button,
  .vapt-account-nudge-actions .ghost-button {
    width: 100%;
  }

  .ai-assistant {
    right: 10px;
    bottom: 10px;
  }

  .ai-fab {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    min-height: 46px;
    padding: 7px 15px;
    font-size: 0.86rem;
    line-height: 1.02;
    white-space: normal;
  }

  .ai-fab-line {
    display: block;
  }

  .ai-fab-line + .ai-fab-line::before {
    content: "";
  }
}

@media (prefers-reduced-motion: reduce) {
  .vapt-account-nudge,
  .vapt-account-nudge-close {
    transition: none;
  }

  .vapt-account-nudge-mark::after {
    animation: none;
  }
}

.order-chat-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 16px;
}

.order-chat-modal.is-hidden {
  display: none;
}

.order-chat-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7, 22, 48, 0.62);
  backdrop-filter: blur(8px);
}

.order-chat-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: min(720px, calc(100vh - 32px));
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid #d8e5f7;
  background: #ffffff;
  box-shadow: 0 26px 60px rgba(7, 22, 48, 0.24);
}

.order-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-chat-kicker {
  display: block;
  color: #637895;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-chat-header h2 {
  margin: 4px 0 0;
  color: #142d4d;
  font-size: 1.25rem;
  line-height: 1.15;
}

.order-chat-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 220px;
  overflow: auto;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #e1eaf6;
  background: #f7faff;
}

.order-chat-empty {
  align-self: center;
  justify-self: center;
  color: #6e819d;
  text-align: center;
  font-size: 0.92rem;
}

.order-chat-message {
  width: fit-content;
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 16px 16px 16px 6px;
  background: #ffffff;
  border: 1px solid #e0e9f6;
  color: #173154;
}

.order-chat-message.is-mine {
  justify-self: end;
  border-color: #1d4ed8;
  border-radius: 16px 16px 6px 16px;
  background: #1d4ed8;
  color: #ffffff;
}

.order-chat-message p {
  margin: 0;
  line-height: 1.45;
}

.order-chat-message span {
  display: block;
  margin-top: 5px;
  color: inherit;
  opacity: 0.68;
  font-size: 0.72rem;
}

.order-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.order-chat-form input {
  min-width: 0;
  min-height: 46px;
  border: 1px solid #dbe5f0;
  border-radius: 999px;
  padding: 0 14px;
  background: #f8fbff;
  color: #16324f;
}

@media (max-width: 1120px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .product-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .full {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-chat-dialog {
    border-radius: 18px;
  }

  .order-chat-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card {
    border-radius: 16px;
  }

  .product-body {
    gap: 6px;
    padding: 12px;
  }

  .product-title {
    font-size: 0.86rem;
    line-height: 1.28;
  }

  .toast-stack {
    right: 10px;
    left: 10px;
    bottom: 10px;
  }

  .toast {
    min-width: 0;
    max-width: 100%;
  }
}
