.cmp-heading--m .cmp-heading__cursor {
  width: 24px;
  height: 3px;
  margin-bottom: 8px;
}

.cmp-heading .cmp-heading__cursor {
  background-color: #ff000f;
  margin: 0.625rem 0;
}

.cassie-cookie-modal--group-head-container .cmp-cookie__checkbox {
  cursor: pointer;
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 30px;
  margin-left: 0;
  pointer-events: all;
}

.cassie-cookie-modal--group-head-container .cmp-cookie__checkboxlabel {
  display: flex;
  align-items: center;
  font-family: ABBvoice-Medium;
  font-size: 16px;
  line-height: 24px;
  color: var(--aot-sys-color-shades-grey100);
  font-weight: 400;
  position: relative;
  cursor: pointer;
  letter-spacing: 0.14px;
}

.cassie-cookie-modal--group-head-container .cmp-cookie__checkboxlabel::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid var(--aot-sys-color-primary-black);
  background-color: var(--aot-sys-color-primary-white);
  box-sizing: border-box;
  border-radius: 0px;
}

.cassie-cookie-modal--group-head-container .cmp-cookie__checkbox:checked + .cmp-cookie__checkboxlabel::before {
  background-color: var(--aot-sys-color-primary-white);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ff000f;
  background: url('./ABBGroup_files/Vector.svg') no-repeat top left;
  background-size: 80%;
  background-position: center;
}

.cassie-cookie-modal--group-head-container .cmp-cookie__checkbox:disabled,
.cassie-cookie-modal--group-head-container .cmp-cookie__checkbox:disabled + .cmp-cookie__checkboxlabel {
  color: #ff000f;
  cursor: default;
}

.cassie-cookie-modal--group-head-container .cmp-cookie__checkbox:disabled + .cmp-cookie__checkboxlabel::before {
  background-color: #ccc;
  border-color: #bababa;
}

.cassie-cookie-modal--group-head-container .cmp-cookie__checkboxitem p {
  margin-left: 36px;
  font-size: 14px;
  color: #464646;
  line-height: 1.5rem;
  font-family: ABBvoice, sans-serif;
}

/* Don't allow drilldown into cookie script descriptions or show them */
[id^='cassie_children_cookies_container'] {
  visibility: none;
}

[id^='cassie_children_cookies_container'] {
  visibility: none;
}

[id^='cassie_cookie_child'] {
  display: none;
}

[id^='cassie_expand_cookies_icon'] {
  opacity: 0;
  pointer-events: none;
}

[id^='cassie_expand_cookies_container'] {
  pointer-events: none;
}

[id^='cassie_expand_strictly_necessary'] {
  pointer-events: none;
}

.cassie-expand-cookies--icon {
  fill: var(--expand-cookies-icon-color);
  fill: var(--banner-submit-preferences-button-color);
  opacity: 0;
}

/* Change borders and spacing above buttons */
.cassie-cookie-modal .cassie-cookie-modal--main {
  border: 0px solid var(--banner-secondary-color);
}

.cassie-cookie-module > .cassie-cookie-modal {
  border-right: unset;
}

.cassie-cookie-modal--top-header .cassie-close-modal-button {
  display: none;
}

.cassie-cookie-modal--tab-group .cassie-cookie-modal--group {
  border-bottom: unset;
}

.cassie-cookie-modal--footer-extra .cassie-cookie-modal--save-preferences--container {
  width: 100%;
  display: flex;
  flex-direction: row-reverse;
}

.cassie-cookie-modal--header .cassie-cookie-modal--header--content {
  border: 0px;
  font-family: ABBvoice, sans-serif;
  color: #0f0f0f;
  word-spacing: normal;
  word-break: break-word;
  font-size: 24px;
}

.cassie-expand-cookies--container .cassie-cookie-group--heading {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0px;
  display: flex;
  line-height: 20px;
  color: var(--aot-ref-dark-grey-5);
  font-weight: 500;
}

.cassie-cookie-module > .cassie-cookie-modal--center {
  height: 70%;
  width: 50%;
  margin: 0 25%;
}

.cassie-cookie-modal--group-head-container .cassie-expand-cookies--container {
  width: 93%;
}

.cassie-cookie-modal--group-head-container .cassie-cookie-group--description {
  width: 90%;
  font-family: ABBvoice, sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #0f0f0f;
}

.cassie-cookie-modal--header .cassie-cookie-modal--accept-all {
  display: none;
}

