@font-face {
  font-family: 'rhicons';
  src:
    url('font/rhicons.woff2?3oibrj') format('woff2'),
    url('font/rhicons.ttf?3oibrj') format('truetype'),
    url('font/rhicons.woff?3oibrj') format('woff'),
    url('font/rhicons.svg?3oibrj#rhicons') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

.spa_button {
  background-color: #3b9fd8;
  color: #ffffff;
  padding: 10px 20px;
  display: flex;
  line-height: 18px;
  border-radius: 5px;
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
  transition: box-shadow 0.3s;
  text-decoration: none;
}

.spa_button:hover {
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.spa_button .spa_button_label {
  flex: 1;
  font-weight: 600;
  margin-left: 8px;
}

.spa_alertBadge {
  background-color: #3F3F3F;
  color: #FFFFFF;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  margin-right: 12px;
  margin-bottom: 8px;
  transition: background-color 0.3s, color 0.3s, opacity 0.3s;
  text-decoration: none;

}

.spa_alertBadge:hover {
  background-color: #E8E8E8;
  color: #4E4A59;
}

#spa_alertCreationPanel h2,
#spa_alertCreationPanel h3 {
  margin-top: 28px;
}

#spa_suggestionsAlerts>.spa_alertBadge {
  background-color: #E8E8E8;
  color: #4E4A59;
}

#spa_suggestionsAlerts>.spa_alertBadge:hover {
  background-color: #3F3F3F;
  color: #FFFFFF;
}

.spa_alertBadge>.rhicon {
  margin-right: 5px;
}

.spa_modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);

}

.spa_modal.spa_modal_show {
  display: block;
}

.spa_modal-content {
  background-color: #FFFFFF;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #888;
  width: 542px;
  margin-top: 80px;
  text-align: center;
  max-width: 100%;
  border-radius: 12px;
}

.spa_close {
  float: right;
  font-size: 28px;
  font-weight: 600;
  cursor: pointer;
  color: #3F3F3F;
  margin-top: -10px;
  margin-right: -10px;
}

.spa_close:hover {
  color: #000;
}

.spa_modal-header {
  padding: 2px 16px;
  background-color: #FFFFFF;
  color: #3F3F3F;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  font-size: 28px;
  margin-bottom: 28px;
  font-weight: 600;
}

.spa_modal-question {
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 24px;
}

.spa_modal-footer {
  padding-top: 28px;
  text-align: end;
}

input[type="text"].spa_form-control,
input[type="email"].spa_form-control,
input[type="password"].spa_form-control,
input[type="number"].spa_form-control {
  background-color: #E8E8E8;
  border: 0px;
  border-radius: 5px;
  padding: 10px 20px;
  color: #3F3F3F;
  border-bottom: 1px solid #000;
  width: 100%;
  min-width: none;
}

input[type="text"].spa_form-control.spa_error,
input[type="email"].spa_form-control.spa_error,
input[type="password"].spa_form-control.spa_error,
input[type="number"].spa_form-control.spa_error {
  border-bottom: 1px solid #FF0000;
  color: #FF0000;
}
#spa_activeAlerts {
  margin-bottom: 18px;
}
.spa_modal-content input[type="text"].spa_form-control {
width: 80%;
max-width: 100%;
}

.spa_modal_button {
  background-color: #3b9fd8;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 28px;
  font-size: 14px;
  text-decoration: none;
}

.spa_modal_button:hover {
  background-color: #2980b9;
  color: #FFFFFF;
  text-decoration: none;
}

.spa_modal_button>.rhicon {
  margin-right: 8px;
}

.spa_alertMsg {
  display: none;
}

.spa_alertMsg.spa_show {
  display: block;
}

#spa_confirmationMsgContainer {
  text-align: center;
  margin-top: 28px;
  margin-bottom: 28px;
}

#spa_confirmationMsg {
  background-color: #3F3F3F;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 15px;
  font-size: 18px;
  width: fit-content;
  margin: 0 auto;
}

#spa_confirmationMsg>.rhicon {
  margin-right: 8px;
}

.spa_remove {
  opacity: 0;
  pointer-events: none;
}


#spa_alertsDropdown {
  position: absolute;
  width: 380px;
  right: -20px;
  left: auto;
  top: 100%;
  margin-top: 12px;
  z-index: 99999;
  background-color: #fff !important;
  background-clip: padding-box;
  border: 1px solid #ddd;
  border-top: none;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .175) !important;
  transition: visibility 0.3s ease, opacity 0.3s ease;
  visibility: hidden;
  opacity: 0;
}

#spa_alertsDropdown.spa_show {
  visibility: visible;
  opacity: 1;
}

#spa_alertsDropdown>.spa_alertsDropdown_header {
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  font-size: 16px;
  padding: 12px;
  background-color: #3B9DDD;
  font-weight: 600;
}

#spa_alertsDropdown>.spa_alertsDropdown_header>svg {
  flex-shrink: 0;
}

#spa_alertsDropdown>.spa_alertsDropdown_footer {
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 14px;
  padding: 12px;
  background-color: #f5f5f5;
}

