.amazin-theme-portal {
  box-sizing: border-box;
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 4rem) 1.25rem;
  color: #102451;
}

/* Themes commonly add a page header and breadcrumb before shortcode content.
   Hide only those shared decorations on portal pages, never site-wide. */
.amazin-theme-portal-page .entry-header,
.amazin-theme-portal-page .page-header,
.amazin-theme-portal-page .page-title,
.amazin-theme-portal-page .breadcrumb-title-wrapper,
.amazin-theme-portal-page .breadcrumbs,
.amazin-theme-portal-page .breadcrumb,
.amazin-theme-portal-page .woocommerce-breadcrumb {
  display: none !important;
}

.amazin-theme-portal *,
.amazin-theme-portal *::before,
.amazin-theme-portal *::after {
  box-sizing: border-box;
}

.amazin-theme-portal__header {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.amazin-theme-portal h1,
.amazin-theme-portal h2,
.amazin-theme-portal h3 {
  color: inherit;
  line-height: 1.15;
}

.amazin-theme-portal h1 { margin: 0 0 0.75rem; }
.amazin-theme-portal h2 { margin: 0 0 1rem; }
.amazin-theme-portal h3 { margin: 0 0 0.5rem; }
.amazin-theme-portal p { line-height: 1.6; }

.amazin-theme-portal__lead {
  max-width: 48rem;
  font-size: 1.125rem;
  line-height: 1.65;
}

.amazin-theme-portal__grid {
  display: grid;
  gap: 1.25rem;
}

.amazin-theme-portal__card {
  display: block;
  padding: 1.5rem;
  border: 1px solid #d7dce8;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.5rem 1.5rem rgb(16 36 81 / 7%);
}

.amazin-theme-portal__card--link {
  color: inherit;
  text-decoration: none;
}

.amazin-theme-portal__card--link:hover,
.amazin-theme-portal__card--link:focus-visible {
  border-color: #0073aa;
  box-shadow: 0 0 0 0.2rem rgb(0 115 170 / 18%);
}

.amazin-theme-portal__icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: #102451;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
}

.amazin-theme-portal__icon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.amazin-theme-portal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.amazin-theme-portal__button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border: 1px solid #008fca;
  border-radius: 0.4rem;
  background: #008fca;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.amazin-theme-portal__button:hover,
