@import '../../style/global.less';

.@{prefix}-global-notice {
  position: fixed;
  top: 60px;
  width: 100%;
  height: 32px;
  line-height: 32px;
  background-color: rgb(var(--blue-6));
  color: var(--color-white);
  display: flex;
  justify-content: center;
  z-index: 980;

  &-container {
    width: calc(100% - 120px);
    text-align: center;
    color: var(--color-white) !important;
    text-decoration: none;

    > span {
      font-size: 13px;
      margin-left: 36px;
      margin-right: 48px;
    }
  }

  &-close-icon {
    position: absolute;
    right: 20px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    line-height: 20px;
    margin-top: 6px;
    text-align: center;
    border-radius: 4px;
  }

  &-close-icon:hover {
    background-color: rgba(255, 255, 255, 0.3);
  }
}

@media screen and (max-width: 920px) {
  .@{prefix}-global-notice {
    position: relative;
    top: 0;
    height: 28px;
    line-height: 28px;

    a {
      > b {
        display: none;
      }

      > span {
        font-weight: 500;
        margin: 0;
        font-size: 12px;
      }
    }

    &-close-icon {
      margin-top: 4px;
    }
  }
}

:global(html.rtl) {
  .@{prefix}-global-notice {
    svg {
      transform: scaleX(-1);
    }
  }
}
