/* ============================================================
   SHIPFLOW — Main Stylesheet
   ============================================================ */

/* Variables */
:root {
  --blue-600:   #2563EB;
  --blue-700:   #1D4ED8;
  --blue-100:   #DBEAFE;
  --blue-50:    #EFF6FF;
  --gray-900:   #111827;
  --gray-800:   #1F2937;
  --gray-700:   #374151;
  --gray-500:   #6B7280;
  --gray-300:   #D1D5DB;
  --gray-100:   #F3F4F6;
  --gray-50:    #F9FAFB;
  --green-600:  #16A34A;
  --green-100:  #DCFCE7;
  --red-600:    #DC2626;
  --red-100:    #FEE2E2;
  --yellow-500: #EAB308;
  --yellow-100: #FEF9C3;
  --white:      #FFFFFF;
  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  12px;
  --shadow-sm:  0 1px 2px rgba(0,0,0,.06);
  --shadow:     0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);
  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --transition: .18s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--gray-800); background: var(--gray-50); line-height: 1.6; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* Container */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.navbar__inner {
  display: flex; align-items: center; gap: 1rem;
  height: 64px;
}
.navbar__brand {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.2rem; font-weight: 700; color: var(--gray-900);
  text-decoration: none; flex-shrink: 0;
}
.navbar__logo { width: 36px; height: 36px; }
.navbar__links {
  display: flex; align-items: center; gap: .25rem;
  list-style: none; margin-left: auto;
}
.navbar__links a {
  padding: .45rem .85rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; color: var(--gray-700);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.navbar__links a:hover,
.navbar__links a.active { background: var(--blue-50); color: var(--blue-600); }
.navbar__hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .5rem;
}
.navbar__hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: var(--transition); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.25rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9rem; cursor: pointer;
  border: 2px solid transparent; transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn--primary   { background: var(--blue-600); color: var(--white); border-color: var(--blue-600); }
.btn--primary:hover { background: var(--blue-700); border-color: var(--blue-700); text-decoration: none; }
.btn--outline   { background: transparent; color: var(--blue-600); border-color: var(--blue-600); }
.btn--outline:hover { background: var(--blue-50); text-decoration: none; }
.btn--danger    { background: var(--red-600); color: var(--white); border-color: var(--red-600); }
.btn--success   { background: var(--green-600); color: var(--white); border-color: var(--green-600); }
.btn--ghost     { background: transparent; color: var(--gray-700); border-color: var(--gray-300); }
.btn--ghost:hover { background: var(--gray-100); text-decoration: none; }
.btn--sm  { padding: .4rem .9rem; font-size: .82rem; }
.btn--lg  { padding: .85rem 1.75rem; font-size: 1rem; }
.btn--full { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--blue-700) 0%, #1e40af 60%, #1d4ed8 100%);
  color: var(--white); padding: 5rem 0 4rem;
  text-align: center;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; line-height: 1.15; margin-bottom: 1rem; }
.hero p  { font-size: 1.15rem; opacity: .88; max-width: 560px; margin: 0 auto 2rem; }
.hero__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* Tracking bar in hero */
.track-bar {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.5rem; max-width: 600px; margin: 2.5rem auto 0;
  box-shadow: var(--shadow-lg);
}
.track-bar h2 { font-size: 1rem; font-weight: 600; color: var(--gray-700); margin-bottom: .75rem; text-align: left; }
.track-bar__row { display: flex; gap: .5rem; }
.track-bar input {
  flex: 1; padding: .7rem 1rem; border: 2px solid var(--gray-300); border-radius: var(--radius-sm);
  font-size: .95rem; transition: border-color var(--transition);
}
.track-bar input:focus { outline: none; border-color: var(--blue-600); }

/* ============================================================
   FEATURES / SERVICES GRID
   ============================================================ */