.cassie-cookie-module {
  div,
  dl,
  dt,
  dd,
  ul,
  ol,
  li,
  h1,
  h2,
  h3,
  .header3,
  h4,
  h5,
  h6,
  pre,
  form,
  fieldset,
  input,
  textarea,
  p,
  blockquote,
  th,
  td {
    margin: 0;
    padding: 0;
  }
}
.cassie-cookie-modal--cancel-preferences {
  height: 50px !important;
  font-size: 12px;
  font-weight: 600 !important;
  border-radius: 6px;
  line-height: 24px;
  position: absolute;
  left: 40%;
  transform: translateX(30%);
  width: 210px;
  background-color: var(--banner-submit-preferences-button-color);
  border-color: var(--save-preferences-button-border-color);
  color: var(--aot-sys-color-primary-white);
  color: var(--banner-submit-preferences-button-text-color);
  cursor: pointer;
  min-height: 50px;
  padding: 0 10px;
}

.cassie-cookie-modal--save-preferences--container .cassie-cookie-modal--save-preferences {
  width: unset;
  margin: 0px 15px 0px 15px;
}

.cassie-cookie-modal--top-header .cassie-close-modal-button {
  display: none;
}

.cmp-heading__cursor.style {
  background-color: #ff000f;
  margin: 0.625rem 0;
  width: 24px;
  height: 3px;
  margin-bottom: 8px;
}

.cassie-cookie-modal--footer-extra .cassie-cookie-modal--footer-image--container {
  display: none;
}

.cassie-cookie-modal .cassie-cookie-modal--footer {
  margin-top: unset;
}

@media only screen and (min-width: 375px) {
  .cassie-cookie-modal--group-head-container .cassie-expand-cookies--container {
    width: 77%;
  }

  .cassie-cookie-module > .cassie-cookie-modal--center {
    height: auto;
    margin: 5% 5% 5% 5%;
    width: unset;
  }
}

@media only screen and (min-width: 768px) {
  .cassie-cookie-modal--group-head-container .cassie-expand-cookies--container {
    width: 83%;
  }
  .cassie-cookie-module > .cassie-cookie-modal--center {
    width: 50%;
    margin: auto;
    height: 85%;
  }
}

@media only screen and (min-width: 820px) {
  .cassie-cookie-module > .cassie-cookie-modal--center {
    height: fit-content;
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1024px) {
  .cassie-cookie-module > .cassie-cookie-modal--center {
    height: 85%;
    width: 70%;
  }
}

@media only screen and (min-width: 1200px) {
  .cassie-cookie-modal--group-head-container .cassie-expand-cookies--container {
    width: 93%;
  }
}
.cassie-cookie-modal--group .cassie-cookie-modal--group-head-container {
  flex-direction: row-reverse;
  border-bottom: inset;
  border-width: medium;
}

#cassie_strictly_necessary {
  display: none;
}

.cassie-cookie-modal--main::-webkit-scrollbar-track {
  box-shadow: 0;
  border-radius: 0;
}

.cassie-cookie-modal--main::-webkit-scrollbar-thumb {
  background: #d2d2d2;
  border-radius: 15px;
}

/* AOT styles */
#cassie-widget .cassie-cookie-module {
  @media only screen and (max-width: 767px) {
    inset: 0;
  }

  @media only screen and (min-width: 768px) {
    overflow-y: auto;
  }

  @media screen and (min-width: 768px) and (max-width: 1439px) {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-column-gap: 24px;
    width: auto;
    inset: 0;
    margin: 0;
  }
}

