@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;600;700&family=Google+Sans+Text:wght@400;500;700&display=swap');

html, body, h1, h2, h3, h4, p, span:not(.material-icons):not(.icon), label, input, select, textarea, button:not(.material-icons), summary {
  font-family: 'Google Sans', 'Google Sans Text', Roboto, 'Noto Sans', sans-serif !important;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  display: block;
  font-family: 'Google Sans', 'Google Sans Text', Roboto, 'Noto Sans', sans-serif !important;
  color: #202124;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

.expressive-illustrative-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #e8f0fe;
  color: #174ea6;
  border: 1px solid #d2e3fc;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 0;
  margin-bottom: 24px;
  font-family: 'Google Sans', 'Google Sans Text', Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  box-sizing: border-box;
}

.expressive-illustrative-banner .material-icons {
  font-size: 20px;
  color: #1967d2;
  flex-shrink: 0;
}

var {
  color: #d01884;
  font-weight: 500;
  font-style: italic;
  -webkit-font-smoothing: auto;
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
}

.devsite-article-body {
  padding: 32px 40px 40px 40px;
}

.devsite-article-body ul {
  list-style: disc outside;
  margin: 0;
  padding-left: 40px;
}

.devsite-article-body li,
li p {
  margin: 12px 0;
  padding: 0;
}

.devsite-article-body h1,
.devsite-article-body h1:first-of-type {
  font-family: 'Google Sans', Roboto, sans-serif;
  font-size: 28px;
  color: #202124;
  line-height: 36px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: block !important;
  margin: 0 0 12px 0 !important;
}

.pass-builder-intro {
  display: block;
  margin: 0 0 20px 0;
  font-size: 15px;
  line-height: 24px;
  color: #3c4043;
}

.pass-builder-intro p {
  margin: 0;
}

.devsite-article-body #form a.button-with-icon {
  margin-top: 10px;
  padding: 0 12px;
}

.devsite-article-body #form a.button-with-icon.remove {
  color: #d50000;
  margin-left: 0;
}

.devsite-article-body h3 {
  font: 400 20px/30px Roboto;
  letter-spacing: normal;
  margin: 30px 0 15px;
}

.devsite-article-body #form h3 + #row-0 > h4,
.devsite-article-body #form h3 + a.button {
  margin-top: 0;
}

div[id^=row-] > h4 {
  margin-top: 24px;
}

.tabs-wrapper {
  display: flex;
}

.tabs-wrapper .tab {
  display: flex;
  justify-content: center;
  font: 500 14px/20px 'Google Sans', Roboto, Arial, sans-serif;
  color: #5f6368;
}

.tab:visited {
  color: inherit;
}

.tabs-wrapper .tab > a {
  margin: 0 2px;
  padding: 0 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  line-height: 48px;
  max-width: 200px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  -webkit-transition: color .2s;
  transition: color .2s;
  white-space: nowrap;
  text-decoration: none;
  word-break: break-word;
  outline: 0;
  border-bottom: 2px solid transparent;
}

.tabs-wrapper .tab > a:hover {
  border-bottom: 2px solid #78797c;
}

.tabs-wrapper .tab[active] > a {
  color: #1a73e8;
  border-bottom: 2px solid #1a73e8;
}

.tabs-wrapper .tab a span.icon {
  font-family: 'Material Icons';
  margin-right: 12px;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
}

.tabs-separator {
  background-color: #e8eaed;
  margin: 0 -40px;
}

.devsite-article-body #form label {
  width: fit-content;
  color: #5f6368;
  display: block;
  font-size: 13px;
}

.devsite-article-body #form label > span {
  display: block;
  margin-right: 5px;
}

.devsite-article-body #form .info-row-container {
  display: grid;
  grid-gap: 50px;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  margin-right: 10px;
}

.devsite-article-body #form .info-row-container label {
  display: flex;
  flex-direction: column;
}

.devsite-article-body #form .info-row-item {
  display: flex;
  flex-direction: column;
}

.devsite-article-body #form .info-row-item input {
  width: auto;
}

.devsite-article-body #form input {
  width: 25em;
  border: 1px solid #dadce0;
  border-radius: 2px;
  color: #202124;
  font-size: 16px;
  line-height: 20px;
  height: auto;
  margin: 0;
  outline: 0;
  padding: 7px;
  -webkit-transition: border-color .2s;
  transition: border-color .2s;
  vertical-align: middle;
}

.devsite-article-body #form input:focus  {
  border-bottom: 2px solid #1a73e8;
  padding-bottom: 6px;
}

.devsite-article-body #form .background-color-selector-wrapper:focus-within {
  border: 2px solid #1a73e8;
}

.devsite-article-body #form input.url {
  width: 40em;
}

.devsite-article-body #form input.barcode {
  width: 30em;
}

.devsite-article-body #form .background-color-selector-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.devsite-article-body #form .background-color-selector-wrapper {
  position: relative;
  overflow: hidden;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(0, 0, 0, 0.16);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.devsite-article-body #form .background-color-selector-wrapper:hover {
  transform: scale(1.06);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.devsite-article-body #form input.background-color-selector {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.devsite-article-body #form input.background-color-hex-input {
  width: 104px;
  height: 36px;
  padding: 0 12px;
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  border: 1px solid #dadce0;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}

.devsite-article-body #form .emergency-contacts-input {
  display: flex;
  flex-wrap: wrap;
  padding: 10px 0 0 0;
  justify-content: space-between;
}

