$white: var(--wds-color-white, var(--wsr-color-D80, #ffffff));
$text: var(--wds-color-black-100, var(--wsr-color-D10, #000624));

.message-box-marketerial-layout {
  box-shadow: var(
    --wsr-shadow40,
    0 8px 8px 0 rgba(22, 45, 61, 0.12),
    0 3px 24px 0 rgba(22, 45, 61, 0.18)
  );
  background-color: $white;
  border-radius: 8px;

  & &__header {
    border-radius: 8px 8px 0 0;
    height: auto;
    background-color: transparent;
    margin-bottom: 0;
    min-height: 48px;
    position: relative;

    &--theme-purple {
      background-color: var(
        --wds-color-purple-100,
        var(--wsr-color-P10, #9a27d5)
      );
    }

    &--theme-white {
      background-color: $white;
    }

    &--theme-blue {
      background-color: var(--wds-color-blue-100, var(--wsr-color-B10, #116dff));
    }
  }

  & &__header-image {
    position: relative;
    padding-top: 48px;
    margin-bottom: 30px;
    max-height: 200px;
    min-height: 120px;
    max-width: 444px;
    overflow: hidden;
    height: auto;
    width: auto;
    z-index: 10;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;

    img {
      max-width: none;
      max-height: none;
    }
  }

  & &__header-image-component {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 48px;
    margin-bottom: 30px;
  }

  & &__title {
    padding: 0 78px;
    margin-bottom: 12px;
    text-align: center;
    color: $text;

    &--should-display-body-padding {
      padding: 0 108px;
    }
  }

  & &__content {
    text-align: center;
    color: $text;
    padding: 0 78px;
    margin-bottom: 42px;

    &--should-display-body-padding {
      padding: 0 108px;
    }
  }

  & &__empty-buttons-container {
    padding-bottom: 0.1px;
  }

  & &__buttons-container {
    text-align: center;
    padding-bottom: 48px;

    &--no-padding {
      padding-bottom: 0;
    }
  }

  & &__secondary-button-container {
    margin-top: 18px;
  }

  & &__bottom-children {
    margin-top: 0;
    min-height: 42px;
    border-radius: 0 0 8px 8px;
    background-color: var(--wds-color-black-700, var(--wsr-color-D70, #eceff3));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    box-sizing: border-box;
  }

  & &__close {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 10;
  }

  :global([dir='rtl']) & &__close {
    right: auto;
    left: 18px;
  }
}
