/* Container: fixed bottom-left  */
#bar-notification {
  position: fixed !important;
  bottom: 20px !important;
  left: 20px !important;
  transform: none !important;
  z-index: 1050 !important;
  width: 100% !important;
  max-width: 420px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/*  Base Card  */
.bar-notification {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  border-radius: 12px !important;
  padding: 14px 50px 14px 54px !important;
  margin: 0 auto 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
  overflow: visible !important;
  min-height: auto !important;
  background-color: #fff !important;
}

/*  Type Colors  */
.bar-notification.success {
  background-color: #BEFEC7 !important;
}

.bar-notification.warning {
  background-color: #FEF9C3 !important;
}

.bar-notification.error {
  background-color: #FED4D4 !important;
}

/*  Content Text  */
.bar-notification .content {
  float: none !important;
  display: block !important;
  max-width: 100% !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1a1a1a !important;
  margin: 0 0 2px !important;
  padding: 0 !important;
  line-height: 1.5 !important;
}

.bar-notification .content:last-of-type {
  margin-bottom: 0 !important;
}

.bar-notification .content a {
  color: #1a1a1a !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

/*  Icon Circle  */
.bar-notification .content:first-child::before {
  content: "" !important;
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background-size: 16px 16px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  display: block !important;
}

/* Success: green circle + white checkmark */
.bar-notification.success .content:first-child::before {
  background-color: #22c55e !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 4.5L6.5 11.5L3 8'/%3E%3C/svg%3E") !important;
}

/* Warning: orange circle + white info "i" */
.bar-notification.warning .content:first-child::before {
  background-color: #f59e0b !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Ccircle cx='8' cy='4.5' r='1.3'/%3E%3Crect x='6.8' y='7' width='2.4' height='5.5' rx='1.2'/%3E%3C/svg%3E") !important;
}

/* Error: red circle + white exclamation */
.bar-notification.error .content:first-child::before {
  background-color: #ef4444 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Crect x='6.8' y='3' width='2.4' height='5.5' rx='1.2'/%3E%3Ccircle cx='8' cy='11.5' r='1.3'/%3E%3C/svg%3E") !important;
}

/* Hide icon on subsequent .content elements */
.bar-notification .content:not(:first-child)::before {
  display: none !important;
  content: none !important;
}

/*  Close Button  */
.bar-notification .close {
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  float: none !important;
  width: 24px !important;
  height: 24px !important;
  cursor: pointer !important;
  opacity: 0.45 !important;
  transition: opacity 0.2s ease !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: none !important;
}

.bar-notification .close::before {
  content: "" !important;
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  margin: 4px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 4l8 8M12 4l-8 8'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  font-size: 0 !important;
  font-family: inherit !important;
  color: transparent !important;
  line-height: 0 !important;
}

.bar-notification .close:hover {
  opacity: 1 !important;
}

/*  Responsive  */
@media (max-width: 768px) {
  #bar-notification {
    left: 8px !important;
    right: 8px !important;
    max-width: calc(100% - 16px) !important;
    bottom: 12px !important;
  }

  .bar-notification {
    padding: 12px 44px 12px 48px !important;
  }

  .bar-notification .content {
    font-size: 13px !important;
  }

  .bar-notification .content:first-child::before {
    width: 24px !important;
    height: 24px !important;
    left: 12px !important;
    background-size: 14px 14px !important;
  }

  .bar-notification .close {
    right: 12px !important;
    width: 20px !important;
    height: 20px !important;
  }

  .bar-notification .close::before {
    width: 14px !important;
    height: 14px !important;
    margin: 3px !important;
  }
}