/* ScanWin — merchant.css */

.sw-last-upload {
  display: inline-flex;
  height: 36px;
  padding: 0 14px;
  background: #f3f4f6;
  border: 1px solid #f3f4f6;
  font-size: 12px;
  color: var(--sw-text-muted);
}

.sw-mobile-crumb .breadcrumb {
  --bs-breadcrumb-divider: "·";
  --bs-breadcrumb-margin-bottom: 12px;
  --bs-breadcrumb-font-size: 12px;
  --bs-breadcrumb-item-padding-x: 6px;
  --bs-breadcrumb-divider-color: var(--sw-text-faint);
  --bs-breadcrumb-item-active-color: var(--sw-text-faint);
  color: var(--sw-text-faint);
  font-weight: 500;
  line-height: 16px;
}

.btn {
  --bs-btn-focus-box-shadow: none;
}

.btn:focus-visible {
  outline: 2px solid var(--sw-violet-500);
}

.btn:focus-visible:not(:hover) {
  color: var(--bs-btn-color);
  background-color: var(--bs-btn-bg);
  border-color: var(--bs-btn-border-color);
}

.sw-role-switch {
  display: inline-flex;
  height: 38px;
  padding: 0 10px 0 8px;
  background: #f3f1fe;
  border: 1px solid #ddd6fe;
  cursor: pointer;
}
.sw-role-switch__ic {
  width: 22px;
  height: 22px;
  background: #fff;
  display: inline-flex;
}
.sw-role-switch__ic svg {
  width: 13px;
  height: 13px;
}
.sw-role-switch__rt {
  display: flex;
}
.sw-role-switch__kicker {
  font-size: 9px;
  letter-spacing: 0.5px;
}
.sw-role-switch__role {
  font-size: 13px;
  margin-top: 3px;
}
.sw-role-switch__chev {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}

.sw-role-switch-wrap .sw-role-switch {
  width: 100%;
}
.sw-role-switch.show .sw-role-switch__chev {
  transform: rotate(180deg);
}
.sw-role-switch.show {
  border-color: var(--sw-violet);
  box-shadow: 0 0 0 3px rgba(110, 93, 248, 0.15);
}
.sw-role-switch__menu {
  --bs-dropdown-zindex: 1000;
  --bs-dropdown-min-width: 240px;
  --bs-dropdown-padding-x: 6px;
  --bs-dropdown-padding-y: 6px;
  --bs-dropdown-spacer: 8px;
  --bs-dropdown-bg: #fff;
  --bs-dropdown-border-color: var(--sw-border);
  --bs-dropdown-border-radius: 12px;
  --bs-dropdown-link-hover-bg: transparent;
  --bs-dropdown-link-active-bg: transparent;
  top: 100%;
  margin-top: var(--bs-dropdown-spacer);
  background-clip: border-box;
  box-shadow: 0 14px 36px rgba(15, 16, 32, 0.16);
  max-height: 340px;
}
.sw-role-switch__menu-label {
  font-size: 10px;
  letter-spacing: 0.5px;
  padding: 8px 10px 6px;
}
.sw-role-switch__opt {
  display: flex;
  gap: 10px;
  padding: 9px 10px;
  background: transparent;
  font-size: 14px;
  white-space: normal;
  cursor: pointer;
}
.sw-role-switch__opt:hover {
  background: #f5f4fe;
}
.sw-role-switch__opt.is-selected {
  background: #f5f4fe;
}
.sw-role-switch__opt.is-selected .sw-role-switch__opt-name {
  color: var(--sw-violet);
  font-weight: 600;
}
.sw-role-switch__check {
  width: 16px;
  height: 16px;
  opacity: 0;
}
.sw-role-switch__opt.is-selected .sw-role-switch__check {
  opacity: 1;
}

.sw-topbar__title,
.sw-topbar .sw-streak {
  flex-shrink: 0;
  white-space: nowrap;
}

.sw-store-ico {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--sw-violet);
  display: inline-flex;
}
.sw-store-ico svg {
  width: 16px;
  height: 16px;
}
.sw-store-ico--lg {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.sw-store-ico--lg svg {
  width: 22px;
  height: 22px;
}

.sw-store-ico--circle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
}
.sw-store-ico--circle svg {
  width: 18px;
  height: 18px;
}

.sw-mobile-search {
  display: flex;
  height: 44px;
  padding: 0 14px;
  background: #f3f4f6;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
}
.sw-mobile-search svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.sw-mobile-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  color: var(--sw-text);
}
.sw-mobile-search input::placeholder {
  color: var(--sw-text-faint);
}

@media (max-width: 991.98px) {
  .sw-mobile-nav .sw-last-upload {
    display: none;
  }
  .sw-mobile-nav .sw-streak {
    height: 32px;
    padding: 0 12px;
  }
}

