.legacy-cookie-consent[hidden] {
  display: none !important;
}

.legacy-cookie-consent {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1200;

  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.25rem;

  box-sizing: border-box;
  max-width: calc(100vw - 2.5rem);
  padding: 1.25rem;

  border-radius: 1.25rem;
  background: var(--Main-White, #fff);
  box-shadow: 0 8px 32px rgba(10, 12, 60, .14);
}

.legacy-cookie-consent__message,
.legacy-cookie-consent__actions {
  display: flex;
  align-items: center;
}

.legacy-cookie-consent__message {
  gap: 1.25rem;
}

.legacy-cookie-consent__actions {
  gap: .75rem;
  flex: 0 0 auto;
}

.legacy-cookie-consent__icon {
  display: flex;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
}

.legacy-cookie-consent__icon svg {
  display: block;
  width: 56px;
  height: 56px;
}

.legacy-cookie-consent p {
  margin: 0;
  color: #0A0C3C;
  font-size: .75rem;
  line-height: 1.45;
}

.legacy-cookie-consent__close {
  display: grid;
  place-items: center;

  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;

  padding: 0;
  border: 0;
  border-radius: .65rem;
  background: #f4f2ff;

  cursor: pointer;
}

.legacy-cookie-consent__close:hover {
  background: #ece8ff;
}

.legacy-cookie-consent__close svg {
  display: block;
  width: 20px;
  height: 20px;
}

@media (max-width: 640.98px) {
  .legacy-cookie-consent {
    right: .75rem;
    bottom: .75rem;
    left: .75rem;

    max-width: none;

    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .legacy-cookie-consent__message {
    align-items: flex-start;
  }

  .legacy-cookie-consent__actions {
    justify-content: flex-end;
  }

  .legacy-cookie-consent__actions
  .btn {
    flex: 1;
  }

  .legacy-cookie-consent p br {
    display: none;
  }
}

@media (max-width: 420px) {
  .legacy-cookie-consent {
    padding: 1rem;
  }

  .legacy-cookie-consent__icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }

  .legacy-cookie-consent__icon svg {
    width: 48px;
    height: 48px;
  }
}



/* PATCH12-COOKIE-RESPONSIVE */

.legacy-cookie-consent[hidden] {
    display: none !important;
}

.legacy-cookie-consent:not([hidden]) {
    position: fixed !important;

    z-index: 2147483000 !important;

    left: max(
        1.5rem,
        env(safe-area-inset-left)
    ) !important;

    right: max(
        1.5rem,
        env(safe-area-inset-right)
    ) !important;

    bottom: max(
        1.5rem,
        env(safe-area-inset-bottom)
    ) !important;

    width: auto !important;
    max-width: 60rem !important;

    margin-left: auto !important;
    margin-right: auto !important;

    box-sizing: border-box !important;
}


@media (max-width: 768px) {

    .legacy-cookie-consent:not([hidden]) {

        left: max(
            0.75rem,
            env(safe-area-inset-left)
        ) !important;

        right: max(
            0.75rem,
            env(safe-area-inset-right)
        ) !important;

        /*
         * Mobile bottom navigation occupies
         * the lower part of the viewport.
         */
        bottom: calc(
            5.5rem
            +
            env(safe-area-inset-bottom)
        ) !important;

        max-width: none !important;

        max-height: calc(
            100dvh
            -
            7rem
        ) !important;

        overflow-y: auto !important;
    }


    .legacy-cookie-consent__message {
        min-width: 0 !important;
    }


    .legacy-cookie-consent__actions {
        flex-shrink: 0 !important;
    }

}


@media (max-width: 420px) {

    .legacy-cookie-consent:not([hidden]) {

        left: max(
            0.5rem,
            env(safe-area-inset-left)
        ) !important;

        right: max(
            0.5rem,
            env(safe-area-inset-right)
        ) !important;
    }

}
