/*
IBM Confidential
694970X, 69497O0
© Copyright IBM Corp. 2022, 2024
*/


@use '@carbon/themes/scss/tokens' as theme;
@use '../../global/themes/shell-tokens' as shell;
@use "../../global/config" as *;
@use "../../global/utils";

.#{$prefix}--bmrg-privacy-statement-container {
  .#{$prefix}--modal-container {
    height: utils.rem(598px);
    max-width: utils.rem(700px);
  }

  .#{$prefix}--bmrg-privacy-statement-delete {
    .#{$prefix}--modal {
      width: 100%;
      height: 100%;
    }

    .#{$prefix}--modal-container {
      height: 18rem;
      width: 36.5rem;
      padding-left: 0;
      padding-right: 0;
    }

    .#{$prefix}--modal-content {
      overflow-x: hidden;
    }

    .#{$prefix}--modal-footer {
      margin-top: 1.125rem;
    }

    .#{$prefix}--bmrg-privacy-statement-delete__desc {
      font-size: utils.rem(14px);
      line-height: utils.rem(18px);
      margin-top: 1rem;
    }
  }

  .#{$prefix}--modal-content {
    p {
      padding-right: 1rem;
    }
    .#{$prefix}--bmrg-privacy-statement {
      color: shell.$bmrg-theme-primary;
      height: utils.rem(368px);
      margin-top: utils.rem(16px);
      overflow-y: auto;

      .#{$prefix}--accordion {
        overflow-y: hidden;
      }

      &__content {
        h3 {
          color: shell.$bmrg-theme-secondary;
          padding: 1rem 0 0.3125rem;
        }
        a {
          color: shell.$bmrg-theme-link;
          text-decoration: none;
        }
      }

      &__message {
        height: utils.rem(36px);
        font-size: utils.rem(14px);
        line-height: utils.rem(18px);
        margin-top: utils.rem(24px);
        margin-bottom: utils.rem(24px);

        a {
          color: shell.$bmrg-theme-primary;
        }
      }
      &__error {
        color: #fb4b53;
        font-size: 0.875rem;
        font-weight: 400;
        line-height: 1.125rem;
        margin-top: utils.rem(4px);
        position: absolute;
      }
    }

    .#{$prefix}--accordion__arrow {
      transform: rotate(90deg);
      path {
        fill: shell.$bmrg-theme-primary;
      }
    }

    .#{$prefix}--accordion__item {
      border-top-color: shell.$bmrg-theme-accordion-hover;
      // border-block-start-color: shell.$bmrg-theme-accordion-hover;
      .#{$prefix}--accordion__heading:hover{
        background-color: shell.$bmrg-theme-accordion-hover;
      }
      &:last-child {
        border-bottom-color: shell.$bmrg-theme-accordion-top-border;
      }
      &--active {
        .#{$prefix}--accordion__heading > .#{$prefix}--accordion__arrow {
          transform: rotate(-90deg);
        }
      }
    }

    .#{$prefix}--accordion__heading:focus {
      .#{$prefix}--accordion__arrow {
        outline: utils.rem(1px) solid shell.$bmrg-theme-secondary;
      }
    }

    .#{$prefix}--accordion__title {
      height: utils.rem(18px);
      color: shell.$bmrg-theme-primary;
      font-size: utils.rem(14px);
      font-weight: 600;
      line-height: utils.rem(18px);
    }

    .#{$prefix}--accordion__content {
      color: shell.$bmrg-theme-primary;
      font-family: "IBM Plex Sans", "Helvetica Neue", Arial, Helvetica, sans-serif;
      font-size: utils.rem(14px);
      line-height: utils.rem(18px);
    }
  }
}
