.tour-actions button:first-child {
  height: 28px;
  padding: 0 9px;
  border-color: #d8dcde;
  color: #747b80;
  font-size: 11px;
  font-weight: 700;
}

.side-tab,
.report-tab {
  z-index: 160;
}

.drawer-head .drawer-close {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid #d8dcde;
  border-radius: 4px;
  background: #fff;
  color: #454b50;
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
}

.tour-pointer {
  width: 32px !important;
  height: 40px !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: transparent !important;
  font-size: 0 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  animation: tourCursorClick 1.25s ease-in-out infinite !important;
}

.tour-pointer::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 28px;
  height: 36px;
  background: #fff;
  clip-path: polygon(0 0, 0 29px, 8px 21px, 14px 35px, 19px 32px, 13px 19px, 27px 19px);
  filter: drop-shadow(2px 0 0 #111) drop-shadow(-2px 0 0 #111) drop-shadow(0 2px 0 #111) drop-shadow(0 -2px 0 #111);
}

.tour-pointer::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 22px;
  height: 22px;
  border: 2px solid #03c75a;
  border-radius: 50%;
  opacity: 0;
  animation: tourClickRing 1.25s ease-out infinite;
}

.restock-return {
  z-index: 500;
}

/* N Store-style mobile demo surface */
@media (max-width: 700px) {
  body {
    padding-bottom: 64px;
    background: #fff;
  }

  .demo-global-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 6px;
    min-height: 48px;
  }

  .global-nav {
    min-width: 0;
  }

  .global-nav a {
    min-height: 34px;
  }

  .demo-global-inner .tour-launch,
  .demo-global-inner .tour-launch.tour-target {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    width: 82px;
    min-width: 82px;
    padding: 0 5px;
    white-space: nowrap;
  }

  .top {
    height: 44px;
    background: #fff;
    color: #222;
  }

  .top-inner {
    padding: 0 16px;
    border-bottom: 1px solid #eceeef;
  }

  .store-mini {
    gap: 8px;
  }

  .logo-dot {
    width: 24px;
    height: 24px;
    background: #03c75a;
    color: #fff;
  }

  .store-mini b {
    font-size: 13px;
  }

  .top-inner::after {
    content: "⌕";
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #111;
    font-size: 24px;
  }

  .store-head-inner {
    min-height: 76px;
    padding: 22px 16px 18px;
  }

  .store-title-img img {
    width: 112px;
  }

  .nav-inner {
    height: 46px;
    justify-content: flex-start;
    gap: 28px;
    padding: 0 16px;
    scrollbar-width: none;
  }

  .nav-inner::-webkit-scrollbar,
  .category-options::-webkit-scrollbar,
  .toolbar-right::-webkit-scrollbar {
    display: none;
  }

  .nav button {
    padding: 14px 0 12px;
    font-size: 13px;
  }

  .promo {
    height: auto;
    min-height: 38px;
    justify-content: flex-start;
    padding: 8px 16px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.35;
    white-space: nowrap;
  }

  .wrap {
    padding: 18px 14px 48px;
  }

  .crumb,
  .delivery-guide {
    display: none;
  }

  .section-title {
    margin: 3px 0 16px;
    font-size: 20px;
  }

  .category-panel {
    margin: 0 -14px 12px;
    border: 0;
    border-top: 1px solid #f0f1f2;
    border-bottom: 1px solid #f0f1f2;
  }

  .category-row {
    display: block;
    min-height: 0;
    border: 0;
  }

  .category-row:nth-child(n + 2),
  .category-label {
    display: none;
  }

  .category-options {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 11px 14px;
  }

  .filter-option {
    flex: none;
    min-height: 32px;
    padding: 0 14px;
    border: 1px solid #e1e4e6;
    border-radius: 17px;
    background: #fff;
    font-size: 12px;
  }

  .filter-option.active {
    border-color: #111;
    background: #111;
    color: #fff;
  }

  .product-toolbar {
    height: 42px;
    margin: 0 0 12px;
    border-top-color: #111;
  }

  .result-count {
    flex: none;
    font-size: 12px;
  }

  .toolbar-right {
    justify-content: flex-end;
    overflow: hidden;
  }

  .sorts button {
    display: none;
    padding: 6px 0 6px 14px;
    font-size: 11px;
  }

  .sorts button.active,
  .sorts button:nth-child(2) {
    display: block;
  }

  .views {
    display: none;
  }

  .grid,
  .grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 8px;
  }

  .grid .thumb,
  .grid.compact .thumb {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .pname {
    min-height: 36px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
  }

  .desc {
    display: none;
  }

  .price {
    font-size: 15px;
  }

  .ship,
  .review {
    font-size: 10px;
  }

  .detail {
    grid-template-columns: 1fr;
    gap: 0;
    margin: -18px -14px 0;
  }

  .photo-main {
    height: auto;
    aspect-ratio: 1 / 1.08;
    border: 0;
  }

  .photo-badge {
    left: 12px;
    bottom: 12px;
    padding: 6px 9px;
    font-size: 10px;
  }

  .thumbs {
    height: 48px;
    margin: 0;
  }

  .mini {
    width: 34px;
    height: 34px;
  }

  .info {
    padding: 14px 16px 24px;
    border-top: 8px solid #f5f6f7;
  }

  .info h1 {
    font-size: 19px;
    line-height: 1.45;
  }

  .price-big .sale {
    font-size: 24px;
  }

  .fee {
    margin-bottom: 12px;
  }

  .boxline {
    padding: 15px 0;
  }

  .row {
    grid-template-columns: 52px 1fr;
    gap: 8px;
  }

  .coupon {
    height: auto;
    min-height: 50px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .coupon b {
    padding: 7px 10px;
    font-size: 11px;
  }

  .select-btn {
    height: 50px;
    font-size: 14px;
  }

  .option-row {
    min-height: 54px;
    height: auto;
    padding: 10px 14px;
    line-height: 1.35;
  }

  .actions {
    margin-top: 18px;
  }

  .actions button,
  .lower button {
    height: 50px;
    font-size: 14px;
  }

  .lower {
    position: sticky;
    bottom: 64px;
    z-index: 70;
    margin: 8px -16px -24px;
    padding: 8px 12px;
    border-top: 1px solid #e5e7e9;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.06);
  }

  .side-tab,
  .report-tab {
    top: auto;
    bottom: 8px;
    width: calc(50% - 12px);
    height: 48px;
    padding: 0;
    writing-mode: horizontal-tb;
    transform: none;
    border-radius: 7px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
    font-size: 14px;
  }

  .side-tab {
    right: auto;
    left: 8px;
  }

  .report-tab {
    right: 8px;
  }

  .stock-drawer,
  .report-drawer {
    top: auto;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    max-height: 78vh;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -20px 54px rgba(0, 0, 0, 0.22);
    transform: translateY(105%);
    z-index: 170;
  }

  .stock-drawer.open,
  .report-drawer.open {
    transform: translateY(0);
  }

  .drawer-head {
    flex: none;
    padding: 15px 16px 12px;
  }

  .drawer-head::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 6px;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: #d7dadd;
    transform: translateX(-50%);
  }

  .drawer-head b {
    font-size: 17px;
  }

  .drawer-body {
    padding: 14px 16px 28px;
  }

  .report-summary {
    grid-template-columns: 1fr 1fr;
  }

  .tour-welcome {
    align-items: end;
    padding: 12px;
  }

  .tour-welcome-card {
    padding: 26px 20px 20px;
    border-radius: 14px;
    text-align: left;
  }

  .tour-welcome-card h2 {
    font-size: 24px;
    line-height: 1.3;
  }

  .tour-welcome-card p {
    margin: 10px 0 18px;
    font-size: 13px;
  }

  .tour-welcome-card button {
    min-height: 52px;
  }

  .tour-welcome-card small {
    text-align: center;
  }

  .alert {
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 104px;
    width: auto;
    padding: 16px;
    transform: none;
    border-radius: 12px;
  }

  .alert p {
    font-size: 13px;
  }

  .alert button {
    min-height: 40px;
    border-radius: 7px;
  }

  .faq-modal {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-height: 78vh;
    padding: 24px 18px 28px;
    transform: none;
    border-radius: 16px 16px 0 0;
  }

  .toast {
    bottom: 72px;
    width: max-content;
    max-width: calc(100vw - 24px);
    padding: 11px 14px;
    border-radius: 8px;
    text-align: center;
    line-height: 1.4;
  }

  .restock-return {
    align-items: end;
    padding: 12px 12px 104px;
  }

  .restock-return-card {
    padding: 24px 18px 18px;
    border-radius: 14px;
  }

  .restock-return-card h2 {
    font-size: 22px;
  }

  body:has(.restock-return.on) .tour-card {
    top: 64px !important;
    bottom: auto !important;
  }

  .tour-card {
    left: 10px !important;
    right: 10px !important;
    top: auto !important;
    bottom: 100px !important;
    width: auto;
    max-height: 220px;
    padding: 15px;
    overflow-y: auto;
    border-radius: 10px;
    transform: none !important;
  }

  .tour-card h2 {
    margin: 0 0 7px;
    font-size: 18px;
  }

  .tour-card p {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
  }

  .tour-pointer,
  .tour-pointer.on {
    display: grid !important;
    width: 28px !important;
    height: 35px !important;
  }

  .tour-pointer::before {
    width: 24px;
    height: 32px;
  }

  .tour-pointer::after {
    width: 19px;
    height: 19px;
  }

  .side-tab.tour-target,
  .report-tab.tour-target {
    bottom: 8px !important;
  }
}
