/* AUTUNEO Account/Login - versión limpia */

/* Dropdown cuenta desktop */
@media (min-width: 768px) {
  .autuneo-account-menu .header-block__action-btn {
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: .45rem .75rem;
    color: #1A1A1A;
    background: #fff;
    box-shadow: none;
  }

  .autuneo-account-menu .header-block__action-btn:hover,
  .autuneo-account-menu .header-block__action-btn.show {
    color: #D61F26;
    border-color: #D61F26;
  }

  .autuneo-account-dropdown {
    min-width: 190px;
    padding: .45rem 0;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    overflow: hidden;
  }

  .autuneo-account-dropdown__title {
    padding: .6rem .95rem;
    font-weight: 600;
    color: #1A1A1A;
    font-size: .95rem;
  }

  .autuneo-account-dropdown .dropdown-divider {
    margin: 0;
    border-color: #eeeeee;
  }

  .autuneo-account-dropdown .dropdown-item {
    padding: .7rem .95rem;
    color: #1A1A1A;
    font-size: .95rem;
  }

  .autuneo-account-dropdown .dropdown-item:hover,
  .autuneo-account-dropdown .dropdown-item:focus {
    color: #D61F26;
    background: #fafafa;
  }

  .autuneo-account-menu .dropdown:hover > .dropdown-menu {
    display: block;
  }
}

/* Modal login */
body > .autuneo-login-modal {
  z-index: 20000;
}

body > .autuneo-login-modal.show {
  display: block;
}

body > .autuneo-login-modal .modal-dialog {
  max-width: 520px;
  margin: 1rem auto;
  z-index: 20001;
}

body > .autuneo-login-modal .modal-content {
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  opacity: 1;
  filter: none;
  background: #fff;
  border: 1px solid rgba(184,26,32,.24);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(184,26,32,.12),
    0 0 10px rgba(184,26,32,.22),
    0 0 22px rgba(184,26,32,.14),
    0 20px 60px rgba(0,0,0,.45);
}

body > .autuneo-login-modal .modal-content::before,
body > .autuneo-login-modal .modal-content::after {
  display: none;
  content: none;
}

.autuneo-login-modal .modal-body {
  padding: 1.5rem 2.25rem;
}

.autuneo-login-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
}

.autuneo-login-modal__brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  text-align: center;
}

.autuneo-login-modal__logo {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto;
}

.autuneo-login-modal__title {
  margin-bottom: 1rem;
  color: #1A1A1A;
  font-size: 1.45rem;
  font-weight: 800;
  text-align: center;
}

.autuneo-login-modal__text {
  margin-bottom: 1.5rem;
  color: #555;
  line-height: 1.5;
  text-align: center;
}

.autuneo-login-modal__form {
  margin: 0;
}

.autuneo-login-modal__field {
  margin-bottom: 1rem;
}

.autuneo-login-modal__field label {
  display: block;
  margin-bottom: .35rem;
  color: #1A1A1A;
  font-weight: 700;
}

.autuneo-login-modal__field input {
  width: 100%;
  display: block;
  border: 0;
  border-bottom: 1px solid #d6d6d6;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  padding: .55rem 0;
  color: #1A1A1A;
  font-size: 1rem;
}

.autuneo-login-modal__field input:focus {
  border-bottom-color: #B81A20;
  box-shadow: none;
}

.autuneo-login-modal__field input::placeholder {
  color: #777;
  opacity: 1;
}

.autuneo-login-modal__field input:-webkit-autofill,
.autuneo-login-modal__field input:-webkit-autofill:hover,
.autuneo-login-modal__field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #1A1A1A;
  box-shadow: 0 0 0 1000px #fff inset;
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  border-bottom: 1px solid #d6d6d6;
  transition: background-color 9999s ease-in-out 0s;
}

.autuneo-login-modal__button {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: .75rem 1rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #B81A20, #D61F26);
  color: #fff;
  font-weight: 900;
  text-align: center;
}

.autuneo-login-modal__register {
  margin-top: 1.25rem;
  text-align: center;
}

.autuneo-login-modal__register a {
  color: #B81A20;
  font-weight: 800;
}

/* Backdrops */
.modal-backdrop {
  z-index: 19990;
}

.modal-backdrop.show {
  opacity: .90;
  background-color: #000;
}

/* Mobile */
@media (max-width: 767.98px) {
  .autuneo-account-menu .autuneo-account-dropdown {
    display: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  body > .autuneo-login-modal .modal-content {
    box-shadow:
      0 0 0 1px rgba(184,26,32,.12),
      0 0 10px rgba(184,26,32,.22),
      0 0 22px rgba(184,26,32,.14),
      0 20px 60px rgba(0,0,0,.45);
  }
}

/* Pantallas bajas */
@media (max-height: 720px) {
  .autuneo-login-modal .modal-body {
    padding: 1.1rem 2rem;
  }

  .autuneo-login-modal__logo {
    max-width: 200px;
  }

  .autuneo-login-modal__title {
    font-size: 1.25rem;
    margin-bottom: .5rem;
  }

  .autuneo-login-modal__text {
    font-size: .9rem;
    margin-bottom: 1rem;
  }

  .autuneo-login-modal__button {
    margin-top: 1rem;
  }
}

/* AUTUNEO Account/Login - fix visibilidad modal sobre backdrop */
.modal-backdrop {
  z-index: 19990 !important;
}

.modal-backdrop.show {
  opacity: .90 !important;
  background-color: #000 !important;
}

body > .autuneo-login-modal,
.autuneo-login-modal.modal {
  z-index: 20000 !important;
}

body > .autuneo-login-modal.show {
  display: block !important;
}

body > .autuneo-login-modal .modal-dialog {
  z-index: 20001 !important;
}

body > .autuneo-login-modal .modal-content {
  background: #fff !important;
  opacity: 1 !important;
  filter: none !important;
  color: #1A1A1A !important;
}

body > .autuneo-login-modal .modal-body {
  background: #fff !important;
}

@media (max-width: 767.98px) {
  body > .autuneo-login-modal .modal-dialog {
    margin: .75rem auto !important;
    max-width: calc(100% - 24px) !important;
  }

  body > .autuneo-login-modal .modal-content {
    max-height: calc(100vh - 24px) !important;
  }
}

/* AUTUNEO FIX - no bloquear otros modales con backdrop de login */
.modal-backdrop {
  z-index: 1050 !important;
}

.modal-backdrop.show {
  opacity: .58 !important;
  background-color: #000 !important;
}

#blockcart-modal,
.blockcart-modal.modal {
  z-index: 1065 !important;
}

#blockcart-modal .modal-dialog,
#blockcart-modal .modal-content {
  pointer-events: auto !important;
}

body > .autuneo-login-modal,
.autuneo-login-modal.modal {
  z-index: 20000 !important;
}
