:root {
  --green: #15c978;
  --green-dark: #078b55;
  --ink: #06110e;
  --muted: #68746f;
  --line: rgba(7, 28, 23, 0.12);
  --soft: #f4faf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(#010806 0 150px, transparent 150px),
    linear-gradient(180deg, #fafcfb 0%, #fff 55%, #f5faf8 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.topbar,
.main-nav,
main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar,
.main-nav {
  color: #fff;
  background: #010806;
  box-shadow: 0 0 0 100vmax #010806;
  clip-path: inset(0 -100vmax);
}

.topbar {
  display: grid;
  grid-template-columns: 210px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 22px 0 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  line-height: 0.92;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 10px;
  color: var(--green);
  box-shadow: 0 0 24px rgba(21, 201, 120, 0.3);
  font-size: 13px;
}

.search {
  display: flex;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.search input {
  width: 100%;
  min-width: 0;
  padding: 0 18px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.search input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.search button {
  display: grid;
  width: 58px;
  border: 0;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.quick-actions {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.quick-actions a,
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.quick-actions a.active {
  color: var(--green);
}

.main-nav {
  display: flex;
  gap: 54px;
  height: 58px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}

[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[data-icon] svg {
  width: 20px;
  height: 20px;
}

main {
  padding-top: 30px;
}

.back-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  color: #34443f;
  font-weight: 700;
}

h1 {
  margin: 0 0 22px;
  font-size: 34px;
}

.steps {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 18px;
  align-items: center;
  max-width: 700px;
  margin-bottom: 26px;
}

.steps span {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: #72807b;
  font-weight: 800;
}

.steps b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #74817c;
  background: #eef2f1;
}

.steps .active {
  color: var(--green-dark);
}

.steps .active b {
  color: #fff;
  background: var(--green-dark);
}

.steps i {
  height: 2px;
  background: #e6ecea;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 30px;
  align-items: start;
}

.panel,
.order-summary,
.payment-panel,
.benefit-bar {
  border: 1px solid rgba(7, 28, 23, 0.08);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(14, 42, 35, 0.07);
}

.panel {
  margin-bottom: 22px;
  padding: 0;
  box-shadow: none;
  border: 0;
  background: transparent;
}

.panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.address-card,
.shipping-option,
.note-panel textarea {
  border: 1px solid rgba(7, 28, 23, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(14, 42, 35, 0.06);
}

.address-card {
  padding: 20px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.panel-head h3,
.address-card h3 {
  margin: 0;
  font-size: 16px;
}

.panel-head button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-weight: 800;
}

.address-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 24px;
}

.address-option input {
  position: absolute;
  opacity: 0;
}

.address-option > span {
  display: grid;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  place-items: center;
  border: 1px solid rgba(7, 139, 85, 0.4);
  border-radius: 50%;
}

.address-option input:checked + span {
  border-color: var(--green-dark);
}

.address-option input:checked + span::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-dark);
}

.address-option strong {
  display: block;
  margin-bottom: 9px;
}

.address-option em,
.address-option mark {
  color: var(--green-dark);
  font-style: normal;
}

.address-option mark {
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: 5px;
  background: #eaf9f2;
  font-size: 12px;
}

.address-option p {
  margin: 0;
  color: #384842;
  line-height: 1.55;
}

.map-card {
  position: relative;
  height: 235px;
  margin: 14px 0 18px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef5f3;
}

.map-target,
.zoom {
  position: absolute;
  right: 16px;
  z-index: 3;
}

.map-target {
  top: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.map-target:hover { background: #f0faf6; }

.zoom {
  bottom: 16px;
  display: grid;
}

.zoom button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.zoom button:hover { background: #f0faf6; }

.location-note,
.secure-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  color: #15352c;
  background: #f0faf6;
}

.location-note p,
.secure-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.location-note a {
  margin-left: auto;
  color: var(--green-dark);
  font-weight: 800;
}

.note-panel {
  position: relative;
}

.note-panel textarea {
  width: 100%;
  min-height: 70px;
  padding: 16px;
  border: 1px solid rgba(7, 28, 23, 0.08);
  outline: 0;
  resize: vertical;
}

.note-panel small {
  position: absolute;
  right: 16px;
  bottom: 16px;
  color: var(--muted);
}

.checkout-side {
  display: grid;
  gap: 18px;
}

.order-summary,
.payment-panel {
  padding: 24px;
}

.summary-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.summary-title h2 {
  margin: 0;
  font-size: 20px;
}

.summary-title span,
.summary-title a {
  color: var(--muted);
  font-size: 13px;
}

.summary-title a {
  color: var(--green-dark);
  font-weight: 800;
}

.order-summary article {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.thumb {
  width: 54px;
  height: 54px;
  border-radius: 7px;
  background-color: #fff;
  background-position-y: 100%;
}

.sprite {
  background-image: url("assets/grocery-sprite.png");
  background-repeat: no-repeat;
  background-size: 800% 200%;
}

.rice-pack {
  background-position-x: 0;
}

.oil-pack {
  background-position-x: 14.285%;
}

.noodle-pack {
  background-position-x: 42.855%;
}

.order-summary h3,
.order-summary p {
  margin: 0;
}

.order-summary h3 {
  font-size: 14px;
}

.order-summary p {
  margin: 4px 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.order-summary strong {
  font-size: 13px;
}

.costs {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.costs span,
.costs strong {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.costs span {
  color: #44534e;
}

.costs strong {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 18px;
}

.costs strong b {
  color: var(--green-dark);
  font-size: 21px;
}

/* ============================================================
   HOSTINGER-STYLE PAYMENT ACCORDION
============================================================ */
.payment-accordion-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-group-label {
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 8px 0 2px;
}

.pay-accordion-item {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 8px;
}

.pay-accordion-item:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.pay-accordion-item.active {
  border-color: #059669;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.1);
}

.pay-acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  background: #ffffff;
  transition: background 0.15s;
}

.pay-accordion-item.active .pay-acc-head {
  background: #f8fdfb;
}

.pay-acc-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.pay-acc-left input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-dot {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.pay-accordion-item.active .radio-dot,
.pay-acc-left input:checked + .radio-dot {
  border-color: #059669;
}

.pay-accordion-item.active .radio-dot::after,
.pay-acc-left input:checked + .radio-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #059669;
}

.pay-acc-left b {
  font-size: 14px;
  color: #0f172a;
  display: block;
}

.pay-acc-left small {
  font-size: 12px;
  color: #64748b;
  display: block;
  margin-top: 1px;
}

.pay-acc-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.acc-chevron {
  font-size: 14px;
  color: #94a3b8;
  transition: transform 0.25s ease;
  display: inline-block;
}

.pay-accordion-item.active .acc-chevron {
  transform: rotate(180deg);
  color: #059669;
}

/* Accordion Expandable Body (Room) */
.pay-acc-body {
  display: none;
  padding: 16px 18px 18px 50px;
  background: #fafcfb;
  border-top: 1px solid #eef7f4;
  animation: roomSlideDown 0.2s ease-out;
}

.pay-accordion-item.active .pay-acc-body {
  display: block;
}

@keyframes roomSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.pay-acc-body p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

.btn-room-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border: none;
  font-size: 13.5px;
  font-weight: 800;
  padding: 11px 22px;
  border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28);
  transition: all 0.2s ease;
}

.btn-room-pay:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}

.sticky-summary {
  position: sticky;
  top: 90px;
}

.total-row {
  border-top: 2px solid #e2e8f0;
  padding-top: 14px;
  font-size: 16px;
  color: #0f172a;
}

.total-row b {
  font-size: 20px;
  color: #059669;
}

.pay-tag-manual {
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.pay-tag-cod {
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid #fde68a;
  white-space: nowrap;
}

/* Brand Chips */
.pay-brand-chips {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.pay-brand-chips span {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.2px;
}

.chip-qris {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  font-weight: 900 !important;
}

.chip-bca {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.chip-gopay {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.chip-ovo {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #d8b4fe;
}

.chip-dana {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}

.chip-shopee {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.chip-bank {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.chip-card {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}

.pay-button {
  display: flex;
  width: 100%;
  height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  font-weight: 900;
}

.payment-panel > p {
  margin: 12px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.benefit-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 24px 0 28px;
  overflow: hidden;
}

.benefit-bar article {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 24px;
  background: #fff;
}

.benefit-bar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.benefit-bar svg,
.location-note svg,
.secure-card svg {
  color: var(--green-dark);
}

.footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 42px;
  width: 100%;
  padding: 46px max(20px, calc((100vw - 1180px) / 2)) 30px;
  color: #fff;
  background: #010806;
}

.footer h3 {
  margin: 0 0 18px;
  font-size: 16px;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.footer a {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.footer button {
  display: block;
  width: 142px;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  color: #fff;
  background: transparent;
  text-align: left;
  line-height: 1.1;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  align-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.pay-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
}

.visa {
  font-style: italic;
}

.mastercard {
  min-width: 38px;
}

.mastercard i {
  width: 17px;
  height: 17px;
  border-radius: 50%;
}

.mastercard i:first-child {
  background: #ff5f35;
  margin-right: -6px;
}

.mastercard i:last-child {
  background: #ffc340;
  mix-blend-mode: screen;
}

.bca {
  gap: 5px;
}

.bca i {
  width: 16px;
  height: 12px;
  border-radius: 3px;
  background: #1d7cd8;
}

.mandiri {
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.mandiri i {
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: #ffd44a;
}

.dana {
  padding: 4px 8px;
  border-radius: 6px;
  background: #1288e8;
  font-size: 12px;
}

.linkaja {
  gap: 4px;
}

.linkaja i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e7262e;
}

@media (max-width: 1020px) {
  body {
    background:
      linear-gradient(#010806 0 238px, transparent 238px),
      linear-gradient(180deg, #fafcfb 0%, #fff 55%, #f5faf8 100%);
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    font-size: 12px;
  }

  .quick-actions a {
    justify-content: center;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    font-size: 12px;
  }

  .main-nav a {
    justify-content: center;
    text-align: center;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .benefit-bar,
  .footer {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .payment-icons {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .topbar,
  .main-nav,
  main {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .search {
    height: 44px;
  }

  .search input {
    padding: 0 14px;
    font-size: 14px;
  }

  .quick-actions,
  .main-nav {
    font-size: 11px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .steps i {
    display: none;
  }

  .panel-head,
  .location-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .shipping-option {
    grid-template-columns: 1fr;
  }

  .benefit-bar,
  .footer {
    grid-template-columns: 1fr;
  }

  .footer {
    padding-right: 12px;
    padding-left: 12px;
  }
}

/* ===== MODAL TAMBAH ALAMAT ===== */
.addr-modal,
.map-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 14, 10, 0.72);
  backdrop-filter: blur(4px);
}

.addr-modal[hidden],
.map-modal[hidden] { display: none; }

.addr-dialog {
  width: min(580px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}

.addr-dialog header,
.map-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.addr-dialog h2,
.map-dialog h2 {
  margin: 0;
  font-size: 20px;
}

.addr-dialog header button,
.map-dialog header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f0f4f3;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.addr-dialog header button:hover,
.map-dialog header button:hover { background: #e4ecea; }

.addr-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  color: #243330;
}

.addr-form input,
.addr-form textarea {
  width: 100%;
  padding: 0 13px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  outline: 0;
  font-size: 14px;
  color: var(--ink);
}

.addr-form textarea {
  height: auto;
  padding: 10px 13px;
  resize: vertical;
}

.addr-form input:focus,
.addr-form textarea:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(7, 139, 85, 0.1);
}

.addr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.addr-labels {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.addr-label-btn {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}

.addr-label-btn.active,
.addr-label-btn:hover {
  color: var(--green-dark);
  border-color: var(--green-dark);
  background: #f0faf6;
}

.addr-primary-wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.addr-primary-wrap input {
  width: auto;
  height: auto;
  accent-color: var(--green-dark);
}

.addr-form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.addr-btn-cancel {
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.addr-btn-cancel:hover { background: #f4f8f7; }

.addr-btn-save {
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  font-weight: 800;
  cursor: pointer;
}

.addr-btn-save:hover { opacity: .9; }

/* Address list item */
.address-option-extra {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.addr-del-btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(227,75,91,.3);
  border-radius: 6px;
  background: #fff;
  color: #e34b5b;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.addr-del-btn:hover { background: #ffe9ee; }

/* ===== MODAL PETA ===== */
.map-dialog {
  width: min(700px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}

.map-modal-hint {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.map-modal-search {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.map-modal-search input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  font-size: 14px;
}

.map-modal-search input:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(7,139,85,.1);
}

.map-modal-search button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.map-modal-search button:hover { background: #f0faf6; }

.map-modal-frame {
  height: 360px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.map-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

@media (max-width: 580px) {
  .addr-row { grid-template-columns: 1fr; }
  .addr-dialog, .map-dialog { padding: 20px; }
  .map-modal-frame { height: 260px; }
}

/* ============================================================
   XENDIT BADGE & PAYMENT OPTIONS
============================================================ */
.xendit-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #a7f3d0;
}

.pay-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.pay-note {
  font-size: 12px;
  color: #64748b;
  text-align: center;
  margin-top: 8px;
}

/* ============================================================
   SHOPEE-STYLE ORDER MODAL POPUP
============================================================ */
.shopee-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: shopeeFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.shopee-modal-backdrop[hidden] {
  display: none !important;
}

@keyframes shopeeFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.shopee-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

/* Modal Header */
.shopee-modal-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shopee-header-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shopee-check-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  flex-shrink: 0;
}

.shopee-header-status h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.shopee-header-status p {
  margin: 2px 0 0;
  font-size: 12px;
  opacity: 0.9;
  color: #d1fae5;
}

.shopee-btn-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.shopee-btn-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Modal Body */
.shopee-modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f8fafc;
}

/* Order ID Badge */
.shopee-order-id-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
  font-size: 13px;
}

.shopee-order-id-badge strong {
  color: #0f172a;
  font-family: ui-monospace, monospace;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.btn-copy-sm {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #047857;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-copy-sm:hover {
  background: #ecfdf5;
  border-color: #059669;
}

/* Section Cards inside Modal */
.shopee-section-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.shopee-sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.shopee-sec-title .sec-icon {
  font-size: 15px;
}

/* Address Info */
.shopee-address-info p {
  margin: 0 0 4px;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.45;
}

.shopee-address-info .shopee-user-name {
  font-weight: 700;
  color: #0f172a;
}

.shopee-address-info .shopee-user-note {
  color: #64748b;
  font-style: italic;
  font-size: 11.5px;
}

/* Items List in Modal */
.shopee-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 160px;
  overflow-y: auto;
  padding-right: 4px;
}

.shopee-modal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #f1f5f9;
}

.shopee-modal-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.shopee-modal-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.shopee-modal-item-left .item-name {
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shopee-modal-item-left .item-qty {
  color: #64748b;
  font-size: 12px;
  flex-shrink: 0;
}

.shopee-modal-item-price {
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

/* Calc rows */
.shopee-calc-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
}

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #475569;
}

.calc-row.total {
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
  font-size: 14px;
  color: #0f172a;
}

.calc-row.total strong {
  font-size: 16px;
  color: #059669;
}

.badge-pay {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
}

/* Modal Footer & Buttons */
.shopee-modal-footer {
  padding: 14px 20px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.shopee-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shopee-btn-xendit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
  transition: all 0.2s ease;
}

.shopee-btn-xendit:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  transform: translateY(-1px);
}

.shopee-btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #ffffff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
  transition: all 0.2s ease;
}

.shopee-btn-wa:hover {
  background: #20ba5a;
  transform: translateY(-1px);
}

.shopee-btn-sub-row {
  display: flex;
  gap: 10px;
}

.shopee-btn-copy-all {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.shopee-btn-copy-all:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.shopee-btn-done {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.shopee-btn-done:hover {
  background: #f1f5f9;
  color: #0f172a;
}

@media (max-width: 580px) {
  .shopee-modal-card {
    max-height: 94vh;
  }
  .shopee-modal-header {
    padding: 12px 16px;
  }
  .shopee-modal-body {
    padding: 12px 14px;
    gap: 10px;
  }
  .shopee-modal-footer {
    padding: 12px 14px;
  }
}

