/**
 * ==========================================
 * Marquee
 * ==========================================
 */

.popup-marquee {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: #710206;
  color: #ffffff;
  z-index: 1001;
}

.popup-marquee button {
  padding: 0 0.25rem !important;
  line-height: 22px !important;
  font-size: 13px !important;
  width: 80px;
  margin-left: 1rem;
  margin-bottom: 0 !important;
}

.popup-marquee .container {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
}

.popup-marquee .marquee {
  flex-grow: 1;
  width: 100%;
  line-height: 40px;
  padding: 0;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
}

.popup-marquee .marquee a {
  color: #ffffff;
}

.popup-marquee .marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 20s linear infinite;
}

/**
 * ==========================================
 * Marquee Active
 * ==========================================
 */

body.marquee-on {
  margin-top: 40px;
}

body.marquee-on .popup-marquee {
  display: block;
}

body.marquee-on .site-header {
  top: 40px;
}

body.marquee-on .main-menu {
  top: 120px;
}

body.marquee-on .search-header {
  top: 120px;
}

body.marquee-on.menu-open.search-open .main-menu {
  top: 193px;
  height: calc(100% - 193px);
}

/**
 * Tablet / Mobile
 */

@media (max-width: 991.98px) {
  body.marquee-on .search-header {
    top: 100px;
  }

  body.marquee-on .main-menu {
    top: auto;
  }

  body.marquee-on.menu-open.search-open .main-menu {
    margin-top: 132px;
    top: auto;
  }
}

/**
 * ==========================================
 * Marquee Animation
 * ==========================================
 */

@keyframes marquee {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-100%, 0);
  }
}


/* ==========================================
   Custom Popup
   ========================================== */

.ws-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.ws-popup-overlay.is-open {
    display: flex;
}

.ws-popup-dialog {
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.ws-popup-content {
    position: relative;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
}

.ws-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #ddd;
}

.ws-popup-title {
    margin: 0;
}

.ws-popup-close {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    padding: 5px 10px;
}

.ws-popup-body {
    padding: 25px;
}

.ws-popup-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px 25px;
    border-top: 1px solid #ddd;
}

body.ws-popup-open {
    overflow: hidden;
}