.section { padding: 4rem 0; }
.section__header { text-align: center; margin-bottom: 3rem; }
.section__header h2 { font-size: 1.9rem; font-weight: 700; color: var(--gray-900); }
.section__header p  { color: var(--gray-500); margin-top: .5rem; font-size: 1rem; }

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.75rem; border: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--blue-50); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.4rem;
}
.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .4rem; }
.card p  { font-size: .9rem; color: var(--gray-500); line-height: 1.55; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; font-size: .875rem; color: var(--gray-700); margin-bottom: .35rem; }
.form-control {
  width: 100%; padding: .65rem .95rem;
  border: 2px solid var(--gray-300); border-radius: var(--radius-sm);
  font-size: .95rem; background: var(--white); color: var(--gray-900);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.form-control.is-invalid { border-color: var(--red-600); }
.form-error { font-size: .8rem; color: var(--red-600); margin-top: .3rem; }
.form-hint  { font-size: .8rem; color: var(--gray-500); margin-top: .3rem; }

.form-row { display: grid; gap: 1rem; }
.form-row--2 { grid-template-columns: 1fr 1fr; }
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }

/* Fieldset section */
.fieldset {
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  padding: 1.5rem; margin-bottom: 1.5rem;
}
.fieldset legend {
  font-weight: 600; font-size: .9rem; color: var(--gray-700);
  padding: 0 .5rem; margin-left: -.25rem;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--gray-300); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
thead th {
  background: var(--gray-50); padding: .85rem 1rem;
  text-align: left; font-size: .82rem; font-weight: 600;
  color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--gray-300);
}
tbody td { padding: .85rem 1rem; font-size: .9rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--gray-50); }

/* ============================================================
   BADGES / STATUS PILLS
   ============================================================ */
.badge {
  display: inline-block; padding: .25rem .65rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
}
.badge--blue   { background: var(--blue-100);   color: var(--blue-700); }
.badge--green  { background: var(--green-100);  color: var(--green-600); }
.badge--red    { background: var(--red-100);    color: var(--red-600); }
.badge--yellow { background: var(--yellow-100); color: #92400E; }
.badge--gray   { background: var(--gray-100);   color: var(--gray-700); }

/* ============================================================
   ALERT / FLASH
   ============================================================ */
.flash {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.25rem; border-radius: var(--radius-sm);
  margin: 1rem auto; max-width: 900px; font-size: .9rem; font-weight: 500;
}
.flash--success { background: var(--green-100); color: var(--green-600); border: 1px solid #86EFAC; }
.flash--error   { background: var(--red-100);   color: var(--red-600);   border: 1px solid #FCA5A5; }
.flash--info    { background: var(--blue-100);  color: var(--blue-700);  border: 1px solid #93C5FD; }
.flash--warning { background: var(--yellow-100); color: #92400E;         border: 1px solid #FDE68A; }
.flash__close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: inherit; line-height: 1; }

/* ============================================================
   TRACKING PAGE
   ============================================================ */
.tracking-result { max-width: 800px; margin: 2rem auto; }
.tracking-header {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-300); padding: 1.75rem;
  margin-bottom: 1.5rem; box-shadow: var(--shadow-sm);
}
.tracking-header__top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; }
.tracking-number { font-size: 1.4rem; font-weight: 700; color: var(--gray-900); }
.tracking-route  { font-size: .9rem; color: var(--gray-500); margin-top: .25rem; }

.tracking-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--gray-100); }
.tracking-meta__item label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); }
.tracking-meta__item span  { display: block; font-size: .95rem; font-weight: 600; color: var(--gray-900); margin-top: .15rem; }

/* Timeline */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before { content: ''; position: absolute; left: .55rem; top: 0; bottom: 0; width: 2px; background: var(--gray-300); }
.timeline__item { position: relative; padding: 0 0 1.5rem 1.5rem; }
.timeline__item::before {
  content: ''; position: absolute; left: -1.5rem; top: .3rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gray-300); border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--gray-300);
}
.timeline__item.is-current::before { background: var(--blue-600); box-shadow: 0 0 0 2px var(--blue-600); }
.timeline__item.is-delivered::before { background: var(--green-600); box-shadow: 0 0 0 2px var(--green-600); }
.timeline__status { font-weight: 600; font-size: .95rem; color: var(--gray-900); }
.timeline__location { font-size: .875rem; color: var(--gray-500); margin-top: .15rem; }
.timeline__time { font-size: .8rem; color: var(--gray-400); margin-top: .1rem; }

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
body.admin-body { display: flex; min-height: 100vh; background: var(--gray-100); }

