/* Local fallback for public user pages. Keep this file dependency-free. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
}

button,
input,
optgroup,
select,
textarea {
  font: inherit;
}

button,
select {
  text-transform: none;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

sl-icon,
iconify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  min-width: 1em;
  height: 1em;
  line-height: 1;
  flex: 0 0 auto;
  vertical-align: -.14em;
  color: currentColor;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1em;
  font-weight: 900;
}

sl-icon:empty::before,
iconify-icon:empty::before {
  content: attr(data-fallback);
}

sl-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35em;
  max-width: 100%;
  min-height: 1.55rem;
  padding: .18rem .55rem;
  border: 1px solid rgba(116, 76, 36, .22);
  border-radius: 999px;
  background: rgba(177, 108, 37, .10);
  color: #241a10;
  font: 800 .78rem/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  white-space: normal;
}

sl-tag[pill] {
  border-radius: 999px;
}

sl-tag[variant="primary"] {
  background: rgba(31, 79, 98, .12);
  color: #153949;
}

sl-tag[variant="success"] {
  background: rgba(23, 107, 79, .12);
  color: #176b4f;
}

sl-tag[variant="warning"] {
  background: rgba(154, 91, 5, .12);
  color: #9a5b05;
}

sl-tag[variant="danger"] {
  background: rgba(167, 53, 42, .12);
  color: #a7352a;
}

sl-tag[variant="neutral"] {
  background: rgba(15, 23, 42, .07);
  color: #334155;
}

sl-card {
  display: block;
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgba(116, 76, 36, .22);
  border-radius: .75rem;
  background: #fffaf1;
  color: #241a10;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .10);
}

sl-divider {
  display: block;
  width: 100%;
  height: 1px;
  margin: 1rem 0;
  border: 0;
  border-top: 1px solid rgba(116, 76, 36, .18);
}

body.user-entry-page select,
body.user-entry-page #versionSelect {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 46px !important;
  padding: 10px 38px 10px 12px !important;
  border: 1px solid rgba(116, 76, 36, .22) !important;
  border-radius: 10px !important;
  background-color: #fffdf8 !important;
  color: #241a10 !important;
  color-scheme: light;
  font: 800 14px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  letter-spacing: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .58), 0 8px 18px rgba(54, 34, 18, .06) !important;
  outline: none !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.user-entry-page #versionSelect {
  margin-top: 4px;
}

body.user-entry-page select:focus,
body.user-entry-page #versionSelect:focus {
  border-color: rgba(182, 138, 69, .72) !important;
  box-shadow: 0 0 0 3px rgba(214, 159, 73, .22), inset 0 1px 0 rgba(255, 255, 255, .68) !important;
}

body.user-entry-page select option,
body.user-entry-page #versionSelect option {
  color: #241a10;
  background: #fffaf1;
}

body.user-entry-page .entry-version-fallback {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-top: 10px !important;
}

body.user-entry-page .entry-version-fallback-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 8px 13px !important;
  border: 1px solid rgba(132, 96, 54, .32) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .88) !important;
  color: #6f492a !important;
  font: 900 12px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  box-shadow: 0 8px 18px rgba(54, 34, 18, .08) !important;
}

body.user-entry-page .entry-version-fallback-current {
  min-width: 0 !important;
  color: #6f5a43 !important;
  font: 800 12px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  overflow-wrap: anywhere !important;
}

body.user-entry-page .entry-version-fallback-sheet {
  z-index: 9998 !important;
}

body.user-entry-page .entry-version-fallback-panel {
  width: 100% !important;
  max-width: 520px !important;
  color: #23170f !important;
  background: #fffaf3 !important;
}

body.user-entry-page .entry-version-fallback-option {
  min-height: 46px !important;
  color: #23170f !important;
  background: #fff !important;
}

body.user-entry-page .entry-version-fallback-option.is-active {
  color: #0f513f !important;
  background: rgba(15, 106, 82, .10) !important;
}

html.legacy-browser sl-card,
html.legacy-browser sl-tag,
html.legacy-browser sl-divider {
  display: block !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-shadow: none !important;
  background: #fffaf3 !important;
  color: #241a10 !important;
}

html.legacy-browser sl-tag {
  display: inline-block !important;
  min-height: 24px !important;
  padding: 4px 8px !important;
  border: 1px solid #d8c0a3 !important;
  border-radius: 999px !important;
}

html.legacy-browser sl-divider {
  height: 1px !important;
  margin: 16px 0 !important;
  border: 0 !important;
  border-top: 1px solid #d8c0a3 !important;
}

html.legacy-browser body.user-entry-page .entry-version-fallback {
  display: block !important;
  width: 100% !important;
}

html.legacy-browser body.user-entry-page .entry-version-fallback-button,
html.legacy-browser body.user-entry-page .entry-version-fallback-current {
  display: block !important;
  width: 100% !important;
  margin: 0 0 8px 0 !important;
}

html.legacy-browser iframe.legacy-frame-deferred {
  display: none !important;
}

@media (max-width: 640px) {
  body.user-entry-page select,
  body.user-entry-page #versionSelect {
    min-height: 48px !important;
    font-size: 16px !important;
  }

  body.user-entry-page .entry-version-fallback,
  body.user-entry-page .entry-version-fallback-button,
  body.user-entry-page .entry-version-fallback-current {
    width: 100% !important;
  }

  body.user-entry-page.money-wa-theme.op-entry-redesign.black-gold-entry #envSection .dispatch-grid {
    display: block !important;
  }

  body.user-entry-page.money-wa-theme.op-entry-redesign.black-gold-entry #envSection .dispatch-field-2,
  body.user-entry-page.money-wa-theme.op-entry-redesign.black-gold-entry #envSection .dispatch-field-4,
  body.user-entry-page.money-wa-theme.op-entry-redesign.black-gold-entry #envSection .dispatch-field-6 {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.user-entry-page.money-wa-theme.op-entry-redesign.black-gold-entry #envSection .dispatch-grid > * + * {
    margin-top: 12px !important;
  }

  body.user-entry-page.money-wa-theme.op-entry-redesign.black-gold-entry #envSection #versionSelect,
  body.user-entry-page.money-wa-theme.op-entry-redesign.black-gold-entry #envSection .entry-version-fallback,
  body.user-entry-page.money-wa-theme.op-entry-redesign.black-gold-entry #envSection .entry-version-fallback-button,
  body.user-entry-page.money-wa-theme.op-entry-redesign.black-gold-entry #envSection .entry-version-fallback-current {
    width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
  }
}
