:root {
  --ez-blue: #1484c6;
  --ez-blue-dark: #0d6fa9;
  --ez-text: #1f2937;
  --ez-muted: #6b7280;
  --ez-border: #e5e7eb;
  --ez-sidebar: #2b3042;
  --ez-sidebar-text: #aeb6c8;
  --ez-header-offset: 72px;
}

html {
  scroll-padding-top: var(--ez-header-offset);
}

body {
  padding-top: 64px !important;
  background: #ffffff;
}

/* Remove ReDoc's default top hero block; start page at API reference section. */
.api-content > .sc-eCsseJ:first-child {
  display: none !important;
}

/* Also hide any residual top API info metadata block (title/version/download). */
.api-content .api-info {
  display: none !important;
}

/* Keep in-page anchor targets below the fixed Eventzilla header. */
.api-content [data-section-id],
.api-content [id^="section/"],
.api-content [id^="tag/"],
.api-content [id^="operation/"] {
  scroll-margin-top: var(--ez-header-offset);
}


.ez-doc-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  background: #ffffff;
  border-bottom: 1px solid var(--ez-border);
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

.ez-doc-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 210px;
}

.ez-doc-header__brand img {
  width: 167px;
  height: 17px;
  display: block;
}

.ez-doc-header__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  white-space: nowrap;
  font-size: 14px;
}

.ez-doc-header__link {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
}

.ez-doc-header__link:hover {
  color: var(--ez-blue);
}

.ez-doc-header__link--active,
.ez-doc-header__link[aria-current="page"] {
  color: var(--ez-blue);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--ez-blue);
}

.ez-doc-header__button,
.ez-api-key-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ez-blue);
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(20, 132, 198, 0.22);
}

.ez-api-key-button {
  min-height: 38px;
  margin: 8px 0 12px 0;
  padding: 0 18px;
}

.ez-doc-header__button:hover,
.ez-api-key-button:hover {
  background: var(--ez-blue-dark);
  color: #ffffff !important;
}

/* Keep Redoc's sticky side menu below the fixed header. */
.menu-content {
  top: 64px !important;
  height: calc(100vh - 64px) !important;
}

/* Search is deliberately disabled for this API reference. */
[role="search"],
.search-input,
.search-icon {
  display: none !important;
}

/* Keep only the API reference section in the top-level intro nav. */
[data-item-id="section/Authentication"],
[data-item-id="section/Filtering"],
[data-item-id="section/Paging"],
[data-item-id="section/Errors-and-response-codes"],
[data-item-id="section/Backwards-compatibility"],
[data-item-id="section/Webhooks"] {
  display: none !important;
}

[data-item-id="section/Introduction"],
[data-item-id="section/API-reference"] {
  margin: 12px 0 !important;
}

[data-item-id="section/Introduction"] label,
[data-item-id="section/API-reference"] label {
  font-weight: 700 !important;
}

[data-item-id="group/Methods"] {
  margin-top: 0 !important;
  border-top: 1px solid rgba(174, 182, 200, 0.18);
  padding-top: 16px !important;
}

/* API reference intro hero — match static webhooks page (.ez-doc-page__hero). */
.api-content #section\/API-reference,
.api-content #section\/Introduction {
  /* max-width: 1120px; 
  width: calc(60%); */
  padding: 48px 28px 0 0;
  box-sizing: border-box;
}

.api-content .ez-api-intro-breadcrumb {
  margin: 0 0 8px 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: var(--ez-muted) !important;
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

.api-content .ez-api-intro-title,
.api-content #section\/API-reference h2,
.api-content #section\/Introduction h2 {
  margin: 0 0 12px 0 !important;
  font-size: 38px !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ez-text) !important;
}

.api-content .ez-api-intro-body > p:not(:has(.ez-api-key-button)) {
  /* max-width: 820px; */
  margin: 0 0 16px 0 !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
  color: #4b5563 !important;
}

.api-content .ez-api-intro-body > p:not(:has(.ez-api-key-button)) {
  /* max-width: 820px; */
  margin: 0 0 16px 0 !important;
  font-size: 15px !important; 
  line-height: 1.6 !important;
  color: #4b5563 !important;
}

.api-content .ez-api-intro-body > p:nth-of-type(-n+3) {
    font-size: 17px !important;
}