.devsite-article-body #json-definitions div[pass-property].active,
.devsite-article-body #json-definitions div[pass-property].focused-json {
  background-color: #fef08a !important;
  border-left: 4px solid #1a73e8 !important;
  outline: 2px solid #1a73e8 !important;
  border-radius: 6px;
  margin: 2px -12px;
  padding: 4px 12px;
  box-shadow: 0 2px 10px rgba(26, 115, 232, 0.28);
  color: #0d47a1 !important;
  font-weight: 700;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.devsite-article-body .code-box {
  position: relative;
  font: 14px Roboto Mono, monospace;
  background: #f1f3f4;
  margin: 0 -40px;
  padding: 30px 40px;
}

.devsite-article-body .code-box > .code-buttons-container {
  position: absolute;
  right: 0;
  top: 0;
  margin: 10px 15px;
}

.code-box .code-buttons-container button {
  display: inline-flex;
  height: 24px;
  width: 24px;
  color: #202124;
  font-size: 18px;
  padding: 20px;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-width: auto;
  background: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: background-color .1s;
}

.code-box .code-buttons-container button:hover {
  background: #fff;
  border-radius: 5px;
}

.code-box .jwt-link {
  display: inline-flex;
  padding: 10px;
  font-size: 12px;
}

.button-copy:before {
  content: 'content_copy';
}

.devsite-article-body .code-box pre {
  white-space: normal;
}

/* ==========================================================================
   Expressive Passes Collapsible Form Sections & Responsive Grid
   ========================================================================== */

.expressive-form-intro {
  background: #f8f9fa;
  border-left: 4px solid #1a73e8;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
  font-size: 14px;
  color: #3c4043;
}

details.expressive-form-section {
  border: 1px solid #dadce0;
  border-radius: 10px;
  margin-bottom: 16px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

details.expressive-form-section[open] {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

details.expressive-form-section > summary {
  list-style: none;
  padding: 14px 18px;
  font-family: 'Google Sans', Roboto, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #202124;
  background: #f8f9fa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  border-bottom: 1px solid transparent;
}

details.expressive-form-section[open] > summary {
  border-bottom-color: #e8eaed;
}

details.expressive-form-section > summary::-webkit-details-marker {
  display: none;
}

details.expressive-form-section > summary::after {
  content: 'expand_more';
  font-family: 'Material Icons';
  font-size: 20px;
  color: #5f6368;
  transition: transform 0.2s ease;
}

details.expressive-form-section[open] > summary::after {
  transform: rotate(180deg);
}

.expressive-section-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
  background: #e8f0fe;
  color: #1967d2;
  margin-left: 8px;
}

.expressive-section-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.expressive-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  width: 100%;
  align-items: stretch;
}

.expressive-form-row > label,
.devsite-article-body #form .expressive-section-body label,
.devsite-article-body #form .expressive-section-body .expressive-form-row > label {
  width: 100%;
  min-width: 0;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
  gap: 6px;
  overflow-wrap: anywhere;
}

.expressive-form-row > label > input,
.expressive-form-row > label > select,
.expressive-form-row > label > textarea,
.devsite-article-body #form .expressive-section-body .expressive-form-row > label > input,
.devsite-article-body #form .expressive-section-body .expressive-form-row > label > select,
.devsite-article-body #form .expressive-section-body .expressive-form-row > label > textarea {
  margin-top: auto !important;
}

.devsite-article-body #form .expressive-section-body input,
.devsite-article-body #form .expressive-section-body textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dadce0;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  color: #202124;
  font-family: inherit;
  background: #fff;
}

.devsite-article-body #form .expressive-section-body select,
.devsite-article-body #form select {
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  line-height: 36px !important;
  padding: 0 32px 0 12px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  font-size: 14px !important;
  color: #202124 !important;
  font-family: inherit !important;
  background-color: #fff !important;
  border: 1px solid #dadce0 !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}

.devsite-article-body #form .expressive-section-body input:focus,
.devsite-article-body #form .expressive-section-body select:focus,
.devsite-article-body #form .expressive-section-body textarea:focus {
  border-color: #1a73e8 !important;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15) !important;
  outline: none !important;
}

.wide-logo-label-header,
.wide-logo-label-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 4px !important;
  width: 100% !important;
}

.wide-logo-sample-btn,
.sample-wide-logo-btn,
#toggle-wide-logo-btn {
  width: auto !important;
  max-width: none !important;
  min-width: max-content !important;
  height: auto !important;
  padding: 3px 10px !important;
  font-size: 11.5px !important;
  line-height: 16px !important;
  margin-left: auto !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.theme-preset-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.theme-preset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dadce0;
  background: #fff;
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #3c4043;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-preset-btn:hover {
  background: #f1f3f4;
  border-color: #bdc1c6;
}

.theme-preset-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Dynamic Repeater UI Controls (+ Add / Remove Cards)
   ========================================================================== */

.repeater-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #5f6368;
}

.repeater-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e8f0fe;
  color: #1967d2;
  border: 1px solid #d2e3fc;
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.repeater-add-btn:hover {
  background: #d2e3fc;
  border-color: #1967d2;
}

.repeater-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.repeater-item-card {
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #fafbfc;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.repeater-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #3c4043;
}

.repeater-remove-btn {
  border: none;
  background: transparent;
  color: #d93025;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.repeater-remove-btn:hover {
  background: #fce8e6;
}
