.side-popup {
  width: 100vw;
  height: 100dvh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999999;
  overflow: clip;
  .side-popup-bg {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16rem);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transition: opacity 1s var(--curve);
  }
  .side-popup-close {
    width: 56rem;
    height: 56rem;
    position: absolute;
    top: var(--margin);
    right: var(--margin);
    z-index: 9;
    use {
      transform-origin: 50% 50%;
    }
    &:hover {
      use:nth-child(1) {
        transform: translateX(-110%) rotate(-90deg);
      }
    }
    &:not(:hover) {
      use:nth-child(2) {
        transform: translateX(110%) rotate(90deg);
      }
    }
  }
  .side-popup-window {
    width: calc(var(--column) * 8 + var(--gap) * 5 + var(--margin));
    max-width: 720px;
    height: 100dvh;
    margin-left: auto;
    margin-right: 0;
    background: var(--black);
    z-index: 1;
    position: relative;
    transition: transform 1s var(--in-out);
  }
  .side-popup-content {
    max-height: 100dvh;
    overflow-y: auto;
    padding: 130rem var(--margin);
    padding: 60px;
    padding-top: 137px;
    box-sizing: border-box;
    &::-webkit-scrollbar {
      display: none;
    }
  }
  &:not(.show) {
    &, * {
      pointer-events: none;
    }
    .side-popup-bg {
      opacity: 0;
    }
    .side-popup-window {
      transform: translateX(100%);
    }
  }
}

.sale-pop-up .sale-title {
  font-family: var(--font-title);
  font-size: 56rem;
  line-height: 1;
  color: white;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.sale-pop-up .sale-dates {
  display: flex;
  gap: 34rem;
}
.sale-pop-up .start-date,
.sale-pop-up .end-date {
  font-family: 'Plexes';
  font-size: 16rem;
  font-weight: 900; /* black */
  color: white;
  text-transform: uppercase;
}
.sale-pop-up .start-date::before {
  content: 'Fecha Inicio:';
  color: var(--orange);
  text-transform: uppercase;
  margin-right: 8rem;
}
.sale-pop-up .end-date::before {
  content: 'Fecha Fin:';
  color: var(--orange);
  text-transform: uppercase;
  margin-right: 8rem;
}
.sale-pop-up .sale-description {
  font-family: var(--font-normal);
  font-size: 18rem;
  line-height: 1.25;
  font-weight: 500; /* medium */
  color: white;
  margin-bottom: 30px;
}

/* Login Form Styles */
.sale-pop-up .sale-form .login-form {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 50px;
  box-sizing: border-box;
  padding-top: 45px;
  padding-bottom: 30px;
}

.sale-pop-up .login-form .login-form-title {
  font-family: var(--font-title);
  font-size: 32px;
  color: white;
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 26px 0;
  font-weight: normal;
}

.sale-pop-up .login-form .login-form-title span {
  color: var(--orange);
}



.sale-pop-up .login-form .form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 23px;
}

.sale-pop-up .login-form .form-field label {
  color: white;
  font-family: 'Plexes';
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 900; /* black */
  margin-bottom: 8px;
}

.sale-pop-up .login-form .form-field label .required-asterisk {
  color: var(--orange);
  font-family: 'Plexes';
}

/* Styles for Checkbox fields */
.sale-pop-up .login-form .form-field-register_check .checkbox-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.sale-pop-up .login-form .form-field-register_check label {
  font-family: var(--font-normal);
  font-size: 14px;
  line-height: 135%;
  font-weight: 400; /* Regular */
  text-transform: none;
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

/* Custom Checkbox Style */
.sale-pop-up .login-form .form-field-register_check input[type="checkbox"] {
  /* Override generic input styles and hide default appearance */
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  margin: 0;
  padding: 0;
  border: 2px solid white;
  border-radius: 2px;
  width: 20px;
  height: 20px;
  flex-shrink: 0; /* Prevent shrinking in flex container */
  cursor: pointer;
}

.sale-pop-up .login-form .form-field-register_check input[type="checkbox"]:checked {
  background-color: white;
  background-image: url('../../img/icons/ico-check-dark.svg');
  background-position: center;
  background-repeat: no-repeat;
}

/* Style for Input Fields */
.sale-pop-up .login-form .form-field input,
.sale-pop-up .login-form .form-field textarea {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background-color: #222222;
  color: white;
  padding: 12px 16px;
  font-size: 16px;
  font-family: 'Plexes';
  font-weight: 900; /* black */
}

/* Placeholder text style */
.sale-pop-up .login-form .form-field input::placeholder,
.sale-pop-up .login-form .form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
  opacity: 1; /* For Firefox */
}

