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

.pro-theme-prd-tools-drawer {
  .@{ant-prefix}-drawer-header {
    border-bottom: none;
  }

  .@{ant-prefix}-drawer-title {
    font-size: var(--zaui-font-size-xl, 18px);
  }

  .@{ant-prefix}-drawer-body {
    padding: 0 32px 32px;
  }

  .@{ant-prefix}-space-vertical {
    gap: var(--zaui-space-size-sm, 8px) !important;
  }

  p {
    position: relative;
    margin-bottom: var(--zaui-space-size-md, 16px);
    padding-left: 12px;
    font-size: var(--zaui-font-size, 14px);

    &:before {
      position: absolute;
      top: 4px;
      left: 0;
      width: 4px;
      height: 14px;
      background: var(--zaui-brand, #006aff);
      border-radius: var(zaui-border-radius-card, 4px);
      content: '';
    }
  }

  .pro-theme-color {
    display: flex;

    li {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 38px;
      margin-right: 34px;
      color: #fff;
      background: #fff;
      border: 6px solid #fff;
      border-radius: 50%;

      span {
        font-size: var(--zaui-font-size, 14px);
        vertical-align: -7px;
      }

      &:nth-child(1) {
        background: #006aff;

        &.active,
        &:hover {
          border-color: #d6e7ff;
        }
      }

      &:nth-child(2) {
        background: #00bc70;

        &.active,
        &:hover {
          border-color: #e0f5e8;
        }
      }

      &:nth-child(3) {
        background: #ff8c16;

        &.active,
        &:hover {
          border-color: #ffecdd;
        }
      }

      &:nth-child(4) {
        background: #a00f20;

        &.active,
        &:hover {
          border-color: #f2dbdb;
        }
      }
      &:nth-child(5) {
        margin-right: 0;
        background: #31af96;

        &.active,
        &:hover {
          border-color: #f2dbdb;
        }
      }
    }
  }

  .anticon-question-circle {
    color: var(--zaui-brand, #006aff);
  }

  .copy-btn {
    position: absolute;
    bottom: 20px;
    left: 32px;
    z-index: 10;
    width: calc(100% - 64px);
  }

  .pro-theme-tools-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .pro-theme-tools-space {
    margin-bottom: 24px;

    &.pro-theme-tools-small-space {
      margin-bottom: 8px;
    }
  }

  .@{ant-prefix}-radio-button-wrapper {
    padding: 0 28px;
  }

  .pro-theme-tools-form {
    .@{ant-prefix}-radio-button-wrapper {
      padding: 0 42px;
    }
  }

  .pro-drawer-close {
    position: absolute;
    top: 6px;
    left: -37px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 38px;
    color: #fff;
    cursor: pointer;

    .close-icon {
      position: relative;
      left: 4px;
      z-index: 1;
      color: var(--zaui-text, #343434);
      font-size: var(--zaui-font-size-lg, 16px);
      transform: translateZ(100px);

      &:hover {
        color: var(--zaui-brand, #006aff);
      }
    }
  }

  .pro-drawer-close::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #fff;
    border-radius: 4px 0px 0px 4px;
    transform: perspective(0.15em) rotateY(-2deg);
    content: '';
  }
}
