/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.mfr-alert-popup {
  position: fixed;
  bottom: 15px ;
  left: 15px;
  width: calc( 100% - 30px );
  max-width: 450px;
  border-radius: 10px;
  background-color: #d32f2f;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 10px;
  z-index: 999999;
}

.mfr-alert-popup__header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1em;
  text-transform: uppercase;
  width: 100%;
}

.mfr-alert-popup__header .dashicons {
  margin-right: .25rem;
}

.mfr-alert-popup__close {
  margin-left: auto;
  appearance: none;
  border: none;
  background-color: transparent;
  color: white;
  cursor: pointer;
}

.mfr-alert-popup__body {
  font-size: 14px;
  line-height: 1em;
  color: inherit;

  a {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
  }
}

/* Alert Banner */
.mfr-banner:not(.mfr-banner__section) {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999999;
  background-color: #d32f2f;
  color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 0;
  font-size: 14px;
  line-height: 1em;
}

header .mfr-announcement-bar.mfr-banner {
  position: relative;
  top: unset;
  left: unset;
  z-index: unset;
  transition: all .4s ease;
  overflow: hidden;
}

header .mfr-announcement-bar.mfr-banner.mfr-is-hidden {
  padding: 0;
  height: 0;
}

.mfr-banner__body {
  display: flex;
  justify-content: center;
  align-items: center;
  color: inherit;

  a {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
  }
}

.mfr-banner__body .dashicons {
  margin-right: .25rem;
}

.mfr-banner__close {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY( -50% );
  appearance: none;
  border: none;
  background-color: transparent;
  color: white;
  cursor: pointer;
}

.mfr-banner.mfr-banner__section {
  position: relative;
  padding: 15px;
  border: solid 2px #d32f2f;
  border-radius: 30px;
  display: flex;
  max-width: 750px;
  margin: 0 auto;
  width: calc(100% - 30px);
}

@media screen and (min-width: 1024) {
  .mfr-banner.mfr-banner__section {
    position: relative;
    padding: 30px;
  }
}

.mfr-banner.mfr-banner__section .mfr-banner__close {
  top: 15px;
  right: 15px;
  color: #d32f2f;
}

.mfr-banner.mfr-banner__section .mfr-banner__body {
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

a.mfr-banner__button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #d32f2f; /* WP Blue */
  color: #ffffff;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mfr-banner__button:hover,
.mfr-banner__button:focus {
  background-color: #b71c1c;
  outline: none;
  transform: translateY(-1px);
}

.mfr-banner__button:active {
  background-color: #b71c1c;
  transform: translateY(0);
}
