.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: 14px;
  line-height: 20px;
  color: #0f0f0f;
  font-weight: 500;
  position: relative;
  cursor: pointer;
}

.cassie-cookie-modal--group-head-container .cmp-cookie__checkboxlabel::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #bababa;
  background-color: #fff;
  box-sizing: border-box;
  border-radius: 2px;
}

.cassie-cookie-modal--group-head-container .cmp-cookie__checkbox:checked + .cmp-cookie__checkboxlabel::before {
  background-color: #fff;
  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: #0f0f0f;
  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;
    font-size: 14px;
  }
}
.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: 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 (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;
  }

  @media screen and (min-width: 768px) and (max-width: 1023px) {
    margin: 0 36px;
  }

  @media screen and (min-width: 1024px) and (max-width: 1439px) {
    margin: 0 40px;
  }
}

#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: 2 / span 10;
    width: auto;
  }

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

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

  @media only screen and (min-width: 768px) {
    padding: 40px 32px;
    gap: 40px;
    background: #fff;
    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: 24px 16px;
    margin: 0;
    box-sizing: border-box;
    overflow-y: hidden;
  }

  @media only screen and (min-width: 1440px) {
    box-sizing: border-box;
    width: 926px;
  }

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

  .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: #1f1f1f;
        font-feature-settings:
          'liga' off,
          'clig' off;
        font-style: normal;
        font-weight: 700;
        line-height: 125%;

        @media only screen and (min-width: 768px) {
          font-size: 32px;
        }

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

      &:nth-last-of-type(2) {
        @media only screen and (min-width: 768px) {
          height: 32px;
        }

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

      &:last-of-type {
        color: #1f1f1f;
        font-size: 16px;
        font-style: normal;
        font-weight: 300;
        line-height: 140%;

        a {
          color: #1f1f1f;
          font-size: 16px;
          font-style: normal;
          font-weight: 500;
          line-height: 100%;
          text-decoration-line: underline;

          &:focus-visible {
            outline-offset: 2px;
            outline: 2px solid #2934ff;
            border-radius: 2px;
          }
        }
      }
    }

    .cmp-heading__cursor {
      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;

    @media only screen and (min-width: 768px) {
      gap: 24px;
    }

    .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 12px;

        span {
          display: none;
        }

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

        .cassie-cookie-group--heading {
          color: #1f1f1f;
          font-feature-settings:
            'liga' off,
            'clig' off;
          font-family: ABBvoice, sans-serif;
          font-size: 14px;
          font-style: normal;
          font-weight: 500;
          line-height: 140%;
        }
      }

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

      .cassie-cookie-group--description {
        margin: 0;
        order: 3;
        padding-left: 36px;
        color: #1f1f1f;
        font-feature-settings:
          'liga' off,
          'clig' off;
        font-size: 14px;
        font-style: normal;
        font-weight: 300;
        line-height: 140%;

        @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: 4px;
          border: 2px solid rgba(0, 0, 0, 0.12);
        }

        &:focus-visible {
          outline-offset: 2px;
          outline: 2px solid #2934ff;
          border-radius: 2px;
        }
      }

      .cmp-cookie__checkbox:checked + .cmp-cookie__checkboxlabel::before {
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16px' height='16px' %3E%3Cpath fill='%23FF000F' 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 {
    @media only screen and (max-width: 767px) {
      position: fixed;
      bottom: 0;
      left: 16px;
      right: 16px;
      flex: 0 0 230px;
      width: calc(100% - 32px);
    }

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

      @media only screen and (max-width: 767px) {
        flex-direction: column-reverse;
        gap: 16px;
        padding: 24px 0;
      }

      .cassie-cookie-modal--save-preferences {
        display: flex;
        height: 40px;
        padding: 12px 32px;
        justify-content: center;
        align-items: center;
        border-radius: 24px;
        border: none;
        margin: 0;
        text-align: center;
        font-family: ABBvoice, sans-serif;
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 100%;

        &:last-of-type {
          background: #e00;

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

        &:nth-last-of-type(2) {
          background: transparent;
          color: #1f1f1f;
          border: 2px solid rgba(0, 0, 0, 0.12);

          &:hover {
            border-color: #0000001e;
            background-color: #0000001e;
            opacity: 1;
          }
        }

        &:focus-visible {
          outline-offset: 2px;
          outline: 2px solid #2934ff;
        }
      }

      #cassie_save_preferences {
        background: transparent;
        color: #1f1f1f;
        border: 2px solid rgba(0, 0, 0, 0.12);

        &:hover {
          border-color: #0000001e;
          background-color: #0000001e;
          opacity: 1;
        }
      }
    }
  }
}

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