/* Style for Select Fields */
.sale-pop-up .login-form .form-field select {
  appearance: none; /* Remove default arrow */
  background-image: url('../../img/icons/ico-chevron-down.svg'); /* Add custom arrow icon */
  background-repeat: no-repeat;
  background-position: right 12px center; /* Adjust position as needed */
  background-size: 16px; /* Adjust size as needed */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background-color: #222222;
  color: white;
  padding: 12px 40px 12px 16px; /* Add padding for text and icon */
  font-size: 16px;
  font-family: 'Plexes';
  font-weight: 900; /* black */
  cursor: pointer; /* Add a pointer cursor for better UX */
}

/* Style for the options inside the select */
.sale-pop-up .login-form .form-field select option {
  background-color: #090909; /* Match the select background */
}
.sale-pop-up .login-form button[type="submit"] {
  /* White Button Style */
  background-color: white;
  color: black;
  font-family: 'Plexes';
  font-size: 16px;
  font-weight: 900; /* black */
  text-transform: uppercase;
  border-radius: 100px;
  padding: 18px 20px;
  border: none;
  cursor: pointer;
}

/* Error state styles */
.sale-pop-up .login-form .form-field.has-error input,
.sale-pop-up .login-form .form-field.has-error textarea,
.sale-pop-up .login-form .form-field.has-error select {
  border-color: var(--orange);
}

.sale-pop-up .login-form .form-field-register_check.has-error input[type="checkbox"] {
  border-color: var(--orange);
}

.sale-pop-up .login-form .error-message {
  font-family: var(--font-normal);
  font-size: 11px;
  color: var(--orange);
  margin-top: 6px;
  font-weight: 400; /* Regular */
  text-transform: none;
}
/* Style adjustments for logged-in state (if needed, add a .logged-in class to the form) */
.sale-pop-up .logged-in .login-form {
    /* Example: Adjust padding or border */
    padding: 40px;
    border-color: rgba(255, 255, 255, 0.25);
}

/* Success state for sale submission */
.sale-pop-up .sale-form {
  position: relative;
  transition: height 0.3s var(--curve);
}

.sale-submission-success-overlay {
  width: 100%;
  height: 100%;
  background-image: url('../../img/backgrounds/background-sale-registry.svg');
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.sale-submission-success-overlay.show {
  opacity: 1;
}

.sale-submission-success-text {
  font-family: var(--font-title);
  font-size: 56px;
  color: white;
  line-height: 1.1;
  text-transform: uppercase;
  font-weight: normal;
  max-width: 407px;
}

.sale-submission-success-text strong {
  color: var(--orange);
  font-weight: normal; /* The font itself is bold, avoid double-bolding */
}



.sale-pop-up .login-form .login-register-link {
  display: block;
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  color: white;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.16);
  font-family: 'Plexes';
  font-weight: 900; /* black */
  text-transform: uppercase;
}

.sale-pop-up .login-form .login-register-link a {
  color: var(--orange);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .side-popup .side-popup-window {
    width: 100%;
  }
  .side-popup .side-popup-close {
    width: 48px;
    height: 48px;
    svg {
      width: 25%;
    }
  }
  .side-popup .side-popup-content {
    padding: 85px 24px 60px;
  }

  .sale-pop-up .sale-title {
    font-size: 32px;
  }

  .sale-pop-up .start-date,
  .sale-pop-up .end-date {
    font-size: 14px;
  }

  .sale-pop-up .sale-description {
    font-size: 16px;
  }

  .sale-pop-up .sale-form .login-form {
    padding: 30px 24px;
  }

  .sale-pop-up .login-form .login-form-title {
    font-size: 24px;
  }

  .sale-pop-up .login-form .form-field-register_check label {
    font-size: 12px;
  }

  .sale-submission-success-overlay {
    background-image: url('../../img/backgrounds/background-sale-registry-small.svg');
  }

  .sale-submission-success-text {
    font-size: 36px;
  }
}