#spa_alertsDropdown>.spa_alertsDropdown_footer a {
  font-size: 14px;
  color: #3B9DDD;
  font-weight: 600;
  text-decoration: none;
}

#spa_alertsDropdown>.spa_alertsDropdown_footer a:hover {
  color: #2563EB;
  text-decoration: underline;
}

#spa_alertsDropdown>.spa_alertsDropdown_footer a>.rhicon {
  margin-right: 8px;
}

.spa_noAlerts {
  color: #999;
  font-weight: 400;
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
}
#spa_alertsDropdown_lists {
  max-height: 464px;
  overflow-y: auto;

}
#spa_alertsDropdown_lists>* {
  padding: 10px 16px;
  border-bottom: 1px solid #ddd;
}

#spa_alertsDropdown_lists>*:last-child {
  border-bottom: none;
}

span.sap_alerts_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: inherit;
  position: relative;
  cursor: pointer;
  transition: opacity 0.2s;
}
span.sap_alerts_icon:hover {
  opacity: 0.7;
}
span.sap_alerts_icon svg {
  display: block;
}

.sap_nbAlerts {
  display: none;
 border-radius: 50%;
 width: 16px;
 height: 16px;
 position: absolute;
 top: -8px;
 right: -10px;
 background-color: #FF0000;
 border: 1px solid #FF0000;
 font-size: 10px;
 color: #FFFFFF;
 line-height: 14px;
 text-align: center;
 font-weight: bold;
}
.sap_nbAlerts.sap_show {
  display: block;
}
.spa_alertDropdown_item {
  display: flex;
  gap: 16px;
  background-color: #fff;
  transition: background-color 0.3s;
}
.spa_alertDropdown_item:hover {
  background-color: #E8E8E8;

}
.spa_alertDropdown_item > .sap_alertThumbnail {
  width: 64px;
  height: 64px;
  background-size: contain;
  background-repeat: no-repeat;
}
/* .spa_alertDropdown_item > .sap_alertThumbnail > img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
} */
.spa_alertDropdown_item > .sap_alertThumbnail.spa_noImg{
  background-color:#E8E8E8 ;
}

.spa_alertDropdown_item .sap_alertTitle {
  font-size: 16px;
  line-height: 20px;
  color: #000;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spa_alertDropdown_item .sap_alertPrice {
  color: #22C55E;
  font-size: 14px;
}
.spa_alertDropdown_item .sap_alertSep {
  color: #CBD5E1;
  margin: 0 2px;
}
.spa_alertDropdown_item .sap_alertTime {
  color: #94A3B8;
  font-weight: 400;
}
#spa_alertsDropdown_lists .spa_noLogged {
  text-align: center;
}
#spa_alertsDropdown_lists .spa_noLogged a {
  color: #3b9fd8;
}
#spa_alertsDropdown_lists .spa_noLogged a:hover {
  color: #2980b9;
  text-decoration: underline;
}
.sap_postAlertBtn {

}
.sap_postAlertBtn:hover {
  background-color: #3B9DDD !important;
  color: #fff !important;
}
.sap_postAlertBtn:hover svg {
  stroke: #fff !important;
}
.sap_postAlertBtn.spa_active {
  background-color: #3B9DDD !important;
  color: #fff !important;
}
.sap_postAlertBtn.spa_active svg {
  stroke: #fff !important;
}
.sap_postAlertBtn.spa_active:hover {
  background-color: #2563EB !important;
}
/* Post Alert Modal Improvements */
#spa_alertPostModal.active .csspopupinner {
  animation: spa_modalFadeIn 0.3s ease-out;
}

@keyframes spa_modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.spa_popup_content {
  padding: 30px 20px;
  text-align: center;
}

.spa_modal_icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  animation: spa_iconBounce 0.5s ease-out;
}

@keyframes spa_iconBounce {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.spa_modal_icon.success {
  background-color: #43C801;
  color: #FFFFFF;
}

.spa_modal_icon.error {
  background-color: #FF4444;
  color: #FFFFFF;
}

.spa_modal_icon.info {
  background-color: #3b9fd8;
  color: #FFFFFF;
}

.spa_modal_title {
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 12px;
  color: #2c3e50;
}

.spa_modal_message {
  font-size: 15px;
  line-height: 1.6;
  color: #5a6c7d;
  margin-bottom: 0;
}

.spa_popup_footer {
  padding: 20px;
  background-color: transparent;
  border-top: none;
  text-align: center;
}

.spa_popup_footer .btn-cta {
  width: auto;
  display: inline-flex;
  padding: 0.75rem 2rem;
}
#spa_alertCreationInput_word_error {  
  margin-top: 4px;
  font-size: 13px;
}
.alerts-dropdown-btn {
  cursor: pointer;
  color: var(--color-white, #fff);
  position: relative;
}

@media screen and (max-width: 768px) {
  .spa_close{
    margin-right: -10px;
    margin-top: -10px;
  }
  #spa_alertsDropdown {
    position: fixed !important;
    top: 100px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: calc(100vh - 64px);
    border-radius: 0;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
  }
  #spa_alertsDropdown_lists{
    max-height: calc(100vh - 64px - 88px);
  }
}