#cassie-widget .cassie-cookie-module > .cassie-cookie-modal--center {
  border-radius: 8px;

  @media screen and (min-width: 768px) and (max-width: 1439px) {
    display: grid;
    grid-column: 1 / span 12;
    width: auto;
  }

  @media screen and (min-width: 768px) and (max-width: 1023px) {
    border-radius: 0;
    height: auto;
  }

  &::-webkit-scrollbar-track {
    background: transparent;
  }

  &::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
  }

  @media only screen and (min-width: 768px) {
    padding: var(--aot-sys-spacing-component-large) 32px;
    row-gap: var(--aot-sys-spacing-component-x-large);
    background: var(--aot-sys-color-primary-white);
    box-shadow:
      0px 4px 8px 0px rgba(0, 0, 0, 0.08),
      0px 0.5px 2px 0px rgba(0, 0, 0, 0.08),
      0px 0px 1px 0px rgba(0, 0, 0, 0.08);
  }

  @media only screen and (max-width: 767px) {
    width: auto;
    height: 100%;
    padding: var(--aot-sys-spacing-component-large) 16px;
    row-gap: var(--aot-sys-spacing-component-large);
    margin: 0;
    box-sizing: border-box;
    overflow-y: hidden;
    background: var(--aot-sys-color-primary-white);
  }

  @media only screen and (min-width: 1024px) {
    width: 783px;
    padding: var(--aot-sys-spacing-component-large) 40px;
    row-gap: var(--aot-sys-spacing-component-medium);
  }

  @media only screen and (min-width: 1440px) {
    box-sizing: border-box;
    width: 889px;
    padding: var(--aot-sys-spacing-component-large) 48px;
  }

  @media only screen and (min-width: 1600px) {
    width: 996px;
  }

  @media only screen and (min-width: 1920px) {
    width: 1201px;
  }

  .cassie-cookie-modal--main {
    @media only screen and (max-width: 767px) {
      flex: 1 1 auto;
      overflow-y: auto;
      margin: 0;
    }
  }

  .cassie-cookie-modal--top-header {
    display: none;
  }

  .cassie-cookie-modal--header {
    @media only screen and (max-width: 767px) {
      overflow-y: auto;
      flex: 0 1 auto;
      max-height: 50%;
    }
  }

  .cassie-cookie-modal--header--content {
    padding: 0;
    margin: 0;

    p {
      &:first-of-type {
        color: var(--aot-sys-color-shades-grey90);
        font-feature-settings: var(--aot-sys-typography-font-feature-settings);
        font-style: var(--aot-sys-typography-font-style);
        font-weight: var(--aot-sys-typography-headline-display-uc-medium-font-weight);
        line-height: var(--aot-sys-typography-headline-display-uc-medium-line-height);
        font-family: var(--aot-sys-typography-font-family-display);
        font-size: var(--aot-sys-typography-headline-display-uc-medium-font-size);
      }

      &:nth-last-of-type(2) {
        height: var(--aot-sys-spacing-component-x-small);
      }

      &:last-of-type {
        color: var(--aot-sys-color-shades-grey90);
        font-feature-settings: var(--aot-sys-typography-font-feature-settings);
        font-style: var(--aot-sys-typography-font-style);
        font-weight: var(--aot-sys-typography-body-small-reg-font-weight);
        line-height: var(--aot-sys-typography-body-small-reg-line-height);
        font-family: var(--aot-sys-typography-font-family);
        font-size: var(--aot-sys-typography-body-small-reg-font-size);

        a {
          color: var(--aot-sys-color-shades-grey90);
          font-size: var(--aot-sys-typography-body-small-bold-font-size);
          font-style: var(--aot-sys-typography-font-style);
          font-weight: var(--aot-sys-typography-body-small-bold-font-weight);
          line-height: var(--aot-sys-typography-body-small-bold-line-height);
          text-decoration-line: underline;

          &:focus-visible {
            outline-offset: 2px;
            outline: 2px solid var(--aot-sys-color-borders-focus);
            border-radius: 2px;
          }
        }
      }
    }

    .cmp-heading__cursor {
      display: none;
      width: 40px !important;
      height: 5px !important;

      @media only screen and (min-width: 768px) {
        margin: 0 0 16px !important;
      }

      @media only screen and (max-width: 767px) {
        margin: 0 0 8px !important;
      }
    }
  }

  .cassie-cookie-modal--tab-group {
    display: flex;
    flex-direction: column;
    gap: var(--aot-sys-spacing-component-small);

    .cassie-cookie-modal--group-head-container {
      display: block;
      position: relative;
      padding: 0;
      border: none;

      .cassie-expand-cookies--container {
        order: 2;
        position: absolute;
        left: 24px;
        padding: 0 0 8px 8px;

        span {
          display: none;
        }

        @media only screen and (max-width: 767px) {
          width: auto;
        }

        .cassie-cookie-group--heading {
          color: var(--aot-sys-color-shades-grey90);
          font-feature-settings: var(--aot-sys-typography-font-feature-settings);
          font-family: var(--aot-sys-typography-font-family);
          font-size: var(--aot-sys-typography-label-medium-font-size);
          font-style: var(--aot-sys-typography-font-style);
          font-weight: var(--aot-sys-typography-label-medium-font-weight);
          line-height: var(--aot-sys-typography-label-medium-line-height);
          letter-spacing: var(--aot-sys-typography-label-medium-letter-spacing);
          margin-bottom: 8px;
        }
      }

      .cassie-cookie-group--toggle-switch {
        display: none;
      }

      .cassie-cookie-group--description {
        margin: 0;
        order: 3;
        padding-left: 32px;
        color: var(--aot-sys-color-shades-grey90);
        font-feature-settings: var(--aot-sys-typography-font-feature-settings);
        font-size: var(--aot-sys-typography-label-medium-font-size);
        font-style: var(--aot-sys-typography-font-style);
        font-weight: var(--aot-sys-typography-label-medium-font-weight);
        line-height: var(--aot-sys-typography-label-medium-line-height);
        letter-spacing: var(--aot-sys-typography-label-medium-letter-spacing);

        span {
          font-family: var(--aot-sys-typography-font-family) !important;
          color: var(--aot-sys-color-shades-grey90) !important;
          font-size: var(--aot-sys-typography-label-medium-font-size) !important;
          letter-spacing: var(--aot-sys-typography-label-medium-letter-spacing) !important;
        }

        @media only screen and (max-width: 767px) {
          width: auto;
        }
      }

      .cmp-cookie__checkboxlabel {
        width: 24px;
        height: 24px;
        order: 1;

        &::before {
          display: flex;
          width: 24px;
          height: 24px;
          justify-content: center;
          align-items: center;
          border-radius: 0px;
          border: 1px solid rgba(0, 0, 0, 1);
        }

        &:focus-visible {
          outline-offset: 2px;
          outline: 2px solid var(--aot-sys-color-borders-focus);
          border-radius: 2px;
        }
      }

      .cmp-cookie__checkbox:checked + .cmp-cookie__checkboxlabel::before {
        background: var(--aot-sys-color-borders-lilac)
          url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16px' height='16px' %3E%3Cpath fill='%23FFFFFF' fill-rule='nonzero' d='M13.4998 4L7.00669 10.5035L3.74591 7.24635L2.74591 8.24502L7.00669 12.5014L14.4998 4.99867L13.4998 4Z'/%3E%3C/svg%3E")
          no-repeat center !important;
      }
    }
  }

  .cassie-cookie-modal--footer {
    & > .cassie-cookie-modal--footer-extra > .cassie-cookie-modal--save-preferences--container {
      @media only screen and (min-width: 768px) {
        justify-content: flex-end;
        gap: 16px;
      }

      @media only screen and (max-width: 767px) {
        flex-wrap: wrap;
        flex-direction: row;
        gap: 8px;

        button:nth-child(1) {
          order: 3;
        }
        button:nth-child(2) {
          order: 2;
        }
        button:nth-child(3) {
          order: 1;
        }
      }

      .cassie-cookie-modal--save-preferences {
        display: flex;
        height: 48px;
        padding: 0px 24px;
        justify-content: center;
        align-items: center;
        border-radius: 28px;
        border: none;
        margin: 0;
        text-align: center;
        font-family: ABBvoice, sans-serif;
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 100%;
        background-color: var(--aot-sys-color-primary-accent-default);
        background-image: linear-gradient(90deg, var(--aot-sys-color-borders-lilac) 13%, var(--aot-sys-color-primary-accent-default) 50%);
        background-size: 200%;
        background-position: right;
        transition:
          background-position 0.3s cubic-bezier(0.65, 0, 0.35, 1),
          background-image 0.3s cubic-bezier(0.65, 0, 0.35, 1),
          opacity 0.2s;

        @media only screen and (max-width: 767px) {
          padding: 0px 16px;
        }

        &:hover {
          background-position: 30%;
          background-image: linear-gradient(90deg, var(--aot-sys-color-borders-lilac) 13%, var(--aot-sys-color-primary-accent-default) 50%);
          opacity: 1;
        }

        &:last-of-type {
          background: var(--aot-sys-color-primary-accent-default);

          &:hover {
            background-color: #d80000;
            opacity: 1;
          }
        }

        &:nth-last-of-type(2) {
          color: var(--aot-sys-color-shades-grey90);
          border-radius: 28px;
          border: none;
          background: transparent;
          font-size: 16px;
          position: relative;

          &::before,
          &::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            padding: 2px;
            pointer-events: none;
            mask:
              linear-gradient(#fff 0 0) content-box,
              linear-gradient(#fff 0 0);
            mask-composite: exclude;
            transition: opacity 0.5s ease-in-out;
          }

          &::before {
            background: linear-gradient(black, black);
            opacity: 1;
          }

          &::after {
            background: linear-gradient(90deg, #615eef 13%, #e00 65.5%);
            opacity: 0;
          }

          &:hover {
            &::before {
              opacity: 0;
            }

            &::after {
              opacity: 1;
            }
          }
        }

        &:focus-visible {
          outline-offset: 2px;
          outline: 2px solid var(--aot-sys-color-borders-focus);
        }
      }

      #cassie_save_preferences {
        background: transparent;
        color: var(--aot-sys-color-shades-grey90);
        border-radius: 28px;
        border: none;
        background: transparent;
        font-size: 16px;
        position: relative;

        &::before,
        &::after {
          content: '';
          position: absolute;
          inset: 0;
          border-radius: inherit;
          padding: 2px;
          pointer-events: none;
          mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
          mask-composite: exclude;
          transition: opacity 0.5s ease-in-out;
        }

        &::before {
          background: linear-gradient(black, black);
          opacity: 1;
        }

        &::after {
          background: linear-gradient(90deg, #615eef 13%, #e00 65.5%);
          opacity: 0;
        }

        &:hover {
          &::before {
            opacity: 0;
          }

          &::after {
            opacity: 1;
          }
        }
      }
    }
  }
}

.cassie-cookie-module > .cassie-overlay {
  @media only screen and (max-width: 767px) {
    background-color: transparent;
  }
}
