/**
 * VTEX ID login modal — estilos Vizzent.
 * Carregado por ultimo (_app.tsx) para sobrescrever o CSS da VTEX.
 * O modal e injetado em runtime por vtexid.js (#vtexIdContainer).
 */

html.vtex-id-modal-open,
body.vtex-id-modal-open {
  overflow: hidden !important;
  height: 100% !important;
  max-height: 100% !important;
  overscroll-behavior: none !important;
  touch-action: none !important;
}

body .modal-backdrop.in {
  background: #000 !important;
  opacity: 0.5 !important;
}

#vtexIdContainer {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 9999 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  pointer-events: none !important;
}

#vtexIdContainer .vtexIdUI,
#vtexIdContainer .vtexIdUI.vtexIdUI-show-app {
  pointer-events: auto !important;
}

#vtexIdContainer .vtexIdUI,
#vtexIdContainer .vtexIdUI.vtexIdUI-show-app,
body .vtexIdUI.vtexIdUI-show-app {
  position: fixed !important;
  top: 15% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 32px) !important;
  max-width: 420px !important;
  margin: 0 !important;
  margin-left: 0 !important;
  border: none !important;
  border-bottom: none !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow:
    0 -16px 48px -12px rgba(0, 0, 0, 0.16),
    0 32px 64px -16px rgba(0, 0, 0, 0.28) !important;
  -webkit-box-shadow:
    0 -16px 48px -12px rgba(0, 0, 0, 0.16),
    0 32px 64px -16px rgba(0, 0, 0, 0.28) !important;
  overflow: hidden !important;
  outline: none !important;
}

#vtexIdContainer .vtexIdUI::before,
#vtexIdContainer .vtexIdUI::after,
#vtexIdContainer .vtexIdUI.vtexIdUI-show-app::before,
#vtexIdContainer .vtexIdUI.vtexIdUI-show-app::after,
body .vtexIdUI.vtexIdUI-show-app::before,
body .vtexIdUI.vtexIdUI-show-app::after {
  display: none !important;
  content: none !important;
  height: 0 !important;
  box-shadow: none !important;
}

