@layer base {
  html,
  body {
    margin: 0;
    padding: 0;
  }

  body {
    overscroll-behavior: none;
  }

  main > :first-child {
    margin-top: 0 !important;
  }

  main > :last-child {
    margin-bottom: 0 !important;
  }
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* WordPress admin bar offset when fixed header is active */
body.admin-bar header#site-header {
  top: 32px;
}

body.admin-bar main {
  padding-top: 124px;
}

@media screen and (max-width: 782px) {
  body.admin-bar header#site-header {
    top: 46px;
  }

  body.admin-bar main {
    padding-top: 138px;
  }
}

/* Smooth modal & drawer transitions */
.aioffly-modal-backdrop {
  backdrop-filter: blur(4px);
}

/* WordPress Pagination Styling matching Stitch design */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  background-color: #ffffff;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  transition: all 150ms ease;
}

a.page-numbers:hover {
  background-color: #e5eeff;
  color: #004ac6;
}

.page-numbers.current {
  background-color: #0f172a;
  color: #ffffff;
}

.shadow-xs {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}