.sw-page-head {
  align-items: flex-end;
  margin-bottom: 24px;
}
.sw-page-head__title {
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.56px;
  color: #0f1020;
  margin: 0 0 6px;
}
.sw-page-head__sub {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--sw-text-secondary);
}
.sw-btn-export {
  --bs-btn-padding-x: 13px;
  --bs-btn-padding-y: 0px;
  --bs-btn-font-size: 13px;
  --bs-btn-font-weight: 500;
  --bs-btn-line-height: normal;
  --bs-btn-color: var(--sw-text-primary);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: var(--sw-border-default);
  --bs-btn-border-radius: 8px;
  --bs-btn-hover-color: var(--sw-text-primary);
  --bs-btn-hover-bg: #f5f5f7;
  --bs-btn-hover-border-color: var(--sw-border-default);
  --bs-btn-active-color: var(--bs-btn-hover-color);
  --bs-btn-active-bg: var(--bs-btn-hover-bg);
  --bs-btn-active-border-color: var(--bs-btn-hover-border-color);
  height: 36px;
}

.sw-ov {
  --bs-card-spacer-y: 15px;
  --bs-card-spacer-x: 19px;
  --bs-card-border-color: var(--sw-border-default);
  --bs-card-border-radius: 16px;
  --bs-card-height: 100%;
}
.sw-ov__head {
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.sw-ov__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.sw-ov__icon svg {
  width: 20px;
  height: 20px;
}
.sw-ov__icon--violet {
  background: #eeedfe;
  color: #6d5ef7;
}
.sw-ov__icon--green {
  background: #d1fae5;
  color: #065f46;
}
.sw-ov__icon--amber {
  background: #fef3c7;
  color: #b45309;
}
.sw-ov__icon--blue {
  background: #e0edff;
  color: #2673f2;
}
.sw-ov__label {
  font-size: 13px;
  line-height: 18px;
  color: var(--sw-text-secondary);
}
.sw-ov__value {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.12px;
  color: #0f1020;
  margin: 0 0 4px;
}
.sw-ov__cap {
  font-size: 11px;
  line-height: 14px;
  color: var(--sw-text-faint);
}

.sw-ftabs {
  flex-wrap: wrap;
}
.sw-ftab {
  --bs-btn-padding-x: 14px;
  --bs-btn-padding-y: 0px;
  --bs-btn-font-size: 13px;
  --bs-btn-font-weight: 500;
  --bs-btn-color: var(--sw-text-muted);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: var(--sw-border);
  --bs-btn-border-radius: 999px;
  --bs-btn-hover-color: var(--bs-btn-color);
  --bs-btn-hover-bg: var(--bs-btn-bg);
  --bs-btn-hover-border-color: var(--sw-border-strong);
  --bs-btn-active-color: var(--bs-btn-hover-color);
  --bs-btn-active-bg: var(--bs-btn-hover-bg);
  --bs-btn-active-border-color: var(--bs-btn-hover-border-color);
  gap: 6px;
  height: 32px;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.sw-ftab.is-active {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--sw-violet);
  --bs-btn-border-color: var(--sw-violet);
  --bs-btn-hover-border-color: var(--sw-violet);
}
.sw-ftab__count {
  font-size: 12px;
  opacity: 0.65;
}
.sw-ftab.is-active .sw-ftab__count {
  opacity: 0.9;
}

.sw-spill {
  --bs-badge-padding-y: 4px;
  --bs-badge-padding-x: 10px;
  --bs-badge-font-size: 11px;
  --bs-badge-font-weight: 500;
  display: inline-flex;
  gap: 6px;
  line-height: 13px;
}
.sw-spill__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
}
.sw-spill--active {
  --bs-badge-color: #065f46;
  background: #d1fae5;
}
.sw-spill--active .sw-spill__dot {
  background: #10b981;
}
.sw-spill--onboarding {
  --bs-badge-color: #b45309;
  background: #fef3c7;
}
.sw-spill--onboarding .sw-spill__dot {
  background: #f59e0b;
}
.sw-spill--paused {
  --bs-badge-color: var(--sw-violet);
  background: #eeedfe;
}
.sw-spill--paused .sw-spill__dot {
  background: var(--sw-violet);
}
.sw-spill--office {
  --bs-badge-color: var(--sw-text-muted);
  background: #f3f4f6;
}
.sw-spill--office .sw-spill__dot {
  background: #9ca3af;
}

.sw-seg {
  display: inline-flex;
  background: #f3f4f6;
  border-radius: 10px;
}
.sw-seg__btn {
  --bs-btn-padding-x: 12px;
  --bs-btn-padding-y: 0px;
  --bs-btn-font-size: 13px;
  --bs-btn-font-weight: 500;
  --bs-btn-color: var(--sw-text-muted);
  --bs-btn-bg: transparent;
  --bs-btn-border-width: 0px;
  --bs-btn-border-radius: 7px;
  --bs-btn-hover-color: var(--bs-btn-color);
  --bs-btn-hover-bg: var(--bs-btn-bg);
  --bs-btn-active-color: var(--bs-btn-color);
  --bs-btn-active-bg: var(--bs-btn-bg);
  gap: 6px;
  height: 28px;
}
.sw-seg__btn.is-active,
.sw-seg__btn.active {
  --bs-btn-color: var(--sw-text);
  --bs-btn-bg: #fff;
  --bs-btn-focus-box-shadow: 0 1px 2px rgba(15, 16, 32, 0.08);
  box-shadow: 0 1px 2px rgba(15, 16, 32, 0.08);
}
.sw-seg__btn svg {
  width: 16px;
  height: 16px;
}