#vtexIdContainer .vtexIdUI > i,
#vtexIdContainer .vtexIdUI > i.vtexid-icon-lock,
#vtexIdContainer .vtexIdUI > i.bottom-icon,
body .vtexIdUI.vtexIdUI-show-app .vtexid-icon-lock,
body .vtexIdUI.vtexIdUI-show-app .vtexid-icon-lock.bottom-icon,
body .vtexIdUI.vtexIdUI-show-app > i.vtexid-icon-lock,
body .vtexIdUI.vtexIdUI-show-app > i.bottom-icon {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Sobrescreve defaults do vtexid.js — bootstrap modal aberto */
body .vtexIdUI.modal.in {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  margin-left: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  background: transparent !important;
  display: block !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

body .vtexIdUI .modal-dialog {
  margin: 1.75rem auto !important;
  width: calc(100% - 32px) !important;
  max-width: 420px !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
}

body .vtexIdUI .modal-content {
  border-radius: 20px !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow:
    0 -16px 48px -12px rgba(0, 0, 0, 0.16),
    0 32px 64px -16px rgba(0, 0, 0, 0.28) !important;
  overflow: hidden !important;
  background: #fff !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body .vtexIdUI .modal-content::before {
  content: "" !important;
  display: block !important;
  height: 4px !important;
  background: linear-gradient(90deg, #be3019 0%, #d44a32 50%, #be3019 100%) !important;
}

body .vtexIdUI .modal-header {
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%) !important;
  background-image: linear-gradient(180deg, #fafafa 0%, #fff 100%) !important;
  border: none !important;
  border-bottom: 1px solid #f0f0f0 !important;
  padding: 28px 24px 24px !important;
  position: relative !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

body .vtexIdUI .modal-header::before,
body .vtexIdUI .modal-header h4::before {
  content: none !important;
  display: none !important;
}

body .vtexIdUI #vtexIdUI-auth-selector .modal-header::before {
  content: "" !important;
  display: block !important;
  width: 56px !important;
  height: 56px !important;
  margin: 0 auto 16px !important;
  border-radius: 50% !important;
  background-color: #fdf3f1 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23be3019' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 28px 28px !important;
  border: 1px solid rgba(190, 48, 25, 0.12) !important;
  flex-shrink: 0 !important;
  align-self: center !important;
}

body .vtexIdUI #vtexIdUI-auth-selector .modal-header h4::before {
  content: "Entrar ou cadastrar-se" !important;
  display: block !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #292a2a !important;
  line-height: 1.25 !important;
}

body .vtexIdUI .modal-header .close,
body .vtexIdUI .modal-header .close:focus,
body .vtexIdUI .modal-header .close:active {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  float: none !important;
  margin: 0 !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9999px !important;
  background: #f0f0f0 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  padding: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, border-color 0.2s ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  z-index: 2 !important;
}

body .vtexIdUI .modal-header .close::before,
body .vtexIdUI .modal-header .close::after {
  content: "" !important;
  position: absolute !important;
  width: 11px !important;
  height: 1.5px !important;
  background: #57585a !important;
  border-radius: 1px !important;
  transition: background-color 0.2s ease !important;
}

body .vtexIdUI .modal-header .close::before {
  transform: rotate(45deg) !important;
}

body .vtexIdUI .modal-header .close::after {
  transform: rotate(-45deg) !important;
}

body .vtexIdUI .modal-header .close:hover,
body .vtexIdUI .modal-header .close:focus {
  background: #be3019 !important;
  border-color: #be3019 !important;
  color: transparent !important;
}

body .vtexIdUI .modal-header .close:hover::before,
body .vtexIdUI .modal-header .close:hover::after,
body .vtexIdUI .modal-header .close:focus::before,
body .vtexIdUI .modal-header .close:focus::after {
  background: #fff !important;
}

body .vtexIdUI .modal-header .close:active {
  background: #a02615 !important;
  border-color: #a02615 !important;
}

body .vtexIdUI .modal-body {
  background: #fff !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  padding: 24px 28px 0 !important;
  margin-bottom: 0 !important;
}

body .vtexIdUI .modal-body::after {
  content: "Compra segura · Dados protegidos" !important;
  display: block !important;
  text-align: center !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #929498 !important;
  margin-top: 24px !important;
  margin-bottom: 0 !important;
  margin-left: -28px !important;
  margin-right: -28px !important;
  padding-top: 20px !important;
  padding-bottom: 16px !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
  border-top: 1px solid #f0f0f0 !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: #fff !important;
  font-family: var(--font-family, sans-serif) !important;
  letter-spacing: 0.02em !important;
  box-sizing: border-box !important;
}

body .vtexIdUI .vtexid-icon-lock.bottom-icon,
body .vtexIdUI > i.vtexid-icon-lock.bottom-icon,
body .vtexIdUI > i.bottom-icon {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body .vtexIdUI i.vtexid-icon-lock::before,
body .vtexIdUI i.vtexid-icon-lock::after,
body .vtexIdUI .vtexid-icon-lock.bottom-icon::before,
body .vtexIdUI .vtexid-icon-lock.bottom-icon::after {
  display: none !important;
  content: none !important;
}

body .vtexIdUI .vtexIdUI-providers-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

body .vtexIdUI .vtexIdUI-providers-list > li {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

body .vtexIdUI .vtexIdUI-providers-list > li:nth-child(2) {
  position: relative !important;
  margin-top: 8px !important;
  padding-top: 20px !important;
}

body .vtexIdUI .vtexIdUI-providers-list > li:nth-child(2)::before {
  content: "ou continue com" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  text-align: center !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #929498 !important;
  font-family: var(--font-family, sans-serif) !important;
  line-height: 1 !important;
}

body .vtexIdUI .vtexIdUI-providers-list > li:nth-child(2)::after {
  content: none !important;
  display: none !important;
}

body .vtexIdUI .vtexIdUI-providers-list .btn {
  width: 100% !important;
  min-height: 50px !important;
  padding: 14px 24px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: var(--font-family, sans-serif) !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50px !important;
  background-image: none !important;
  filter: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease !important;
  white-space: normal !important;
  line-height: 1.35 !important;
}

body .vtexIdUI .vtexIdUI-providers-list .btn:hover {
  transform: translateY(-1px) !important;
}

body .vtexIdUI .vtexIdUI-providers-list .btn:active {
  transform: translateY(0) !important;
}

body .vtexIdUI .vtexIdUI-providers-list .btn i {
  display: none !important;
}

body .vtexIdUI .btn-success,
body .vtexIdUI #sendAccessKeyBtn,
body .vtexIdUI .modal-footer .btn,
body .vtexIdUI .modal-footer .btn-success,
body .vtexIdUI .modal-footer button[type="submit"] {
  background-color: #be3019 !important;
  background-image: none !important;
  border-color: #be3019 !important;
  color: #fff !important;
  text-shadow: none !important;
  filter: none !important;
  box-shadow: 0 4px 16px rgba(190, 48, 25, 0.28) !important;
}

body .vtexIdUI .btn-success:hover,
body .vtexIdUI #sendAccessKeyBtn:hover,
body .vtexIdUI .btn-success:focus,
body .vtexIdUI #sendAccessKeyBtn:focus,
body .vtexIdUI .modal-footer .btn:hover,
body .vtexIdUI .modal-footer .btn-success:hover,
body .vtexIdUI .modal-footer button[type="submit"]:hover,
body .vtexIdUI .modal-footer .btn:focus,
body .vtexIdUI .modal-footer .btn-success:focus,
body .vtexIdUI .modal-footer button[type="submit"]:focus {
  background-color: #a02615 !important;
  background-image: none !important;
  border-color: #a02615 !important;
  color: #fff !important;
  outline: none !important;
  text-shadow: none !important;
  box-shadow: 0 6px 20px rgba(190, 48, 25, 0.35) !important;
}

body .vtexIdUI .btn-success:active,
body .vtexIdUI #sendAccessKeyBtn:active,
body .vtexIdUI .modal-footer .btn:active,
body .vtexIdUI .modal-footer .btn-success:active,
body .vtexIdUI .modal-footer button[type="submit"]:active {
  background-color: #8b2214 !important;
  background-image: none !important;
  border-color: #8b2214 !important;
  box-shadow: 0 2px 8px rgba(190, 48, 25, 0.2) !important;
}

body .vtexIdUI #vtexIdUI-google-plus,
body .vtexIdUI #vtexIdUI-facebook {
  background-color: #fff !important;
  border: 1.5px solid #e0e0e0 !important;
  color: #292a2a !important;
}

body .vtexIdUI #vtexIdUI-google-plus:hover,
body .vtexIdUI #vtexIdUI-facebook:hover,
body .vtexIdUI #vtexIdUI-google-plus:focus,
body .vtexIdUI #vtexIdUI-facebook:focus {
  background-color: #fafafa !important;
  border-color: #be3019 !important;
  color: #be3019 !important;
  outline: none !important;
  box-shadow: none !important;
}

body .vtexIdUI #vtexIdUI-google-plus:active,
body .vtexIdUI #vtexIdUI-facebook:active {
  background-color: #fdf3f1 !important;
  border-color: #be3019 !important;
  color: #be3019 !important;
}

body .vtexIdUI .vtexIdUI-page-form,
body .vtexIdUI .vtexIdUI-page {
  text-align: center !important;
}

body .vtexIdUI .vtexIdUI-page-form p,
body .vtexIdUI .vtexIdUI-page-form label {
  font-family: var(--font-family, sans-serif) !important;
  color: #57585a !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

body .vtexIdUI input[type="email"],
body .vtexIdUI input[type="text"],
body .vtexIdUI input[type="password"] {
  width: 100% !important;
  border-radius: 10px !important;
  border: 1.5px solid #e0e0e0 !important;
  padding: 14px 16px !important;
  font-family: var(--font-family, sans-serif) !important;
  font-size: 14px !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

body .vtexIdUI input:focus {
  border-color: #be3019 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(190, 48, 25, 0.1) !important;
}

body .vtexIdUI a {
  color: #be3019 !important;
  font-family: var(--font-family, sans-serif) !important;
}

body .vtexIdUI .vtexIdUI-back-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

body .vtexIdUI .modal-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  width: 100% !important;
  padding: 16px 24px 20px !important;
  margin: 0 !important;
  border-top: 1px solid #f0f0f0 !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: visible !important;
  pointer-events: auto !important;
  box-sizing: border-box !important;
}

body .vtexIdUI .modal-footer::before,
body .vtexIdUI .modal-footer::after {
  display: none !important;
  content: none !important;
}

body .vtexIdUI .modal-footer .btn,
body .vtexIdUI .modal-footer .btn-success,
body .vtexIdUI .modal-footer button[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  min-height: 44px !important;
  padding: 10px 24px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: var(--font-family, sans-serif) !important;
  text-transform: none !important;
}

body .vtexIdUI .modal-footer .vtexid-icon-arrow-left {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
}

body .vtexIdUI #vtexIdUI-main-content {
  position: relative !important;
  z-index: 2 !important;
  background: #fff !important;
}

body .vtexIdUI .vtexIdUI-loading {
  z-index: 20 !important;
}

body .vtexIdUI .vtexIdUI-loading:not(.vtexIdUI-loading-show) {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
}

body .vtexIdUI .modal-header h4 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #57585a !important;
  line-height: 1.5 !important;
  padding: 0 8px !important;
  margin: 0 !important;
  text-align: center !important;
  max-width: 320px !important;
}

