/*
app/plugins/fw-newsalert-toggle/css/newsalert-toggle.css 
*/

.newsalert-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.newsalert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  margin: 8px 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.newsalert-label {
  font-size: 16px;
  color: #111827;
}

.newsalert-toggle-ui {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  margin-left: 10px;
}

.newsalert-toggle-ui input {
  opacity: 0;
  width: 0;
  height: 0;
}

.newsalert-toggle-ui .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: transparent;
  transition: .2s;
  border-radius: 999px;
}

.newsalert-toggle-ui .slider:before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 3px; top: 3px;
  background-color: #fff;
  transition: .2s;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.newsalert-toggle-ui input:checked + .slider {
  background-color: #22c55e;
}

.newsalert-toggle-ui input:checked + .slider:before {
  transform: translateX(20px);
}
#newsalert-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  max-width: 320px;
  width: 100%;
  text-align: center;
}
[id^="newsalert-popup-"] input,
#newsalert-popup input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
}
[id^="newsalert-popup-"] button,
#newsalert-popup button {
  padding: 8px 14px;
  margin: 5px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#newsalert-submit {
  background-color: #22c55e;
  color: white;
}

#newsalert-cancel {
  background-color: #ef4444;
  color: white;
}

[id^="newsalert-popup-"],
#newsalert-popup {
  display: none;
  position: absolute;
  background: white;
  padding: 16px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

[id^="newsalert-popup-"] .popup-close,
#newsalert-popup .popup-close {
  position: absolute;
  top: 0px;
  right: 10px;
  font-size: 30px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
}

[id^="newsalert-popup-"] input #newsalert-email,
#newsalert-popup input#newsalert-email {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px; height: 30px;
  box-sizing: border-box;
}
[id^="newsalert-popup-"] button,
#newsalert-popup button {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: #018A00;
  color: white;margin: 7px 5px;
}


[id^="newsalert-popup-"] {
  display: none;

  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  max-width: 320px;
  width: 100%;
  text-align: center;
}

.newsalert-toggle-ui .slider.active {
    background-color: #4CAF50; /* green slider */
}

.toggle-success {
    font-weight: bold;
    transition: opacity 0.5s;
}

.taxonomies-list__wrap {
    display: inline-flex;
    float:none;
    margin-right: 10px;
}


/* Bell wrapper */
.newsalert-bell-ui {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* Hide checkbox */
.newsalert-bell-ui input.newsalert-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Bell icon container */
.bell-icon {
    font-size: 22px;
      border: 2px solid transparent;
    border-radius: 50%;
    transition: 0.2s;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Active (subscribed) */
.bell-icon.active {
    border-color: transparent;
    color: #18608B;
}

/* Red dot indicator */
.bell-dot {
       position: absolute;
    top: 0px;
    right: 0px;
    width: 6px;
    height: 6px;
    background: #ff2d2d;
    border-radius: 50%;
    border: 2px solid transparent;
    box-sizing: content-box;
}