/* Body paragraphs below the intro hero keep default doc sizing. */
.api-content .ez-api-intro-body > h3 ~ p {
  max-width: none;
  margin: 0 0 14px 0 !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: var(--ez-text) !important;
}

.api-content .ez-api-intro-body > p:has(.ez-api-key-button) {
  margin-top: 4px !important;
  margin-bottom: 0 !important;
}

/* Divider below intro (before Authentication), same as webhooks hero border. */
.api-content .ez-api-intro-body > h3:first-of-type {
  border-top: 1px solid var(--ez-border);
  padding-top: 28px !important;
  margin-top: 26px !important;
}

/* Resource group headings (Events, Checkout, etc.) above their methods. */
.api-content [id^="tag/"]:not([id*="/operation/"]) h2 {
  font-size: 32px !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
  margin: 0 0 10px 0 !important;
}

/* One-line intro shown under each resource group title. */
.api-content [id^="tag/"]:not([id*="/operation/"]) + div .redoc-markdown > p {
  margin: 0 0 28px 0 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: #4b5563 !important;
}

/* Individual method headings stay smaller than resource group titles. */
.api-content [id*="/operation/"] h2,
.api-content [id^="operation/"] h2 {
  font-size: 24px !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em;
  margin: 0 0 12px 0 !important;
}

/* Method groups are collapsed by default, but each group toggles independently.
   This prevents Redoc's default accordion-style behaviour where opening one
   group can close another. */
.menu-content li[data-item-id^="tag/"]:not([data-item-id*="/operation/"]) > ul {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

.menu-content li[data-item-id^="tag/"]:not([data-item-id*="/operation/"])[data-ez-expanded="true"] > ul {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.menu-content li[data-item-id^="tag/"]:not([data-item-id*="/operation/"]) > label svg {
  transform: rotateZ(-90deg) !important;
}

.menu-content li[data-item-id^="tag/"]:not([data-item-id*="/operation/"])[data-ez-expanded="true"] > label svg {
  transform: rotateZ(0deg) !important;
}

/* Webhook page layout */
.ez-doc-page {
  padding-top: 64px;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: var(--ez-text);
  background: #ffffff;
}

.ez-doc-page__wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 28px 72px;
}

.ez-doc-page__hero {
  padding-bottom: 26px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--ez-border);
}

.ez-doc-page h1 {
  margin: 0 0 12px;
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ez-doc-page h2 {
  margin: 34px 0 12px;
  font-size: 24px;
  line-height: 1.3;
}

.ez-doc-page h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.ez-doc-page p,
.ez-doc-page li {
  font-size: 15px;
  line-height: 1.65;
}

.ez-doc-page__lead {
  max-width: 820px;
  font-size: 18px !important;
  line-height: 1.6 !important;
  color: #4b5563;
}

.ez-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 28px;
}

.ez-card {
  border: 1px solid var(--ez-border);
  border-radius: 14px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.ez-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 28px;
  font-size: 14px;
}

.ez-table th,
.ez-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border: 1px solid var(--ez-border);
}

.ez-table th {
  background: #f8fafc;
  font-weight: 700;
}

.ez-code {
  background: #111827;
  color: #f9fafb;
  border-radius: 12px;
  padding: 18px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
}

.ez-callout {
  border-left: 4px solid var(--ez-blue);
  background: #f0f8fd;
  padding: 14px 16px;
  border-radius: 10px;
  margin: 18px 0;
}

.ez-muted {
  color: var(--ez-muted);
}



@media screen and (min-width: 761px) {

	.api-content #section\/API-reference,
	.api-content #section\/Introduction {
	  margin-top: -100px;
	}

	/* Child nav items only */
	li[data-item-id^="tag/"] > ul > li[role="menuitem"] > label {
	  padding-left: 30px !important;
	}	
}


@media screen and (max-width: 760px) {
  :root { --ez-header-offset: 120px; }
  body { padding-top: 112px !important; }
  .ez-doc-header {
    height: 112px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 14px 18px;
  }
  .ez-doc-header__nav {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .menu-content {
    top: 112px !important;
    height: calc(100vh - 112px) !important;
  }
  .ez-doc-page { padding-top: 112px; }
  .ez-card-grid { grid-template-columns: 1fr; }
  .ez-doc-page h1 { font-size: 30px; }
}