.sw-status {
  --bs-badge-padding-y: 4px;
  --bs-badge-padding-x: 8px;
  --bs-badge-font-size: 10px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 4px;
  line-height: inherit;
  letter-spacing: 0.4px;
}
.sw-status--hot {
  --bs-badge-color: #991b1b;
  background: #fee2e2;
  letter-spacing: 0.2px;
}
.sw-status--new {
  --bs-badge-color: #1e3a8a;
  background: #dbeafe;
  letter-spacing: 0.8px;
}
.sw-status--trending {
  --bs-badge-color: #4c1d95;
  background: #ede9fe;
  letter-spacing: 0.8px;
}
.sw-status--premium {
  --bs-badge-color: var(--sw-violet);
  background: #ddd9fc;
  letter-spacing: 0.8px;
}

.sw-avg-pill {
  --bs-badge-padding-y: 8px;
  --bs-badge-padding-x: 14px;
  --bs-badge-font-size: 12.5px;
  --bs-badge-font-weight: 600;
  --bs-badge-color: var(--sw-violet);
  display: inline-flex;
  background: #f2f0ff;
  line-height: normal;
}

@media (max-width: 767px) {
  .sw-page-head__title {
    font-size: 22px;
    line-height: 27px;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 4px;
  }

  .sw-page-head__sub {
    font-size: 12.5px;
    line-height: 1.45;
    font-weight: 400;
  }
  .sw-loc-crumb {
    display: none !important;
  }
}

@media (max-width: 575px) {
  .sw-page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 20px;
  }
  .sw-btn-export {
    width: 100%;
    justify-content: center;
  }

  .sw-ov {
    --bs-card-spacer-y: 13px;
    --bs-card-spacer-x: 13px;
    --bs-card-border-color: #e5e5eb;
    --bs-card-border-radius: 14px;
  }
  .sw-ov__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
  }
  .sw-ov__value {
    font-size: 21px;
    line-height: normal;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 8px;
    white-space: nowrap;
  }
  .sw-ov__label {
    font-size: 12px;
    line-height: normal;
  }
  .sw-ov__cap {
    font-size: 10.5px;
    line-height: normal;
    color: #9ca3b0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sw-ov__icon {
    width: 34px;
    height: 34px;
  }
  .sw-ov__icon svg {
    width: 18px;
    height: 18px;
  }
  .sw-avg-pill {
    --bs-badge-padding-y: 4px;
    --bs-badge-padding-x: 10px;
    --bs-badge-font-size: 10.5px;
    line-height: 12px;
  }

  .sw-loc-actions {
    width: 100%;
  }
}

.sw-app-footer {
  display: flex;
  gap: 12px;
  padding: 14px 0 8px;
  margin-top: 12px;
  font-size: 12px;
}
.sw-app-footer__links {
  display: flex;
  gap: 24px;
}
.sw-app-footer__links a {
  color: #6b6f7b;
  font-weight: 500;
  text-decoration: none;
}
.sw-app-footer__links a:hover {
  color: var(--sw-violet);
}

@media (max-width: 1439.98px) {
  .sw-last-upload {
    display: none;
  }
}

@media (max-width: 1110px) {
  .sw-store-info {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  .sw-app-footer {
    flex-direction: column-reverse;
    align-items: center;
    gap: 8px;
    text-align: center;
  }
  .sw-app-footer__links {
    gap: 20px;
  }
}

.sw-ov__labeltext {
  gap: 1px;
  min-width: 0;
}
.sw-ov__scope {
  font-size: 10.5px;
  line-height: normal;
  color: #9ca3b0;
}

.sw-range-menu {
  --bs-dropdown-spacer: 6px;
  --bs-dropdown-link-hover-color: var(--sw-text);
  --bs-dropdown-link-hover-bg: transparent;
  --bs-dropdown-link-active-color: var(--sw-text);
  --bs-dropdown-link-active-bg: transparent;
  display: block;
  top: 100%;
  margin-top: var(--bs-dropdown-spacer);
  min-width: 184px;
  background: #fff;
  border: 1px solid var(--sw-border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 16, 32, 0.12);
  padding: 6px;
  list-style: none;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0s linear 0.15s;
}
.sw-range-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}
.sw-range-option {
  gap: 10px;
  padding: 8px 10px;
  background: none;
  font-size: 13px;
  color: var(--sw-text);
  white-space: normal;
  cursor: pointer;
  transition: background 0.12s;
}
.sw-range-option:hover {
  background: #f3f4f6;
}
.sw-range-option.is-selected {
  background: var(--sw-violet-50);
  color: var(--sw-violet);
}
.sw-range-option__check {
  width: 14px;
  height: 14px;
  opacity: 0;
}
.sw-range-option.is-selected .sw-range-option__check {
  opacity: 1;
}