body .vtexIdUI .modal-body:not(:has(.vtexIdUI-providers-list))::after {
  content: none !important;
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

@media (max-width: 767px) {
  #vtexIdContainer .vtexIdUI.vtexIdUI-show-app,
  body .vtexIdUI.vtexIdUI-show-app {
    width: calc(100% - 24px) !important;
    max-width: 360px !important;
  }

  body .vtexIdUI.modal.in .modal-dialog {
    margin: 1rem auto !important;
    width: calc(100% - 24px) !important;
    max-width: 360px !important;
  }

  body .vtexIdUI .modal-content {
    border-radius: 16px !important;
    max-height: calc(100dvh - 24px) !important;
    height: auto !important;
    width: 100% !important;
  }

  body .vtexIdUI .modal-header {
    padding: 18px 16px 14px !important;
  }

  body .vtexIdUI #vtexIdUI-auth-selector .modal-header::before {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 10px !important;
    background-size: 22px 22px !important;
  }

  body .vtexIdUI #vtexIdUI-auth-selector .modal-header h4::before {
    font-size: 17px !important;
    line-height: 1.2 !important;
  }

  body .vtexIdUI .modal-header .close,
  body .vtexIdUI .modal-header .close:focus,
  body .vtexIdUI .modal-header .close:active {
    top: 10px !important;
    right: 10px !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }

  body .vtexIdUI .modal-header .close::before,
  body .vtexIdUI .modal-header .close::after {
    width: 10px !important;
  }

  body .vtexIdUI .modal-header h4 {
    gap: 4px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    padding: 0 4px !important;
    max-width: 100% !important;
  }

  body .vtexIdUI .modal-footer {
    padding: 14px 16px 16px !important;
  }

  body .vtexIdUI .modal-footer .btn,
  body .vtexIdUI .modal-footer .btn-success,
  body .vtexIdUI .modal-footer button[type="submit"] {
    min-height: 42px !important;
    padding: 9px 18px !important;
    font-size: 12px !important;
  }

  body .vtexIdUI .modal-body {
    padding: 14px 16px 0 !important;
  }

  body .vtexIdUI .modal-body::after {
    margin-top: 16px !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    padding-top: 14px !important;
    padding-bottom: 16px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    font-size: 10px !important;
  }

  body .vtexIdUI .vtexIdUI-providers-list {
    gap: 8px !important;
  }

  body .vtexIdUI .vtexIdUI-providers-list > li:nth-child(2) {
    margin-top: 4px !important;
    padding-top: 14px !important;
  }

  body .vtexIdUI .vtexIdUI-providers-list > li:nth-child(2)::before {
    font-size: 11px !important;
  }

  body .vtexIdUI .vtexIdUI-providers-list .btn {
    min-height: 44px !important;
    padding: 10px 16px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    border-radius: 999px !important;
  }

  body .vtexIdUI .vtexIdUI-page-form p,
  body .vtexIdUI .vtexIdUI-page-form label {
    font-size: 13px !important;
  }

  body .vtexIdUI input[type="email"],
  body .vtexIdUI input[type="text"],
  body .vtexIdUI input[type="password"] {
    padding: 12px 14px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
  }

  body .vtexIdUI .vtexIdUI-back-link {
    margin-top: 12px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 380px) {
  #vtexIdContainer .vtexIdUI.vtexIdUI-show-app,
  body .vtexIdUI.vtexIdUI-show-app {
    width: calc(100% - 16px) !important;
  }

  body .vtexIdUI.modal.in .modal-dialog {
    width: calc(100% - 16px) !important;
  }

  body .vtexIdUI .modal-header {
    padding: 14px 12px 12px !important;
  }

  body .vtexIdUI .modal-header::before {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 8px !important;
    background-size: 20px 20px !important;
  }

  body .vtexIdUI .modal-header h4::before {
    font-size: 16px !important;
  }

  body .vtexIdUI .modal-body {
    padding: 12px 14px 0 !important;
  }

  body .vtexIdUI .vtexIdUI-providers-list .btn {
    min-height: 42px !important;
    padding: 9px 12px !important;
    font-size: 11px !important;
  }
}