/* ---------------- IHEARTRADIO WIDGET ---------------- */

/* Screen reader text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hide widget on mobile */
@media (max-width: 768px) {
  #ihrw-widget, #ihrw-open-widget {
    display: none !important;
  }
}

/* Container */
#ihrw-widget {
  display: none;
  position: fixed;
  bottom: 0px;
  right: 0px;
  z-index: 9999;
}

#ihrw-widget.show {
  display: block;
}

/* Toggle button (logo circle) */
#ihrw-toggle-widget {
  background-color: white;

  /* This uses a CSS variable so the plugin can set the logo URL */
  background-image: var(--ihrw-logo);

  background-size: 50%;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  padding: 0;
}

#ihrw-toggle-widget:hover {
  box-shadow: 0 0 12px rgba(198, 0, 43, 0.5);
}

#ihrw-label {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #101820;
  background: white;
  padding: 4px 8px;
  border-radius: 6px;
  text-align: right;
  margin-top: 8px;
}

#ihrw-toggle-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px;
}

#ihrw-toggle-row.show {
  display: flex;
}

#ihrw-widget-content {
  display: none;
  margin-top: 10px;
  background: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#ihrw-widget-content.show {
  display: block;
}

/* close and open buttons */
#ihrw-close-widget::before { content: ">"; }
#ihrw-open-widget::before { content: "<"; }

#ihrw-close-widget:hover,
#ihrw-open-widget:hover {
  color: white;
  background: #C6002B;
}

#ihrw-open-widget,
#ihrw-close-widget {
  background: white;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #C6002B;
  margin-right: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#ihrw-close-widget {
  display: flex;
}

#ihrw-open-widget {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 0;
  z-index: 10000;
  background: white;
  color: #C6002B;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#ihrw-open-widget.show {
  display: flex;
}