.sidebar {
  width: 240px; flex-shrink: 0; background: var(--gray-900);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; z-index: 200;
  transition: transform var(--transition);
}
.sidebar__brand {
  display: flex; align-items: center; gap: .6rem;
  padding: 1.25rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--white); font-weight: 700; font-size: 1.05rem; text-decoration: none;
}
.sidebar__brand svg { width: 30px; height: 30px; }
.sidebar__nav { padding: 1rem 0; flex: 1; }
.sidebar__section { padding: .4rem 1rem .2rem; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.35); }
.sidebar__link {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem 1rem; color: rgba(255,255,255,.7); font-size: .88rem; font-weight: 500;
  text-decoration: none; transition: background var(--transition), color var(--transition);
  border-radius: 0; margin: .05rem .5rem; border-radius: var(--radius-sm);
}
.sidebar__link:hover, .sidebar__link.active { background: rgba(255,255,255,.08); color: var(--white); text-decoration: none; }
.sidebar__link.active { background: var(--blue-600); color: var(--white); }
.sidebar__link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar__footer { padding: 1rem; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar__user { font-size: .82rem; color: rgba(255,255,255,.6); }
.sidebar__user strong { display: block; color: var(--white); }

.admin-main { margin-left: 240px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar {
  background: var(--white); border-bottom: 1px solid var(--gray-300);
  padding: 0 1.5rem; height: 60px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.admin-topbar h1 { font-size: 1.1rem; font-weight: 600; color: var(--gray-900); }
.admin-topbar__right { display: flex; align-items: center; gap: .75rem; }

.admin-content { padding: 1.75rem; flex: 1; }

/* Stats cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.stat-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem; border: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}
.stat-card__label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); }
.stat-card__value { font-size: 2rem; font-weight: 700; color: var(--gray-900); line-height: 1.1; margin-top: .25rem; }
.stat-card__sub   { font-size: .8rem; color: var(--gray-500); margin-top: .2rem; }
.stat-card--blue   .stat-card__value { color: var(--blue-600); }
.stat-card--green  .stat-card__value { color: var(--green-600); }
.stat-card--red    .stat-card__value { color: var(--red-600); }
.stat-card--yellow .stat-card__value { color: var(--yellow-500); }

/* Panel */
.panel { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-300); box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; }
.panel__header { padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.panel__header h2 { font-size: 1rem; font-weight: 600; color: var(--gray-900); }
.panel__body { padding: 1.5rem; }

/* Barcode scan area */
.scan-area {
  border: 2px dashed var(--gray-300); border-radius: var(--radius-lg);
  padding: 2.5rem; text-align: center; background: var(--gray-50);
  transition: border-color var(--transition), background var(--transition);
}
.scan-area:focus-within { border-color: var(--blue-600); background: var(--blue-50); }
.scan-area__icon { font-size: 2.5rem; margin-bottom: .75rem; }
.scan-area h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .35rem; }
.scan-area p  { font-size: .875rem; color: var(--gray-500); margin-bottom: 1rem; }

/* Step indicator */
.steps { display: flex; align-items: center; margin-bottom: 2rem; }
.step { display: flex; align-items: center; gap: .5rem; flex: 1; }
.step:not(:last-child)::after { content: ''; flex: 1; height: 2px; background: var(--gray-300); margin: 0 .5rem; }
.step__num {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 700; border: 2px solid var(--gray-300);
  background: var(--white); color: var(--gray-500); flex-shrink: 0;
}
.step.is-active .step__num  { border-color: var(--blue-600); color: var(--blue-600); }
.step.is-done   .step__num  { border-color: var(--green-600); background: var(--green-600); color: var(--white); }
.step__label { font-size: .8rem; font-weight: 500; color: var(--gray-500); }
.step.is-active .step__label { color: var(--blue-600); font-weight: 600; }

/* Pagination */
.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 1.25rem; }
.pagination a, .pagination span {
  padding: .4rem .75rem; border-radius: var(--radius-sm); font-size: .875rem;
  border: 1px solid var(--gray-300); background: var(--white); color: var(--gray-700);
  text-decoration: none; transition: all var(--transition);
}
.pagination a:hover  { background: var(--blue-50); border-color: var(--blue-600); color: var(--blue-600); }
.pagination .current { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }

/* Login page */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%); padding: 2rem; }
.login-card { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.login-card__logo { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1.75rem; }
.login-card h1 { font-size: 1.4rem; font-weight: 700; margin-bottom: .4rem; }
.login-card p  { color: var(--gray-500); font-size: .9rem; margin-bottom: 1.75rem; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.text-muted { color: var(--gray-500); }
.text-danger { color: var(--red-600); }
.text-success { color: var(--green-600); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar__links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-300); padding: 1rem; gap: .25rem; box-shadow: var(--shadow); }
  .navbar__links.open { display: flex; }
  .navbar__hamburger { display: flex; margin-left: auto; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .form-row--2, .form-row--3 { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .step::after { display: none; }
  .admin-main { margin-left: 0; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .tracking-header__top { flex-direction: column; }
}

@media (max-width: 480px) {
  .grid--4 { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
  .track-bar__row { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
 * Inline action feedback — chip + row highlight
 * Pattern: feedback_inline_action_feedback.md
 * ============================================================ */
.inline-result {
  display: inline-block;
  padding: .25rem .65rem;
  margin-left: .5rem;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 500;
  white-space: nowrap;
  animation: inline-result-fade 4.5s ease-in-out forwards;
  pointer-events: none;
}
.inline-result--success { background: #DCFCE7; color: #166534; border: 1px solid #86EFAC; }
.inline-result--error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.inline-result--info    { background: #DBEAFE; color: #1E40AF; border: 1px solid #93C5FD; }
.inline-result--block {
  display: block;
  width: fit-content;
  margin: .75rem 1.25rem;
}
@keyframes inline-result-fade {
  0%   { opacity: 0; transform: translateY(-4px); }
  10%  { opacity: 1; transform: translateY(0); }
  80%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-2px); }
}
.just-changed {
  animation: just-changed-pulse 2s ease-in-out;
}
@keyframes just-changed-pulse {
  0%   { background-color: #DBEAFE; }
  60%  { background-color: #EFF6FF; }
  100% { background-color: transparent; }
}

/* ============================================================
 * Inline confirmation popover (replaces native window.confirm)
 * Pattern: feedback_inline_confirm_popover.md
 * ============================================================ */
.confirm-popover {
  position: absolute;
  z-index: 1100;
  width: 280px;
  max-width: 92vw;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15,23,42,.18), 0 2px 6px rgba(15,23,42,.06);
  animation: confirm-pop-in .16s ease-out;
}
.confirm-popover--exiting { animation: confirm-pop-out .14s ease-in forwards; }
@keyframes confirm-pop-in {
  0%   { opacity: 0; transform: translateY(4px) scale(.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes confirm-pop-out {
  to { opacity: 0; transform: translateY(2px); }
}
.confirm-popover__body {
  padding: .85rem 1rem .75rem;
}
.confirm-popover__message {
  margin: 0 0 .8rem;
  font-size: .875rem;
  color: #1F2937;
  line-height: 1.45;
}
.confirm-popover__actions {
  display: flex;
  gap: .4rem;
  justify-content: flex-end;
}
.confirm-popover__btn {
  font: inherit;
  font-size: .82rem;
  font-weight: 500;
  padding: .35rem .85rem;
  border-radius: 5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .12s ease;
}
.confirm-popover__btn--cancel {
  background: #fff;
  border-color: #E5E7EB;
  color: #4B5563;
}
.confirm-popover__btn--cancel:hover { background: #F9FAFB; }
.confirm-popover__btn--confirm {
  background: #DC2626;
  color: #fff;
  border-color: #DC2626;
}
.confirm-popover__btn--confirm:hover { background: #B91C1C; border-color: #B91C1C; }
.confirm-popover[data-tone="primary"] .confirm-popover__btn--confirm {
  background: #2563EB; border-color: #2563EB;
}
.confirm-popover[data-tone="primary"] .confirm-popover__btn--confirm:hover {
  background: #1D4ED8; border-color: #1D4ED8;
}
.confirm-popover__arrow {
  position: absolute;
  width: 10px; height: 10px;
  background: #fff;
  left: 50%; margin-left: -5px;
}
.confirm-popover[data-arrow="bottom"] .confirm-popover__arrow {
  bottom: -6px;
  border-right: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
  transform: rotate(45deg);
}
.confirm-popover[data-arrow="top"] .confirm-popover__arrow {
  top: -6px;
  border-left: 1px solid #E5E7EB;
  border-top: 1px solid #E5E7EB;
  transform: rotate(45deg);
}
@media (max-width: 480px) {
  .confirm-popover { width: 92vw; max-width: 340px; }
}
