@import '../../style/themes/index.less';

@qrcode-prefix-cls: ~'@{ant-prefix}-qrcode';

.@{qrcode-prefix-cls} {
  box-sizing: border-box;
  margin: 0;
  padding: 12px;
  color: rgba(0, 0, 0, .88);
  font-size: 14px;
  line-height: 1.5714285714285714;
  list-style: none;
  font-family: -apple-system, BlinkMacSystemFont, segoe ui, Roboto, helvetica neue, Arial, noto sans, sans-serif, apple color emoji, segoe ui emoji, segoe ui symbol, noto color emoji;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid rgba(5, 5, 5, .06);
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  &::after, &::before {
    box-sizing: border-box;
  }
  >.@{qrcode-prefix-cls}-mask {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: rgba(0, 0, 0, .88);
    line-height: 1.5714285714285714;
    background: rgba(255, 255, 255, .96);
    text-align: center;
    .@{qrcode-prefix-cls}-expired {
      color: rgba(0, 0, 0, .88)
    }
  }
}

.@{qrcode-prefix-cls}-icon {
  margin-block-end: 8px;
  font-size: 32px;
}

.@{qrcode-prefix-cls}-borderless {
  border-color: transparent;
}