.amazin-theme-portal__button:focus-visible { background: #006e9e; color: #fff; }
.amazin-theme-portal__button--secondary { border-color: #102451; background: #102451; }
.amazin-theme-portal__button--secondary:hover,
.amazin-theme-portal__button--secondary:focus-visible { background: #071735; }

.amazin-theme-portal__list { margin: 0; padding-left: 1.25rem; }
.amazin-theme-portal__list li + li { margin-top: 0.55rem; }
.amazin-theme-portal__zoho-form { max-width: 100%; overflow: auto; }

.amazin-theme-portal--support {
  max-width: 100rem;
}

.amazin-theme-portal__support-hero {
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.amazin-theme-portal__support-hero h1 {
  margin: 0.3rem 0 0.85rem;
  font-size: clamp(2.1rem, 5vw, 4rem);
  letter-spacing: -0.04em;
}

.amazin-theme-portal__support-hero p:last-child {
  max-width: 39rem;
  margin: 0 auto;
  font-size: 1.125rem;
}

.amazin-theme-portal__eyebrow {
  margin: 0;
  color: #0073aa;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.amazin-theme-portal--docs {
  max-width: 108rem;
}

.amazin-theme-portal__docs-shell { display: grid; gap: 1.5rem; align-items: start; }
.amazin-theme-portal__docs-sidebar { padding: 1rem; border: 1px solid #d7dce8; border-radius: 0.8rem; background: #f7f9fd; }
.amazin-theme-portal__docs-brand { display: inline-flex; gap: 0.6rem; align-items: center; color: #102451; font-weight: 800; text-decoration: none; }
.amazin-theme-portal__docs-brand span { display: grid; width: 1.9rem; height: 1.9rem; place-items: center; border-radius: 0.45rem; background: #102451; color: #fff; font-family: Georgia, serif; font-size: 1.15rem; }
.amazin-theme-portal__docs-menu { margin-top: 1rem; }
.amazin-theme-portal__docs-menu summary { color: #102451; font-size: 0.9rem; font-weight: 800; cursor: pointer; }
.amazin-theme-portal__docs-menu nav { display: grid; gap: 0.12rem; margin-top: 0.85rem; }
.amazin-theme-portal__docs-menu nav p { margin: 1rem 0 0.25rem; color: #102451; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.amazin-theme-portal__docs-menu nav p:first-child { margin-top: 0; }
.amazin-theme-portal__docs-menu nav a,
.amazin-theme-portal__docs-toc a { padding: 0.35rem 0.5rem; border-radius: 0.35rem; color: #52627f; font-size: 0.9rem; line-height: 1.35; text-decoration: none; }
.amazin-theme-portal__docs-menu nav .amazin-theme-portal__docs-menu-subitem { padding-left: 1rem; font-size: 0.84rem; }
.amazin-theme-portal__docs-menu nav a:hover,
.amazin-theme-portal__docs-menu nav a:focus-visible,
.amazin-theme-portal__docs-toc a:hover,
.amazin-theme-portal__docs-toc a:focus-visible { background: #e4edf9; color: #0073aa; }
.amazin-theme-portal__docs-support-link { display: inline-flex; margin-top: 1.2rem; color: #0073aa; font-size: 0.9rem; font-weight: 800; text-decoration: none; }
.amazin-theme-portal__docs-support-link:hover,
.amazin-theme-portal__docs-support-link:focus-visible { color: #005a86; text-decoration: underline; }
.amazin-theme-portal__docs-main { min-width: 0; }

.amazin-theme-portal__docs-hero {
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.amazin-theme-portal__docs-hero h1 {
  margin: 0.35rem 0 0.85rem;
  font-size: clamp(2.15rem, 5vw, 4rem);
  letter-spacing: -0.045em;
}

.amazin-theme-portal__docs-hero > p:last-child {
  margin: 0;
  color: #52627f;
  font-size: 1.125rem;
}

.amazin-theme-portal__docs-toc { display: none; }

.amazin-theme-portal__docs-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin: 0 auto 2rem;
  padding: 0.8rem 1rem;
  border: 1px solid #d7dce8;
  border-radius: 0.7rem;
  background: #f7f9fd;
  color: #52627f;
  font-size: 0.9rem;
}

.amazin-theme-portal__docs-index span { font-weight: 700; color: #102451; }
.amazin-theme-portal__docs-index a { color: #0073aa; font-weight: 700; text-decoration: none; }
.amazin-theme-portal__docs-index a:hover,
.amazin-theme-portal__docs-index a:focus-visible { color: #005a86; text-decoration: underline; }

.amazin-theme-portal__docs-grid {
  display: grid;
  gap: 1rem;
}

.amazin-theme-portal__docs-card {
  display: flex;
  min-height: 15.25rem;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid #d7dce8;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 0.6rem 1.7rem rgb(16 36 81 / 6%);
  scroll-margin-top: 1.25rem;
}

.amazin-theme-portal__docs-card h2 { margin: 0 0 0.55rem; font-size: 1.2rem; }
.amazin-theme-portal__docs-card p { margin: 0; color: #52627f; }

.amazin-theme-portal__docs-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.15rem;
  place-items: center;
  border-radius: 0.65rem;
  background: #eaf1ff;
  color: #102451;
}

.amazin-theme-portal__docs-icon span { position: relative; display: block; width: 1.2rem; height: 1.2rem; }
.amazin-theme-portal__docs-icon--compass { border: 2px solid currentColor; border-radius: 50%; }
.amazin-theme-portal__docs-icon--compass::after { position: absolute; top: 0.18rem; left: 0.42rem; width: 0.22rem; height: 0.65rem; background: currentColor; content: ''; transform: rotate(42deg); }
.amazin-theme-portal__docs-icon--sliders::before,
.amazin-theme-portal__docs-icon--sliders::after { position: absolute; right: 0; left: 0; height: 2px; background: currentColor; content: ''; }
.amazin-theme-portal__docs-icon--sliders::before { top: 0.35rem; box-shadow: 0 0.48rem currentColor; }
.amazin-theme-portal__docs-icon--sliders::after { bottom: 0.35rem; }
.amazin-theme-portal__docs-icon--layout { border: 2px solid currentColor; border-radius: 0.15rem; }
.amazin-theme-portal__docs-icon--layout::after { position: absolute; top: 0.24rem; right: 0.2rem; left: 0.2rem; height: 2px; background: currentColor; box-shadow: 0 0.3rem currentColor; content: ''; }
.amazin-theme-portal__docs-icon--home { border: 2px solid currentColor; border-top: 0; border-radius: 0.1rem; margin-top: 0.25rem; height: 0.8rem !important; }
.amazin-theme-portal__docs-icon--home::before { position: absolute; top: -0.45rem; left: 0.02rem; width: 0.8rem; height: 0.8rem; border-top: 2px solid currentColor; border-left: 2px solid currentColor; content: ''; transform: rotate(45deg); }
.amazin-theme-portal__docs-icon--bag { border: 2px solid currentColor; border-radius: 0.15rem; }
.amazin-theme-portal__docs-icon--bag::before { position: absolute; top: -0.35rem; left: 0.3rem; width: 0.5rem; height: 0.45rem; border: 2px solid currentColor; border-bottom: 0; border-radius: 0.35rem 0.35rem 0 0; content: ''; }
.amazin-theme-portal__docs-icon--file { border: 2px solid currentColor; border-radius: 0.1rem; }
.amazin-theme-portal__docs-icon--file::after { position: absolute; top: 0.35rem; right: 0.2rem; left: 0.2rem; height: 2px; background: currentColor; box-shadow: 0 0.32rem currentColor; content: ''; }
.amazin-theme-portal__docs-icon--search { width: 0.9rem !important; height: 0.9rem !important; border: 2px solid currentColor; border-radius: 50%; }
.amazin-theme-portal__docs-icon--search::after { position: absolute; right: -0.45rem; bottom: -0.32rem; width: 0.55rem; height: 2px; background: currentColor; content: ''; transform: rotate(45deg); }
.amazin-theme-portal__docs-icon--refresh { border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }
.amazin-theme-portal__docs-icon--refresh::after { position: absolute; top: -0.12rem; right: -0.1rem; border-width: 0.28rem 0 0.28rem 0.35rem; border-style: solid; border-color: transparent transparent transparent currentColor; content: ''; transform: rotate(20deg); }

.amazin-theme-portal__docs-link {
  display: inline-flex;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.1rem;
  color: #0073aa;
  font-weight: 800;
  text-decoration: none;
}

.amazin-theme-portal__docs-link:hover,
.amazin-theme-portal__docs-link:focus-visible { color: #005a86; text-decoration: underline; }

.amazin-theme-portal__guide-list {
  display: grid;
  gap: 1rem;
  margin-top: 3.5rem;
}

.amazin-theme-portal__guide {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid #d7dce8;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.6rem 1.7rem rgb(16 36 81 / 5%);
  scroll-margin-top: 1.25rem;
}

.amazin-theme-portal__guide-heading { max-width: 46rem; }
.amazin-theme-portal__guide-heading h2 { margin: 0.35rem 0 0.65rem; font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -0.03em; }
.amazin-theme-portal__guide-heading > p:last-child { margin: 0; color: #52627f; }

.amazin-theme-portal__guide-images { display: grid; gap: 1rem; margin: 1.75rem 0; }
.amazin-theme-portal__guide-images figure { max-width: 38rem; margin: 0 auto; padding: 0.75rem; border: 1px solid #d7dce8; border-radius: 0.75rem; background: #f7f9fd; }
.amazin-theme-portal__guide-images img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid #e3e8f1; border-radius: 0.35rem; background: #fff; }
.amazin-theme-portal__guide-images figcaption { margin: 0.75rem 0.15rem 0.1rem; color: #52627f; font-size: 0.86rem; line-height: 1.45; }

.amazin-theme-portal__guide-items {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.amazin-theme-portal__guide-items section {
  padding: 1.05rem 1.15rem;
  border-left: 3px solid #b9cceb;
  border-radius: 0 0.5rem 0.5rem 0;
  background: #f7f9fd;
}

.amazin-theme-portal__guide-items h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.amazin-theme-portal__guide-items p { margin: 0; color: #52627f; font-size: 0.95rem; }

.amazin-theme-portal__settings-reference { margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid #d7dce8; }
.amazin-theme-portal__settings-reference h2 { margin: 0 0 0.45rem; font-size: 1.4rem; }
.amazin-theme-portal__settings-reference > p { margin: 0 0 1rem; color: #52627f; }
.amazin-theme-portal--docs .amazin-theme-portal__settings-table-wrap { overflow-x: auto; border: 1px solid #c9d4e6; border-radius: 0.65rem; background: #fff; }
.amazin-theme-portal--docs .amazin-theme-portal__settings-table-wrap table { width: 100% !important; min-width: 42rem; border-collapse: separate !important; border-spacing: 0 !important; table-layout: fixed; color: #102451 !important; font-size: 0.9rem !important; line-height: 1.5 !important; }
.amazin-theme-portal--docs .amazin-theme-portal__settings-table-wrap th,
.amazin-theme-portal--docs .amazin-theme-portal__settings-table-wrap td { padding: 0.9rem 1rem !important; border: 0 !important; border-bottom: 1px solid #dfe6f1 !important; color: #102451 !important; font-family: inherit !important; font-size: 0.9rem !important; font-weight: 400 !important; line-height: 1.5 !important; text-align: left !important; vertical-align: top !important; white-space: normal !important; }
.amazin-theme-portal--docs .amazin-theme-portal__settings-table-wrap th + th,
.amazin-theme-portal--docs .amazin-theme-portal__settings-table-wrap td + td { border-left: 1px solid #dfe6f1 !important; }
.amazin-theme-portal--docs .amazin-theme-portal__settings-table-wrap thead th { background: #edf3fc !important; font-size: 0.76rem !important; font-weight: 800 !important; letter-spacing: 0.04em; text-transform: uppercase; }
.amazin-theme-portal--docs .amazin-theme-portal__settings-table-wrap tbody th { width: 28%; font-weight: 800 !important; background: #f9fbfe; }
.amazin-theme-portal--docs .amazin-theme-portal__settings-table-wrap tbody td { width: 36%; }
.amazin-theme-portal--docs .amazin-theme-portal__settings-table-wrap tbody tr:last-child th,
.amazin-theme-portal--docs .amazin-theme-portal__settings-table-wrap tbody tr:last-child td { border-bottom: 0 !important; }

.amazin-theme-portal__blocks-reference { margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid #d7dce8; scroll-margin-top: 1.25rem; }
.amazin-theme-portal__blocks-reference > h2 { margin: 0 0 0.45rem; font-size: 1.4rem; }
.amazin-theme-portal__blocks-reference > p { margin: 0 0 1rem; color: #52627f; }
.amazin-theme-portal__blocks-grid { display: grid; gap: 0.85rem; }
.amazin-theme-portal__blocks-grid article { padding: 1.1rem 1.15rem; border: 1px solid #d7dce8; border-radius: 0.65rem; background: #f9fbfe; }
.amazin-theme-portal__blocks-grid h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.amazin-theme-portal__blocks-grid p { margin: 0; color: #52627f; }
.amazin-theme-portal__blocks-grid dl { display: grid; gap: 0.7rem; margin: 1rem 0 0; }
.amazin-theme-portal__blocks-grid dl div { padding-top: 0.7rem; border-top: 1px solid #e0e7f1; }
.amazin-theme-portal__blocks-grid dt { color: #102451; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.amazin-theme-portal__blocks-grid dd { margin: 0.2rem 0 0; color: #52627f; font-size: 0.9rem; line-height: 1.5; }

.amazin-theme-portal__help-panel {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 1rem;
  background: linear-gradient(135deg, #102451, #173b79);
  color: #fff;
  box-shadow: 0 0.75rem 2rem rgb(16 36 81 / 12%);
}

.amazin-theme-portal__help-panel .amazin-theme-portal__eyebrow { color: #b9d8ff; }
.amazin-theme-portal__help-panel h2 { margin: 0.3rem 0 0.55rem; color: #fff; font-size: clamp(1.35rem, 2vw, 1.75rem); }
.amazin-theme-portal__help-panel p:last-child { max-width: 39rem; margin: 0; color: #e3ecff; }
.amazin-theme-portal__help-panel .amazin-theme-portal__button { flex: 0 0 auto; border-color: #fff; background: #fff; color: #102451; }
.amazin-theme-portal__help-panel .amazin-theme-portal__button:hover,
.amazin-theme-portal__help-panel .amazin-theme-portal__button:focus-visible { background: #dceaff; color: #071735; }

.amazin-theme-portal__support-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.amazin-theme-portal__support-aside,
.amazin-theme-portal__form-card,
.amazin-theme-portal__support-policy {
  border: 1px solid #d7dce8;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.75rem 2rem rgb(16 36 81 / 8%);
}

.amazin-theme-portal__support-aside {
  padding: 1.5rem;
  background: linear-gradient(145deg, #102451, #173b79);
  color: #fff;
}

.amazin-theme-portal__support-aside h2 { color: #fff; }
.amazin-theme-portal__support-aside .amazin-theme-portal__list { line-height: 1.55; }
.amazin-theme-portal__support-aside .amazin-theme-portal__list li + li { margin-top: 0.8rem; }

.amazin-theme-portal__text-link {
  display: inline-flex;
  margin-top: 1.5rem;
  color: #fff;
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.amazin-theme-portal__form-card { padding: clamp(1.25rem, 3vw, 2.5rem); }
.amazin-theme-portal__form-intro { max-width: 42rem; margin-bottom: 1.5rem; }
.amazin-theme-portal__form-intro h2 { margin-bottom: 0.45rem; }
.amazin-theme-portal__form-intro p { margin: 0; color: #52627f; }

.amazin-theme-portal__support-policy {
  padding: 1.5rem;
  color: #40506d;
}

.amazin-theme-portal__support-policy h2 {
  margin-bottom: 0.7rem;
  color: #102451;
  font-size: 1.15rem;
}

.amazin-theme-portal__support-policy p { margin: 0; line-height: 1.55; }
.amazin-theme-portal__support-policy ul { margin: 1rem 0; padding-left: 1.15rem; line-height: 1.55; }
.amazin-theme-portal__support-policy li + li { margin-top: 0.7rem; }
.amazin-theme-portal__support-policy-note { padding-top: 1rem; border-top: 1px solid #d7dce8; font-size: 0.9rem; }

/* The Zoho form remains provider-owned. These rules only present its generated
   controls inside the support portal without changing its data or behavior. */
.amazin-theme-portal--support .amazin-theme-portal__zoho-form,
.amazin-theme-portal--support .zsFormClass,
.amazin-theme-portal--support #zohoSupportWebToCase {
  width: 100% !important;
  max-width: none !important;
  overflow: visible;
  background: transparent !important;
  color: #102451 !important;
  font-family: inherit !important;
}

.amazin-theme-portal--support #zohoSupportWebToCase table {
  width: 100% !important;
  border-collapse: collapse !important;
  border: 0 !important;
  background: transparent !important;
}

.amazin-theme-portal--support #zohoSupportWebToCase tr,
.amazin-theme-portal--support #zohoSupportWebToCase td {
  border: 0 !important;
  background: transparent !important;
}

.amazin-theme-portal--support #zohoSupportWebToCase td {
  padding: 0.55rem 0 !important;
  color: #102451 !important;
  font: inherit !important;
  text-align: left !important;
  vertical-align: top !important;
}

/* Zoho reserves a broad label column in its generated table. Limit it only
   within the isolated support portal so labels and their controls stay close. */
.amazin-theme-portal--support #zohoSupportWebToCase tr > td:first-child:not([colspan]) {
  width: 10rem !important;
  padding-right: 1rem !important;
}

.amazin-theme-portal--support #zohoSupportWebToCase tr > td:first-child:not([colspan]) + td {
  width: auto !important;
}

.amazin-theme-portal--support #zohoSupportWebToCase input[type='text'],
.amazin-theme-portal--support #zohoSupportWebToCase input[type='email'],
.amazin-theme-portal--support #zohoSupportWebToCase input[type='date'],
.amazin-theme-portal--support #zohoSupportWebToCase input[type='url'],
.amazin-theme-portal--support #zohoSupportWebToCase textarea,
.amazin-theme-portal--support #zohoSupportWebToCase select {
  width: 100% !important;
  max-width: none !important;
  min-height: 2.85rem;
  margin: 0 !important;
  padding: 0.7rem 0.8rem !important;
  border: 1px solid #bcc8dc !important;
  border-radius: 0.45rem !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #102451 !important;
  font: inherit !important;
}

.amazin-theme-portal--support #zohoSupportWebToCase textarea {
  min-height: 9rem;
  resize: vertical;
}

.amazin-theme-portal--support #zohoSupportWebToCase input:focus,
.amazin-theme-portal--support #zohoSupportWebToCase textarea:focus,
.amazin-theme-portal--support #zohoSupportWebToCase select:focus {
  border-color: #008fca !important;
  outline: 3px solid rgb(0 143 202 / 18%) !important;
  outline-offset: 1px;
}

.amazin-theme-portal--support #zohoSupportWebToCase input[type='submit'],
.amazin-theme-portal--support #zohoSupportWebToCase input[type='reset'],
.amazin-theme-portal--support #zohoSupportWebToCase input[type='button'],
.amazin-theme-portal--support #zohoSupportWebToCase button {
  display: inline-block !important;
  width: auto !important;
  min-width: 7.25rem;
  min-height: 2.8rem;
  margin: 0.75rem 0.25rem 0 !important;
  padding: 0.65rem 1rem !important;
  border: 1px solid #102451 !important;
  border-radius: 0.45rem !important;
  background: #102451 !important;
  color: #fff !important;
  font: inherit !important;
  font-weight: 700 !important;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
}

.amazin-theme-portal--support #zohoSupportWebToCase input[type='reset'],
.amazin-theme-portal--support #zohoSupportWebToCase input[type='button'] {
  background: #fff !important;
  color: #102451 !important;
}

/* Zoho Desk supplies the upload control and captcha. Keep their submission
   behavior intact, but give the provider-native controls the same visual
   system as the portal. */
.amazin-theme-portal--support #zohoSupportWebToCase .zsfilebrowseAttachment,
.amazin-theme-portal--support #zohoSupportWebToCase .zscloudAttachment,
.amazin-theme-portal--support #zohoSupportWebToCase .wtcuploadinput {
  color: #102451 !important;
  font: inherit !important;
}

.amazin-theme-portal--support #zohoSupportWebToCase .zsfilebrowseAttachment,
.amazin-theme-portal--support #zohoSupportWebToCase #zsBrowseAttachment {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.65rem;
  padding: 0.6rem 0.9rem !important;
  border: 1px dashed #6682b3 !important;
  border-radius: 0.5rem !important;
  background: #f5f8ff !important;
  color: #0b5f99 !important;
  font: inherit !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.amazin-theme-portal--support #zohoSupportWebToCase .zsfilebrowseAttachment:hover,
.amazin-theme-portal--support #zohoSupportWebToCase #zsBrowseAttachment:hover {
  border-color: #0073aa !important;
  background: #eaf4fb !important;
  color: #074b7b !important;
}

.amazin-theme-portal--support #zohoSupportWebToCase input[type='file'] {
  width: 100% !important;
  max-width: 28rem !important;
  padding: 0.4rem !important;
  border: 1px dashed #6682b3 !important;
  border-radius: 0.5rem !important;
  background: #f5f8ff !important;
  color: #102451 !important;
  font: inherit !important;
}

/* Keep Zoho's generated attachment-size help beside the visible picker. */
.amazin-theme-portal--support #zohoSupportWebToCase .clboth {
  display: none !important;
}

.amazin-theme-portal--support #zohoSupportWebToCase #zsMaxSizeMessage,
.amazin-theme-portal--support #zohoSupportWebToCase #zsMaxLimitMessage {
  display: inline-block !important;
  float: none !important;
  margin: 0 0 0 0.65rem !important;
  color: #52627f !important;
  font-family: inherit !important;
  font-size: 0.78rem !important;
  line-height: 1.4 !important;
  vertical-align: middle !important;
}

.amazin-theme-portal--support #zohoSupportWebToCase input[type='file']::file-selector-button {
  margin-right: 0.65rem;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 0.3rem;
  background: #0b5f99;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.amazin-theme-portal--support #zohoSupportWebToCase #zsCaptcha {
  display: inline-block;
  min-width: min(100%, 19rem);
  padding: 0.9rem;
  border: 1px solid #d7dce8;
  border-radius: 0.65rem;
  background: #f9fbff;
}

.amazin-theme-portal--support #zohoSupportWebToCase #zsCaptcha img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 0.7rem;
}

.amazin-theme-portal--support #zohoSupportWebToCase #zsCaptchaLoading {
  color: #52627f !important;
  font: inherit !important;
}

.amazin-theme-portal--support #zohoSupportWebToCase input[type='submit']:hover,
.amazin-theme-portal--support #zohoSupportWebToCase input[type='button']:hover,
.amazin-theme-portal--support #zohoSupportWebToCase button:hover {
  border-color: #0073aa !important;
  background: #0073aa !important;
}

.amazin-theme-portal--support #zohoSupportWebToCase input[type='reset']:hover {
  background: #edf3fc !important;
}

.amazin-theme-portal--support #zohoSupportWebToCase input[type='submit']:focus-visible,
.amazin-theme-portal--support #zohoSupportWebToCase input[type='reset']:focus-visible,
.amazin-theme-portal--support #zohoSupportWebToCase input[type='button']:focus-visible,
.amazin-theme-portal--support #zohoSupportWebToCase button:focus-visible,
.amazin-theme-portal--support #zohoSupportWebToCase .zsfilebrowseAttachment:focus-visible,
.amazin-theme-portal--support #zohoSupportWebToCase #zsBrowseAttachment:focus-visible {
  outline: 3px solid rgb(0 143 202 / 28%) !important;
  outline-offset: 2px;
}

/* Zoho's generated "Powered by" link is presentation-only. It is hidden
   inside this portal wrapper only; no Zoho form fields, requests, or scripts
   are changed. */
.amazin-theme-portal--support #zohoSupportWebToCase .wb_FtCon,
.amazin-theme-portal--support #zohoSupportWebToCase .wb_logoCon,
.amazin-theme-portal--support #zohoSupportWebToCase .wb_logo {
  display: none !important;
}

@media (max-width: 47.99rem) {
  .amazin-theme-portal { padding-inline: 1rem; }
  .amazin-theme-portal__card { padding: 1.25rem; }
  .amazin-theme-portal__actions { display: grid; }
  .amazin-theme-portal__button { width: 100%; }
  .amazin-theme-portal__docs-card { min-height: 0; padding: 1.25rem; }
  .amazin-theme-portal__help-panel { align-items: stretch; flex-direction: column; }

  .amazin-theme-portal--support #zohoSupportWebToCase #zsMaxSizeMessage,
  .amazin-theme-portal--support #zohoSupportWebToCase #zsMaxLimitMessage {
    display: block !important;
    margin: 0.35rem 0 0 !important;
  }

  .amazin-theme-portal--support #zohoSupportWebToCase input[type='submit'],
  .amazin-theme-portal--support #zohoSupportWebToCase input[type='button'] {
    width: 100%;
    margin: 0.75rem 0 0 !important;
  }

  /* Zoho's desktop embed uses a two-column table. On a phone each label and
     control becomes a clear, full-width field instead of squeezing inputs. */
  .amazin-theme-portal--support .amazin-theme-portal__form-card { padding: 1.25rem; }
  .amazin-theme-portal--support #zohoSupportWebToCase table,
  .amazin-theme-portal--support #zohoSupportWebToCase tbody,
  .amazin-theme-portal--support #zohoSupportWebToCase tr,
  .amazin-theme-portal--support #zohoSupportWebToCase td {
    display: block !important;
    width: 100% !important;
  }

  .amazin-theme-portal--support #zohoSupportWebToCase tr { padding: 0.65rem 0 !important; }
  .amazin-theme-portal--support #zohoSupportWebToCase tr > td:first-child:not([colspan]) {
    padding: 0 0 0.35rem !important;
  }

  .amazin-theme-portal--support #zohoSupportWebToCase tr > td:first-child:not([colspan]) + td {
    padding: 0 !important;
  }

  .amazin-theme-portal--support #zohoSupportWebToCase #zsCaptcha {
    width: 100% !important;
    min-width: 0;
  }
}

@media (max-width: 63.99rem) {
  /* Compact documentation navigation behaves as a drawer: the page outline
     is deliberately absent and the complete guide list opens from one button. */
  .amazin-theme-portal__docs-toc { display: none !important; }
  .amazin-theme-portal__docs-sidebar { position: relative; padding: 0.8rem 1rem; }
  .amazin-theme-portal__docs-menu { margin-top: 0.75rem; }
  .amazin-theme-portal__docs-menu summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.8rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #cbd6e8;
    border-radius: 0.5rem;
    background: #fff;
    list-style: none;
  }

  .amazin-theme-portal__docs-menu summary::-webkit-details-marker { display: none; }
  .amazin-theme-portal__docs-menu summary::after { content: '+'; color: #0073aa; font-size: 1.25rem; line-height: 1; }
  .amazin-theme-portal__docs-menu[open] summary::after { content: '\2212'; }

  .amazin-theme-portal__docs-menu[open] nav {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.5rem);
    left: 0;
    width: min(calc(100vw - 2rem), 34rem);
    max-height: calc(100vh - 8rem);
    padding: 1rem;
    overflow-y: auto;
    border: 1px solid #cbd6e8;
    border-radius: 0.65rem;
    background: #fff;
    box-shadow: 0 1rem 2.5rem rgb(16 36 81 / 18%);
    grid-template-columns: 1fr !important;
  }

  .amazin-theme-portal__docs-menu[open] nav p { grid-column: auto !important; }
  .amazin-theme-portal__docs-support-link { margin-top: 0.8rem; }
}

@media (min-width: 48rem) and (max-width: 63.99rem) {
  .amazin-theme-portal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amazin-theme-portal__docs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amazin-theme-portal__docs-menu nav { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
  .amazin-theme-portal__docs-menu nav p { grid-column: 1 / -1; }
}

@media (min-width: 64rem) {
  /* Some themes constrain page content or clip it with overflow. Portal pages
     need a full-width, visible ancestor for their side panels to remain sticky. */
  .amazin-theme-portal-page #main,
  .amazin-theme-portal-page #page,
  .amazin-theme-portal-page .page-container,
  .amazin-theme-portal-page #main-content,
  .amazin-theme-portal-page #primary,
  .amazin-theme-portal-page .site-content,
  .amazin-theme-portal-page article.page,
  .amazin-theme-portal-page .entry-content,
  .amazin-theme-portal-page .wp-block-post-content,
  .amazin-theme-portal-page .wp-site-blocks,
  .amazin-theme-portal-page .is-layout-constrained {
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
    contain: none !important;
  }

  .amazin-theme-portal-page .page-container,
  .amazin-theme-portal-page #main-content {
    margin-inline: 0 !important;
    padding-inline: 0 !important;
  }

  .amazin-theme-portal-page .amazin-theme-portal--docs,
  .amazin-theme-portal-page .amazin-theme-portal--support {
    width: 100% !important;
    max-width: none !important;
    padding-inline: clamp(1.5rem, 4vw, 5rem);
  }

  .amazin-theme-portal__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .amazin-theme-portal__docs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .amazin-theme-portal__support-layout { grid-template-columns: minmax(17rem, 0.72fr) minmax(0, 1.55fr) minmax(17rem, 0.7fr); }
  .amazin-theme-portal__support-aside,
  .amazin-theme-portal__support-policy { position: sticky; top: 5rem; }
  .amazin-theme-portal__docs-shell { grid-template-columns: minmax(17.5rem, 19rem) minmax(0, 1fr) minmax(10rem, 12rem); gap: 2rem; }
  .amazin-theme-portal__docs-sidebar { position: sticky; top: 4.5rem; max-height: calc(100vh - 6rem); overflow-y: auto; }
  .amazin-theme-portal__docs-menu summary { display: none; }
  .amazin-theme-portal__docs-toc { position: sticky; top: 4.5rem; display: grid; gap: 0.25rem; padding-top: 0.25rem; border-left: 1px solid #d7dce8; }
  .amazin-theme-portal__docs-toc p { margin: 0 0 0.4rem; padding-left: 0.9rem; color: #102451; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
  .amazin-theme-portal__docs-toc a { padding-left: 0.9rem; }
}
