@import '../../styles/abstracts/variables';

.podcast-modal {
  top: 15px !important;
  .selected {
    border-color: $primary;
  }
  .product-type-card {
    height: 100%;
  }
  .ant-modal-content {
    .ant-modal-close {
      top: 18px;
      right: 20px;
    }
  }
  .ant-modal-header {
    padding: 16px 24px;
    .ant-modal-title {
      font-size: $normal;
    }
  }
  .ant-modal-body {
    padding: 0;
    max-height: calc(100vh - 230px);
    overflow-y: auto;
  }
  .ant-modal-body::-webkit-scrollbar-track {
    border-radius: 10px;
    margin-bottom: 10px;
  }
  .ant-modal-footer {
    padding: 24px;
    border-top: none;
    .ant-btn {
      transition: none;
    }
  }
  &::-webkit-scrollbar-track {
    background: $white !important;
  }
  &::-webkit-scrollbar-thumb {
    background: $grey4 !important;
  }
  .wrapper-loading {
    height: 350px;
  }
  .select-youtube-type {
    .ant-card {
      border: 2px solid $border2;
      &.selected {
        background:
          linear-gradient(#ffffff, #ffffff) padding-box,
          linear-gradient(to left, #17e391, #58e5df, #60e5e8) border-box;
        border: 2px solid transparent;
      }

      border-radius: 16px;
      .ant-card-body {
        padding: 24px;
      }
    }
  }
  .ant-alert-content {
    .ant-alert-description {
      opacity: 0.8;
      font-size: 16px;
      font-weight: 400;
      line-height: 22px;
    }
  }
  .ant-form-item-control-input input,
  .ant-form-item-control-input textarea {
    height: 48px;
  }
  .number-input {
    .ant-input-number-group-wrapper {
      border: 1px solid $grey3;
      border-radius: 8px;
      &:hover,
      &:focus-within {
        background:
          linear-gradient(#ffffff, #ffffff) padding-box,
          linear-gradient(to left, #17e391, #58e5df, #60e5e8) border-box;
        border: 1px solid transparent;
      }

      .ant-input-number-wrapper {
        .ant-input-number {
          border: none;
          &:hover,
          &.ant-input-number-focused {
            border: none;
            box-shadow: none;
          }
          input {
            width: 48px;
            height: 46px;
            padding: 0 8px;
            text-align: center;
            font-size: $medium1;
            font-weight: $semi-bold;
            line-height: 24px;
          }
        }
        .ant-input-number-group-addon {
          background: $white;
          line-height: normal;
          border: none;
          &:first-child {
            padding-left: 12px;
            padding-right: 0;
          }
          &:last-child {
            padding-left: 0;
            padding-right: 12px;
          }
        }
      }
    }
  }
  .number-of-video {
    .ant-form-item {
      margin-bottom: 0;
    }
  }
  .ant-radio-wrapper {
    margin-right: 40px;
  }
  .loading-content {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: $white;
    opacity: 0.9;
    border-radius: 16px;
    z-index: 10;
  }
  .ant-checkbox-wrapper-disabled {
    .ant-checkbox-disabled {
      &.ant-checkbox-checked {
        .ant-checkbox-inner {
          &::after {
            border-color: $gray12 !important;
          }

          border-color: $secondaryGrey !important;
          background: linear-gradient(
            360deg,
            $secondaryGrey 2.22%,
            $secondaryGrey 100%
          );
        }
      }
    }
  }
  .link-field {
    .ant-input-group {
      border: 1px solid $border2;
      border-radius: 8px;
      &-addon {
        background-color: $gray12;
        line-height: 24px;
        border: none;
        border-right: 1px solid $border2;
        font-size: 16px;
        padding: 0 12px;
      }
      input {
        border: none;
        background: transparent !important;
        padding: 4px 12px !important;
      }
    }
    &.ant-form-item-has-error {
      .ant-input-group {
        border-color: $red;
        &-addon {
          color: $default;
        }
      }
    }
  }
  .product-editor__cover {
    margin-bottom: 0 !important;
    &.error {
      .ant-upload.ant-upload-select-picture-card {
        border: 1px dashed $red;
      }
    }
  }
}
.info-tooltip {
  // margin-top: -50px;
  margin-bottom: 20px;
  .ant-tooltip {
    &-inner {
      background: $default;
      padding: 8px;
      text-align: center;
      font-weight: $semi-bold;
      font-size: 11px;
      max-width: 127px;
      line-height: 14px;
      box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
      border-radius: 4px;
    }
    &-arrow-content {
      background: $default;
    }
  }
}
.podcast-dropdown-service-tooltip {
  // margin-top: -50px;
  margin-bottom: 20px;
  .ant-tooltip {
    &-inner {
      background: $default;
      padding: 8px;
      text-align: center;
      font-weight: $semi-bold;
      font-size: 11px;
      max-width: 168px;
      line-height: 14px;
      box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
      border-radius: 4px;
    }
    &-arrow-content {
      background: $default;
    }
  }
}
